Skip to content

Redesign Settings page as accordion sections (#258) - #262

Open
fboucher-os wants to merge 1 commit into
v-nextfrom
feature/258-settings-accordion
Open

fboucher-os wants to merge 1 commit into
v-nextfrom
feature/258-settings-accordion

Conversation

@fboucher-os

Copy link
Copy Markdown
Collaborator

Summary

Implements option C (accordion) from #258 on the real /settings page.

 <Settings> /settings
   <FluentDesignTheme>
-  flat list of controls, Save in the middle of the page
+  <EditForm>
+    <FluentAccordion>            six sections; only Reading notes starts open
+      <SettingsSectionHeading>   icon, title, SettingsSummary of current values
+      Appearance | Reading notes | Content filters | AI | Feeds | Bookmarklet
+    sticky bar: <ValidationSummary>, Cancel, Save
  • The Settings model, API and save logic are unchanged.
  • New behaviour:
    • Cancel returns home without saving. Theme and color still apply immediately, so Cancel does not revert them.
    • A failed save opens the AI section, which holds the only validated fields.
    • Refresh interval is disabled while background refresh is off.
  • Some labels changed to match the mockup (for example "Color" is now "Accent color").
  • Hints differ from the mockup where it did not match the code: favorite domains restrict AI search, and blocked domains only apply when no favorites are set.
  • The mockup files are not part of this branch, so Settings page redesign mockups (#258) #259 can be closed without merging.

Evidence

  • Before: one long page with mixed field widths.
    After: dotnet test src/NoteBookmark.BlazorApp.Tests: 169 passed, 0 failed. This includes new tests for the section summaries, all settings being present, the counter, an invalid prompt and Cancel.
  • Checked in headless Chromium using a temporary host with sample data (not the full app), at 1280px and 390px in light and dark: sections open and stay open while using controls, no horizontal page scroll, and save succeeds after fixing an invalid prompt. A further pass at 1280px, 390px and 320px confirmed long summaries truncate and the error shows in the save bar.
  • Not tested: the MAUI app.

Merge Danger

Door: two-way. UI only, no data changes.

Blast Radius: Settings page, in both the web and MAUI apps (shared component).

🤖 Generated with Claude Code

Group every setting into six collapsible sections whose headings
summarise the current values, with one sticky Save/Cancel bar.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Code Coverage

Package Line Rate Branch Rate Health
NoteBookmark.AIServices 97% 64% ✔
NoteBookmark.Api 90% 84% ✔
NoteBookmark.BlazorApp 14% 15% ❌
NoteBookmark.Domain 94% 75% ✔
NoteBookmark.ServiceDefaults 96% 75% ✔
NoteBookmark.SharedUI 61% 61% ➖
Summary 76% (3312 / 4372) 72% (1519 / 2113) ➖

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In review

Development

Successfully merging this pull request may close these issues.

1 participant