feat(aluno): PRD-4 kebab menu + primary action on meus-treinos cards#181
Conversation
- kebab overflow (Editar/Excluir) on aluno treino card - iniciar promoted to primary full-width on mobile - excluir destructive moved inside menu (text-destructive) - empty state polish: icon + heading + subtext + CTA - font-headline applied on H3 - data-testids: treino-card, iniciar-treino, treino-kebab - split banner auto-hide into separate effect - parametrize useWorkoutCRUD mock to respect initialTreinos Co-Authored-By: Claude <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-Authored-By: Claude <noreply@anthropic.com>
|
Warning Review limit reached
Next review available in: 43 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
There was a problem hiding this comment.
1 issue found and verified against the latest diff
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
key auto-hide effect on bannerPlanName + showPlanBanner so timer refreshes when planName changes while banner already visible. Co-Authored-By: Claude <noreply@anthropic.com>
|
restore test improvements lost in squash merge of #181. Co-Authored-By: Claude <noreply@anthropic.com>



PRD-4 — Meus Treinos Action Hierarchy
Mobile action hierarchy on meus-treinos cards. Kebab menu + primary action + empty state polish. Zero data change.
Changes
Iniciar Treinopromoted to primary full-width on mobile. Editar/Excluir moved into shadcnDropdownMenukebab (⋮). Select dia on its own row above actions.text-destructivevariant inside menu, no longer beside primary CTA (mis-tap risk fixed).Criar primeiro treino). Reuses existing__new__editor trigger.font-headline(Outfit token from--font-headline) applied on H3. PRD-7 next/font wiring stays separate.data-testidontreino-card,iniciar-treino,treino-kebab,editar-treino,excluir-treino.showPlanBannerto satisfyreact-hooks/set-state-in-effect(scoped eslint-disable on the prop-derive effect).Tests
useWorkoutCRUDmock to respectinitialTreinosprop (was hardcoded 2 treinos, so empty-state path was never exercised — real coverage gap fixed).@/components/ui/dropdown-menu(Radix portal would be brittle).Gates
Spec
docs/superpowers/specs/2026-07-07-meus-treinos-kebab-design.md🤖 Generated with Claude Code
Summary by cubic
Implements PRD-4 on Meus Treinos cards: promotes Iniciar Treino as the primary mobile action and moves Editar/Excluir into a kebab menu. Adds a polished empty state and fixes banner auto-hide to reset on plan changes; no data changes.
New Features
DropdownMenu(@/components/ui/dropdown-menu), with Excluir marked destructive.__new__editor trigger).font-headlineon the card title; addsdata-testidhooks (treino-card,iniciar-treino,treino-kebab,editar-treino,excluir-treino). Aligns with Linear PRD-4 action hierarchy.Bug Fixes
bannerPlanName/showPlanBanner).Written for commit 9b67a30. Summary will update on new commits.