summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* task_list: Implement basic task listrefactorJamie Murphy2023-02-162-0/+152
| | | | Currently, only adding and removing tasks from the list is supported
* cargo: Add IndexMapJamie Murphy2023-02-162-0/+2
| | | | Needed to sort the task lists
* provider: Remove unused parent functionsJamie Murphy2023-02-161-39/+3
| | | | There is no reason a provider won't implement their own functions here
* local_provider: Implement remove_taskJamie Murphy2023-02-161-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 vfunctionJamie Murphy2023-02-161-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 bugsJamie Murphy2023-02-161-13/+13
| | | | | The property names were misspelled, and the Setter functions for some Option<> properties didn't accept Option<> inputs
* local_provider: Fix test suiteJamie Murphy2023-02-131-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 timeJamie Murphy2023-02-131-4/+14
| | | | | This means that even in an automated environment (like the test suite), IDs will still be different.
* cargo: Add random number generatorJamie Murphy2023-02-132-1/+56
| | | | Used for generating random IDs, to prevent collisions
* local_provider: Switch to VFuncsJamie Murphy2023-02-122-53/+92
| | | | Currently, the tests *must* be ran sequentially
* provider: Setup Async VFuncsJamie Murphy2023-02-121-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-traitJamie Murphy2023-02-122-13/+0
| | | | We have a custom PinnedFuture type that handles async for us
* local_provider: Implement update_taskJamie Murphy2023-02-122-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 functionJamie Murphy2023-02-121-1/+9
|
* local_provider: Setup database if neededJamie Murphy2023-02-121-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 propertiesJamie Murphy2023-02-121-3/+29
| | | | | Use `construct` and `construct_only` to get these properties to behave, and add tests for it
* cargo: Add diesel_migrationsJamie Murphy2023-02-122-0/+34
| | | | This will allow me to actually setup the database locally
* local_provider: Support creating tasksJamie Murphy2023-02-121-19/+47
|
* task: Setup Task for being used with DieselJamie Murphy2023-02-121-25/+91
| | | | | Implement the Queryable trait, as well as fix some properties to match the database
* provider: Add async create_task functionJamie Murphy2023-02-121-1/+5
|
* database: Update Tasks tableJamie Murphy2023-02-122-6/+6
| | | | | Some of this will need to be changed at some point, but for now, this works
* cargo: Add async cratesJamie Murphy2023-02-122-0/+41
| | | | | async-trait and futures are used to handle the Provider's async functions
* local_provider: Setup Database PoolJamie Murphy2023-02-121-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 CompletedJamie Murphy2023-02-121-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 tableJamie Murphy2023-02-125-0/+38
|
* cargo: Add dieselJamie Murphy2023-02-122-0/+166
|
* build: Add Rust-specific configJamie Murphy2023-02-124-1/+28
| | | | This is currently only used for passing the datadir
* engine: Create Provider ListJamie Murphy2023-02-121-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 scaffoldJamie Murphy2023-02-123-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 subclassableJamie Murphy2023-02-121-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 nightlyJamie Murphy2023-02-121-1/+1
|
* project: Update to Properties macroJamie Murphy2023-02-122-143/+67
|
* utils: Switch to using AnyhowJamie Murphy2023-02-121-39/+7
|
* cargo: Update dependenciesJamie Murphy2023-02-122-103/+138
|
* engine: Remove unused featureJamie Murphy2023-02-121-2/+0
|
* po: Update Translation FilesJamie Murphy2023-02-121-0/+1
|
* build: Fix bindings.h not availableJamie Murphy2023-02-122-3/+6
|
* engine: Rust workJamie Murphy2023-02-128-1/+696
|
* project: Implement suggestions from checksJamie Murphy2023-02-1211-21/+26
|
* project: Update builds, include code checksJamie Murphy2023-02-129-15/+706
|
* project: Introduce RustJamie Murphy2023-02-1210-2/+1001
|
* main: Remove useless ensure_typesJamie Murphy2023-02-122-9/+0
|
* gtd-menu-button: Remove GtdMenuButtonJamie Murphy2023-02-126-1165/+0
| | | | It's not used anywhere in the code
* utils: Remove gtd-utils-privateJamie Murphy2023-02-121-29/+0
|
* gtd-workspace: Remove workspaces and implement in GtdWindowJamie Murphy2023-02-1213-1297/+621
|
* project: Update buildsystemJamie Murphy2023-02-128-60/+27
|
* gtd-utils: Remove private headersJamie Murphy2023-02-123-4/+6
| | | | There's no public-facing API anymore, so no need for private code
* gtd-list-model: Remove unused modelsJamie Murphy2023-02-124-1159/+0
|
* project: Remove GtdAnimationJamie Murphy2023-02-1235-8239/+47
| | | | The custom animation code was never really touched in-tree, and AdwAnimation exists for any future animation work
* gtd-activatable: Remove Activatable interfaceJamie Murphy2023-02-126-247/+1
| | | | Without plugins, this is a useless interface