Skip to content

live release - multi offer ui#1072

Merged
gudnuf merged 13 commits into
livefrom
master
May 14, 2026
Merged

live release - multi offer ui#1072
gudnuf merged 13 commits into
livefrom
master

Conversation

@gudnuf
Copy link
Copy Markdown
Contributor

@gudnuf gudnuf commented May 14, 2026

No description provided.

ditto-agent and others added 13 commits May 12, 2026 12:59
Reduces exposure to supply chain attacks via freshly published malicious
versions by filtering out npm releases younger than 3 days during install.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…ction

chore: add 3-day minimum release age for npm packages
Render the offers section on the gift cards page differently based on
offer count: 1 offer stays full-sized, 2 offers go side-by-side at half
width, 3+ become a horizontal scroll carousel at discover-card size.

Extract the discover section's scroll-position-restoration hook into a
shared useRestoreScrollPosition keyed by location.state name, used by
both DiscoverGiftCards and the new OffersSection.
Merge existing location.state in getScrollState so Discover and Offers
sections forward-carry each other's scroll position on navigation. Drop
the includeScrollState boolean in OffersSection so the 1/2-offer paths
no longer wipe discoverScrollPosition. Inline the zod schema and remove
the useMemo per review feedback.
ui: use close button on scanner routes
Offers icon should be Gift, not Bank icon
The merge in getScrollState forwarded every field of the current
location.state into the next navigation — including the view-transition
{transition, applyTo} fields stored by LinkWithViewTransition. That
caused offer/discover navigations from /gift-cards (raw navigate, no
transition) to inherit the home→/gift-cards slide direction, producing
wrong-direction slide animations after a hard reset.

Strip the view-transition fields from the merge so only caller-owned
state (e.g. sibling scroll positions) is forwarded.
…leak

Prevent view-transition state leak via scroll restoration
@gudnuf gudnuf requested review from bobscully3 and jbojcic1 May 14, 2026 21:06
@supabase
Copy link
Copy Markdown

supabase Bot commented May 14, 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 ↗︎.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 14, 2026

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

Project Deployment Actions Updated (UTC)
agicash Ready Ready Preview, Comment May 14, 2026 9:07pm

Request Review

@gudnuf gudnuf merged commit 769443c into live May 14, 2026
7 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.

5 participants