Skip to content

Live Monitor models disk: translate its labels and count every tile - #12749

Merged
danielhanchen merged 1 commit into
mainfrom
ci-models-disk-locales
Oct 5, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
ci-models-disk-locales

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

Two frontend checks are red on main since #12724 (show the models drive in the Live Monitor) merged, and on every PR that touches the frontend (for example #12746):

  • Frontend build + bundle sanity: the strict i18n parity step reports settings.resources.liveMonitor.modelsDisk and settings.resources.storage.modelsDisk missing from all 11 locale overlays. Only en.ts has them.
  • Frontend unit tests: system-status-verdict.test.ts:140 ("no tile fabricates a usage percentage for a host it has not read") fails with the Live monitor's four tiles: 5 !== 4.

Which side was wrong

  • The keys: the product. A new user-facing label has to land in every overlay, which is what the strict check enforces.
  • The tile count: the test. The fifth tile is intended. It only mounts when the models folder is on another drive, and it gates its percentage on hostUnread like the other four. The count was there so the per-tile loop could not pass by matching nothing, and pinning it to 4 made every new tile a test failure without adding coverage.

Changes

  • All 11 overlays get both modelsDisk keys, translated ("Models disk").
  • The test now requires at least the four fixed tiles, and that the number of captured <MetricTile ... /> elements equals the number of <MetricTile opening tags. Every tile, including the conditional one, therefore goes through the "gates its percentage" check, and a tile the self-closing match fails to capture is reported instead of skipped.

Verification

  • node src/i18n/check-parity.ts --strict: "All locale overlays pass parity." On main it lists the two keys for every locale.
  • system-status-verdict.test.ts: 10 pass. Changing the models-disk tile to percent={metrics.modelsDiskPercent} (no hostUnread gate) fails with settings.resources.liveMonitor.modelsDisk gates its percentage.

The only visible change is the translated label on the models-disk tile and storage row, which shows only when the models folder is on a different drive from the system disk.

#12724 added a models-disk tile and storage row with two new keys in en.ts only, so
the strict i18n parity step in Frontend build + bundle sanity fails on main. Its fifth
MetricTile also broke system-status-verdict.test.ts, which asserted exactly four.

Add settings.resources.liveMonitor.modelsDisk and settings.resources.storage.modelsDisk
to every locale overlay. Replace the fixed tile count with: at least the four fixed
tiles, and every <MetricTile> opening tag captured whole, so the per-tile percentage
check still covers every tile, including the conditional one.
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-05T16:12:17.826988Z 24fd3a5 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Oct 5, 2026
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

Reviewed commit: 24fd3a53ee

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

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