Skip to content

ui nits and redirect to gift card after checking out#924

Merged
gudnuf merged 1 commit intomasterfrom
cashapp-buy-nits
Mar 5, 2026
Merged

ui nits and redirect to gift card after checking out#924
gudnuf merged 1 commit intomasterfrom
cashapp-buy-nits

Conversation

@gudnuf
Copy link
Contributor

@gudnuf gudnuf commented Mar 5, 2026

some ui nits that claude reverted when I refactored the checkout page.

Also this makes it so that if the user is buying to a gift card account, then the transaction details "Ok" button will redirect them to the gift card page rather than home.

@vercel
Copy link

vercel bot commented Mar 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agicash Ready Ready Preview, Comment Mar 5, 2026 8:12pm

Request Review

@supabase
Copy link

supabase bot commented Mar 5, 2026

This pull request has been ignored for the connected project hrebgkfhjpkbxpztqqke because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@gudnuf
Copy link
Contributor Author

gudnuf commented Mar 5, 2026

@jbojcic1 I had claude profile your review feedback. I made these changes based on that.

image


const buttonVariants = cva(
'inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md font-medium text-sm ring-offset-background transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',
'inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md border border-transparent font-medium text-sm ring-offset-background transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This makes it so that all buttons have a border but defaults to transparent which is needed to make it so that with or without a visual border the height is exactly the same

so this seems like an issues that was already in this component. The outline variant already had a border and I also added a border to the secondary variant which made those variants slightly taller with the added border.

Bob noticed it because the "Receive" and "Buy" buttons are right above the "Send" button

{isMobile && !errorMessage && (
<PageFooter className="pb-14">
<Button asChild>
<Button asChild className="w-[80px]">
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is the same width as our "Ok" buttons

@gudnuf gudnuf requested a review from jbojcic1 March 5, 2026 20:18
@gudnuf gudnuf merged commit 9255c81 into master Mar 5, 2026
9 checks passed
@gudnuf gudnuf deleted the cashapp-buy-nits branch March 5, 2026 21:25
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