Skip to content

fix(layout): update JindoTripleVStack impl - #1152

Merged
Kyle-Ye merged 3 commits into
mainfrom
optimize/jindo
Oct 17, 2026
Merged

Kyle-Ye merged 3 commits into
mainfrom
optimize/jindo

Conversation

@Kyle-Ye

@Kyle-Ye Kyle-Ye commented Oct 15, 2026 •

Copy link
Copy Markdown
Member

Summary

Close #155

  • Fix JindoTripleVStack placement and sizing to match SwiftUI: trailing children with content margins stay inside the trailing edge, center children ignore horizontal margins in full-width stacks, side spacing comes from the top children only, and a below-notch leading child stops the minimum width scan.
  • Break fitting-order ties by child index, let NaN priorities fall through to the flexibility comparison, and use the same max operand order for NaN inputs.
  • Store the trailing inset of Position.trailing(inset:) in leadingInset for value parity.
  • Add JindoTripleVStackUITests snapshot cases that fail on the previous implementation and pass with this change.
  • Record SwiftUI reference images once per platform in the UI and interaction test workflows: a record job runs on update with the SwiftUI renderer and AttributeGraph setup, the configuration matrix depends on it and only verifies with OpenSwiftUI, and the shared test action gains a record mode, a record-result output, and an exclusive-create reference lock.

@Kyle-Ye

Kyle-Ye commented Oct 15, 2026

Copy link
Copy Markdown
Member Author

/uitest update

@github-actions github-actions Bot added area: layout Layout, geometry, safe area, alignment, stacks, or sizing. area: tests Test suites, UI tests, fixtures, snapshots, and test support code. type: bug Something is not working correctly. labels Oct 15, 2026
@tuist

tuist Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

🛠️ Tuist Run Report 🛠️

Tests 🧪

Scheme Status Ran test modules Commit
Unknown ⏳ 7 a6b3e0cab
OpenSwiftUI ✅ 7 a6b3e0cab

Builds 🔨

Scheme Status Duration Commit
OpenSwiftUI ✅ 1m 8s a6b3e0cab

@Kyle-Ye Kyle-Ye changed the title fix(layout): align JindoTripleVStack behavior with SwiftUI fix(layout): update JindoTripleVStack impl Oct 15, 2026
@codecov

codecov Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 197 lines in your changes missing coverage. Please review.
✅ Project coverage is 29.53%. Comparing base (9fc3559) to head (7b5bbaf).

Files with missing lines Patch % Lines
Sources/OpenSwiftUI/Layout/JindoTripleVStack.swift 0.00% 197 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1152   +/-   ##
=======================================
  Coverage   29.53%   29.53%           
=======================================
  Files         939      939           
  Lines       74448    74414   -34     
=======================================
- Hits        21989    21981    -8     
+ Misses      52459    52433   -26     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Kyle-Ye

Kyle-Ye commented Oct 16, 2026

Copy link
Copy Markdown
Member Author

/uitest ios update only-testing=OpenSwiftUIUITests/JindoTripleVStackUITests

@Kyle-Ye

Kyle-Ye commented Oct 16, 2026

Copy link
Copy Markdown
Member Author

/uitest update only-testing=OpenSwiftUIUITests/JindoTripleVStackUITests

- Place children with the unreduced width when applying content margins
- Merge only top-region spacing and use axis-relative edges
- Stop the minimum width scan at the first below-notch child
- Keep horizontal margins off the center stack in full-width mode
- Break fitting ties by child index and let NaN priorities fall through
- Store the trailing inset in leadingInset and match max operand order
Cover trailing content margins, center margins in a full-width stack,
side spacing from the top children only, and the below-notch minimum
width scan.
- Add one record job per platform to the UI and interaction test workflows. It runs on update with the SwiftUI renderer and AttributeGraph setup, and the configuration matrix depends on it instead of recording in every configuration.
- Add a record mode and a record-result output to the shared test action, and acquire the reference lock with an exclusive create so a stale file view on a shared runner cannot block recording.
- Fail the configuration jobs early and report the cause in their commit status when the recording job did not succeed.
- Update the CI documentation and workflow tests.
@github-actions github-actions Bot added the type: ci GitHub Actions, test infrastructure, runners, checks, or automation. label Oct 17, 2026
@Kyle-Ye
Kyle-Ye merged commit 967c52a into main Oct 17, 2026
11 checks passed
@Kyle-Ye
Kyle-Ye deleted the optimize/jindo branch October 17, 2026 07:49
@Kyle-Ye Kyle-Ye added this to the 0.24.0 milestone Oct 17, 2026
@Kyle-Ye Kyle-Ye linked an issue Oct 17, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: layout Layout, geometry, safe area, alignment, stacks, or sizing. area: tests Test suites, UI tests, fixtures, snapshots, and test support code. type: bug Something is not working correctly. type: ci GitHub Actions, test infrastructure, runners, checks, or automation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix JindoTripleVStack layout parity

1 participant