Repository navigation
Live Monitor models disk: translate its labels and count every tile - #12749
Merged
Merged
Conversation
#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.
Member
Author
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Member
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. Chef's kiss. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 reportssettings.resources.liveMonitor.modelsDiskandsettings.resources.storage.modelsDiskmissing from all 11 locale overlays. Onlyen.tshas them.Frontend unit tests:system-status-verdict.test.ts:140("no tile fabricates a usage percentage for a host it has not read") fails withthe Live monitor's four tiles: 5 !== 4.Which side was wrong
hostUnreadlike 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
modelsDiskkeys, translated ("Models disk").<MetricTile ... />elements equals the number of<MetricTileopening 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 topercent={metrics.modelsDiskPercent}(nohostUnreadgate) fails withsettings.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.