Repository navigation
feat(demo): restyle demo pages with Relay design tokens - #1187
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Claude finished @pedromcunha-uneven's task in 10s —— View job 📝 Docs Drift Check — No docs impact This PR does not touch surfaces that require a |
|
Claude finished @pedromcunha-uneven's task in 55s —— View job Code Review: 2 issues found, both minor. Neither blocks the merge.
Everything else looks fine:
Reviewed 28 files, about 2,800 lines changed. Checked for correctness, security, error handling and the repo's guidelines. |
[Medium impact] The PR appears safe to merge; the previous card overflow is fixed and no new blocking issues were found.
|
There was a problem hiding this comment.
@ampagent can you update this outdate relay mark to use the latest Relay logo?
There was a problem hiding this comment.
Updated in 8d5a1ae: demo/public/relay-mark.svg is now the starburst from the current Relay logo (relay-docs logo/relay-black.svg, violet #4615C8), and it turns white in dark mode like relay-white.svg.
…olverCapacity tile Amp-Thread-ID: https://ampcode.com/threads/T-01a1cbc7-42ee-7072-956d-ef88023ffd1d
|
Addressed the Claude review notes in ba13369:
|
Restyles every demo page except /orders with the Relay tokens from
packages/ui/src/styles/base.css:--relay-colors-*(violet primary, slate gray),--relay-radii-*and Inter via--relay-fonts-*, in light and dark mode.Changes and decisions to review:
demo/global.cssinside@layer demowithdemo-*class names, so they can't collide with the /orders CSS module in feat(sdk): add limit order actions and run quote/v3 style steps #1184.global.cssis imported before the relay-kit stylesheet.demo/public/relay-mark.svg, cut fromrelay-black.svg), "Relay Kit" + Demo badge, styled API select, sun/moon theme icon button, Dynamic connect button. Wraps at phone widths.DemoPage/DemoOutputcomponents (demo/components/DemoPage.tsx) give SDK and hook pages a shared heading, card form and mono JSON output.ConnectButtonon SDK pages is removed because the navbar already has one; the SDK Swap page's extraBaseApiSwitcheris removed for the same reason.Layoutkeeps itsstylesprop.<body>in_document.tsxare removed.Verification:
tscpasses indemo; all 19 routes captured in light mode and the main ones in dark mode and at 390px. Onramp couldn't be rendered locally without a real MoonPay key (pre-existing, not caused by this change).