Referrals page: footer pill for browser-locked pending referral code #205
Labels
No labels
agent:fix_bugfix
agent:fix_conflicts
agent:fix_security
agent:gap_analysis
agent:implement
agent:open_issues
agents
agent:security_audit
agent:verify
area
timecurve
arena
arena-v2
audit
block:feature_review
block:security
bug
contracts
design
devops
docs
documentation
enhancement
epic
feature
frontend
indexer
low priority
megaeth
operations
ops
performance
QA
qa checklist
referrals
removal
security
smart-contracts
tech-debt
testing
time-arena
timecurve
visual-qa
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
code/yieldomega#205
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
On
/referrals, show in the footer a small pill that displays which referral code is locked in for this browser session when one exists; hide or show neutral copy when none.Context
?ref=, path-based slugs, etc.) is persisted for UX and buy flows viayieldomega.ref.v1inlocalStorage/sessionStorage, surfaced throughgetPendingReferralCode()infrontend/src/lib/referralStorage.ts.frontend/src/layout/RootLayout.tsx(app-footer); today it is hidden only on exact/timecurve.Acceptance criteria
/referralsandgetPendingReferralCode()returns a normalized code, the footer (or a referrals-scoped footer row consistent with existing layout) shows a compact pill (e.g. label + code) so participants can confirm what will apply on the next qualifying buy.?ref=afterReferralPathSync/ capture runs) — considerstorageevent or subscribing to the same path the rest of the app uses for pending ref refresh.Out of scope / notes
yieldomega.myrefcode.v1.*cache; it is the pending referee capture only.Suggested implementation sketch
RootLayoutwhenlocation.pathname === "/referrals", or a thinReferralsFooterPendingPillmounted fromReferralsPageinto a layout slot if the design system prefers page-owned chrome — match existing footer styling (footer-link-pill/ design tokens inindex.css).Testing
frontend/e2e/referrals-surface.spec.ts(or add a focused spec) to setyieldomega.ref.v1beforegoto("/referrals")and assert the pill text; mirror R7 storage expectations from the existing checklist./cc @PlasticDigits/yieldomega
mentioned in commit
741d7c5febmentioned in merge request !388
mentioned in commit
316930c44b