feat: add AI Design Session Replay & Prompt Evolution Timeline System#1151
Open
surjeetkumar8006 wants to merge 2 commits into
Open
feat: add AI Design Session Replay & Prompt Evolution Timeline System#1151surjeetkumar8006 wants to merge 2 commits into
surjeetkumar8006 wants to merge 2 commits into
Conversation
|
@surjeetkumar800 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
👋 Thanks for your PR, @surjeetkumar8006!Welcome to Reframe — a browser-based video editor built for everyone 🎬 What happens next
Quick checklist
Useful links
Happy coding! 🎉 |
Contributor
✅ PR Format Check Passed — @surjeetkumar8006Basic format checks passed. A maintainer will review your code changes. This does not mean the PR is approved — it just means the format is correct. |
Author
|
Hi @maintainers ✅ Tests passing Would appreciate a review and merge when possible. Thank you 🚀 |
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.
Closes #1138
✨ Overview
Currently, Reframe focuses on client-side resizing and video adjustments, but there was no structured way to visualize, track, or replay layout edits and prompt iterations over time. This PR introduces a client-side AI Design Session Replay & Prompt Evolution Timeline System that allows users to write natural language styling prompts, scrub/replay their edit history step-by-step, compare changes side-by-side (diffs), bookmark milestone states, and recover layout sessions automatically.
🎨 Proposed Features
src/lib/sessionHistory.ts) that interprets compound natural language prompts (e.g.,"make it vertical, increase contrast and add text 'Vlog'") and updates settings.localStorageon page reload.🛠️ Technical Details
src/lib/sessionHistory.ts: State representation, localStorage handlers, recipe diff calculations, and client-side AI compiler.src/components/AICopilotTimeline.tsx: Premium dashboard component with tabs for Copilot prompts, Evolution Timeline/Replay, Parameter Diff, and Stats.src/components/__tests__/sessionHistory.test.ts: 7 detailed unit tests verifying compiler behavior and diff logic.src/components/VideoEditor.tsx: Intercepts manual edits with a 1.2s debounce to record checkpoints, integrates the timeline switch tab, and handles errors with rollbacks.🧪 Testing & Verification
npm run testusing Vitest. All 84 tests in the project passed successfully.npm run buildwith zero TypeScript or ESLint errors.