Register the settings tab and prove it renders #2
Labels
No labels
NaNs
area/audio
area/build
area/docs
area/dsh
area/engine
area/security
area/ui
needs-operator
priority/later
priority/next
priority/now
type/bug
type/task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
dsh-plugins/dsh-whale-noises#2
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Prove the UI seat before building on it: a "Whale Noises" page inside Settings, registered through the
settings.sectionslot, rendering a placeholder.Scope
lib/client.js:ctx.slots.inject('settings.section', () => ctx.slots.register({ name: 'settings.section', id: 'dsh-whale-noises', order: 70, label: () => 'Whale Noises', locale: 'dsh-whale-noises', inject: () => ({ ctx }) }, Component)).icon.svg(whale-ish, original) +locale/en.jsonwith the tab/description strings.Acceptance
Notes
dsh-gitea/lib/client.js:2280(registration) anddsh-client-ui-settings-general/lib/client.js:1145(slot consumption).Settings seat landed with the scaffold.
settings.sectionwithid: dsh-whale-noises,order: 70, static labelWhale Noises,inject: () => ({ ctx }); registration guarded with try/catch and a one-line error.__PLUGIN_VERSION__define), zero-host-overhead note. Uses DSH CSS variables and inline styles; no CSS injection yet.Pending verification (operator): the tab becomes visible after the profile install + page reload (sandbox blocks
~/.dsh). Same command as #1:dsh plugin --profile web add /home/dsh/Projects/dsh-whale-noises. Leaving open until the tab is confirmed rendering.Delivered: settings.section renders and all subsequent settings slices are built on it.