Repository navigation
Translation page checks reuse table parses - #926
Merged
Merged
Conversation
Derive labels and layout from one parse per Markdown dialect for each text. Keep standalone checks fresh and preserve both dialects' source maps. Signed-off-by: zlareb1 <[email protected]>
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.
Changelog category (leave one):
Changelog entry (one or two sentences a user of Loom can read without the diff; the release pull request collects these into the release notes):
Translation page validation reuses each Markdown table parse for its label and layout checks.
Why
Full-page validation parses the same English and translated table text separately for labels and layout. Sharing the derived results reduces the isolated page-validation fixture from four parses per dialect to two, one per text.
Scope and risk
The change shares table analysis within one full-page comparison in committed-page validation and translation assembly. Both Markdown dialects retain their labels, source offsets, containers and layout checks. Standalone calls remain fresh. There is no process cache or inventory cache.
Compatibility, rollout and rollback
Tests
python -m unittest tests.unit.test_i18n_table_analysis.TableAnalysisTests -v: three tests pass, including standalone freshness, duplicate offsets, unmatched dialect source maps, translated labels and table containers.AI assistance in the code (leave one; writing this description with AI is fine):
AI-generated: Codex wrote the diff. The author checked the complete diff, parser-count regression and focused controls.
I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist