-
Notifications
You must be signed in to change notification settings - Fork 902
Enable upload progress in web #1173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughRemoves the enableUploadProgress feature flag and its UI, updates CapCard duplicate disable logic to depend on mutation state or active upload, and simplifies the upload progress hook to use a direct enabled parameter without feature-flag gating. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor User
participant CapCard
participant Backend as API
User->>CapCard: Open • Action Menu
rect rgba(200,240,255,0.25)
note over CapCard: Disable "Duplicate" if pending or active upload
CapCard->>CapCard: disabled = duplicateMutation.isPending || cap.hasActiveUpload
end
User->>CapCard: Click Duplicate
alt not disabled
CapCard->>Backend: duplicateCap(capId)
Backend-->>CapCard: mutation result
else disabled
CapCard-->>User: No action (disabled)
end
sequenceDiagram
autonumber
participant Page
participant Hook as useUploadProgress
participant API
Page->>Hook: call(videoId, enabled)
alt enabled == true
Hook->>API: fetch upload progress (poll via refetchInterval)
API-->>Hook: progress data
Hook-->>Page: UploadProgress | null
else enabled == false
Hook-->>Page: null
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (4)
🧰 Additional context used📓 Path-based instructions (6)apps/web/**/*.{ts,tsx}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
apps/web/app/**/*.{tsx,ts}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
**/*.{ts,tsx,js,jsx,rs}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
**/*.{ts,tsx}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
**/*.{ts,tsx,js,jsx}📄 CodeRabbit inference engine (AGENTS.md)
Files:
apps/web/**/*.{ts,tsx,js,jsx}📄 CodeRabbit inference engine (AGENTS.md)
Files:
🧬 Code graph analysis (1)apps/web/app/s/[videoId]/_components/ProgressCircle.tsx (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
🔇 Additional comments (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary by CodeRabbit
New Features
Bug Fixes
Refactor