Skip to content

refactor: organize ui logic - #55

Merged
hi-ogawa merged 38 commits into
mainfrom
audio-utils
Jul 12, 2026
Merged

refactor: organize ui logic#55
hi-ogawa merged 38 commits into
mainfrom
audio-utils

Conversation

@hi-ogawa

@hi-ogawa hi-ogawa commented Jul 12, 2026

Copy link
Copy Markdown
Owner

finally de-slop

Move audio decoding and worker lifecycle management out of the app component, and colocate the worker entry point with the audio implementation.

Co-authored-by: OpenCode <noreply@opencode.ai>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 12, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
demucs-onnx 40d798e Commit Preview URL

Branch Preview URL
Jul 12 2026, 10:09 AM

hi-ogawa and others added 7 commits July 12, 2026 17:51
Co-authored-by: OpenCode <noreply@opencode.ai>
Add the application query client and express file decoding as a mutation while preserving latest-selection callback behavior.

Co-authored-by: OpenCode <noreply@opencode.ai>
Add a global React Query mutation error fallback and clear transient decode status locally when decoding fails.

Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>

# Conflicts:
#	packages/app/src/app.tsx
@hi-ogawa hi-ogawa changed the title refactor: extract browser audio utilities refactor: organize ui logic Jul 12, 2026
hi-ogawa and others added 20 commits July 12, 2026 18:04
Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>
Use React Query mutation state for the separation lifecycle while preserving progress updates and worker cancellation.

Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>
Derive rendered outputs from separation mutation data and tie object URL cleanup to that data lifecycle.

Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>
Remove the unused run abort controller and clear failed progress through the mutation lifecycle.

Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>
Return run timing with mutation data and derive visible status from the latest async action.

Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>
Render decoding feedback with the audio picker and separation completion with the run action.

Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>
hi-ogawa and others added 10 commits July 12, 2026 18:45
Co-authored-by: OpenCode <noreply@opencode.ai>
Represent four-stem output as a null target stem and reset persisted preferences with storage v2.

Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>
Remove placeholder progress and leave the bar empty until measured work begins.

Co-authored-by: OpenCode <noreply@opencode.ai>
Use the v2 storage key and nullable two-stems preference introduced by the simplified preference schema.

Co-authored-by: OpenCode <noreply@opencode.ai>
@hi-ogawa
hi-ogawa merged commit 7bdb73a into main Jul 12, 2026
2 checks passed
@hi-ogawa
hi-ogawa deleted the audio-utils branch July 12, 2026 10:17
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