feat: make hosted ShotSync a compact sync gallery - #10
Merged
Merged
Conversation
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.
The hosted homepage currently puts quota information, upload forms and device configuration ahead of everyday transfers. Replace that dashboard with the compact gallery used by the self-hosted experience: a toolbar for text/images, refresh and settings, followed immediately by content tiles.
Image selection, drag/drop and paste upload directly; text uses a composer; opening a tile exposes copy/download/share/delete. Account, retention, quotas and device tokens move into settings. Visible pages sync every 25 seconds, pause in the background and stop after repeated failures. Lazy previews share a two-request queue and retain cached content across list refreshes.
Keep existing Supabase memory-JWT/refresh, recovery codes and API protocols. Guard session changes and dialog lifetimes so late requests cannot upload across accounts, erase a new draft or expose a dismissed device token. No backend/schema changes or new dependencies.
Validation: TypeScript, targeted UI tests, independent code review and real-browser Worker/D1/R2 integration. Browser coverage includes image selection/paste, text, cached previews, cross-device refresh, viewer copy/download/share/delete, settings/device tokens, mobile/desktop overflow, account recovery, 90-day/permanent retention and late-response regressions. Only external provider/Turnstile boundaries are mocked.