drive-web
drive-web copied to clipboard
[PB-5542]: add versioning limits context and premium feature gating
Description
- Implement file version history sidebar with restore, delete, download, and batch operations
- Add Redux-based caching for file versions and limits to prevent redundant API calls
- Implement cache invalidation on version create, delete, and restore operations
- Add smart file replacement: creates versions when enabled, falls back to trash+upload otherwise
- Integrate premium feature lock UI with upgrade prompts in context menus
- Add extension filtering for version history (pdf, docx, xlsx, csv)
- Replace React Context API with Redux for consistent state management
- Optimize performance with React.memo and proper dependency management
- Update SDK to 1.11.22 with enhanced version management support
- Add internationalization support for version management (7 languages)
- Display version metadata including timestamps, sizes, and expiration dates
- Add date utilities for calculating days until version expiration
- Fix version timestamp display to use updatedAt instead of createdAt
Related Issues
Related Pull Requests
Checklist
- [x] Changes have been tested locally.
- [ ] Unit tests have been written or updated as necessary.
- [x] The code adheres to the repository's coding standards.
- [ ] Relevant documentation has been added or updated.
- [ ] No new warnings or errors have been introduced.
- [ ] SonarCloud issues have been reviewed and addressed.
- [ ] QA Passed