mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
1.2 KiB
1.2 KiB
Decomposition Context
- Task: Decompose
js/ui/profileModalController.js(6258 lines). - Reason: Largest grandfathered file, highly coupled UI logic.
- Goal: Extract "Block List" and "Edit Profile" logic into separate controllers to reduce line count by >200 lines and improve maintainability.
- Target Branch:
unstable(viaagents/daily/...branch). - Plan:
- Extract
ProfileBlockListControllerto manage blocked users list, add/remove blocks. - Extract
ProfileEditControllerto manage profile editing form, uploads, and saving. - Update
ProfileModalControllerto delegate to these new controllers.
- Extract
Selected Blocks
-
Block List Management:
populateBlockedListhandleAddBlockedCreatorhandleRemoveBlockedCreatorensureBlockListStatusElementsetBlockListLoadingStatemutateBlocklist- Event listeners and DOM cache for block list elements.
-
Edit Profile Management:
handleEditProfilepopulateEditPanecheckStorageForUploadshandleUploadhandleSaveProfile- Event listeners and DOM cache for edit profile elements.