Skip to content

Added the Edit Priority functionality in the Task Section#180

Merged
its-me-abhishek merged 2 commits into
CCExtractor:mainfrom
Rustix69:feat/edit-priority-task
Nov 15, 2025
Merged

Added the Edit Priority functionality in the Task Section#180
its-me-abhishek merged 2 commits into
CCExtractor:mainfrom
Rustix69:feat/edit-priority-task

Conversation

@Rustix69
Copy link
Copy Markdown
Contributor

Description

Added the ability to edit task priority directly from the task details dialog. Previously, the priority field was read-only and could not be modified from the frontend. Now users can easily update task priorities (High, Medium, Low, or None) with a simple dropdown selection.

Changes:

  • Added priority editing functionality to task details dialog

  • Implemented dropdown selector with priority options (None, High, Medium, Low)

  • Integrated with existing /modify-task backend endpoint

  • Added save/cancel actions with visual feedback (toast notifications)

  • Priority changes sync immediately with Taskwarrior

  • Fixes: Make Task Model Fields Editable on Frontend and Backend #166

Checklist

  • Ran npx prettier --write . (for formatting)
  • Ran gofmt -w . (for Go backend) - N/A, frontend-only changes
  • Ran npm test (for JS/TS testing)
  • Verified no linter errors
  • Build completed successfully

Additional Notes

Features:

  • Inline editing with pencil icon to activate edit mode
  • Dropdown select with clear priority labels: None, High (H), Medium (M), Low (L)
  • Check (✓) button to save changes
  • Cancel (✗) button to discard changes
  • Toast notifications for success/error feedback
  • Matches existing UI patterns for tag and description editing
Screencast.from.2025-11-14.00-58-28.webm

Part of Field Editability Initiative:
This PR is part of the larger effort to make task fields editable from the frontend. Priority was chosen as an early implementation because the backend /modify-task endpoint already supports it.

Files Modified:

  • frontend/src/components/HomeComponents/Tasks/hooks.ts
  • frontend/src/components/HomeComponents/Tasks/Tasks.tsx

Copy link
Copy Markdown
Collaborator

@its-me-abhishek its-me-abhishek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@its-me-abhishek its-me-abhishek merged commit 7f5188a into CCExtractor:main Nov 15, 2025
4 checks passed
ShivaGupta-14 pushed a commit to ShivaGupta-14/ccsync that referenced this pull request Dec 25, 2025
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.

Make Task Model Fields Editable on Frontend and Backend

2 participants