Skip to content

feat: add editable depends field to task details#211

Merged
its-me-abhishek merged 1 commit intoCCExtractor:mainfrom
Hell1213:feat/make-depends-field-editable
Nov 25, 2025
Merged

feat: add editable depends field to task details#211
its-me-abhishek merged 1 commit intoCCExtractor:mainfrom
Hell1213:feat/make-depends-field-editable

Conversation

@Hell1213
Copy link
Copy Markdown
Contributor

@Hell1213 Hell1213 commented Nov 19, 2025

Description

Makes the depends field editable in task details. Dependencies display as clickable badges showing task descriptions. Click a dependency to open that task's modal.

=> Contributes to: #166

Changes

  • Add depends field to task edit request model
  • Update edit task controller to handle depends parameter
  • Implement depends field modification in taskwarrior
  • Add depends field UI with inline editing
  • Display dependencies as badges with task descriptions
  • Implement clickable dependency badges that open corresponding task modal
  • Add searchable dropdown for adding dependencies
  • Add remove button on each dependency badge
  • Fix test cases to match depends field type

Checklist

  • Ran npx prettier --write . (for formatting)
  • Ran gofmt -w . (for Go backend)
  • Ran npm test (for JS/TS testing)
  • Added unit tests, if applicable
  • Verified all tests pass
  • Updated documentation, if needed

Additional Notes

  • Dependencies show as task descriptions, not UUIDs
  • Click dependency badge to navigate to that task
  • Search filters pending tasks when adding dependencies
  • Empty field shows blank for consistency

##Screenshots
Screenshot from 2025-11-25 12-57-59
Screenshot from 2025-11-25 12-58-33

** screen record

Screencast.from.2025-11-25.12-56-33.mp4
Screencast.from.2025-11-25.13-03-04.mp4

@Hell1213
Copy link
Copy Markdown
Contributor Author

Hey @its-me-abhishek,
I have finished making the depends field editable and opened the PR.
Whenever you get a moment, please take a look.

@its-me-abhishek
Copy link
Copy Markdown
Collaborator

Hi, in Taskwarrior dependencies are handled as a list, which means a single task can reference multiple others. Because of that, the PR should be adjusted to support more than one dependency.

For the UI, it would be clearer if each dependency is shown as a linked task entry display the dependent task’s description, and tapping it opens a dialog for that task. This can repeat recursively for each dependency.

For editing, a simple approach would be to add a plus icon on the right side of the dependencies section. Selecting it would open a searchable dropdown of existing tasks, allowing users to add any n number of tasks as a dependency ( while choosing using Plus icon, one can use checkboxes to add deps) then on collapsing the dropdown, one can see the task descriptions, similar to Tags, as dependencies.

Hope this clears things up!

@Hell1213
Copy link
Copy Markdown
Contributor Author

Hell1213 commented Nov 21, 2025

Hi, in Taskwarrior dependencies are handled as a list, which means a single task can reference multiple others. Because of that, the PR should be adjusted to support more than one dependency.

For the UI, it would be clearer if each dependency is shown as a linked task entry display the dependent task’s description, and tapping it opens a dialog for that task. This can repeat recursively for each dependency.

For editing, a simple approach would be to add a plus icon on the right side of the dependencies section. Selecting it would open a searchable dropdown of existing tasks, allowing users to add any n number of tasks as a dependency ( while choosing using Plus icon, one can use checkboxes to add deps) then on collapsing the dropdown, one can see the task descriptions, similar to Tags, as dependencies.

Hope this clears things up!

Got it, thanks for clarifying! I'll update the PR to:

Handle multiple dependencies (array instead of single string)
Show dependencies as clickable badges with task descriptions
Add a + icon with searchable dropdown for adding deps
Use checkboxes for multi-select, similar to how Tags work
Should have it ready soon.

Changed depends from string to array to support multiple dependencies.
Added UI to add/remove dependencies with search dropdown.
Made dependency badges clickable to navigate between related tasks.
Fixed layout so search box appears below dependency list.
@Hell1213 Hell1213 force-pushed the feat/make-depends-field-editable branch from 7a330e8 to 448b1fb Compare November 21, 2025 18:32
@Hell1213
Copy link
Copy Markdown
Contributor Author

@its-me-abhishek , PR is ready and everything should be fine now ,

You can now add/remove dependencies with a searchh dropdown, and click on dependency badges to navigate between related tasks.
Changed depends from string to array across backend and frontend.

@its-me-abhishek
Copy link
Copy Markdown
Collaborator

Please update the PR Description

@Hell1213
Copy link
Copy Markdown
Contributor Author

Please update the PR Description

Thank you for pointing it out ,
I’ve updated the description now.

@its-me-abhishek its-me-abhishek merged commit 1cee133 into CCExtractor:main Nov 25, 2025
4 checks passed
ShivaGupta-14 pushed a commit to ShivaGupta-14/ccsync that referenced this pull request Dec 25, 2025
Changed depends from string to array to support multiple dependencies.
Added UI to add/remove dependencies with search dropdown.
Made dependency badges clickable to navigate between related tasks.
Fixed layout so search box appears below dependency list.
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.

2 participants