Skip to content

Auto-save appearance settings; document EXPOSED_KEYS contract#23

Merged
gregoryn22 merged 1 commit into
masterfrom
claude/pensive-nightingale-219478
May 26, 2026
Merged

Auto-save appearance settings; document EXPOSED_KEYS contract#23
gregoryn22 merged 1 commit into
masterfrom
claude/pensive-nightingale-219478

Conversation

@gregoryn22
Copy link
Copy Markdown
Owner

Summary

  • Accent color, font scale, card corners, and sidebar width applied changes to the DOM immediately but only persisted on explicit Save click. Navigating away silently discarded changes.
  • Added $watch callbacks for all four in init(), same pattern as viewMode/feedGrouped from PR Persist view mode and feed grouping across refreshes #21. Sidebar width debounces 500 ms to avoid API spam on slider drag.
  • Updated section label from "Save to persist across sessions" → "Changes apply and save immediately."
  • Added comment above EXPOSED_KEYS in settings.py explaining the frontend/backend contract, so the silent-data-loss failure mode is visible at the definition site.

Test plan

  • Change accent color swatch, refresh — color persists without clicking Save
  • Drag sidebar width slider, refresh — width persists
  • Change font scale / card corners, refresh — persists
  • Verify Settings page explicit Save still works normally

🤖 Generated with Claude Code

Accent color, font scale, card corners, and sidebar width applied their
changes to the DOM immediately but only persisted if the user clicked Save.
Navigating away without saving silently discarded the change.

Add $watch callbacks for all four in init() using the same pattern as
viewMode/feedGrouped. Sidebar width debounces 500ms to avoid spamming the
API on every slider tick.

Update the section label from "Save to persist across sessions" to
"Changes apply and save immediately" to match the new behavior.

Add a comment above EXPOSED_KEYS explaining the frontend/backend contract
so the silent-data-loss failure mode is visible at the definition site.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@gregoryn22 gregoryn22 merged commit 7ff43ed into master May 26, 2026
1 check passed
@gregoryn22 gregoryn22 deleted the claude/pensive-nightingale-219478 branch May 27, 2026 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant