feat(views): unify Edit Details and Quick Controls into Edit Task with draft UX - #50
Merged
Merged
Conversation
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.
Description
Consolidates the previously fragmented Edit Details (text modal) and Quick Controls (dropdowns panel) buttons on the Forum Task Thread Action Card into a single cohesive Edit Task interactive controls panel with clean Unsaved Draft UX styling.
Key Changes
Edit DetailsandQuick Controlsbuttons onTaskActionViewwith a singleEdit Taskbutton (task:edit:{task_id}).DiscordTaskWorkspaceAdapter.handle_actionso bothtask:editandtask:controlscustom IDs route to the unified controls panel.staged_titleandstaged_bodystaging toTaskQuickControlsView, with an Edit Title / Body modal button in Row 0 (TaskQuickEditTitleModal).Edit Draft: [SHORT_ID] Titlediscord.Color.gold()) signaling an in-progress draft⚠️ Unsaved Draft • Click 'Save Changes' to apply or 'Discard Changes' to cancel.Discard Changeswith danger styling (discord.ButtonStyle.danger) next toSave Changes(discord.ButtonStyle.success)._on_save_clickedcommits all modified fields (title, description, priority, assignee, due date, watchers) together and synchronizes thread title renames if modified.Verification
tests/test_task_buttons_unification.py(6 tests passing).docker compose up -d --build app).