Skip to content

M1: Add SwiftUI performance guard tests#24616

Merged
Jasonnnz merged 4 commits into
feature/perf-guard-testsfrom
swarm/perf-guard-tests/task-1
Apr 10, 2026
Merged

M1: Add SwiftUI performance guard tests#24616
Jasonnnz merged 4 commits into
feature/perf-guard-testsfrom
swarm/perf-guard-tests/task-1

Conversation

@Jasonnnz
Copy link
Copy Markdown
Contributor

@Jasonnnz Jasonnnz commented Apr 10, 2026

Summary

Test plan

  • All 3 guard tests pass (bun test src/__tests__/swiftui-perf-guards.test.ts)
  • Existing known violations are properly allowlisted
  • Comment-only lines (e.g. // ⚠️ No .frame(maxWidth:)) are correctly filtered out

Part of #24613.

🤖 Generated with Claude Code


Open with Devin

Adds CI-enforced guard tests that scan Swift source files for three known
LazyVStack performance anti-patterns:

1. FlexFrameLayout (.frame(maxWidth:) / .frame(maxHeight:)) in cell hierarchy
2. motionVectors transitions (.transition(.move(edge:))) in cell hierarchy
3. withAnimation in scroll handlers (motionVectors cascade)

Prevents regression of fixes from PRs #24321, #24375, #24411, #24446,
#24530, #24570, #24589.

Part of #24613.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Jasonnnz Jasonnnz self-assigned this Apr 10, 2026
@Jasonnnz
Copy link
Copy Markdown
Contributor Author

@codex review

@Jasonnnz
Copy link
Copy Markdown
Contributor Author

@devin review

devin-ai-integration[bot]

This comment was marked as resolved.

…eferences

Adds the 10 allowlisted file basenames to the cell hierarchy list so the
allowlist is actually consulted. Removes historical PR numbers from the
file header comment per AGENTS.md guidance.

Co-Authored-By: Claude <noreply@anthropic.com>
@Jasonnnz
Copy link
Copy Markdown
Contributor Author

@codex review this PR again — the previous issues have been fixed in commit 11b001e

@Jasonnnz
Copy link
Copy Markdown
Contributor Author

@devin review this PR again — the previous issues have been fixed in commit 11b001e

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

devin-ai-integration[bot]

This comment was marked as resolved.

BSD grep (macOS default) doesn't support \| in BRE mode. Switch to
grep -E with | for alternation so the guard works for local dev too.

Co-Authored-By: Claude <noreply@anthropic.com>
@Jasonnnz
Copy link
Copy Markdown
Contributor Author

@codex review this PR again — the previous issues have been fixed in commit de8e04f

@Jasonnnz
Copy link
Copy Markdown
Contributor Author

@devin review this PR again — the previous issues have been fixed in commit de8e04f

devin-ai-integration[bot]

This comment was marked as resolved.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

…tion grep

Co-Authored-By: Claude <noreply@anthropic.com>
@Jasonnnz Jasonnnz merged commit d1d7ece into feature/perf-guard-tests Apr 10, 2026
11 checks passed
@Jasonnnz Jasonnnz deleted the swarm/perf-guard-tests/task-1 branch April 10, 2026 02:50
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