Skip to content

refactor: behavior-preserving hygiene (dead IPC, shared caches, DRY) - #13

Merged
harshabala merged 4 commits into
mainfrom
ref/hygiene-2026-10-06
Oct 9, 2026
Merged

harshabala merged 4 commits into
mainfrom
ref/hygiene-2026-10-06

Conversation

@harshabala

@harshabala harshabala commented Oct 6, 2026 •

Copy link
Copy Markdown
Owner

Shared catalog caches and message-router sendResponse path. Offline core, export V2, and enc:v1 keys are unchanged. CI build green.

Known deviations: Open Library cache is capped at 500 entries (was unbounded). After a known handler runs, the router always returns true so Chrome keeps the message channel. Both are low impact (eviction only after 500 distinct lookups; the service worker restarts regularly).

Draft; do not merge until reviewed.

harsha balakrishnan added 4 commits October 6, 2026 13:39
Remove dead movie/people counters that fetched the full library and
people list on every options-page mount. Unify nav glyphs and reuse
the archive JoinedItem type in Home, Stats, popup, and demo helper.
Museum plaques never rendered inLibrary, so the LIBRARY_UPDATED listener
and badge re-renders were wasted work. Share normalizeTitleKey between
book and screen detection, and collapse redundant candidate slices.
Extract BoundedTtlCache and fetchJsonWithTimeout for TMDb, OMDb,
Google Books, and Open Library. Unify message-router sendResponse
paths and collapse repeated LIBRARY_UPDATED broadcasts.
@harshabala
harshabala marked this pull request as ready for review October 9, 2026 05:38
@harshabala
harshabala merged commit 9f86692 into main Oct 9, 2026
1 check passed
@harshabala
harshabala deleted the ref/hygiene-2026-10-06 branch October 11, 2026 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant