Add task priority enum and rename priority to rank#959
Open
SachaProbo wants to merge 1 commit intomainfrom
Open
Add task priority enum and rename priority to rank#959SachaProbo wants to merge 1 commit intomainfrom
SachaProbo wants to merge 1 commit intomainfrom
Conversation
Rename the existing integer `priority` field to `rank` across the entire stack (DB, Go, GraphQL, MCP, frontend) since it represents positional ordering within a state, not semantic importance. Add a new `priority` field with enum values URGENT, HIGH, MEDIUM, LOW exposed through all three API surfaces (GraphQL, MCP, CLI) with validation, create/update support, and a migration that defaults existing rows to MEDIUM. Update PriorityLevel component to accept the priority enum directly: LOW/MEDIUM/HIGH show 1/2/3 bars, URGENT shows a bang (!) icon. Add priority selector with icons to the task create/edit form dialog. Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rename the existing integer
priorityfield torankacross the entire stack (DB, Go, GraphQL, MCP, frontend) since it represents positional ordering within a state, not semantic importance.Add a new
priorityfield with enum values URGENT, HIGH, MEDIUM, LOW exposed through all three API surfaces (GraphQL, MCP, CLI) with validation, create/update support, and a migration that defaults existing rows to MEDIUM.Update PriorityLevel component to accept the priority enum directly: LOW/MEDIUM/HIGH show 1/2/3 bars, URGENT shows a bang (!) icon. Add priority selector with icons to the task create/edit form dialog.
Summary by cubic
Renamed the integer task priority to rank (positional order) and introduced a new priority enum (URGENT/HIGH/MEDIUM/LOW) across DB, services, and APIs. Updated the console with a priority selector and icons; migration defaults existing tasks to MEDIUM.
New Features
@probo/uiPriorityLevel to accept the enum; LOW/MEDIUM/HIGH render 1/2/3 bars and URGENT shows a bang; added a priority selector to the task form.Migration
Written for commit 52a46c5. Summary will update on new commits.