Revert "feat(topics): add the Topics preview area, its navigation entry and its switch"

This reverts commit c68e833dcc.
This commit is contained in:
Marc-André Bombeck committed 2026-10-23 10:46:54 +02:00
1 parent ce0c2a3f3f
commit c1911e71e3
62 files changed
+212 -4313

No files matched your search

-2
View File
@@ -51,8 +51,6 @@ const WHOLE_RECORD_ROUTE_FAMILIES = [
"/achievements",
// v1.42 — the timeline lays every section side by side.
"/timeline",
// So does a topic page (preview).
"/topics",
] as const;
interface RouteFamily {
-9
View File
@@ -49,7 +49,6 @@ import { vaccinationKeys } from "./vaccinations";
import { workoutKeys } from "./workouts";
import { activityKeys } from "./activity";
import { provenanceKeys } from "./provenance";
import { topicKeys } from "./topics";
export const queryKeys = {
...authKeys,
@@ -65,7 +64,6 @@ export const queryKeys = {
...workoutKeys,
...activityKeys,
...provenanceKeys,
...topicKeys,
...settingsKeys,
...cycleKeys,
...measurementReminderKeys,
@@ -167,7 +165,6 @@ export const measurementDependentKeys = [
// write to this one evicts both roots.
queryKeys.dayRoot(),
queryKeys.timelineRoot(),
queryKeys.topicsRoot(),
];
/**
@@ -202,7 +199,6 @@ export const moodDependentKeys = [
// write to this one evicts both roots.
queryKeys.dayRoot(),
queryKeys.timelineRoot(),
queryKeys.topicsRoot(),
];
/**
@@ -258,7 +254,6 @@ export const medicationDependentKeys = [
// write to this one evicts both roots.
queryKeys.dayRoot(),
queryKeys.timelineRoot(),
queryKeys.topicsRoot(),
// v1.43 — a taken supplement dose adds to the day's micronutrients
// (`source = SUPPLEMENT`), so a dose write evicts the nutrient reads.
queryKeys.nutrientsRoot(),
@@ -279,7 +274,6 @@ export const cycleDependentKeys = [
// write to this one evicts both roots.
queryKeys.dayRoot(),
queryKeys.timelineRoot(),
queryKeys.topicsRoot(),
];
/**
@@ -303,7 +297,6 @@ export const illnessDependentKeys = [
// write to this one evicts both roots.
queryKeys.dayRoot(),
queryKeys.timelineRoot(),
queryKeys.topicsRoot(),
];
/**
@@ -337,7 +330,6 @@ export const encounterDependentKeys = [
// write to this one evicts both roots.
queryKeys.dayRoot(),
queryKeys.timelineRoot(),
queryKeys.topicsRoot(),
];
/**
@@ -365,7 +357,6 @@ export const vaccinationDependentKeys = [
// write to this one evicts both roots.
queryKeys.dayRoot(),
queryKeys.timelineRoot(),
queryKeys.topicsRoot(),
];
/**
-3
View File
@@ -44,9 +44,6 @@ export const settingsKeys = {
*/
moduleListLayout: () => ["settings", "module-list-layout"] as const,
/** The per-user preview-feature opt-ins behind `/api/settings/preview-features`. */
previewFeatures: () => ["settings", "preview-features"] as const,
/**
* v1.35.0 — which pillars count toward the Health Score, behind
* `GET/PATCH /api/auth/me/health-score-config`. Its own cell rather than
-11
View File
@@ -1,11 +0,0 @@
/**
* Query keys — the topic pages (preview).
* Part of the centralized factory; aggregated in `./index.ts`.
*/
export const topicKeys = {
/** Every topic read; a write to any record table the topics read evicts it. */
topicsRoot: () => ["topics"] as const,
topicsOverview: () => ["topics", "overview"] as const,
topicDetail: (topic: string, range: string) =>
["topics", "detail", topic, range] as const,
};
@@ -98,7 +98,6 @@ export const SETTINGS_DESTINATION_INVENTORY = {
export: PERSONAL,
advanced: PERSONAL,
privacy: PERSONAL,
preview: PERSONAL,
about: PERSONAL,
} as const satisfies Record<
SettingsSectionSlug,
+4 -4
View File
@@ -114,10 +114,10 @@ export const SETTINGS_SECTION_SLUGS = [
// pieces into one coherent privacy pane. Sits next to `advanced` (the
// destructive-action home) and before `about`.
"privacy",
// "Preview features": per-user opt-in to things finished enough to
// try and not yet the default (the Topics area first). Sits in the System
// group before About.
"preview",
// v1.44 — "Preview features" (per-user opt-ins, Settings > System) is not
// listed until the first preview it switches, the topic pages, ships: a
// switch that changes nothing is a promise the page cannot keep. The stored
// flag, `/api/settings/preview-features` and its backup round-trip stay.
"about",
] as const;