Revert "feat(topics): compute topic overviews and topic pages on the server"

This reverts commit cc04e0944d.
This commit is contained in:
Marc-André Bombeck committed 2026-10-23 10:46:55 +02:00
1 parent c1911e71e3
commit 0182f91092
30 files changed
+35 -3937

No files matched your search

-14
View File
@@ -24,10 +24,6 @@ import { storeTimezone } from "@/lib/timezone-mirror";
import type { ModuleKey } from "@/lib/modules/registry";
import type { AiCapabilities } from "@/lib/ai/capabilities/types";
import type { CoachReasoningState } from "@/lib/ai/reasoning/resolve";
import {
resolvePreviewFeatures,
type PreviewFeatures,
} from "@/lib/settings/preview-features";
import type { ModuleAccessState } from "@/lib/sharing/module-disclosure";
import type { OnboardingStateDto } from "@/lib/onboarding/needs";
import type { TourProgress } from "@/lib/onboarding/tour-progress";
@@ -258,14 +254,6 @@ export interface AuthUser {
* server image that does not publish it.
*/
coachReasoning?: CoachReasoningState | null;
/**
* The person's own preview opt-ins, resolved on the server: every
* flag present, off unless switched on in Settings > System > Preview
* features. Read through `usePreviewFeature`. Optional so existing
* fixtures stay valid; `fetchMe` coerces an absent block (an older server)
* to every flag off.
*/
previewFeatures?: PreviewFeatures;
/**
* v1.36.0 — account sharing, resolved server-side. `accounts` is the
* switcher's menu, `active` is the record this browser is inside (null when
@@ -489,8 +477,6 @@ export async function fetchMe(): Promise<AuthUser> {
data.coachReasoning && typeof data.coachReasoning === "object"
? data.coachReasoning
: null,
// An older server publishes no opt-ins; every preview stays off.
previewFeatures: resolvePreviewFeatures(data.previewFeatures),
accountAccess,
accountAccessStatus,
};