Commit graph

7 commits

Author SHA1 Message Date
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
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
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
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
b983f8930e
feat: add the pelican project 2023-05-06 12:49:40 +01:00