Merged
Conversation
Major refactoring of frontend codebase to improve modularity: Transfer modules (frontend/src/js/transfer/): - opfsHandler.js (139 lines) - OPFS storage operations - etrCalculator.js (97 lines) - Speed tracking + ETR - fileSender.js (207 lines) - File sending with Worker - fileReceiver.js (320 lines) - File receiving + auto-download - queueManager.js (132 lines) - Queue ops + drag/drop - transferUI.js (219 lines) - Queue item HTML - fileHandler.js (43 lines) - Thin orchestrator (was 841 lines, -95%) Feature modules (frontend/src/js/features/): - chat/: chatPanel, chatMessages, chatEvents - theme/: index.js - settings/: settingsData, settingsUI - invite/: inviteModal - zip/: zipModal - contact/: contactModal UI modules (frontend/src/js/ui/): - streaming.js - Screen share UI - drawer.js - Side drawer - modals.js (242 lines, was 808, -70%) - view.js (316 lines, was 700, -55%) Key improvements: - Single responsibility per module - Better testability - Improved maintainability - Code reuse via imports
Moved getSettingsSummary to features/settings/settingsData.js Format: 'Sounds: On • Analytics: On • Theme: Light • Animation: Basic • Font: Default • Auto-Download: Off • PPTX Preview: Ask • Safe Mode (OPFS): Off'
fileReceiver.js where incomingFileInfo could be null during EOF or chunk processing. Also fixed opfsHandler.js to avoid aggressive file clearing which caused NoModificationAllowedError.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Major refactoring of frontend codebase to improve modularity:
Transfer modules (frontend/src/js/transfer/):
Feature modules (frontend/src/js/features/):
UI modules (frontend/src/js/ui/):
Key improvements:
Some changes were also made to docs to reflect the changes.