refactor(watch-history): extract actor helpers from watchHistoryService (4/10)

File-size decomposition (no behavior change). Move getLoggedInActorKey,
getSessionActorKey, and ensureWatchHistoryExtensionPermissions (which depend only
on imported singletons, not module state) into js/watchHistoryActorHelpers.js, and
drop the now-unused getActiveSigner/requestDefaultExtensionPermissions/getApplication
imports from the service.

watchHistoryService.js: 1491 -> 1388 lines (below its original 1395 baseline;
re-recorded to 1386 to lock the reduction).

Build + full unit suite green.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
This commit is contained in:
thePR0M3TH3ANandClaude Opus 4.8 committed 2026-06-19 11:33:35 -04:00
1 parent b068854c94
commit 37a675392f
3 files changed
+126 -110

No files matched your search

+1 -1
View File
@@ -52,7 +52,7 @@ const GRANDFATHERED = {
"js/services/hashtagPreferencesService.js": 1434,
"js/nostr/publishHelpers.js": 1415,
"js/index.js": 1412,
"js/watchHistoryService.js": 1395,
"js/watchHistoryService.js": 1386,
"js/app/playbackCoordinator.js": 1376,
"js/feedEngine/stages.js": 1370,
"js/ui/views/VideoListView.js": 1359,