Skip to content

feat(framework): persist dashboard preferences in the-framework.json (#410)#447

Merged
suleimansh merged 1 commit into
mainfrom
feat/dashboard-preferences-410
Jul 12, 2026
Merged

feat(framework): persist dashboard preferences in the-framework.json (#410)#447
suleimansh merged 1 commit into
mainfrom
feat/dashboard-preferences-410

Conversation

@suleimansh

Copy link
Copy Markdown
Member

Closes #410.

The dashboard's Global options (Autopilot, Technical, Vanilla, Eco) now persist in the same the-framework.json as the project list, so they survive a restart. localStorage is gone: the daemon owns the file, the SPA reads/writes it over Telefunc (onPreferences / savePreferences).

The registry file becomes { projects, preferences }. Old bare-array files still read and migrate on the next write, so nothing breaks for existing installs.

Preferences are gated the same way project writes are: the daemon wires the real registry file into the Telefunc context; the public relay never does, so on a shared host a read returns the empty default and a write reports it is not enabled.

Verified on a real daemon: a legacy-array file reads as {}, a save persists and migrates the file to object form (keeping the project list, dropping any junk field), a re-read reflects it, and a cross-origin write is 403. Framework tests + typecheck + dashboard build all green. Browser render of the toggles is unverified here (no browser in the env) so I left a daemon up on :4200 to eyeball.

…410)

The dashboard's Global options (Autopilot, Technical, Vanilla, Eco + its section
drops) now persist daemon-side in the same the-framework.json as the project list,
read and written over Telefunc (onPreferences / savePreferences). No more
localStorage, and the toggles survive a restart.

The registry file becomes an object { projects, preferences }; older bare-array
files still read and migrate on the next write. The preferences store is threaded
through the Telefunc request context, so the public relay (which never wires one)
leaves reads at the empty default and writes reported as not enabled.

Closes #410
@suleimansh suleimansh self-assigned this Jul 12, 2026
@suleimansh suleimansh merged commit c26159d into main Jul 12, 2026
2 checks passed
@suleimansh suleimansh deleted the feat/dashboard-preferences-410 branch July 12, 2026 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

~/$HOME/.the-framework.json instead of localhost

1 participant