72 Commits

Author SHA1 Message Date
514c600bb1 Integration tests covering 6 main scenarios
Covers
- Add
- Select
- Select Top/Bottom
- Move
- Edit
- Delete
2023-06-17 12:35:17 +07:00
d23f458444 Redesign UI, project stats panel, show project name, fixes and refactorings 2023-06-16 15:14:39 +07:00
a98b82f3e4 Get rid of some clones. Return Oks from all arm branches 2023-06-16 10:18:29 +07:00
a479b72a29 Refactor task edit by wrapping focus with int-enum, remove some .clone()'s 2023-06-15 20:44:25 +07:00
41778accdc Random clean up 2023-06-15 19:21:01 +07:00
f951e500f1 Bubble up all db errors. Implement Deref and DerefMut for DBConn 2023-06-15 16:32:23 +07:00
f5b39592a4 Fix bug in moving and deleting a task. Remove some unwraps 2023-06-15 15:54:18 +07:00
dba1e8a640 DONE Refactoring methods: Dedup into single function and fix odds and ends 2023-06-15 14:06:05 +07:00
02ad7c3da6 WIP Refactoring methods: Fix borrow checker issues 2023-06-15 12:06:50 +07:00
940e07d72c WIP Refactoring methods: Move everything into app.rs 2023-06-15 11:53:28 +07:00
a3e3fa6551 WIP Refactoring methods: Got it to compile and it mostly works 2023-06-14 22:33:19 +07:00
c00500a4e1 WIP Refactoring methods: Move stuff from input to app 2023-06-14 21:53:38 +07:00
71f12ec7f9 WIP Refactoring methods: Merge Project into State, add DBConn struct with impl 2023-06-14 19:13:24 +07:00
4accf41c45 Fix colors and style, condense some logic. Fix task_idx when moving task 2023-06-14 17:38:23 +07:00
d85bb5a77b Remove async dep 2023-06-14 11:13:03 +07:00
c2e3f0e70a Save column/task selections in a few other options 2023-06-14 10:54:19 +07:00
4e0195e132 Pedantic clippy 2023-06-13 23:00:28 +07:00
7c2249ed08 Selected column and task now persist. Reworked the borrowing for task edit 2023-06-13 22:51:04 +07:00
c030984d51 Extract funcs from input-check to reduce nesting and make pedantic clippy happy 2023-06-13 16:32:46 +07:00
c3255c97f5 Pedantic clippy pass 2023-06-13 15:59:24 +07:00
7fe20e6ae8 Run migrations on first creation, fix a bunch of panics 2023-06-13 15:50:16 +07:00
6cbba10325 Ignore db path 2023-06-13 15:12:19 +07:00
293113949b Simplified dbpath cli argument handling 2023-06-13 15:11:25 +07:00
d7eb3fb47a Save new sort order when moving tasks to different columns 2023-06-13 14:47:34 +07:00
403572723c Formatting 2023-06-13 12:45:57 +07:00
00ac0c351d Update and move task order up/down, read ids, more column helper methods 2023-06-13 12:41:37 +07:00
4477bac258 Add/delete tasks, read task id from db 2023-06-12 22:25:58 +07:00
076c87c792 WIP: Switch to rusqlite 2023-06-12 21:36:00 +07:00
8393ed610f Read tasks from db on startup 2023-06-10 21:48:57 +07:00
535f332a81 WIP: Fetch all tasks 2023-06-10 13:48:20 +07:00
a8e3a44816 Install sqlx, basic select 2023-06-10 11:12:23 +07:00
5d3e69d679 rustfmt 2023-06-10 11:12:17 +07:00
e3ce612ca3 Use a macro to concat the keybindings at compile time 2023-06-10 10:11:33 +07:00
09177ddbae Simplify keybindings and description. Add g and G movements. Remove -d flag 2023-06-09 15:49:52 +07:00
c6343a4805 Run and fix pedantic clippy and 2018 idioms 2023-06-09 13:26:29 +07:00
db92090916 Exit 0 if the user presses Ctrl+d when prompted for db name 2023-06-08 17:37:04 +07:00
6e5dcebc2e Small cleanup 2023-06-08 17:30:47 +07:00
f081238e33 Prompt the user for a project name if it can't find the database file 2023-06-08 17:26:01 +07:00
bc81c05f1f Using clap to parse path to database 2023-06-08 15:54:39 +07:00
b2bf10f260 Scroll columns with a lot of tasks 2023-06-08 10:31:54 +07:00
6a323d06c1 Create or open file. Save on add/remove/edit task 2023-06-07 23:34:40 +07:00
e7564f8f82 Take DB path from cli arg, marker emoji for currently selected task 2023-06-07 13:26:39 +07:00
88990089c2 Move task state getter to column methods 2023-06-07 11:22:19 +07:00
78cb7fe84a You can now edit an existing task 2023-06-06 21:59:18 +07:00
bef0836184 WIP: Edit an existing task 2023-06-06 21:38:36 +07:00
da10719250 Fix task edit border and rename some symbols 2023-06-06 21:03:19 +07:00
fc237b9f29 Remove task with D, move methods to column struct, select next/previous 2023-06-06 12:49:34 +07:00
be4fc3566d Buttons to create or cancel the task entry 2023-06-06 11:17:13 +07:00
61feafaf7e Highlight which text area is currently selected 2023-06-05 11:44:59 +07:00
ef90532d12 WIP: TextArea form to add a new TODO item, switch to ratatui 2023-06-05 11:24:18 +07:00