feat(#323): stream gifting UI with gift message and shareable link - #348
Merged
Chuks-coderr merged 3 commits intoJul 30, 2026
Merged
Conversation
…reable link
- Add GiftStreamModal component with a 3-step flow (form → confirming → done):
- Step 1 (form): collects recipient address, token, total amount, unlock
duration (preset buttons + custom days input), and optional gift message
- Validates recipient is a valid Stellar address and not the same as sender
- Step 2: spinner while createStream() resolves
- Step 3: success screen with shareable gift link and Copy button
- Gift message persisted in localStorage keyed by stream ID (sorostream-gift-messages)
via getGiftMessage() / saveGiftMessage() helpers exported from GiftStreamModal
- Add 'Gift a Stream' 🎁 button to dashboard header (purple, next to New Stream)
- GiftStreamModal rendered from dashboard with focus-trapped dialog
- Stream detail page reads gift message from localStorage and shows a prominent
purple banner (🎁 'You received a gift stream!') when a message is present
|
@Vincent6581 is attempting to deploy a commit to the Chuks7 Team on Vercel. A member of the Team first needs to authorize it. |
|
@Vincent6581 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #323
Adds a dedicated stream gifting UI — a modal that lets users create a pre-paid stream as a gift for another user, complete with an optional personal message and a shareable link to share with the recipient.
Changes
New component:
components/GiftStreamModal.tsxThree-step flow:
Step 1 (form)
Step 2 (confirming)
sorostream.createStream()resolvesStep 3 (done)
/stream/{streamId}) with Copy buttonGift messages are persisted in
localStorageundersorostream-gift-messageskeyed by stream ID, using exported helpersgetGiftMessage()/saveGiftMessage().Modified:
src/app/dashboard/page.tsxGiftStreamModaland addshowGiftModalstate<GiftStreamModal>whenshowGiftModalis trueModified:
src/app/stream/[id]/page.tsxgetGiftMessagefromGiftStreamModalgiftMessagestate, loaded on mount from localStoragegiftMessageis setAcceptance Criteria