Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | task_list: Implement basic task listrefactor | Jamie Murphy | 2023-02-16 | 2 | -0/+152 |
| | | | | Currently, only adding and removing tasks from the list is supported | ||||
* | cargo: Add IndexMap | Jamie Murphy | 2023-02-16 | 2 | -0/+2 |
| | | | | Needed to sort the task lists | ||||
* | provider: Remove unused parent functions | Jamie Murphy | 2023-02-16 | 1 | -39/+3 |
| | | | | There is no reason a provider won't implement their own functions here | ||||
* | local_provider: Implement remove_task | Jamie Murphy | 2023-02-16 | 1 | -7/+94 |
| | | | | | | | This adds support for deleting tasks from the database, as well provides support for removing tasks created by tests. Testing functions now leave no trace if successful, while `assert!()`ing their work, to verify that the async functions are working properly | ||||
* | provider: Add remove_task vfunction | Jamie Murphy | 2023-02-16 | 1 | -4/+81 |
| | | | | | | This function will remove a task from whatever storage provider is being used, however it is up to the UI to remove all references to the GtdTask (usually by refreshing the view, or deleting the taskrows) | ||||
* | task: Fix Queryable creation bugs | Jamie Murphy | 2023-02-16 | 1 | -13/+13 |
| | | | | | The property names were misspelled, and the Setter functions for some Option<> properties didn't accept Option<> inputs | ||||
* | local_provider: Fix test suite | Jamie Murphy | 2023-02-13 | 1 | -2/+2 |
| | | | | gtk::test only works with the custom run_in_mainloop function, who knew | ||||
* | task: Use a RNG to create IDs, instead of just the time | Jamie Murphy | 2023-02-13 | 1 | -4/+14 |
| | | | | | This means that even in an automated environment (like the test suite), IDs will still be different. | ||||
* | cargo: Add random number generator | Jamie Murphy | 2023-02-13 | 2 | -1/+56 |
| | | | | Used for generating random IDs, to prevent collisions | ||||
* | local_provider: Switch to VFuncs | Jamie Murphy | 2023-02-12 | 2 | -53/+92 |
| | | | | Currently, the tests *must* be ran sequentially | ||||
* | provider: Setup Async VFuncs | Jamie Murphy | 2023-02-12 | 1 | -11/+199 |
| | | | | | Instead of just working with the ProviderImpl trait, this allows me to write functions inside the Provider that can call derived code | ||||
* | cargo: Remove async-trait | Jamie Murphy | 2023-02-12 | 2 | -13/+0 |
| | | | | We have a custom PinnedFuture type that handles async for us | ||||
* | local_provider: Implement update_task | Jamie Murphy | 2023-02-12 | 2 | -5/+49 |
| | | | | | | Currently, the tests fail due to a concurrency issue. This is not an concern, because the concurrency system being used right now will be switched to a better system to prevent these issues | ||||
* | provider: Add update_task async function | Jamie Murphy | 2023-02-12 | 1 | -1/+9 |
| | |||||
* | local_provider: Setup database if needed | Jamie Murphy | 2023-02-12 | 1 | -4/+11 |
| | | | | | When running the database for the first time, or if I ever make a chagne to the database, we should be able to run all the migrations by default | ||||
* | task: Configure priority and created properties | Jamie Murphy | 2023-02-12 | 1 | -3/+29 |
| | | | | | Use `construct` and `construct_only` to get these properties to behave, and add tests for it | ||||
* | cargo: Add diesel_migrations | Jamie Murphy | 2023-02-12 | 2 | -0/+34 |
| | | | | This will allow me to actually setup the database locally | ||||
* | local_provider: Support creating tasks | Jamie Murphy | 2023-02-12 | 1 | -19/+47 |
| | |||||
* | task: Setup Task for being used with Diesel | Jamie Murphy | 2023-02-12 | 1 | -25/+91 |
| | | | | | Implement the Queryable trait, as well as fix some properties to match the database | ||||
* | provider: Add async create_task function | Jamie Murphy | 2023-02-12 | 1 | -1/+5 |
| | |||||
* | database: Update Tasks table | Jamie Murphy | 2023-02-12 | 2 | -6/+6 |
| | | | | | Some of this will need to be changed at some point, but for now, this works | ||||
* | cargo: Add async crates | Jamie Murphy | 2023-02-12 | 2 | -0/+41 |
| | | | | | async-trait and futures are used to handle the Provider's async functions | ||||
* | local_provider: Setup Database Pool | Jamie Murphy | 2023-02-12 | 1 | -3/+65 |
| | | | | | | Right now all we're doing is creating a ConnectionPool, because I'd rather not open the database every time I needed a change, and we should keep it around. | ||||
* | task: Use a NaiveDateTime for Completed | Jamie Murphy | 2023-02-12 | 1 | -3/+14 |
| | | | | | According to the RFC, Completed is the date and time a task was completed at. I don't know why, but we're trying to be compliant | ||||
* | database: Setup Tasks table | Jamie Murphy | 2023-02-12 | 5 | -0/+38 |
| | |||||
* | cargo: Add diesel | Jamie Murphy | 2023-02-12 | 2 | -0/+166 |
| | |||||
* | build: Add Rust-specific config | Jamie Murphy | 2023-02-12 | 4 | -1/+28 |
| | | | | This is currently only used for passing the datadir | ||||
* | engine: Create Provider List | Jamie Murphy | 2023-02-12 | 1 | -3/+13 |
| | | | | | In the future, I'll probably do something with this, but for now, we can store the providers in the Engine | ||||
* | providers: Create LocalProvider scaffold | Jamie Murphy | 2023-02-12 | 3 | -0/+55 |
| | | | | | While this provider does nothing, it provides a Scaffold for what a provider should do to create itself | ||||
* | provider: Switch to making Provider subclassable | Jamie Murphy | 2023-02-12 | 1 | -17/+8 |
| | | | | | | Instead of storing something that implements ProviderImpl, Provider itself should be the lower-level class, and an actual provider should subclass Provider | ||||
* | rust: Use stable instead of nightly | Jamie Murphy | 2023-02-12 | 1 | -1/+1 |
| | |||||
* | project: Update to Properties macro | Jamie Murphy | 2023-02-12 | 2 | -143/+67 |
| | |||||
* | utils: Switch to using Anyhow | Jamie Murphy | 2023-02-12 | 1 | -39/+7 |
| | |||||
* | cargo: Update dependencies | Jamie Murphy | 2023-02-12 | 2 | -103/+138 |
| | |||||
* | engine: Remove unused feature | Jamie Murphy | 2023-02-12 | 1 | -2/+0 |
| | |||||
* | po: Update Translation Files | Jamie Murphy | 2023-02-12 | 1 | -0/+1 |
| | |||||
* | build: Fix bindings.h not available | Jamie Murphy | 2023-02-12 | 2 | -3/+6 |
| | |||||
* | engine: Rust work | Jamie Murphy | 2023-02-12 | 8 | -1/+696 |
| | |||||
* | project: Implement suggestions from checks | Jamie Murphy | 2023-02-12 | 11 | -21/+26 |
| | |||||
* | project: Update builds, include code checks | Jamie Murphy | 2023-02-12 | 9 | -15/+706 |
| | |||||
* | project: Introduce Rust | Jamie Murphy | 2023-02-12 | 10 | -2/+1001 |
| | |||||
* | main: Remove useless ensure_types | Jamie Murphy | 2023-02-12 | 2 | -9/+0 |
| | |||||
* | gtd-menu-button: Remove GtdMenuButton | Jamie Murphy | 2023-02-12 | 6 | -1165/+0 |
| | | | | It's not used anywhere in the code | ||||
* | utils: Remove gtd-utils-private | Jamie Murphy | 2023-02-12 | 1 | -29/+0 |
| | |||||
* | gtd-workspace: Remove workspaces and implement in GtdWindow | Jamie Murphy | 2023-02-12 | 13 | -1297/+621 |
| | |||||
* | project: Update buildsystem | Jamie Murphy | 2023-02-12 | 8 | -60/+27 |
| | |||||
* | gtd-utils: Remove private headers | Jamie Murphy | 2023-02-12 | 3 | -4/+6 |
| | | | | There's no public-facing API anymore, so no need for private code | ||||
* | gtd-list-model: Remove unused models | Jamie Murphy | 2023-02-12 | 4 | -1159/+0 |
| | |||||
* | project: Remove GtdAnimation | Jamie Murphy | 2023-02-12 | 35 | -8239/+47 |
| | | | | The custom animation code was never really touched in-tree, and AdwAnimation exists for any future animation work | ||||
* | gtd-activatable: Remove Activatable interface | Jamie Murphy | 2023-02-12 | 6 | -247/+1 |
| | | | | Without plugins, this is a useless interface |