Skip to content

feat(ui): ActionCard widget for the home action tiles (stacked on #630) - #631

Merged
n13 merged 2 commits into
mainfrom
n13/home-action-cards
Sep 3, 2026
Merged

feat(ui): ActionCard widget for the home action tiles (stacked on #630)#631
n13 merged 2 commits into
mainfrom
n13/home-action-cards

Conversation

@n13

@n13 n13 commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

Stacked on #630; merge that first.

The home Receive / Send / Swap tiles are not one of the four design-system Button types (Primary / Staged / Ghost / Disabled). Per the app design they are an icon-over-label tile with a vertical gradient fill, a hairline border, radius 14 and 20/16 padding, and the same block recurs on the encrypted-account home, the empty state, account management and the POS flow.

  • Add bgCardTop / bgCardBottom to AppColorsV3 for the tile gradient (#141414#1A1A1A, from the app design rather than the token table).
  • Add ActionCard to quantus_sdk: gradient fill, borderHairline, radiusV3.md, 24pt accentFlare icon over bodyLarge at white 80%, disabled = 40% opacity with no tap.
  • Home screen rows use ActionCard; the per-call padding / variant / text-style / icon-placement overrides on QuantusButton are gone. QuantusButton itself is unchanged.

Design: https://www.figma.com/design/PgeYxDIqdylnHoUwIXv60X/Quantus-App?node-id=1-1887&m=dev (home), https://www.figma.com/design/PgeYxDIqdylnHoUwIXv60X/Quantus-App?node-id=1-604&m=dev (component library).

Verified on the iPhone 17e simulator against the Figma frame; melos run format, melos run analyze and the home gating test pass.

Simulator Screenshot - iPhone 17e - 2026-09-03 at 21 07 13

@n13 n13 added the bot-review Request automated review from review-bot label Sep 3, 2026
Base automatically changed from fix/remove-swap-build-131 to main September 3, 2026 12:50

@n13 n13 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Reviewer model: GPT Sol

Verdict (advisory): Request changes

Blocking findings:

  • [P1] Rebase the stack onto current main before merging. After #630 was squash-merged, GitHub retargeted this PR to main at b1c11508, but this head still descends from the pre-squash #630 commits. GitHub now reports CONFLICTING, and git merge-tree b1c11508 2de1f8ac confirms a content conflict in mobile-app/lib/v2/screens/home/home_screen.dart. The current PR also exposes the already-merged #630 work again as a cumulative nine-file diff. Since b1c11508 and the old stack parent dc6222d0 have identical trees, rebasing/dropping the duplicated #630 commits should preserve the intended four-file ActionCard delta while restoring a reviewable, mergeable history. Please rerun full CI on that rebased head.

  • [P2] Keep the ActionCard gradient inside the established V3 color-token contract (quantus_sdk/lib/src/ui/themes/app_colors.dart:21, :97). bgCardTop and bgCardBottom are explicitly introduced as colors outside the token table, but the repository's checked-in UI convention requires AppColorsV3 to map 1:1 to the Figma SYSTEM / Color Tokens table and says non-table shades must be derived from existing tokens. Adding these fields makes the shared theme a second palette outside that contract. Use existing theme colors or derive the required gradient shades from existing tokens without adding non-table AppColorsV3 entries.

Validation:

  • Reviewed the original exact dc6222d0...2de1f8ac four-file delta, then refreshed after the live base changed and inspected the current b1c11508...2de1f8ac nine-file cumulative diff plus the direct four-file tree delta; git diff --check passed.
  • Workspace format check: 717 Dart files, 0 changes.
  • flutter test test/screens/home_intent_gating_test.dart: 5/5 passed.
  • Fatal-info analysis passed for quantus_sdk, cold-wallet, and miner; mobile analysis was stopped at the repository's 10-second cap while still running. The exact-head GitHub rollup currently contains only successful dependency-cooldown checks, not full CI.

No other blocking findings were identified in the intended ActionCard delta.

@n13 n13 removed the bot-review Request automated review from review-bot label Sep 3, 2026
n13 added 2 commits September 3, 2026 21:10
…sign

The home Receive/Send/Swap tiles are not a design-system Button type: they
use a vertical gradient fill, a hairline border, 20/16 padding and an
icon-over-label layout. Add the two gradient stops as bgCardTop/bgCardBottom
tokens, move the tile into a shared ActionCard widget, and drop the per-call
QuantusButton overrides from the home screen.
@n13
n13 force-pushed the n13/home-action-cards branch from 11220f9 to 305add2 Compare September 3, 2026 13:10

@dewabisma dewabisma left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM!

@n13
n13 merged commit c7d35de into main Sep 3, 2026
2 checks passed
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