Skip to content

refactor: improved selector ui#206

Merged
pikann merged 1 commit into
masterfrom
refactor/improve-selector-ui
Jun 22, 2026
Merged

refactor: improved selector ui#206
pikann merged 1 commit into
masterfrom
refactor/improve-selector-ui

Conversation

@pikann

@pikann pikann commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Summary

Consolidates the task-type badge/dropdown into one reusable TaskTypeSelector component, replacing five near-identical Popover/DropdownMenu implementations duplicated across the task list, board, properties panel, and subtask views. Also brings view-settings-panel.tsx's native <select> dropdowns in line with the rest of the app's selector styling.

  • task-type-selector.tsx (new) — shared badge + dropdown for picking a task's type, with a read-only badge mode for non-editable contexts.
  • task-row.tsx, add-task-row.tsx, properties-panel.tsx, and subtask-row.tsx now render TaskTypeSelector instead of their own inline popover markup.
  • add-task-row.tsx gains label/placeholder props so subtasks-section.tsx can reuse it for "Add subtask" instead of a bespoke inline form, removing ~100 lines of duplicated state and markup.
  • view-settings-panel.tsx's DynamicSelect and the "Sort by" control now use a Popover-based dropdown with a checkmark for the selected option, instead of a native <select>, matching the styling used everywhere else.
  • Widened the "Type" column in the task list (w-16w-28) to fit the new badge.

Net effect: -140 lines, no functional changes besides the <select> → custom-dropdown swap in view settings.

@pikann pikann merged commit 08f864d into master Jun 22, 2026
4 checks passed
@pikann pikann deleted the refactor/improve-selector-ui branch June 22, 2026 08:44
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.

1 participant