Feature/save load localstorage#754
Open
Flux07-gezz wants to merge 2 commits into
Open
Conversation
|
@Flux07-gezz is attempting to deploy a commit to the magic-peach1's projects Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
|
Contributor
👋 Thanks for your PR, @Flux07-gezz!Welcome to Reframe — a browser-based video editor built for everyone 🎬
What happens next
Quick checklist
Useful links
Happy coding! 🎉 |
72cc50f to
20c9dae
Compare
20c9dae to
bc0d699
Compare
Contributor
Author
|
Hey @magic-peach! 👋 Just wanted to give you a heads-up that PR #754 is ready for review — it implements the save/load project state feature using localStorage (closes #686 and #688) . Here's a quick summary of what's in it:
All CI checks are passing. Would love to get your feedback whenever you get a chance! 🙏 |
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.
Description
This PR introduces a client-side project state serialization and restoration framework utilizing browser
localStorageunder the versioned keyreframe-projects-v1. Because Reframe functions as a static export application, this enables persistent timeline editing progress across browser reloads without requiring an external database backend.Key Changes:
src/hooks/useVideoEditor.ts: CreatedsaveProject(),listProjects(),loadProject(), anddeleteProject()hooks wrapped in safe error boundaries to avoid browser storage quota crashes.src/components/VideoEditor.tsx: Constructed clean, responsive Save and Load action modals matching Reframe's structural design language.jsx-a11y/click-events-have-key-eventsandno-static-element-interactionschecks. RemovedautoFocushooks to maintain cross-device usability.Note: Due to standard browser memory limitations, raw video binary files/blobs are intentionally not stringified. A dynamic UX callout banner has been integrated into the restoration modal to remind users to re-select their source file after state hydration.
Related Issue
Closes #688
Closes #686
Type of Contribution
Participant Info
Screen Recording
Recording / Loom link: ## Checklist
bun run lintpasses (no ESLint errors) — Verified clean locally with npm run lintbunx tsc --noEmitpasses (no TypeScript errors) — Verified clean locally with npx tsc --noEmitaria-label/ accessible namesconsole.logstatements left in