Update task task-033
This commit is contained in:
parent
ebb3ab661b
commit
fb6697a052
|
|
@ -1,9 +1,10 @@
|
|||
---
|
||||
id: task-033
|
||||
title: Version History & Reversion System with Visual Diffs
|
||||
status: In Progress
|
||||
status: Done
|
||||
assignee: []
|
||||
created_date: '2025-12-04 21:44'
|
||||
updated_date: '2025-12-04 23:01'
|
||||
labels:
|
||||
- feature
|
||||
- version-control
|
||||
|
|
@ -46,3 +47,37 @@ Key features:
|
|||
- [ ] #9 User's last-seen state stored in localStorage for diff comparison
|
||||
- [ ] #10 Visual effects are subtle and non-intrusive
|
||||
<!-- AC:END -->
|
||||
|
||||
## Implementation Notes
|
||||
|
||||
<!-- SECTION:NOTES:BEGIN -->
|
||||
Implementation complete in feature/version-reversion worktree:
|
||||
|
||||
**Files Created:**
|
||||
- src/lib/versionHistory.ts - Core version history utilities
|
||||
- src/lib/permissions.ts - Role-based permission system
|
||||
- src/components/VersionHistoryButton.tsx - Time-rewind icon button
|
||||
- src/components/VersionHistoryPanel.tsx - Panel with 3 tabs
|
||||
- src/components/DeletedShapesOverlay.tsx - Floating deleted shapes indicator
|
||||
- src/hooks/useVersionHistory.ts - React hook for state management
|
||||
- src/hooks/usePermissions.ts - Permission context hook
|
||||
- src/css/version-history.css - Visual effects CSS
|
||||
|
||||
**Files Modified:**
|
||||
- src/ui/CustomToolbar.tsx - Added VersionHistoryButton
|
||||
- src/ui/components.tsx - Added DeletedShapesOverlay
|
||||
- src/css/style.css - Imported version-history.css
|
||||
- worker/worker.ts - Added /api/versions endpoints
|
||||
|
||||
**Features Implemented:**
|
||||
1. Time-rewind button next to star dashboard
|
||||
2. Version History Panel with Changes/Versions/Deleted tabs
|
||||
3. localStorage tracking of user's last-seen state
|
||||
4. Yellow glow animation for new shapes
|
||||
5. Dim grey effect for deleted shapes
|
||||
6. Floating indicator with restore options
|
||||
7. R2 integration for version snapshots
|
||||
8. Permission system (admin/editor/viewer roles)
|
||||
|
||||
Commit: 03894d2
|
||||
<!-- SECTION:NOTES:END -->
|
||||
|
|
|
|||
Loading…
Reference in New Issue