Skip to content

chore: remove dead code + stop shipping dev sample WAVs - #35

Merged
EnesYilmazcode merged 1 commit into
mainfrom
claude/funny-hawking-930hed
Jul 15, 2026
Merged

EnesYilmazcode merged 1 commit into
mainfrom
claude/funny-hawking-930hed

Conversation

@EnesYilmazcode

Copy link
Copy Markdown
Owner

Fixes #22. Fixes #20.

Lean-down (#22)

Delete provably-dead code (each verified with a repo-wide grep — referenced only at its own definition):

  • useStarredTracks, usePlaylist hooks (useLibrary.js)
  • .backbtn, .searchbar__clear, .view__head--row CSS rules
  • --dock-h unused custom property

storageEstimate is kept — it's no longer dead (the import quota check from #26 uses it), exactly the trap flagged in the issue.

PWA hygiene (#20)

The public/samples/*.wav tones are dev-only seed fixtures but shipped in the build because they live in public/. Added a build-only Vite plugin that strips dist/samples from the production output (~2.7 MB the user never plays).

The other two #20 checklist items are intentionally skipped: a GitHub Pages deploy workflow is moot (the deploy is Firebase, per #2), and iOS splash screens are cosmetic (the dark background_color already covers the launch).

Verification

Check Result
Production build succeeds ✅
dist/samples absent after build ✅ (stripped)
Deleted CSS gone from bundle ✅
public/samples intact for dev ✅ (5 files)
Dev renders library + search + rows, no errors ✅

🤖 Generated with Claude Code


Generated by Claude Code

Lean-down (#22): delete the two never-imported hooks useStarredTracks and
usePlaylist, three unused CSS rules (.backbtn, .searchbar__clear,
.view__head--row), and the unused --dock-h custom property. (storageEstimate is
kept — it's now used by the import quota check.)

PWA hygiene (#20): the public/samples/*.wav tones are dev-only seed fixtures
but shipped in the build because they live in public/. Add a build-only Vite
plugin that strips dist/samples from the production output (~2.7MB). The other
#20 checklist items are intentionally skipped: a GitHub Pages deploy workflow
is moot (the deploy is Firebase), and iOS splash screens are cosmetic (the dark
background_color already covers the launch).

Verified: production build succeeds with dist/samples absent and the deleted
CSS gone from the bundle; dev still renders the library, search, and rows with
no errors.

Fixes #22. Fixes #20.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FkDKh1Uo1a4D7n5wCKdcKF
@EnesYilmazcode
EnesYilmazcode merged commit 827b00c into main Jul 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants