Skip to content

fix(ui): localize automation schedule wording - #192163

Merged
roboclaw-bot merged 6 commits into
mainfrom
openclaw/swift-prawn-6
Nov 4, 2026
Merged

roboclaw-bot merged 6 commits into
mainfrom
openclaw/swift-prawn-6

Conversation

@roboclaw-bot

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

Copy link
Copy Markdown
Collaborator

Problem

The session Details one-shot row already localizes dates and times. The shared formatCronSchedule helper still wrapped localized values in hardcoded English: At, Every, On exit, Event, Stream, and Cron. It affects the agent Cron panel, Cron page, and session event/stream/on-exit rows.

Solution

  • Translate schedule wording and cwd/timezone decorations using complete templates.
  • Keep the copy in lazy en-cron-schedule.ts, registered by its presenter consumer under the existing cron.scheduleLabel namespace. No new startup catalog anchor or eager strings.
  • Retain the existing date, time, and duration formatters. Foreign translations follow the normal post-merge refresh; English remains the fallback.

Evidence

  • Locale-routing regression fails on original production code and passes on the fix.
  • Final presenter suite: 5 tests pass; net regression-test line growth is zero. Earlier broad proof passed presenter, chat-summary-automations and Cron consumers (29 files).
  • i18n verification, UI typecheck, changed-file lint/format, and diff checks passed during repair. Final presenter tests and i18n verification were rerun before the latest publication.
  • The original hosted review's eager-catalog finding was addressed by moving copy to the lazy registrar.
  • Exact-head CI still reports performance-budget and unrelated UI test failures. Failed UI annotations concern toast/recovery/dialog expectations outside this PR's changed files; equivalent main failures were reproduced by the parallel localization lanes. No budget was raised. Landing uses the maintainer's explicit performance exception and repeated instruction to land despite the documented inherited failures.

Worked on by

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

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: e0f50b04-76a5-4fb3-9533-16d919c6725e
@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.

@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 routes automation schedule labels and decorations through the shared translation catalog.

Example: An on-exit automation watches make build in /repo.

  • Before: The formatter hardcodes On exit: make build (cwd: /repo).
  • After: The same English fallback comes from translatable catalog entries; foreign wording follows the generated locale refresh.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The localization approach is focused and useful, but the measured startup-budget regression blocks this candidate and the added spy test provides limited behavioral assurance.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored catalog-wiring PR is outside the ordinary contributor proof gate; its evidence covers formatter tests, while rendered wording remains the existing English fallback until the generated locale refresh.
Patch quality 🦪 silver shellfish (2/6) 1 actionable review finding remain.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Automation schedule descriptions retain English labels when the Control UI uses another language.
Reason: The maintainer-authored direction follows the existing locale-generation contract and preserves schedule semantics.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep this PR open: it addresses wording still hardcoded on main, but its eager catalog addition exceeds the existing startup-size allowance.

Priority: P3
Reviewed head: 89d083d49edacec3b872f84f127cf17f79bff7f6

Before merge

  • Reduce eager catalog growth to meet the startup budget (P2) - Adding this namespace to startup English increases the measured startup JavaScript gzip from 90,739 to 90,814 bytes. Because the base already exceeds its cap, the existing checker permits only 64 bytes of variance, yielding a 90,803-byte limit; this candidate exceeds it by 11 bytes and fails control-ui-performance. Reduce the eager representation while retaining shared catalog availability rather than raising the budget or its variance allowance.

Findings

  • [P2] Reduce eager catalog growth to meet the startup budget — ui/src/i18n/locales/en.ts:486-494

Tests

  • Low-value test ui/src/lib/presenter.test.ts: Remove or replace the new translator-spy test with a real catalog contract: it asserts internal key and parameter routing and can pass even when the corresponding catalog entries are absent.
Agent review details

How this fits together

The shared UI presenter receives automation schedules and produces display strings for session Details, the Automations page, and agent settings.

flowchart LR
  A[Gateway schedule data] --> B[Shared schedule presenter]
  C[Locale catalog] --> B
  D[Date and duration formatters] --> B
  B --> E[Session Details]
  B --> F[Automations page]
  B --> G[Agent settings]
Loading

Technical review

Best possible solution:

Keep schedule wording in the existing shared translation owner while reducing eager encoding enough to satisfy the unchanged startup budget.

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

Current-main source directly shows English wording around locale-aware dates and durations; no target code was executed during this read-only review.

Is this the best way to solve the issue?

Using the existing presenter and translation catalog is the smallest complete fix, and the shared cwd decoration avoids duplicated translation policy.

Full review comments:

  • [P2] Reduce eager catalog growth to meet the startup budget — ui/src/i18n/locales/en.ts:486-494
    Adding this namespace to startup English increases the measured startup JavaScript gzip from 90,739 to 90,814 bytes. Because the base already exceeds its cap, the existing checker permits only 64 bytes of variance, yielding a 90,803-byte limit; this candidate exceeds it by 11 bytes and fails control-ui-performance. Reduce the eager representation while retaining shared catalog availability rather than raising the budget or its variance allowance.
    Confidence: 0.96

Overall correctness: patch is incorrect
Overall confidence: 0.93

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • One-shot, repeating, and cron schedule presentation keeps the original intent (3f82dae: The cron delivery overhaul introduced ISO timestamp presentation; the later exact-duration repair preserved configured precision, which this patch retains.)
  • On-exit schedule presentation keeps the original intent (68bfa42: Display the watched command and optional working directory instead of falling through to Cron undefined.)
  • Stream schedule presentation keeps the original intent (98742bc: Identify supervised command-stream schedules and their working directory.)
  • Event schedule presentation keeps the original intent (e210870: Represent MCP-event automations using their event name or source.)

Testing

Proof path: unit tests only.

Security

None.

Evidence

Acceptance criteria:

  • pnpm --dir ui test src/lib/presenter.test.ts
  • pnpm ui:i18n:verify
  • pnpm tsgo:ui
  • pnpm ui:build
  • git diff --check

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 2bdd9fe adds ui/src/lib/presenter.ts:60 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 2bdd9fed4692; files: ui/src/lib/presenter.ts)
  • RoboClaw: Raw commit e210870 adds ui/src/lib/presenter.ts:69 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: e210870acfe2; files: ui/src/lib/presenter.ts)
  • Cameron Beeley: Raw commit 68bfa42 adds ui/src/ui/presenter.ts:67 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 68bfa42b9bfc; files: ui/src/ui/presenter.ts)

PR surface

Source +15, Tests +21. Total +36 across 3 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 2 21 6 +15
Tests 1 23 2 +21
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 44 8 +36

Labels

Label changes:

  • add P3: This is localized presentation polish with no change to automation execution or persisted schedules.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦐 gold shrimp 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: This is localized presentation polish with no change to automation execution or persisted schedules.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦐 gold shrimp 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, 1:28 PM ET / 18:28 UTC.

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

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: a648ec53-c8da-4dd3-9ba7-5079cfd3b7e9
@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Nov 3, 2026
roboclaw-bot and others added 2 commits November 4, 2026 00:43
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 0eeb6dd6-4e4e-487b-b649-555cf406c3bd
@roboclaw-bot
roboclaw-bot merged commit 0272c4c into main Nov 4, 2026
105 of 111 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/swift-prawn-6 branch November 4, 2026 01:48
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 4, 2026
* fix(ui): localize automation schedule wording

Co-authored-by: vyctorbrzezowski <[email protected]>

* fix(ui): localize automation schedule wording

Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: e0f50b04-76a5-4fb3-9533-16d919c6725e

* fix(ui): load schedule wording with its lazy consumers

Co-authored-by: vyctorbrzezowski <[email protected]>

* Publish openclaw/swift-prawn-6

Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: a648ec53-c8da-4dd3-9ba7-5079cfd3b7e9

* test(ui): keep schedule wording coverage within the test-line ratchet

Co-authored-by: vyctorbrzezowski <[email protected]>

* Publish openclaw/swift-prawn-6

Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 0eeb6dd6-4e4e-487b-b649-555cf406c3bd

---------

Co-authored-by: roboclaw-bot <[email protected]>
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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. scripts Repository scripts 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.

1 participant