[decompose] extract ProfileHashtagController from js/ui/profileModalController.js

Extracts all hashtag preference related logic into a new controller
`js/ui/profileModal/ProfileHashtagController.js` to reduce the size of `js/ui/profileModalController.js` and improve maintainability.

- Moves `normalizeHashtagTag`, `formatHashtagTag`, `getResolvedHashtagPreferences`, `setHashtagStatus`, `refreshHashtagBackgroundStatus`, `populateHashtagPreferences`, `renderHashtagList`, `sanitizeHashtagList`, `createHashtagListItem`, `persistHashtagPreferences`, `handleAddHashtagPreference`, `handleRemoveHashtagPreference`, `handleHashtagPreferencesChange`, `describeHashtagPreferencesError`.
- Updates `ProfileModalController` to delegate to `ProfileHashtagController`.
- Reduces `js/ui/profileModalController.js` by ~600 lines.
- Updates file size baseline in `scripts/check-file-size.mjs`.

Passes `npm run lint` and `npm run test:unit`.

Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
google-labs-jules[bot]andPR0M3TH3AN committed 2026-02-13 01:39:22 +00:00
1 parent 7c1e2c0f6e
commit 5f1edebea7
5 files changed
+643 -670

No files matched your search

+2
View File
@@ -2,3 +2,5 @@ date,agent_name,prompt_file,status,branch,summary
2026-02-12,audit-agent,bitvid-audit-agent.md,completed,unstable,"Ran audit scripts, created initial reports"
2026-02-12,ci-health-agent,bitvid-ci-health-agent.md,completed,ai/ci-health-fix-watch-history-flake,"Fixed flaky test in watch-history.test.mjs using waitFor"
2026-02-12,const-refactor-agent,bitvid-const-refactor-agent.md,completed,ai/constants-refactor/daily-run,"Refactored timeouts in UI controllers and webtorrent.js to use canonical constants"
2026-02-13,decompose-agent,bitvid-decompose-agent.md,started,ai/decompose/daily-run,"Task claimed — execution beginning"
2026-02-13,decompose-agent,bitvid-decompose-agent.md,completed,ai/decompose/daily-run,"Extracted ProfileHashtagController from profileModalController.js, reducing file size by ~600 lines"
1 date agent_name prompt_file status branch summary
2 2026-02-12 audit-agent bitvid-audit-agent.md completed unstable Ran audit scripts, created initial reports
3 2026-02-12 ci-health-agent bitvid-ci-health-agent.md completed ai/ci-health-fix-watch-history-flake Fixed flaky test in watch-history.test.mjs using waitFor
4 2026-02-12 const-refactor-agent bitvid-const-refactor-agent.md completed ai/constants-refactor/daily-run Refactored timeouts in UI controllers and webtorrent.js to use canonical constants
5 2026-02-13 decompose-agent bitvid-decompose-agent.md started ai/decompose/daily-run Task claimed — execution beginning
6 2026-02-13 decompose-agent bitvid-decompose-agent.md completed ai/decompose/daily-run Extracted ProfileHashtagController from profileModalController.js, reducing file size by ~600 lines