mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-18 23:21:24 +02:00
chore: cleanup dead props, deps, dirs, and stale comments
- Remove empty dirs: modules/mana/, modules/subscription/, and 7 empty route dirs (spiral, profile, themes, help, apps, mana, credits) - Remove @mana/subscriptions from web app dependencies (never imported) - PillNavigation: drop settingsHref, manaHref, allAppsHref/allAppsLabel props + their link-builder blocks (none are passed anymore; all system pages route via /?app=<id> deep-links now) - Update layout comment to reflect current architecture Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
d40a61119e
commit
299cf9cf72
3 changed files with 11 additions and 48 deletions
|
|
@ -73,7 +73,6 @@
|
|||
"@mana/shared-uload": "workspace:*",
|
||||
"@mana/shared-utils": "workspace:*",
|
||||
"@mana/spiral-db": "workspace:*",
|
||||
"@mana/subscriptions": "workspace:*",
|
||||
"@mana/wallpaper-generator": "workspace:*",
|
||||
"@types/pako": "^2.0.4",
|
||||
"@types/suncalc": "^1.9.2",
|
||||
|
|
|
|||
|
|
@ -302,11 +302,10 @@
|
|||
}
|
||||
|
||||
// ── Navigation ──────────────────────────────────────────
|
||||
// Note: spiral, credits, profile and settings used to live here as
|
||||
// standalone pills but were moved into the user-menu dropdown so the
|
||||
// nav stays compact. They are still routable via the dropdown items
|
||||
// the layout passes as `spiralHref` / `creditsHref` / `profileHref` /
|
||||
// `settingsHref` below.
|
||||
// System pages (spiral, credits, profile, themes, help) are workbench
|
||||
// apps now — no standalone routes. The user-menu dropdown links via
|
||||
// `spiralHref` / `creditsHref` / `profileHref` etc., all pointing to
|
||||
// `/?app=<id>` deep-links.
|
||||
let baseNavItems = $derived<PillNavItem[]>([
|
||||
{
|
||||
href: '/',
|
||||
|
|
@ -581,6 +580,13 @@
|
|||
// sync engine boot on the critical path.
|
||||
if (authStore.isAuthenticated) {
|
||||
setErrorTrackingUser({ id: authStore.user?.id ?? 'unknown', email: authStore.user?.email });
|
||||
// Multi-Agent Workbench (Phase 1): bind the real user identity
|
||||
// to the ambient Actor so subsequent writes stamp principalId +
|
||||
// displayName correctly instead of 'legacy:user' / 'Du'.
|
||||
const { bindDefaultUser } = await import('$lib/data/events/actor');
|
||||
const uid = authStore.user?.id ?? 'unknown';
|
||||
const name = authStore.user?.name || authStore.user?.email || 'Du';
|
||||
bindDefaultUser(uid, name);
|
||||
await syncBilling.load();
|
||||
const getToken = () => authStore.getValidToken();
|
||||
unifiedSync = createUnifiedSync(SYNC_SERVER_URL, getToken, syncBilling.active);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue