mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-17 23:52:24 +00:00
Revert "feat(topics): add the Topics preview area, its navigation entry and its switch"
This reverts commit c68e833dcc.
This commit is contained in:
1 parent
ce0c2a3f3f
commit
c1911e71e3
62 files changed
+212
-4313
No files matched your search
@@ -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(),
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
Reference in new issue
Block a user