Skip to content

feat(ui): move settings save feedback into the sidebar footer - #115679

Merged
steipete merged 3 commits into
mainfrom
steipete/settings-save-notification-2b3fd0
Jul 29, 2026
Merged

steipete merged 3 commits into
mainfrom
steipete/settings-save-notification-2b3fd0

Conversation

@steipete

@steipete steipete commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Saving settings in the Control UI surfaces feedback inside the settings pages: a "Saving…"/"Save failed" status row is inserted as the first child of the page column (quick settings, model providers) and the "Saved to openclaw.json — restart the gateway to apply" banner appears above the content. Both are in normal document flow, so every autosave visibly pushes the whole page down and yanks it back up — a layout jump on each edit. Save errors also only said "Save failed"; the actual error message (lastError) was captured but never rendered anywhere.

Why This Change Was Made

Move all save/apply feedback to one quiet, fixed home: the settings sidebar footer (bottom left, where the gateway version lives). The footer is always rendered, so states appear and disappear with zero layout shift. The indicator reuses the existing chat working-claw animation (icons.claw + the chatWorkingClawFlex/chatWorkingClawSnip keyframes, now shared instead of chat-only) so the brand activity signal stays consistent:

  • saving → small animated claw + "Saving…"
  • saved → claw settles, green check + "Saved" for 2s, then fades back to quiet
  • error → "Save failed" + Retry; the real error message is surfaced via tooltip/aria-label (previously dropped)
  • conflict → "Settings changed elsewhere" + Reload
  • needs apply → compact "Apply changes" chip (replaces the banner; same gating: raw-draft dirty, in-flight writes, and updater runs disable it; offline hides the indicator entirely behind the existing offline status)

The old in-flow renderers (view-status.ts, quick-settings status/banner, model-providers workflow block, config toolbar status) and their CSS are deleted. prefers-reduced-motion disables the loop. The autosave state machine in ui/src/lib/config/index.ts is untouched — this is presentation-only. Net −86 lines.

The mock dev/e2e gateway gains stateful config.set/config.apply handlers (JSON5-aware, hash-advancing acks) so the full save flow is exercisable in pnpm dev:ui:mock and browser e2e.

User Impact

Settings pages no longer jump while you edit. Save progress, success, and the restart affordance show up quietly at the bottom left of the settings sidebar, and a failed save finally tells you why (tooltip on "Save failed").

Before (banner insertion pushes "Model & Thinking" down):

idle after autosave
before idle before banner

After (page content identical before/during/after save; footer carries the state):

idle after autosave (apply chip bottom-left)
after idle after apply chip

Footer states close-up:

saving saved error conflict
saving saved error conflict

Evidence

  • Focused unit tests: node scripts/run-vitest.mjs on the 6 touched suites — 52/52 passed (indicator states, 2s saved-timer + cleanup, retry/reload/apply wiring, sidebar offline precedence, mock-gateway stateful config).
  • Browser e2e (config-form-guidance): 3/3 passed on Blacksmith Testbox, including the footer "Apply changes" flow.
  • Live mock-harness verification via pnpm dev:ui:mock + Playwright (screenshots above): toggling Thinking on Models autosaves with no layout shift; apply chip appears bottom-left.
  • pnpm ui:i18n:baseline keyless: no baseline drift; en.ts-only string changes (autoSaveSaved, applyChanges added; banner strings removed).
  • Autoreview (Codex, gpt-5.6-sol, xhigh): clean, "patch is correct (0.9)".
  • git diff --numstat vs base: 25 files, +557/−643 (net −86; prod ≈ neutral).

Red-main landing note

main went red twice during this landing from the #115305 code-mode matrix fallout (oxfmt/boundary, then TS6133 + dead CodeModeFailurePhase re-export, then a QA-evidence timeout guard mismatch). This PR carried the minimal repairs per landing policy in two interim commits; main's own fixes (#115690-era and 8ad4e858fda) landed byte-identical content in parallel, so both carried commits were dropped as superseded during rebase. The final diff is purely the settings save indicator change.

@steipete
steipete marked this pull request as ready for review July 29, 2026 06:29
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui scripts Repository scripts size: XL maintainer Maintainer-authored PR labels Jul 29, 2026
@steipete
steipete force-pushed the steipete/settings-save-notification-2b3fd0 branch from c2fe706 to 8e53cca Compare July 29, 2026 06:35
@steipete steipete self-assigned this Jul 29, 2026
@steipete
steipete force-pushed the steipete/settings-save-notification-2b3fd0 branch from ffe37c1 to f6b9475 Compare July 29, 2026 07:37
@openclaw-barnacle openclaw-barnacle Bot added the agents Agent runtime and tooling label Jul 29, 2026
@steipete
steipete force-pushed the steipete/settings-save-notification-2b3fd0 branch from b76f63e to 5f6bc63 Compare July 29, 2026 07:50
@steipete
steipete merged commit d885f91 into main Jul 29, 2026
110 of 113 checks passed
@steipete
steipete deleted the steipete/settings-save-notification-2b3fd0 branch July 29, 2026 08:10
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Jul 29, 2026
* origin/main: (100 commits)
  fix(hooks): kill gog process tree on gmail-watcher shutdown (#112452)
  fix(memory): avoid phantom continuation pages (#115722)
  fix(agents): reject cancelled foreground commands (#115694)
  fix(telegram): prevent false empty replies after message-tool delivery (#115588)
  refactor: unify session cost rollup scans (#115749)
  fix(agents): honor completed semantic command exits (#115737)
  feat(agents): persist last-used session model as the agent default (#115717)
  feat(openai): support GPT-Live over backend WebSocket (#115622)
  fix(ui): unify sidebar thread density (#115646)
  feat(ui): path-based agent and panel URLs on Settings > Agents (#115673)
  feat(gateway): serve HTTP byte ranges on media routes (#115667)
  refactor: consolidate Teams and Zoom meeting plugin shells (#115707)
  fix(browser): release unread CDP response streams (#115675)
  feat(ui): move settings save feedback into the sidebar footer (#115679)
  fix(plugins): enforce hook security invariants (#115701)
  refactor: deduplicate extension normalization primitives (#115650)
  feat(gateway): add least-privilege voice-node pairing (#115712)
  fix(ui): restore in-flight assistant replies after reconnect (#115691)
  fix(whatsapp): infer native media from filenames (#115725)
  fix(system-agent): avoid TUI startup catalog preparation (#113136)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 30, 2026
…aw#115679)

* feat(ui): move settings save feedback to sidebar

* test(ui): support stateful config writes in mock gateway

* test(ui): add save indicator to memory sidebar test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui maintainer Maintainer-authored PR scripts Repository scripts size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant