Skip to content

TypeScript 6 upgrade + architectural deepening - #15

Merged
RubenGlez merged 2 commits into
mainfrom
ts6-upgrade
May 21, 2026
Merged

TypeScript 6 upgrade + architectural deepening#15
RubenGlez merged 2 commits into
mainfrom
ts6-upgrade

Conversation

@RubenGlez

Copy link
Copy Markdown
Owner

Summary

  • Upgrades TypeScript to 6.0.3 with updated tsconfig
  • Five architectural deepening passes on the main/renderer codebase
  • Doc accuracy pass on ARCHITECTURE.md and CLAUDE.md

Changes

TypeScript 6

  • Bumped typescript to 6.0.3, fixed tsconfig for TS6 compatibility

Architecture refactors

  • Extracted extractWaveformData from the library IPC handler into electron/main/audio/waveform.ts
  • Pushed getAllSamples filters down to SQL WHERE clauses (was O(n) in-memory scan)
  • Added applyProfileFormat to hardware/profiles.ts; removed duplicated ffmpeg config from ipc/packs.ts and ipc/audio.ts
  • Added analyzeAudioUrl URL cache; moved save-chops orchestration (analyze + persist) into library.saveChops store action
  • Added withLoading helper in src/stores/utils.ts; applied across all load-bracket store actions; fixed latent bug in library.fetchSamples where isLoading would stick on IPC error

Docs

  • Fixed export pipeline diagram (pointed at non-existent services/export.ts)
  • Updated state management description, hardware profiles section, audio analysis section
  • Updated CLAUDE.md current state (Phases 1+2 complete, Phase 3 mostly done) and full store list

RubenGlez added 2 commits May 21, 2026 09:14
- Move extractWaveformData to electron/main/audio/waveform.ts; WAV parsing no longer embedded in an IPC handler
- Push getAllSamples filters to SQL WHERE clauses; was O(n) full-table scan with in-memory filter
- Add applyProfileFormat to hardware/profiles.ts; callers no longer reach into profile.format.* directly, and the duplicate ffmpeg config across packs and audio IPC handlers is removed
- Add analyzeAudioUrl URL cache and move save-chops orchestration (analyze + persist) into the library store; AudioWaveform no longer owns that flow
- Add withLoading helper and apply it across all load-bracket actions; fixes a latent bug in library.fetchSamples where isLoading would stick on IPC error
@RubenGlez
RubenGlez merged commit 54ac088 into main May 21, 2026
2 checks passed
@RubenGlez
RubenGlez deleted the ts6-upgrade branch May 21, 2026 07:20
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