Commit graph

16 commits

Author SHA1 Message Date
c5384ca719
checkpoint: a more performant shuffle func
All checks were successful
/ test (pull_request) Successful in 33s
/ lint (pull_request) Successful in 3m50s
2024-01-25 00:23:55 +00:00
fb764ad6dc
checkpoint: implemented a less complex looking moveAndShuffle function
All checks were successful
/ test (pull_request) Successful in 38s
/ lint (pull_request) Successful in 41s
2024-01-24 18:31:41 +00:00
68dcdae56d
added test cases for column repositioning
All checks were successful
/ test (pull_request) Successful in 34s
/ lint (pull_request) Successful in 35s
2024-01-24 01:09:56 +00:00
4286d8fcc2
checkpoint: column repositioning implementation 2024-01-23 23:58:04 +00:00
73547c49c6
refactor: add the Identity type
All checks were successful
/ test (pull_request) Successful in 32s
/ lint (pull_request) Successful in 36s
Add a new Identity type with the required methods so that now the board
types (Card, Status and soon Tag) can automatically satisfy the BoltItem
interface.
2024-01-23 19:42:35 +00:00
5189ebe7bb
refactor: remove duplicate write function in db
All checks were successful
/ test (pull_request) Successful in 40s
/ lint (pull_request) Successful in 42s
Remove the original 'Write' function from the db package and rename the
'WriteMany' function to 'Write' as it can already write one or many Bolt
items to the database.

Also update the test suites and add more coverage in the board package.
2024-01-23 18:31:01 +00:00
4e7eb77583
fix: add restrictions when setting IDs.
All checks were successful
/ test (pull_request) Successful in 40s
/ lint (pull_request) Successful in 43s
Main change:

Add restrictions when adding IDs for cards and statuses. Errors are
returned when an attempt is made to set an ID lower than 1, or an
attempt is made to set an ID that has already been set.

Additional changes:

- Error types in the board packages are now defined in errors.go.
- Small formatting to error messages.
2024-01-21 15:39:51 +00:00
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
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
f956b7da59
refactor: change content field to description
Change the content field to description for the card type in preparation
for supporting card notes.
2024-01-10 12:12:54 +00:00
c5a02bc703
fix: include the time in card's timestamp 2024-01-10 11:43:33 +00:00
af7f120616
style: gofmt
All checks were successful
/ test (pull_request) Successful in 29s
/ lint (pull_request) Successful in 37s
2023-12-12 14:52:03 +00:00
723e9d9d1e
feat: add timestamp for card creation
All checks were successful
/ test (pull_request) Successful in 29s
/ lint (pull_request) Successful in 36s
Add the timestamp for a created card in the format YYYY-MM-DD.
This is in preparation for the UI rework.
2023-12-12 14:42:45 +00:00
fc5fa7b0ca
feat(BREAKING): specify project path
All checks were successful
/ test (pull_request) Successful in 28s
/ lint (pull_request) Successful in 37s
This PR allows users to specify the path to the database file
Pelican now expects the user to specify the path to the project's
database file which allows users to open different projects.

This is a breaking change because Pelican no longer opens the
default path automatically. If no path is set then Pelican stops
with an error message.
2023-12-12 12:47:58 +00:00
b983f8930e
feat: add the pelican project 2023-05-06 12:49:40 +01:00