Create a new board mode called 'Status Selection Mode'. #11

Closed
opened 2024-01-09 10:53:00 +00:00 by dananglin · 0 comments
Owner

Overview

At the moment the user move cards between statuses using an implementation of tview's List primitive on a separate page. This issue is to completely replace this with a new concept called board modes.

The existing 'move page' will be replaced with a new board mode called 'Status Selection'. This mode is invoked when the user presses the m key on the selected card. The user can then use the normal navigation keys to cycle through the board's statuses. When the user presses the Enter key the card will be moved to the selected status.

Implementation

  • Create a new type called boardMovement.
  • Create a new type called boardMode.
  • Declare new board modes normal and selection.
  • When initialising the UI, ensure the board mode is set to normal.
  • Create a new UI field to record the card ID and the two status IDs.
  • When pressing m on card, note the current focused card ID and focused selection ID. Change board Mode to selection.
  • When in selection mode, change the border colour of the selected state.
  • When the Enter key is pressed, move the card to the selected status. Once done, change the board mode back to normal and refresh the UI.
  • To exit out of state selection mode, press the ESC key.
### Overview At the moment the user move cards between statuses using an implementation of tview's `List` primitive on a separate page. This issue is to completely replace this with a new concept called `board modes`. The existing 'move page' will be replaced with a new board mode called 'Status Selection'. This mode is invoked when the user presses the `m` key on the selected card. The user can then use the normal navigation keys to cycle through the board's statuses. When the user presses the `Enter` key the card will be moved to the selected status. ### Implementation - [x] Create a new type called `boardMovement`. - [x] Create a new type called `boardMode`. - [x] Declare new board modes `normal` and `selection`. - [x] When initialising the UI, ensure the board mode is set to `normal`. - [x] Create a new UI field to record the card ID and the two status IDs. - [x] When pressing `m` on card, note the current focused card ID and focused selection ID. Change board Mode to `selection`. - [x] When in `selection` mode, change the border colour of the selected state. - [x] When the `Enter` key is pressed, move the card to the selected status. Once done, change the board mode back to `normal` and refresh the UI. - [x] To exit out of state selection mode, press the `ESC` key.
dananglin added reference board-mode-state-selection 2024-01-09 10:53:15 +00:00
dananglin self-assigned this 2024-01-09 10:53:27 +00:00
dananglin added this to the v0.1.0 milestone 2024-01-12 14:30:23 +00:00
dananglin added this to the The Pelican Project project 2024-01-12 14:36:00 +00:00
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: apollo/pelican#11
No description provided.