diff --git a/src/app/(frontend)/account/page.tsx b/src/app/(frontend)/account/page.tsx index 4a9f3c1..c53f9e3 100644 --- a/src/app/(frontend)/account/page.tsx +++ b/src/app/(frontend)/account/page.tsx @@ -15,7 +15,7 @@ import { PreferencesForm } from "@/components/frontend/account/PreferencesForm"; import { RequestTransferDialog } from "@/components/frontend/account/RequestTransferDialog"; export const metadata = { - title: "Account — Polaris Task Force", + title: "Account (Polaris Task Force)", }; function relationId(value: Assignment["leader"]): number | null { @@ -114,7 +114,9 @@ export default async function AccountPage() {
- {npcs.length} contact{npcs.length !== 1 ? "s" : ""} recorded in the theater of - operations. + {npcs.length} contact{npcs.length !== 1 ? "s" : ""} recorded in the theater of operations.
diff --git a/src/app/(frontend)/personnel/statistics/page.tsx b/src/app/(frontend)/personnel/statistics/page.tsx index 0da4c15..daecf13 100644 --- a/src/app/(frontend)/personnel/statistics/page.tsx +++ b/src/app/(frontend)/personnel/statistics/page.tsx @@ -2,16 +2,10 @@ import config from "@payload-config"; import { getPayload } from "payload"; import type { GameNpc, MarketListing } from "@/payload-types"; import { TrendingUp } from "lucide-react"; -import { - Card, - CardContent, - CardDescription, - CardHeader, - CardTitle, -} from "@/components/ui/card"; +import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"; export const metadata = { - title: "Statistics — Polaris Task Force", + title: "Statistics (Polaris Task Force)", }; interface FactionStatistic { @@ -49,10 +43,7 @@ export default async function StatisticsPage() { payload.find({ collection: "market-listings", where: { - and: [ - { isAutoGenerated: { equals: true } }, - { status: { equals: "active" } }, - ], + and: [{ isAutoGenerated: { equals: true } }, { status: { equals: "active" } }], }, limit: 200, depth: 0, @@ -196,10 +187,7 @@ export default async function StatisticsPage() { ) : ({vendor.name}
diff --git a/src/app/(frontend)/profile/[username]/page.tsx b/src/app/(frontend)/profile/[username]/page.tsx
index be13a41..5a84b6f 100644
--- a/src/app/(frontend)/profile/[username]/page.tsx
+++ b/src/app/(frontend)/profile/[username]/page.tsx
@@ -654,8 +654,8 @@ export default async function ProfilePage({ params }: ProfilePageProps) {
{xpLevel.currentLevelXP.toLocaleString()} XP
{xpLevel.nextLevelXP !== null ? (
- {Math.floor(xpLevel.progress)}% — {xpLevel.nextLevelXP.toLocaleString()} XP to
- next level
+ {Math.floor(xpLevel.progress)}% ({xpLevel.nextLevelXP.toLocaleString()} XP to next
+ level)
) : (
Max level reached
diff --git a/src/app/(frontend)/projects/[key]/board/page.tsx b/src/app/(frontend)/projects/[key]/board/page.tsx
index 0d5bf9d..7980ca0 100644
--- a/src/app/(frontend)/projects/[key]/board/page.tsx
+++ b/src/app/(frontend)/projects/[key]/board/page.tsx
@@ -6,7 +6,7 @@ import { ProjectBoardView } from "@/components/frontend/projects/ProjectBoardVie
import { hasPermission } from "@/utils/access-control/hasPermission";
export const metadata = {
- title: "Board — Polaris Task Force",
+ title: "Board | Polaris Task Force",
};
const KANBAN_STATUSES = [
diff --git a/src/app/(frontend)/projects/[key]/releases/page.tsx b/src/app/(frontend)/projects/[key]/releases/page.tsx
index 5a48c41..1234f86 100644
--- a/src/app/(frontend)/projects/[key]/releases/page.tsx
+++ b/src/app/(frontend)/projects/[key]/releases/page.tsx
@@ -7,14 +7,10 @@ import { hasPermission } from "@/utils/access-control/hasPermission";
import { richTextToPlaintext } from "@/lib/projects/projectMeta";
export const metadata = {
- title: "Releases — Polaris Task Force",
+ title: "Releases: Polaris Task Force",
};
-export default async function ReleasesPage({
- params,
-}: {
- params: Promise<{ key: string }>;
-}) {
+export default async function ReleasesPage({ params }: { params: Promise<{ key: string }> }) {
const { key } = await params;
const headers = await nextHeaders();
const payload = await getPayload({ config });
@@ -62,9 +58,10 @@ export default async function ReleasesPage({
const releases = releaseResult.docs.map((r: any) => {
const releaseTickets = tickets.filter((ticket: any) => {
- const releaseId = typeof ticket.release === "object" && ticket.release !== null
- ? ticket.release.id
- : ticket.release;
+ const releaseId =
+ typeof ticket.release === "object" && ticket.release !== null
+ ? ticket.release.id
+ : ticket.release;
return releaseId === r.id;
});
diff --git a/src/app/(frontend)/projects/[key]/sprints/page.tsx b/src/app/(frontend)/projects/[key]/sprints/page.tsx
index 0ad605b..cc9411f 100644
--- a/src/app/(frontend)/projects/[key]/sprints/page.tsx
+++ b/src/app/(frontend)/projects/[key]/sprints/page.tsx
@@ -6,7 +6,7 @@ import { SprintsView } from "@/components/frontend/projects/SprintsView";
import { hasPermission } from "@/utils/access-control/hasPermission";
export const metadata = {
- title: "Sprints — Polaris Task Force",
+ title: "Sprints: Polaris Task Force",
};
export default async function SprintsPage({
diff --git a/src/app/(frontend)/projects/page.tsx b/src/app/(frontend)/projects/page.tsx
index 2b94955..03fc4e1 100644
--- a/src/app/(frontend)/projects/page.tsx
+++ b/src/app/(frontend)/projects/page.tsx
@@ -7,7 +7,7 @@ import { hasPermission } from "@/utils/access-control/hasPermission";
import { richTextToPlaintext } from "@/lib/projects/projectMeta";
export const metadata = {
- title: "Projects — Polaris Task Force",
+ title: "Projects: Polaris Task Force",
};
export default async function ProjectsPage() {
diff --git a/src/app/(frontend)/projects/search/page.tsx b/src/app/(frontend)/projects/search/page.tsx
index f2341a0..d5468d1 100644
--- a/src/app/(frontend)/projects/search/page.tsx
+++ b/src/app/(frontend)/projects/search/page.tsx
@@ -5,7 +5,7 @@ import { getPayload } from "payload";
import { ProjectSearchView } from "@/components/frontend/projects/ProjectSearchView";
export const metadata = {
- title: "Search — Polaris Task Force",
+ title: "Search: Polaris Task Force",
};
export default async function SearchPage() {
diff --git a/src/app/(frontend)/qualification/page.tsx b/src/app/(frontend)/qualification/page.tsx
index 5fd465a..bec4983 100644
--- a/src/app/(frontend)/qualification/page.tsx
+++ b/src/app/(frontend)/qualification/page.tsx
@@ -9,7 +9,7 @@ import type { AimTrainerStats } from "@/app/(frontend)/qualification/actions";
import { AimTrainerArena } from "@/components/frontend/qualification/AimTrainerArena";
export const metadata: Metadata = {
- title: "Qualification Course — Polaris Task Force",
+ title: "Qualification Course: Polaris Task Force",
description: "Complete a timed qualification course to sharpen your marksmanship and earn XP.",
};
diff --git a/src/app/(frontend)/radio/page.tsx b/src/app/(frontend)/radio/page.tsx
index af3982f..a1020d5 100644
--- a/src/app/(frontend)/radio/page.tsx
+++ b/src/app/(frontend)/radio/page.tsx
@@ -7,7 +7,7 @@ import { Radio } from "lucide-react";
import { RadioArena } from "@/components/frontend/radio/RadioArena";
export const metadata: Metadata = {
- title: "Radio Traffic — Polaris Task Force",
+ title: "Radio Traffic (Polaris Task Force)",
description: "Intercept and type incoming radio traffic fast + accurately.",
};
diff --git a/src/app/(frontend)/roster/page.tsx b/src/app/(frontend)/roster/page.tsx
index d568fa2..90ee706 100644
--- a/src/app/(frontend)/roster/page.tsx
+++ b/src/app/(frontend)/roster/page.tsx
@@ -7,7 +7,7 @@ import { UsersIcon } from "lucide-react";
import { RosterView } from "@/components/frontend/roster/RosterView";
export const metadata = {
- title: "Unit Roster — Polaris Task Force",
+ title: "Unit Roster (Polaris Task Force)",
};
export type RosterMember = {
diff --git a/src/app/(frontend)/transfers/page.tsx b/src/app/(frontend)/transfers/page.tsx
index 9605bbb..d4a4ceb 100644
--- a/src/app/(frontend)/transfers/page.tsx
+++ b/src/app/(frontend)/transfers/page.tsx
@@ -8,7 +8,7 @@ import { isPayloadUser } from "@/utils/access-control/isPayloadUser";
import { isSuperuser } from "@/utils/access-control/hasPermission";
export const metadata = {
- title: "Transfers — Polaris Task Force",
+ title: "Transfers: Polaris Task Force",
};
export default async function TransfersPage() {
diff --git a/src/app/(frontend)/voiceover/[id]/page.tsx b/src/app/(frontend)/voiceover/[id]/page.tsx
index 4f9dfee..28680f9 100644
--- a/src/app/(frontend)/voiceover/[id]/page.tsx
+++ b/src/app/(frontend)/voiceover/[id]/page.tsx
@@ -12,7 +12,7 @@ import { getScriptForUser } from "@/lib/voiceover";
import { isPayloadUser } from "@/utils/access-control/isPayloadUser";
export const metadata: Metadata = {
- title: "Record voiceover — Polaris Task Force",
+ title: "Record voiceover: Polaris Task Force",
description: "Read a Polaris Task Force voiceover script and submit a recording.",
};
diff --git a/src/app/(frontend)/voiceover/page.tsx b/src/app/(frontend)/voiceover/page.tsx
index 6ac7466..d6afee9 100644
--- a/src/app/(frontend)/voiceover/page.tsx
+++ b/src/app/(frontend)/voiceover/page.tsx
@@ -21,7 +21,7 @@ import { cn } from "@/lib/utils";
import { isPayloadUser } from "@/utils/access-control/isPayloadUser";
export const metadata: Metadata = {
- title: "Voiceover — Polaris Task Force",
+ title: "Voiceover: Polaris Task Force",
description: "Record voiceover takes for active Polaris Task Force scripts.",
};
diff --git a/src/app/(frontend)/wiki/[slug]/edit/page.tsx b/src/app/(frontend)/wiki/[slug]/edit/page.tsx
index 51db6d3..6e8837c 100644
--- a/src/app/(frontend)/wiki/[slug]/edit/page.tsx
+++ b/src/app/(frontend)/wiki/[slug]/edit/page.tsx
@@ -10,7 +10,7 @@ import { WikiEditor } from "@/components/frontend/wiki/WikiEditor";
import { listTemplates, templateMap } from "@/lib/wiki/service";
export const metadata = {
- title: "Edit wiki page — Polaris Task Force",
+ title: "Edit wiki page: Polaris Task Force",
};
function templateCssMap(
diff --git a/src/app/(frontend)/wiki/[slug]/history/page.tsx b/src/app/(frontend)/wiki/[slug]/history/page.tsx
index 90ec2e3..f70ba1d 100644
--- a/src/app/(frontend)/wiki/[slug]/history/page.tsx
+++ b/src/app/(frontend)/wiki/[slug]/history/page.tsx
@@ -11,7 +11,7 @@ import { RevisionList, type WikiRevisionSummary } from "@/components/frontend/wi
import { hasIntelligenceQualification } from "@/utils/access-control/hasIntelligenceQualification";
export const metadata = {
- title: "Wiki history — Polaris Task Force",
+ title: "Wiki history: Polaris Task Force",
};
function editorName(editor: WikiRevision["editor"]): string {
diff --git a/src/app/(frontend)/wiki/[slug]/page.tsx b/src/app/(frontend)/wiki/[slug]/page.tsx
index aa42372..fe89013 100644
--- a/src/app/(frontend)/wiki/[slug]/page.tsx
+++ b/src/app/(frontend)/wiki/[slug]/page.tsx
@@ -16,7 +16,7 @@ import { prepareMarkdown } from "@/lib/wiki/prepare";
import { buildTemplateStyles } from "@/lib/wiki/templateCss";
export const metadata = {
- title: "Wiki page — Polaris Task Force",
+ title: "Wiki page: Polaris Task Force",
};
function relationName(relation: WikiPageDocument["lastEditor"]): string {
diff --git a/src/app/(frontend)/wiki/actions.ts b/src/app/(frontend)/wiki/actions.ts
index 3809153..aedce90 100644
--- a/src/app/(frontend)/wiki/actions.ts
+++ b/src/app/(frontend)/wiki/actions.ts
@@ -251,7 +251,7 @@ export async function uploadWikiImage(
overrideAccess: true,
});
if (!doc.filename) {
- return { success: false, error: "Upload failed — no file was stored." };
+ return { success: false, error: "Upload failed: no file was stored." };
}
return {
success: true,
diff --git a/src/app/(frontend)/wiki/new/page.tsx b/src/app/(frontend)/wiki/new/page.tsx
index 4a0bc72..23e294f 100644
--- a/src/app/(frontend)/wiki/new/page.tsx
+++ b/src/app/(frontend)/wiki/new/page.tsx
@@ -7,7 +7,7 @@ import { WikiEditor } from "@/components/frontend/wiki/WikiEditor";
import { listTemplates, templateMap } from "@/lib/wiki/service";
export const metadata = {
- title: "New wiki page — Polaris Task Force",
+ title: "New wiki page (Polaris Task Force)",
};
function templateCssMap(
diff --git a/src/app/(frontend)/wiki/page.tsx b/src/app/(frontend)/wiki/page.tsx
index 3105a98..8cb6da4 100644
--- a/src/app/(frontend)/wiki/page.tsx
+++ b/src/app/(frontend)/wiki/page.tsx
@@ -7,7 +7,7 @@ import { WikiIndex, type WikiIndexPage } from "@/components/frontend/wiki/WikiIn
import { hasIntelligenceQualification } from "@/utils/access-control/hasIntelligenceQualification";
export const metadata = {
- title: "Wiki — Polaris Task Force",
+ title: "Wiki: Polaris Task Force",
};
function relationName(relation: WikiPageDocument["lastEditor"]): string {
diff --git a/src/bot/commands/remindEvaluations.ts b/src/bot/commands/remindEvaluations.ts
index c720716..881524f 100644
--- a/src/bot/commands/remindEvaluations.ts
+++ b/src/bot/commands/remindEvaluations.ts
@@ -40,7 +40,7 @@ const resolveTargetMissions = async (
return { error: `No mission matches "${trimmed}" (searched by ID, name, and code name).` };
}
if (docs.length > 1) {
- const list = docs.map((m) => `• ${missionLabel(m)} — #${m.id}`).join("\n");
+ const list = docs.map((m) => `• ${missionLabel(m)} (#${m.id})`).join("\n");
return { error: `Multiple missions match "${trimmed}". Be more specific:\n${list}` };
}
return { mission: docs[0] };
@@ -92,20 +92,20 @@ export const remindEvaluationsCommand: BotCommand = {
)
) {
await interaction.editReply(
- `**${missionLabel(mission)}** isn't evaluable yet — missions must be completed or past their scheduled start before reminders go out.`,
+ `**${missionLabel(mission)}** isn't evaluable yet: missions must be completed or past their scheduled start before reminders go out.`,
);
return;
}
const sent = await processMission(client, payload, mission);
await interaction.editReply(
- `Done — ${sent} evaluation reminder DM(s) sent for **${missionLabel(mission)}**.`,
+ `Done: ${sent} evaluation reminder DM(s) sent for **${missionLabel(mission)}**.`,
);
return;
}
const { processed, sent } = await reconcile(client, payload);
await interaction.editReply(
- `Sweep complete — ${processed} pending mission(s) processed, ${sent} reminder DM(s) sent.`,
+ `Sweep complete: ${processed} pending mission(s) processed, ${sent} reminder DM(s) sent.`,
);
} catch (error) {
await interaction.editReply(
diff --git a/src/bot/index.ts b/src/bot/index.ts
index 02d1d3c..a78e5ae 100644
--- a/src/bot/index.ts
+++ b/src/bot/index.ts
@@ -19,11 +19,11 @@ const main = async () => {
let shuttingDown = false;
const shutdown = async (signal: NodeJS.Signals): Promise
- No labor crew — add workers via Hire Staff.
+ No labor crew. Add workers via Hire Staff.
- {crew.classificationName} — {crew.headcount} hired ·{" "}
+ {crew.classificationName}: {crew.headcount} hired ·{" "}
{crew.requiredHeadcount} required · max {crew.maxHeadcount}
diff --git a/src/components/frontend/eod/EodLeaderboard.tsx b/src/components/frontend/eod/EodLeaderboard.tsx
index 586b3ff..25c32dd 100644
--- a/src/components/frontend/eod/EodLeaderboard.tsx
+++ b/src/components/frontend/eod/EodLeaderboard.tsx
@@ -190,7 +190,7 @@ export function EodLeaderboard({
- No clearances logged yet — take the first sector!
+ No clearances logged yet. Take the first sector!
- No pilots on the board yet — be the first to pass a pipe!
+ No pilots on the board yet. Be the first to pass a pipe!
- Nothing scheduled yet — claim this Friday.
+ Nothing scheduled yet. Claim this Friday.
- Plain text only — each line becomes a paragraph. Rich formatting written in the admin panel
+ Plain text only. Each line becomes a paragraph. Rich formatting written in the admin panel
is flattened if you save here.
- Choose a loadout above — it becomes the active loadout that the wardrobe
+ Choose a loadout above. It becomes the active loadout that the wardrobe
reflects.
The {isVendor ? "vendor" : "seller"} counteroffers{" "}
{fmt(negotiation?.amount ?? 0)}{" "}
- each for {negotiation?.quantity ?? stock}× — total{" "}
+ each for {negotiation?.quantity ?? stock}×, for a total of{" "}
{fmt((negotiation?.amount ?? 0) * (negotiation?.quantity ?? stock))}
@@ -331,7 +331,7 @@ export function MakeOfferDialog({ listing, currentUserId, currencyConfig }: Make
Sold at {fmt(outcome.price)} each for{" "}
- {negotiation?.quantity ?? stock}× — total{" "}
+ {negotiation?.quantity ?? stock}×, for a total of{" "}
{fmt(outcome.price * (negotiation?.quantity ?? stock))}
diff --git a/src/components/frontend/market/NegotiationPanel.tsx b/src/components/frontend/market/NegotiationPanel.tsx
index 6e4085c..5324fb7 100644
--- a/src/components/frontend/market/NegotiationPanel.tsx
+++ b/src/components/frontend/market/NegotiationPanel.tsx
@@ -97,7 +97,7 @@ function NegotiationRow({
if (key === "accept") {
const qty = negotiation.quantity ?? listing?.quantity ?? 1;
toast.success("Deal closed", {
- description: `Sold ${qty}× at ${fmt(negotiation.amount ?? 0)} each — total ${fmt((negotiation.amount ?? 0) * qty)}.`,
+ description: `Sold ${qty}× at ${fmt(negotiation.amount ?? 0)} each, total ${fmt((negotiation.amount ?? 0) * qty)}.`,
});
}
router.refresh();
diff --git a/src/components/frontend/market/NpcChat.tsx b/src/components/frontend/market/NpcChat.tsx
index fe9850c..e839859 100644
--- a/src/components/frontend/market/NpcChat.tsx
+++ b/src/components/frontend/market/NpcChat.tsx
@@ -21,7 +21,7 @@ export function NpcChat({ listing, negotiation, currencyLabel }: NpcChatProps) {
- No scores logged for this lane yet — take the first qualification slot.
+ No scores logged for this lane yet. Take the first qualification slot.
diff --git a/src/components/frontend/eod/MinesweeperBoard.tsx b/src/components/frontend/eod/MinesweeperBoard.tsx
index d10c298..fa877e0 100644
--- a/src/components/frontend/eod/MinesweeperBoard.tsx
+++ b/src/components/frontend/eod/MinesweeperBoard.tsx
@@ -807,8 +807,8 @@ export function MinesweeperBoard({
aria-live="polite"
>
@@ -156,7 +156,7 @@ export function FlappyLeaderboard({ refreshKey = 0, currentUserId, activePilots
row.isCurrentUser && "bg-accent/40",
row.isOutsideTopTen && "text-muted-foreground opacity-70",
)}
- title={row.isOutsideTopTen ? "Pilot status — not currently ranked in the top 10" : undefined}
+ title={row.isOutsideTopTen ? "Pilot status: not currently ranked in the top 10" : undefined}
>
{row.isOutsideTopTen ? "—" : i + 1}
diff --git a/src/components/frontend/intelligence/CreateSideOpDialog.tsx b/src/components/frontend/intelligence/CreateSideOpDialog.tsx
index be2e210..d93eda1 100644
--- a/src/components/frontend/intelligence/CreateSideOpDialog.tsx
+++ b/src/components/frontend/intelligence/CreateSideOpDialog.tsx
@@ -246,7 +246,7 @@ export function CreateSideOpDialog({
return;
}
if (!isEdit && !defaultStartDateTime) {
- setError("Missing start date — schedule from a Friday on the calendar.");
+ setError("Missing start date: schedule from a Friday on the calendar.");
return;
}
const startDateIso = defaultStartDateTime ?? "";
diff --git a/src/components/frontend/intelligence/FridayCalendar.tsx b/src/components/frontend/intelligence/FridayCalendar.tsx
index 71cb76c..8366522 100644
--- a/src/components/frontend/intelligence/FridayCalendar.tsx
+++ b/src/components/frontend/intelligence/FridayCalendar.tsx
@@ -125,7 +125,7 @@ export function FridayCalendar({