Skip to content

ui: port settings panel to new design#3

Open
Moriz82 wants to merge 1 commit into
mainfrom
u9-settings-panel-port
Open

ui: port settings panel to new design#3
Moriz82 wants to merge 1 commit into
mainfrom
u9-settings-panel-port

Conversation

@Moriz82

@Moriz82 Moriz82 commented Apr 20, 2026

Copy link
Copy Markdown
Owner

Summary

  • Rebuild SettingsPanel.tsx with the new UI's sectioned layout (capped 720px): uppercase micro-label + card of rows (label + value / action / toggle).
  • Inspiration sections Credentials / Storage / Normalization are present; all pre-existing fields are preserved (Pipeline lists, crawl limits, UI preferences, Environment table, runtime JSON snapshot).
  • Each normalizer step is now an individual toggle that PATCHes pipeline.normalizer_order immediately (optimistic) and calls onRuntimeUpdated() on success.
  • Pipeline CORS origins, scope hosts and crawl limits save as a single PATCH.
  • Credentials rotation (POST /api/settings/auth) is kept, with a collapsed "Set new password" row that expands an inline form.
  • Adds frontend/src/styles/screens.css (imported from main.tsx) with token fallbacks so the sheet works before the full new-UI token file lands.

Test plan

  • npx tsc --noEmit (no new errors from this diff).
  • npm run build succeeds.
  • Playwright E2E: login seeded -> Settings tab -> sections render from live /api/settings -> toggling a normalizer fires a PATCH /api/settings (verified via network capture) -> 0 console errors -> screenshot (/tmp/settings_panel_u9.png) attached locally.

🤖 Generated with Claude Code

Rebuilds SettingsPanel with the sectioned layout from the new UI mockup
(Credentials / Storage / Normalization) while preserving every field the
old panel exposed (Pipeline, UI preferences, Environment, Raw runtime).

- Individual normalizer steps become toggles that PATCH immediately.
- Pipeline list + crawl limit form saves via PATCH /api/settings.
- Credentials rotation via POST /api/settings/auth unchanged.
- Adds frontend/src/styles/screens.css with token fallbacks so the panel
  renders correctly even before the full new-UI token sheet lands.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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