Commit graph

5 commits

Author SHA1 Message Date
d532c86475
feat: add support for deleting status columns
All checks were successful
/ test (pull_request) Successful in 29s
/ lint (pull_request) Successful in 3m48s
Add support for deleting status columns. If a column is not empty then
it will not be deleted and the user will see an error message in the
status bar.

Part of apollo/pelican#24
2024-01-18 22:36:33 +00:00
c1bb834a7f
feat(ui): add support for creating status columns
All checks were successful
/ test (pull_request) Successful in 34s
/ lint (pull_request) Successful in 46s
This commit adds support for creating new status columns. When the user
is in the 'board edit' mode, they can press the 'c' key to create a new
column. When a new column is created it automatically assumes the last
position on the board. We will add support later on to allow the user to
re-arrange the columns on the board.

Part of apollo/pelican#22
2024-01-17 17:10:36 +00:00
f9fbda92ee
feat: add support for editing status columns
All checks were successful
/ test (pull_request) Successful in 33s
/ lint (pull_request) Successful in 42s
2024-01-17 13:53:54 +00:00
46f5f07105
feat(ui): show board's mode next to the status bar
All checks were successful
/ test (pull_request) Successful in 32s
/ lint (pull_request) Successful in 41s
Add a TextView primitive next to the status bar that displays the
board's current mode. In this commit the baseFlex is replaced with a
Grid primitive to prevent the need to add more Flex primitives.

Part of apollo/pelican#23
2024-01-17 11:12:06 +00:00
dbb37a1060
refactor: a lil bit of refactoring
Changes:

- Rename the UI type to App.
- Rename NewUI() to NewApp().
- Move init functions to internal/ui/ui.go.
- Call app's initialisation function from main.
- Move the keymapping functionalities to internal/ui/keymappings.go.
- Add documentation for updateColumn() and updateAllColumns().
- Applied gofmt.

Also:

- Build(mage): optionally include -a and/or -v during go build.
2024-01-14 13:46:42 +00:00