Skip to content

fix: the typed-k and factors sheets keep their fields' and buttons' identifiers - #74

Merged
Paullo9 merged 1 commit into
mainfrom
claude/sheet-identifiers
Nov 5, 2026
Merged

Paullo9 merged 1 commit into
mainfrom
claude/sheet-identifiers

Conversation

@Paullo9

@Paullo9 Paullo9 commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Requested by Paul

Fixes #73.

Break: EDXTypedKSheet and EDXFactorsSheet put their identifier (edx.typedK, edx.factors) on a plain VStack. SwiftUI then gave it to every child and overrode the children's own: edx.typedK.source, edx.typedK.done, edx.factors.source and edx.factors.done could not be found.

Fix: .accessibilityElement(children: .contain) before each sheet's identifier, as edx.room already does. Each sheet is one container element with its identifier, and its children keep theirs. Nothing drawn changes, and no numbers change.

Test: a hosted unit test cannot see SwiftUI's accessibility nodes without a live client; both a view walk and an accessibilityChildren walk returned nothing. So the check is a mac4DSTEM UI journey, EDSJourney.test3_TypedKSheetFieldsKeepTheirIdentifiers (open AlMgSi_4D_EDX.dm4, k-factors ▸ Typed, wait for edx.typedK.source and edx.typedK.done), run through tools/run-tests.sh ui:

  • MacEMUI 0.5.0 as resolved: fails, "edx.typedK.source did not appear in 20 s".
  • The same checkout with this diff applied: passes (1/1, 0 skipped).

The journey lands in mac4DSTEM after this ships (a draft PR there).

🤖 Generated with Claude Code

…dentifiers

The sheets' identifier sat on a plain VStack, so SwiftUI put it on every child and hid edx.typedK.source, edx.typedK.done,
edx.factors.source and edx.factors.done. Each sheet is now one container element (as edx.room), whose children keep theirs.

Fixes #73.

Done: the sheets' children are findable. Next: mac4DSTEM's EDSJourney asserts them once this ships.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Paullo9 Paullo9 self-assigned this Nov 5, 2026
@Paullo9
Paullo9 merged commit 03952bc into main Nov 5, 2026
6 checks passed
@Paullo9
Paullo9 deleted the claude/sheet-identifiers branch November 5, 2026 12:43
@macem-release macem-release Bot mentioned this pull request Nov 5, 2026
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.

polish: the typed-k and factors sheets' identifier hides their fields' and buttons' identifiers

1 participant