Repository navigation
fix(schemas): accept shared translations for new diagram types - #758
outlier27-cell wants to merge 9 commits into
Conversation
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes. ⛔ Files ignored due to path filters (1)
⚙️ Run configuration
⛔ Files ignored due to path filters (1)
You can disable this status message by setting the Use the checkbox below for a quick retry:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review. 📝 SummaryReviewed base WalkthroughThe class, timeline, tree, and waterfall schemas now accept optional Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to The four diagram types can accept optional shared translation overrides while retaining the existing validation rules. The inspected generated artifacts and browser-test flow reveal no merge-blocking issue. 🚥 Pre-merge checks | ✅ 1 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (1 passed)
Full details: Contribution ScopeExplanation The schema change has a focused scope, a linked issue ( Resolution Remove the unrelated
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…translations # Conflicts: # archify.zip
…tions # Conflicts: # archify.zip
Problem and value
Fixes #757.
Final CI also exposed an existing browser-fixture isolation failure: Chrome file-backed motion storage was not reliably cleared between new fixtures. The follow-up removes only the test motion preference after ordinary fixture navigation and reloads before measuring startup. Storage-failure fixtures remain intact, and preserved-storage reload assertions still verify the real Viewer behavior. Real Chrome Motion Governor tests pass 8/8 without skips; no production Viewer code changes.
Tree, Class, Timeline, and Waterfall reject the documented
meta.translationsfield before shared Viewer localization can use it. Add the existing shared schema reference to these four metadata objects and regenerate portable validators, following the earlier ERD compatibility fix #684.Stability impact
Shared schema compatibility: permits the already implemented optional per-key override for these four types. Invalid non-string values remain rejected; absent and empty overrides preserve artifact bytes. No new API, locale router, or translation rules.
Tests run
f4c8f3d7; each affected renderer rejects valid overrides before the fix.node --test test/new-type-translations.test.mjs test/generate-validators.test.mjs: 9/9 passed. Public CLI coverage checks embedded overrides, English fallback, empty/absent byte equivalence, and invalid values in all four types, plus portable validator consistency.Generated artifacts
Portable
generated-validators.mjsregenerated with the maintained generator.archify.ziprebuilt using official Node 22. Example and Viewer inputs are unchanged.