refactor: nightly simplification sweep [automated]#640
Conversation
Two follow-up cleanups in HomeView.swift after the recent "simplify home activity rows" commit: - HomeHeroCard: extract @ViewBuilder var actionCards to remove the two byte-for-byte identical HomeActionChoiceCard pairs inside ViewThatFits (the HStack and VStack branches were duplicated). - HomeActivityTabsCard.activitySubtitle: collapse the two near-identical switch arms by deriving the noun from selectedTab.label.lowercased() and selecting canLoadMore once. Net diff: -41 / +29 lines, no behavior change. Build, 1118 unit tests, 2 integration smoke tests, and 107 swift tests all pass. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
PR Review — refactor: nightly simplification sweep [automated]Verdict: APPROVE Summary: This PR extracts a duplicated Blockers (must fix before merge):
Should fix (strongly recommended):
Nits (take or leave):
What looks good:
Generated by Claude Code |
Summary
Nightly automated
/simplifysweep. Two follow-up cleanups inSources/UI/Settings/HomeView.swiftafter the recent"refactor: simplify home activity rows" commit (680ae33):
HomeHeroCard: extract@ViewBuilder var actionCardsto removethe two byte-for-byte identical
HomeActionChoiceCardpairs insideViewThatFits(the HStack-wrapped and VStack-wrapped branches werepure copy-paste).
HomeActivityTabsCard.activitySubtitle: collapse the twonear-identical switch arms by deriving the noun from
selectedTab.label.lowercased()and selectingcanLoadMoreonce.Net diff: -41 / +29 lines, no behavior change.
What was reviewed
Three parallel review agents (reuse, quality, efficiency) inspected
HomeView.swift. Other findings — parameter-bundle refactor of
HomeActivityTabsCard,groupByDaymiddle-branch trim, ForEach offsetidentity, cross-file DateFormatter consolidation — were deliberately
skipped as marginal, defensive, or scoped beyond this file.
Test plan
bash build.sh— succeeded, app launchesbash run-tests.sh— 1118 / 1118 passbash run-integration-smoke.sh— 2 / 2 passswift test— 107 / 107 pass🤖 Generated with Claude Code