Commit graph

8 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
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
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
2e80c04917
tests: remove TestOpenDataBaseXDGDataDir 2023-12-12 13:08:41 +00:00
0326fce1e7
chore(db): remove unused function
Remove the function that sets the path to the (no longer supported)
default database file.
2023-12-12 13:04:50 +00:00
b983f8930e
feat: add the pelican project 2023-05-06 12:49:40 +01:00