feat(ai-credits): Setup guidance header — tagline, bonus highlight, flatter layout - #206
Merged
Merged
Conversation
blueogin
requested review from
a team and
L03TJ3
and
a lite review from Copilot
August 21, 2026 19:16
Contributor
There was a problem hiding this comment.
Pull request overview
Polishes the AI Credits widget’s Setup guidance area above the tab navigation to better match the onboarding mock: it removes the inset card surface, adds a short tagline plus a bonus highlight banner, and tightens the action button row styling.
Changes:
- Reworked
SetupGuidanceCardlayout to be flush with the widget background, added a tagline, and adjusted the action buttons (no icons on internal actions; external-link icon retained). - Introduced
SetupBonusHighlight, a collapsible bonus banner driven by adapter-provided bonus percentages and GoodID verification state. - Wired bonus-related state through
AiCreditsWidgetintoSetupGuidanceCard.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| packages/ai-credits-widget/src/components/setup/SetupGuidanceCard.tsx | Converts the guidance area from a Card surface to a flush layout, adds tagline + bonus banner, and restyles the button row. |
| packages/ai-credits-widget/src/components/setup/SetupBonusHighlight.tsx | Adds a new collapsible bonus highlight banner with verified/unverified explanatory copy. |
| packages/ai-credits-widget/src/AiCreditsWidget.tsx | Passes bonus and verification state into SetupGuidanceCard. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+30
to
+37
| <XStack | ||
| gap="$3" | ||
| alignItems="center" | ||
| cursor="pointer" | ||
| accessibilityRole="button" | ||
| aria-expanded={isExpanded} | ||
| onPress={() => setIsExpanded((previous) => !previous)} | ||
| > |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #177
What changed
Guidance area is flush with the widget background
SetupGuidanceCardrendered on aCardsurface, which read as a gray panel wedged between theheader and the tabs. It is now a plain
YStackaligned to the header's horizontal padding, sothe section reads as part of the header. The separator above the button row stays.
Added the tagline and bonus highlight from the mock
SetupBonusHighlight— a collapsible banner stating the headline bonus, expanding toexplain the verification requirement.
depositBonusPercent/streamBonusPercent), nothardcoded copy; the headline uses the larger of the two.
isGoodIdVerified— verified wallets are told the bonus alreadyapplies instead of being asked to claim UBI first.
Action button row restyled
after its label to signal it opens a new tab.
flexGrow+flexBasis: autoinstead offlex: 1, so button width follows label length —"Antseed site" was being clipped to "A…" under equal-width cells.
Testing
tsupbuild andeslintpass for the package.expanded banner, and the button row at mobile width.
Notes
untouched.
variant="default",Anchor style) are unchangedand are tracked in the onboarding finalization sub-issue.