[GH-ISSUE #936] Slurp2 modular refactor — Slice 9: Backstage thin host and explicit panel registry #491

Closed
opened 2026-10-20 17:28:01 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Gunterlie on GitHub (Sep 19, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/936

Originally assigned to: @Gunterlie on GitHub.

Part of #914. Implements Slice 9 of SLURP-MODULE-PLAN.md.

Goal

Make Backstage a thin host. Replace the section/target conditional dispatch that is duplicated
across six page components with one explicit { target, Component } registry, and move every
settings panel to the feature that owns the setting.

Verified starting shape

  • 6 section page components under client/src/components/slurp/, each an internal target === "..."
    switch: Overview (327), Creators (811), World (2171), Automation (926), Prompts (280),
    Maintenance (571). All six are rendered unconditionally by SlurpSettings.tsx and self-gate.
  • 17 targets: overview, creators, improve, world, tags, events, arcs, messaging, audience, ads,
    wallet, automation, general, images, prompts, autopurge, advanced.
  • slurp-backstage.ts (266) holds sections, targets, labels, legacy destinations and
    SLURP_BACKSTAGE_SETTING_PLACEMENT.
  • SlurpSettings.tsx (1328) holds the shell plus a single useSlurpBackstageController hook that
    fetches for every feature and is spread into all six pages as SlurpBackstagePageProps.

Approved panel ownership (maintainer, 2026-09-19)

target owner
overview, world, automation features/backstage — landing pages over other targets, pure information architecture
creators, improve features/creators
tags features/discovery
events features/world
arcs features/projects
messaging features/messages
audience features/audience
ads features/ads
wallet features/economy
general features/feed
images features/media (new client feature, mirrors server features/media)
prompts features/settings — cross-cutting generation configuration with no domain owner
autopurge, advanced features/maintenance

Rationale: the prompt and image settings are read on the server by ads, audience, creators, feed,
media, messages, projects and world, so no domain feature can own them. The three landing panels
encode the Backstage information architecture itself, which is exactly what a future settings
reorganisation rewrites.

Acceptance

  • One explicit registry, no glob loading, no side-effect registration, no second switch.
  • Every non-internal setting target resolves to one registry entry, one panel and one anchor.
  • Settings behaviour, persisted keys, locale keys, routes, anchors and test IDs unchanged.
  • tests/slurp2-backstage-anchors.regression.ts rewritten against the registry.
Originally created by @Gunterlie on GitHub (Sep 19, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/936 Originally assigned to: @Gunterlie on GitHub. Part of #914. Implements Slice 9 of `SLURP-MODULE-PLAN.md`. ## Goal Make Backstage a thin host. Replace the section/target conditional dispatch that is duplicated across six page components with one explicit `{ target, Component }` registry, and move every settings panel to the feature that owns the setting. ## Verified starting shape - 6 section page components under `client/src/components/slurp/`, each an internal `target === "..."` switch: Overview (327), Creators (811), World (2171), Automation (926), Prompts (280), Maintenance (571). All six are rendered unconditionally by `SlurpSettings.tsx` and self-gate. - 17 targets: overview, creators, improve, world, tags, events, arcs, messaging, audience, ads, wallet, automation, general, images, prompts, autopurge, advanced. - `slurp-backstage.ts` (266) holds sections, targets, labels, legacy destinations and `SLURP_BACKSTAGE_SETTING_PLACEMENT`. - `SlurpSettings.tsx` (1328) holds the shell plus a single `useSlurpBackstageController` hook that fetches for every feature and is spread into all six pages as `SlurpBackstagePageProps`. ## Approved panel ownership (maintainer, 2026-09-19) | target | owner | | --- | --- | | overview, world, automation | `features/backstage` — landing pages over other targets, pure information architecture | | creators, improve | `features/creators` | | tags | `features/discovery` | | events | `features/world` | | arcs | `features/projects` | | messaging | `features/messages` | | audience | `features/audience` | | ads | `features/ads` | | wallet | `features/economy` | | general | `features/feed` | | images | `features/media` (new client feature, mirrors server `features/media`) | | prompts | `features/settings` — cross-cutting generation configuration with no domain owner | | autopurge, advanced | `features/maintenance` | Rationale: the prompt and image settings are read on the server by ads, audience, creators, feed, media, messages, projects and world, so no domain feature can own them. The three landing panels encode the Backstage information architecture itself, which is exactly what a future settings reorganisation rewrites. ## Acceptance - One explicit registry, no glob loading, no side-effect registration, no second switch. - Every non-internal setting target resolves to one registry entry, one panel and one anchor. - Settings behaviour, persisted keys, locale keys, routes, anchors and test IDs unchanged. - `tests/slurp2-backstage-anchors.regression.ts` rewritten against the registry.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Agents#491
No description provided.