feat: auto-save drafts, timezone picker, contract archival, staging env#191
Merged
Austinaminu2 merged 2 commits intoJun 27, 2026
Merged
Conversation
…wwStar#177 - FlowwStar#168 Auto-save create stream form drafts to localStorage (debounced 500ms) with restore/discard banner on page load; drafts older than 24h expire automatically and are cleared on successful submission. - FlowwStar#170 Timezone-aware date/time picker: detect and display the user's timezone offset next to every date/time input; add timezone selector dropdown for scheduling in a different tz; replace toISOString().slice() with locale-safe local-time formatting; show UTC alongside local time on the stream detail page. - FlowwStar#174 Smart contract storage archival: add ArchiveSentBy/ArchiveReceivedBy index keys; on cancel or full withdrawal after end_time, stream IDs are moved from active to archive indexes so get_sent/received_streams only returns live streams; add get_archived_sent/received_streams queries and a cleanup_stream function for voluntary storage reclamation. - FlowwStar#177 Staging environment: add .github/workflows/staging.yml that builds and deploys to Vercel on pushes to the staging branch and on every PR (preview URL commented back on the PR); document required secrets and NEXT_PUBLIC_APP_ENV in .env.local.example. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
@yosemite01 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
Resolves issues #168, #170, #174, and #177 in a single branch.
#168 — Auto-save create stream form drafts
Closes #168
hooks/use-form-draft.tshook saves form state tolocalStorageon every change, debounced 500 ms.clearExpiredDrafts()is called on mount to prune any stale entries.#170 — Timezone-aware date/time picker
Closes #170
Intl.DateTimeFormat) is displayed next to every date/time input as(UTC±N).toISOString().slice(0, 16)inlocalDatetimeMinandaddDurationwith locale-safe local-time formatting so dates are displayed in the browser's local time, not UTC.#174 — Smart contract storage archival for completed streams
Closes #174
ArchiveSentBy(Address)andArchiveReceivedBy(Address)keys toDataKey.cancel, stream IDs are moved fromSentBy/ReceivedByto the corresponding archive keys — active indexes stay lean.withdraw, when a stream is fully drained afterend_time, it is likewise moved to the archive.get_archived_sent_streamsandget_archived_received_streams(paginated).cleanup_stream(caller, stream_id)lets either party reclaim storage for cancelled/completed streams (removes from all indexes and deletes the stream entry).#177 — Staging environment with separate testnet contract deployment
Closes #177
.github/workflows/staging.yml:stagingbranch deploy to Vercel with the staging contract (STAGING_CONTRACT_ID_TESTNETsecret)..env.local.examplewith staging variable documentation and theNEXT_PUBLIC_APP_ENVflag.STAGING_CONTRACT_ID_TESTNET,VERCEL_TOKEN,VERCEL_ORG_ID,VERCEL_PROJECT_ID(configured in thestagingenvironment in repo settings).Test plan
get_sent_streamsbut appears inget_archived_sent_streamscleanup_streamremoves data for a cancelled streamstagingbranch and verify Vercel deploys with staging contract ID🤖 Generated with Claude Code