Skip to content

improve(ui): remove the Context Profile presets card from Quick Settings - #102748

Merged
steipete merged 2 commits into
mainfrom
claude/ui-prominence-discussion-8f71f7
Jul 9, 2026
Merged

steipete merged 2 commits into
mainfrom
claude/ui-prominence-discussion-8f71f7

Conversation

@steipete

@steipete steipete commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Closes #102706

What Problem This Solves

Resolves a problem where the Quick Settings page (Settings → Simple) was dominated by a full-width "Context Profile" card with four illustrated preset tiles (Personal Assistant, Code Agent, Team Bot, Minimal). The card looked like a core persona/mode switcher, but all it tuned was three niche agent defaults (agents.defaults.bootstrapMaxChars, agents.defaults.bootstrapTotalMaxChars, agents.defaults.contextInjection) — expert-level context tuning that does not deserve the most prominent slot in Settings. The card even needed a disclaimer explaining it does not change "your model, tools, channels, or theme".

Why This Change Was Made

Maintainer product decision (#102706): these knobs belong in an advanced surface, which already exists — the persistent Simple/Advanced toggle exposes all three keys through the schema-driven config form (Agents section), and they remain editable in openclaw.json. This PR deletes the presets card and its machinery (presets.ts, renderPresetsCard, stageConfigPreset) and replaces the card's footer with a slim "Unsaved changes" bar, because that footer was the only Discard/Save/Apply commit UI in Quick Settings: thinking level, fast mode, browser toggle, and tool profile edits stage a config draft and commit through it. Net −649 lines; no config surface change, no compat shims.

User Impact

  • Quick Settings is meaningfully smaller and no longer suggests context-profile switching is a daily workflow; on a desktop viewport the whole page now fits one screen.
  • Staged quick edits (thinking, fast mode, browser, tool profile) surface as a compact "Unsaved changes" bar with Discard / Save / Apply Now — same commit semantics as before.
  • Existing configs are untouched: agents.defaults.* values keep working and stay editable in Settings → Advanced (schema form) or openclaw.json. Configs previously written by a preset are plain config values, so nothing migrates or breaks.

Evidence

  • After (clean state — no Context Profile card, page fits one screen):
    after clean
  • After (staged edit — pending bar with Discard / Save / Apply Now):
    after dirty
  • Live mock-gateway walkthrough (scripts/control-ui-mock-dev.ts): staging Thinking → High shows the bar; Discard reverts the draft and hides it.
  • Focused Vitest (jsdom): ui/src/pages/config + ui/src/lib/config — 5 files, 95 tests passed (new coverage: bar hidden when clean, handlers wired, commit actions disabled until config snapshot ready).
  • node --import tsx scripts/control-ui-i18n.ts check clean after regenerating the raw-copy baseline (presets strings removed, bar strings added).
  • Testbox: focused tests + check:changed lanes (run IDs in comments below if needed).

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: L maintainer Maintainer-authored PR labels Jul 9, 2026
@steipete
steipete force-pushed the claude/ui-prominence-discussion-8f71f7 branch from b4ba6ec to 8f3e584 Compare July 9, 2026 11:32
@clawsweeper

clawsweeper Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: review started.

I am starting a fresh review of this pull request: improve(ui): remove the Context Profile presets card from Quick Settings This is item 1/1 in the current shard. Shard 0/1.

This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

@steipete
steipete merged commit 8d6c54f into main Jul 9, 2026
72 checks passed
@steipete
steipete deleted the claude/ui-prominence-discussion-8f71f7 branch July 9, 2026 11:50
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 10, 2026
…ngs (openclaw#102748)

* fix(control-ui): remove the Context Profile presets card from Quick Settings

* fix(control-ui): regenerate i18n raw-copy baseline after Gateway Host card rebase
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui maintainer Maintainer-authored PR size: L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Remove the Context Profile presets card from Quick Settings

1 participant