Skip to content

Translation page checks reuse table parses - #926

Merged
zlareb1 merged 1 commit into
mainfrom
fix/i18n-table-analysis
Nov 18, 2026
Merged

zlareb1 merged 1 commit into
mainfrom
fix/i18n-table-analysis

Conversation

@zlareb1

@zlareb1 zlareb1 commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Performance Improvement

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

  • Wire: no changes.
  • Operator steps: none.
  • Rollback: reverting restores the separate parsing calls; no data migration or generated output changes.

Tests

  • The new parser-count regression fails before the change with four parses per dialect and passes with two.
  • 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.
  • Ruff format and lint pass for the four changed Python files.
  • Broad suites remain for CI; no full committed-translation check was run locally.

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

  • Full repository format, lint, typecheck and unit gates pass in CI.
  • No generated files, migrations, wire fields, settings, plugin files or frontend files change.
  • Repository comments describe the current behavior without private deployment details.
  • Commits are signed off.

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]>
@zlareb1
zlareb1 merged commit 5135c7f into main Nov 18, 2026
44 checks passed
@zlareb1 zlareb1 mentioned this pull request Nov 18, 2026
6 tasks done
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