-
Notifications
You must be signed in to change notification settings - Fork 491
feat: Allow drag-to-create dependencies between any non-completed features #656
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
feat: Allow drag-to-create dependencies between any non-completed features #656
Conversation
…tures Previously, the card drag-to-create-dependency feature only worked between backlog features. This expands the functionality to allow creating dependency links between features in any status (except completed). Changes: - Make all non-completed cards droppable for dependency linking - Update drag-drop hook to allow links between any status - Add status badges to the dependency link dialog for better context
…ag-dependencies-TzgyI
Summary of ChangesHello @stefandevo, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly enhances the flexibility of dependency management within the board view. By allowing users to create dependencies between any non-completed features, it streamlines workflow and provides a more intuitive experience for managing interconnected tasks. The addition of status badges in the dependency linking dialog further improves clarity and user understanding during the process. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
|
Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. 📝 WalkthroughWalkthroughThis PR expands droppable targets to all non-completed features (not just backlog), prevents linking if either feature is completed, and adds StatusBadge displays to the dependency-link dialog for dragged and target features. Changes
Sequence DiagramsequenceDiagram
participant User
participant Card as Kanban Card
participant Hook as Drag-Drop Hook
participant Dialog as Dependency Dialog
User->>Card: Drag feature card
Card->>Hook: Request drop validation for target
Hook->>Hook: Check statuses (forbid if either completed)
Hook-->>Card: Allow or deny drop
Card->>Dialog: Open dependency link dialog (on allowed drop)
Dialog->>Dialog: Render StatusBadge for dragged & target features
User->>Dialog: Confirm create dependency
Dialog->>Hook: Create dependency link
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request enhances the feature dependency creation by allowing links between any non-completed features, improving user flexibility. The changes include modifications to kanban-card.tsx, use-board-drag-drop.ts, and dependency-link-dialog.tsx to implement this functionality and provide better context through status badges. I have identified one critical issue regarding potential logical errors in the dependency linking logic.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@apps/ui/src/components/views/board-view/dialogs/dependency-link-dialog.tsx`:
- Around line 15-16: The file imports StatusBadge via a relative path; change
this to import StatusBadge from the shared package export instead (e.g., from
the appropriate `@automaker/`* package) and, if StatusBadge is not already
exported from that package, add a re-export in the package's public API (barrel)
so StatusBadge is available for import; update the import statement in
dependency-link-dialog.tsx to use the shared-package import and ensure any
build/type exports (index.ts) include StatusBadge so the repo rule is satisfied.
Summary
Expands the card drag-to-create-dependency feature to work between any non-completed features, not just backlog features.
Closes #612
Changes
kanban-card.tsxuse-board-drag-drop.tsdependency-link-dialog.tsxTest Plan
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.