feat(suggestions): menu de ações (editar/excluir) no clique direito d…#395
Conversation
…o card Clique direito sobre uma ideia no kanban admin abre um dialog enxuto com Editar ou Excluir (exclusão pede confirmação). Adiciona mutation deleteAdmin. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
📝 WalkthroughWalkthroughThe package version was bumped to 1.51.0, and the admin suggestions flow now includes a context-menu actions dialog, delete handling, and page/router wiring for edit and delete actions. ChangesSuggestion actions and deletion
Sequence Diagram(s)sequenceDiagram
participant Board as SuggestionsKanbanBoard
participant Page as "src/app/(authenticated)/admin/suggestions/page.tsx"
participant Dialog as IdeaActionsDialog
participant Router as "suggestions.deleteAdmin"
participant DB as "ctx.db.suggestion"
Board->>Page: onContextMenuSuggestion(suggestion)
Page->>Dialog: open selected suggestion
Dialog->>Page: onDelete()
Page->>Router: deleteAdmin({ id })
Router->>DB: ctx.db.suggestion.delete(...)
DB-->>Router: deleted record
Router-->>Page: { success: true, id }
Page->>Page: toast and refetch suggestions
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint install failed. For unrecoverable errors, disable the tool in CodeRabbit configuration. 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 |
…o card
Clique direito sobre uma ideia no kanban admin abre um dialog enxuto com Editar ou Excluir (exclusão pede confirmação). Adiciona mutation deleteAdmin.
Summary by CodeRabbit
New Features
Bug Fixes
Chores