Skip to content

fix(explorer): merge duplicate standard-frame annotation (6'/mm'm)#73

Merged
manganite merged 2 commits into
mainfrom
fix/annotation-merge
Jul 9, 2026
Merged

fix(explorer): merge duplicate standard-frame annotation (6'/mm'm)#73
manganite merged 2 commits into
mainfrom
fix/annotation-merge

Conversation

@manganite

Copy link
Copy Markdown
Owner

Summary

Display wording only. For the single group whose standard frame is the same in both conventions (6'/mm'm, STANDARD_STAYS_AT_SETTING_1), the settings row rendered two consecutive annotations (standard frame in Birss) (standard frame in ITC). When birssStandard === itcStandard, it now renders one span (standard frame in Birss and ITC); otherwise unchanged.

Verification (headless, driving the running app)

  • 6'/mm'mBirss and ITC modes: single merged (standard frame in Birss and ITC).
  • 6'mm'ITC: still two separate annotations (6'mm' → standard frame in ITC, 6'm'm → standard frame in Birss).

Gates

  • npm run lint (tsc) — clean
  • npm run test1626 passed
  • npm run build — succeeds
  • No golden fixture touched.

Base: 9a90082.

🤖 Generated with Claude Code

…coincide

For the one group whose standard frame is the same in both conventions
(6'/mm'm), the settings row rendered two consecutive annotations. Show a single
"(standard frame in Birss and ITC)" when birssStandard === itcStandard;
otherwise unchanged (6'mm' still shows the two separate annotations).

Display wording only; no computed-output change.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 9, 2026 07:04

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Explorer’s Operations modal settings-row annotations to avoid showing duplicate “standard frame” labels when Birss and ITC share the same standard-frame setting for a group.

Changes:

  • Merge duplicate standard-frame annotations into a single “(standard frame in Birss and ITC)” label when birssStandard === itcStandard.
  • Update the changelog entry to document the merged-annotation behavior.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/components/OperationsModal.tsx Conditionally renders a single merged standard-frame annotation when Birss/ITC standards match.
CHANGELOG.md Documents the new merged-annotation wording in the Explorer popup settings row.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/components/OperationsModal.tsx Outdated
Comment on lines 172 to 183
{conventionAffected && birssStandard === itcStandard && setting === birssStandard ? (
<span className="text-xs text-ink/50">(standard frame in Birss and ITC)</span>
) : (
<>
{conventionAffected && setting === birssStandard && (
<span className="text-xs text-ink/50">(standard frame in Birss)</span>
)}
{conventionAffected && setting === itcStandard && (
<span className="text-xs text-ink/50">(standard frame in ITC)</span>
)}
</>
)}

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 7ec51a8 — hoisted the conventionAffected check to gate the whole block once; no empty fragment or repeated check. Behaviour unchanged.

Address Copilot review: hoist the conventionAffected check to gate the whole
annotation block instead of re-checking it in each branch (no empty fragment
when not convention-affected). Behaviour unchanged.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@manganite manganite merged commit 89c9432 into main Jul 9, 2026
3 checks passed
@manganite manganite deleted the fix/annotation-merge branch July 9, 2026 07:10
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.

2 participants