mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
1.2 KiB
1.2 KiB
Decomposition Todo
- Create
js/ui/profileModal/ProfileBlockListController.js- Import dependencies (
devLogger,userLogger,FALLBACK_PROFILE_AVATAR). - Implement
cacheDomReferences. - Implement
registerEventListeners. - Move
populateBlockedListlogic. - Move
mutateBlocklistlogic. - Move helper methods (
ensureBlockListStatusElement,setBlockListLoadingState).
- Import dependencies (
- Create
js/ui/profileModal/ProfileEditController.js- Import dependencies (
buildProfileMetadataEvent,buildPublicUrl,buildR2Key). - Implement
cacheDomReferences. - Implement
registerEventListeners. - Move
populateEditPanelogic. - Move
handleSaveProfilelogic. - Move
handleUploadlogic.
- Import dependencies (
- Update
js/ui/profileModalController.js- Import new controllers.
- Instantiate in
constructor. - Call
cacheDomReferencesandregisterEventListeners. - Delegate method calls (wrappers or direct usage).
- Remove extracted code.
- Verification
npm run lintnode scripts/run-targeted-tests.mjs tests/profile-modal-controller.test.mjs- Verify line count reduction.