Skip to content

Add swipeable Stocks hero with clear purchase actions - #1462

Merged
ebma merged 13 commits into
stagingfrom
codex/stocks-fair-fees-hero
Nov 13, 2026
Merged

ebma merged 13 commits into
stagingfrom
codex/stocks-fair-fees-hero

Conversation

@ebma

@ebma ebma commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

The Stocks landing pages now lead into a purchase with a swipeable photo hero and clear cost-check actions in Brazilian Portuguese and English.

  • Three localized highlights cover fair fees, simple access and the user's wallet. Small translucent dots sit directly on the photograph; users can use native touch scrolling, mouse drag, the dots or keyboard navigation. The purchase CTA stays below the photo, with no autoplay or carousel arrows.
  • “Comprar com Pix” and “Buy with USDC” lead to the existing purchase form. The next step is “Ver custos da compra” / “See purchase costs”; illustrative estimates remain clearly distinguished from the final quote after sign-in.
  • Responsive fictional-person photographs use 800px/1440px assets, intrinsic dimensions, first-image priority and lazy loading for subsequent images. Existing fee statements, provider disclosures, payment availability gates and recovery behavior are preserved. No fee settings or production activation change in this PR.

Validation

  • All 413 Stocks tests pass, including dot/keyboard navigation, reduced motion, mouse drag, edge clamping, pointer cancellation, native-touch event handling and purchase handoffs. Existing cost and recovery tests remain green.
  • bun lint:fix passes. The live Stocks build with USDC enabled passes, contains both locale entry points and excludes the simulated-flow chunk.
  • Browser checks cover both locales at 320px, 390px and desktop widths: photo framing, text contrast, overflow, mouse drag, dots, keyboard navigation, CTA focus handoff, cost views and provider details. No console errors in inspected states.
  • Physical-phone touch gestures and real Pix transfers were not performed. Touch uses native browser scrolling with CSS scroll snap; automated tests cover its event path. Real Pix bank-transfer testing is not a prerequisite for this visual change.

Merge order

This branch already includes #1459 to integrate its English/Base-USDC checkout changes. Merge #1458 → #1459 → #1462, keeping this PR as a draft against staging for review.

Review: @ebma, please review the localized photo carousel, purchase wording and responsive interactions.

alexatsatoshi and others added 8 commits November 12, 2026 15:33
Both Stocks pages now load src/main.jsx, so Vite records it as a shared chunk and the manifest no longer contains "index.html". The InternationalApp and UsdcFlow checks already prove the manifest is populated.
A USDC record counted as a possibly sent permit from registration on, so a
declined prompt, a failed nonce read or a maintenance refusal kept the
shared Pix and USDC wallet lock for 24 hours once the order failed. The
hold now starts when the wallet prompt opens, and a definite rejection
restores the earlier stage. A returned signature still keeps recovery.
Signed-in Brazilian users reached the USDC checkout only through the Pix
buy and sell flows, so with Pix off, or a token's Pix listing closed, the
stock page showed "Em breve" and no USDC at all. The detail buttons now
open the USDC buy or sell in that case, except during an issuer pause.
The Brazilian USDC flow showed raw messages before its wallet-rejection
check, so a cancelled permit read "User rejected the request.", a Base
RPC hiccup printed viem's English with the endpoint URL, and a delivery
mismatch was English. Cancellations now use the Pix flows' wording, a
failed Base balance read gets its own Portuguese message, and the
delivery and storage messages are translated.
@netlify

netlify Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for vortexfi ready!

Name Link
🔨 Latest commit 3eefc28
🔍 Latest deploy log https://app.netlify.com/projects/vortexfi/deploys/6af6cf76b1fccdc5add1016e
😎 Deploy Preview https://deploy-preview-1462--vortexfi.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for vrtx-dashboard canceled.

Name Link
🔨 Latest commit 3eefc28
🔍 Latest deploy log https://app.netlify.com/projects/vrtx-dashboard/deploys/6af6cf77cd6270347c717cda

@netlify

netlify Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for vortex-sandbox ready!

Name Link
🔨 Latest commit 3eefc28
🔍 Latest deploy log https://app.netlify.com/projects/vortex-sandbox/deploys/6af6cf77cd4597bdd64e1509
😎 Deploy Preview https://deploy-preview-1462--vortex-sandbox.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@ebma ebma changed the title Add fair-fee Stocks visuals for Brazil and English Add swipeable Stocks hero with clear purchase actions Nov 12, 2026
ebma added 4 commits November 13, 2026 09:46
The hero CTA said "Comprar com Pix" whatever rampOpen was, although the rampOpenState contract promises neither a purchase nor "em breve" while availability is unknown or the listing failed.
With VITE_STOCKS_USDC_ENABLED off in a live build, the English hero still said "Buy with USDC" and visitors learned purchases were coming soon only after two clicks.
@ebma
ebma marked this pull request as ready for review November 13, 2026 09:19
@ebma
ebma merged commit 53a5d0d into staging Nov 13, 2026
6 checks passed
@ebma
ebma deleted the codex/stocks-fair-fees-hero branch November 13, 2026 09:20
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