Skip to content

improve(ui): clarify appearance and notification preferences - #192249

Merged
vyctorbrzezowski merged 5 commits into
mainfrom
openclaw/copy-st3-b
Nov 4, 2026
Merged

vyctorbrzezowski merged 5 commits into
mainfrom
openclaw/copy-st3-b

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Appearance and notification settings use inconsistent session terminology, technical connection copy, and raw-only operation failures. Theme imports and background uploads also announce results already visible on the page.

User Impact

Before After
Background: “Conversations” “Sessions”
“Your background image could not be loaded…” “Couldn’t load your background image. Choose another image or try again.”
“Connect to the Gateway to manage browser notifications.” “Reconnect to manage browser notifications.”
“Checking...” “Checking notification access…”
“Browser push notifications from your gateway.” “Choose when you get notifications.”
Raw-only import, upload, or notification errors Actionable summary with the useful detail on a separate line

OS/browser permission directions remain available. Permission copy does not invent an admin requirement. Completed theme imports and background uploads no longer show redundant success notices.

Why This Change Was Made

Apply the approved Control UI glossary in Appearance/local preferences and Notifications without changing settings, permission checks, or operation settlement. Localize theme import validation text in the settings English catalog; keep the startup English catalog unchanged. Update the settings documentation and affected English assertions. No foreign locales or translation memory changed.

Evidence

  • Base: c72adfb.
  • All 116 tests passed across 10 focused appearance, theme/import, notification, and web-push files on the committed head.
  • A new notification-summary assertion failed on the base (1 failed / 8 passed), then passed with this change.
  • pnpm ui:i18n:baseline completed with no tracked baseline change; pnpm ui:i18n:verify passed.
  • Targeted oxfmt and oxlint passed; git diff --check passed. Independent full-diff review found no issues.
  • Cropped, inspected light-theme screenshots use synthetic data and the mocked Control UI harness. The before UI was pinned to the base commit; no media is committed.

Appearance background

Before After
Appearance background before Appearance background after

Notifications

Before After
Notifications before Notifications after

Gaps and unchanged scope

  • The shared F1 collapsed “Show details” contract is not on this base. Raw details remain inline for theme-import errors (including utility validation), background upload/read failures, native notification test failures, and browser notification requests. They are not silently dropped.
  • Plugin-owned copy, native apps, protocol/config keys, and translation memory are unchanged.
  • An initial local rerun hit a test-worker startup failure; it was retried in one worker. CI and landing are left to the parent workflow.

Worked on by

Landing integration retains MissingThemeTokenError, ThemeValidationError, the localized themeImport keys, and formatThemeValidationError, with the approved import summary above the existing detail. It also preserves the intentional removal of duplicate background success notices. All 21 theme-import cases and two localized appearance/browser cases passed. I18n baseline/verification, scoped lint, formatting, and whitespace checks passed; the broader existing appearance proof is reused. The change adds no test lines, so no allocation was introduced. The final merge with current main is clean.

roboclaw-bot and others added 2 commits November 3, 2026 20:29
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: f4b7ac30-c995-40f8-82f2-24e44bae0c80
@clawsweeper

clawsweeper Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: S labels Nov 3, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 3, 2026
@clawsweeper

clawsweeper Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR clarifies Appearance and Notifications copy, localizes theme-import errors, and removes redundant success notices.

Example: Open Settings → Appearance → Background.

  • Before: The placement toggle is labeled “Conversations”.
  • After: The placement toggle is labeled “Sessions”.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Useful, focused polish with inspected visual evidence, but confirmed repairable defects and incomplete result-state coverage prevent a passing review.
Proof confidence 🦪 silver shellfish (2/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🦪 silver shellfish (2/6) 3 actionable review findings remain.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Settings mix session terminology and technical wording, expose raw failures, and repeat visibly completed results.
Reason: Maintainer authorship supplies direction approval, and the patch uses existing presentation owners without adding settings or changing permissions.

Merge readiness

⛔ Needs changes before merge - 3 items remain

Keep this PR open: the maintainer-approved polish is useful, but a type error, a Settings search regression, and outdated E2E assertions need repair.

Priority: P3
Reviewed head: 4ddf2c67b4bfbea813c1e747180e2587d07856ef

Before merge

  • Convert the HTTP status to a string before translating it (P2) - The imported translator accepts parameters as Record<string, string>, but Response.status is a number. This newly added call therefore violates the UI type contract and fails typechecking even though JavaScript would interpolate it at runtime. Pass String(response.status) without widening the shared translator contract.
  • Preserve the existing notification search phrase (P2) - Changing this indexed label removes the contiguous phrase “gateway access” from the Notifications search text. Searching that phrase now returns no Notifications result, as the exact-head checks-ui annotation confirms in settings-search.test.ts:44. Keep the clearer visible label and retain “gateway access” in the existing Notifications aliases in settings-targets.ts.
  • Update the E2E consumers of the changed import presentation (P2) - The existing Appearance E2E suite still requires the old raw HTTP error at line 425 and successful-import status messages at lines 438 and 500–501. The new error summary and success filter make those assertions fail or time out; exact-head CI already records both failure modes. Update the error assertion and wait for the visible imported metadata or enabled controls after success, retaining the reload-persistence and newer-server-theme assertions.

Findings

  • [P2] Convert the HTTP status to a string before translating it — ui/src/pages/config/custom-theme-import.ts:100
  • [P2] Preserve the existing notification search phrase — ui/src/i18n/locales/en-settings.ts:1757
  • [P2] Update the E2E consumers of the changed import presentation — ui/src/pages/config/view-appearance.tsx:147-148

Tests

  • Missing end-to-end proof: The supplied captures do not exercise the changed error summaries or the post-success import and background states through Settings.
Agent review details

How this fits together

Control UI settings render localized preferences and operation outcomes supplied by the existing theme, background, and notification owners.

flowchart LR
User[Settings user] --> Pages[Appearance and Notifications]
Catalog[English settings catalog] --> Pages
Pages --> Owners[Existing operation owners]
Owners --> Services[Gateway and browser services]
Owners --> Outcomes[Completion and error receipts]
Outcomes --> Pages
Loading

Technical review

Best possible solution:

Keep the focused presentation changes, repair the translator argument and search alias, and update existing E2E assertions without weakening persistence or selection coverage.

Do we have a high-confidence way to reproduce the issue?

The before screenshots establish the original wording, source establishes the translator mismatch, and exact-head CI records the search and E2E failures; no target code was executed locally.

Is this the best way to solve the issue?

Editing the existing catalogs and outcome renderers is appropriately small, but affected search consumers and E2E contracts must move with the presentation changes.

Full review comments:

  • [P2] Convert the HTTP status to a string before translating it — ui/src/pages/config/custom-theme-import.ts:100
    The imported translator accepts parameters as Record<string, string>, but Response.status is a number. This newly added call therefore violates the UI type contract and fails typechecking even though JavaScript would interpolate it at runtime. Pass String(response.status) without widening the shared translator contract.
    Confidence: 1
  • [P2] Preserve the existing notification search phrase — ui/src/i18n/locales/en-settings.ts:1757
    Changing this indexed label removes the contiguous phrase “gateway access” from the Notifications search text. Searching that phrase now returns no Notifications result, as the exact-head checks-ui annotation confirms in settings-search.test.ts:44. Keep the clearer visible label and retain “gateway access” in the existing Notifications aliases in settings-targets.ts.
    Confidence: 1
  • [P2] Update the E2E consumers of the changed import presentation — ui/src/pages/config/view-appearance.tsx:147-148
    The existing Appearance E2E suite still requires the old raw HTTP error at line 425 and successful-import status messages at lines 438 and 500–501. The new error summary and success filter make those assertions fail or time out; exact-head CI already records both failure modes. Update the error assertion and wait for the visible imported metadata or enabled controls after success, retaining the reload-persistence and newer-server-theme assertions.
    Confidence: 1

Overall correctness: patch is incorrect
Overall confidence: 0.99

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against a6513b699dab.

Provenance checked

  • Theme-import validation and lazy loading keeps the original intent (perf(ui): defer custom theme import to settings #130710: Keep import parsing and network work within lazy Settings while preserving bounded fetches, validation, and startup restoration.)
  • Theme-import success presentation changes intended behavior with a stated reason (335d59a: Present existing owner-held completion receipts through Solid actions while retaining success and synchronous validation feedback; this PR explicitly removes redundant success notices.)
  • Background upload and removal presentation changes intended behavior with a stated reason (fc43063: Preserve progress, errors, retry, and scope retirement through native async presentation; this PR explicitly suppresses success text after the visible result updates.)
  • Notification access and accessible errors keeps the original intent (45f9aed: Prevent unsupported guest notification management while preserving browser permission information; existing permission checks and alert semantics remain intact.)
  • Appearance terminology and scope descriptions keeps the original intent (0a0d601: Organize Appearance while preserving preference persistence, navigation, and search anchors.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm tsgo:ui
  • pnpm --dir ui test src/pages/config/settings-search.test.ts src/app/custom-theme.test.ts src/pages/config/notifications-section.test.tsx
  • pnpm test:ui:e2e ui/src/e2e/appearance-settings-defaults.e2e.test.ts --project ui-e2e-bundled
  • pnpm ui:i18n:verify
  • git diff --check

What I checked:

Likely related people:

  • Vyctor H. Brzezowski: Raw commit 0a0d601 adds ui/src/pages/config/view-appearance.tsx:248 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 0a0d601bf12d; files: ui/src/pages/config/view-appearance.tsx)
  • Peter Steinberger: Raw commit 335d59a adds ui/src/pages/config/view-appearance.tsx:119 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 335d59a60caf; files: ui/src/pages/config/view-appearance.tsx)
  • Val Alexander: Raw commit ead8be9 adds ui/src/ui/custom-theme.test.ts:160 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: ead8be96fdd6; files: ui/src/ui/custom-theme.test.ts)

PR surface

Source +28, Tests -7, Docs 0. Total +21 across 13 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 7 77 49 +28
Tests 5 13 20 -7
Docs 1 1 1 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 13 91 70 +21

Labels

Label changes:

  • add P3: The intended change improves settings wording and feedback, with no established urgent user-facing outage.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦪 silver shellfish.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P3: The intended change improves settings wording and feedback, with no established urgent user-facing outage.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 3, 2026, 3:51 PM ET / 20:51 UTC.

Preserve the approved copy pattern and behavior while correcting the referenced action or computer.

Co-authored-by: vyctorbrzezowski <[email protected]>
@openclaw-barnacle openclaw-barnacle Bot closed this Nov 4, 2026
@openclaw-barnacle openclaw-barnacle Bot reopened this Nov 4, 2026
@vyctorbrzezowski
vyctorbrzezowski merged commit 24401ee into main Nov 4, 2026
30 of 32 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the openclaw/copy-st3-b branch November 4, 2026 14:40
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 5, 2026
…w#192249)

improve(ui): clarify appearance and notification preferences

Co-authored-by: vyctorbrzezowski <[email protected]>
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 docs Improvements or additions to documentation P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: S status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants