refactor(app): rename the Calendar view to Timeline
The tab has always rendered <Timeline>; only its label disagreed. Naming one thing two ways costs a reader nothing on the screen and costs the next person reading the code a lookup. The view is component state, not a stored preference, so no localStorage key moves. Prose uses of "calendar" elsewhere mean a schedule rather than this tab and are left alone. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5
parent
d7b2f306ae
commit
39c633ea66
+2
-2
@@ -38,7 +38,7 @@ import {
|
|||||||
} from "../shared/custom.ts";
|
} from "../shared/custom.ts";
|
||||||
import { metaFor } from "../shared/games.ts";
|
import { metaFor } from "../shared/games.ts";
|
||||||
|
|
||||||
type View = "soon" | "calendar";
|
type View = "soon" | "timeline";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Connection state. Offline is not an error here — the service worker serves
|
* Connection state. Offline is not an error here — the service worker serves
|
||||||
@@ -326,7 +326,7 @@ export function App() {
|
|||||||
{(
|
{(
|
||||||
[
|
[
|
||||||
["soon", "Ending soon"],
|
["soon", "Ending soon"],
|
||||||
["calendar", "Calendar"],
|
["timeline", "Timeline"],
|
||||||
] as const
|
] as const
|
||||||
).map(([id, label]) => (
|
).map(([id, label]) => (
|
||||||
<button
|
<button
|
||||||
|
|||||||
Reference in New Issue
Block a user