Commit Graph

500 Commits

Author SHA1 Message Date
Savanni D'Gerinel 2d7fbb9a4b Add the placeholders for game review and settings 2024-02-28 04:42:57 +00:00
Savanni D'Gerinel 3a5cb17e09 Extract notification receiving into an observer 2024-02-28 04:42:57 +00:00
Savanni D'Gerinel f6c82cbcb0 Ensure the game_view_model handler aborts when the view_model gets dropped 2024-02-28 04:42:57 +00:00
Savanni D'Gerinel 74b00d94b1 Set up the notifications pattern for view models 2024-02-28 04:42:57 +00:00
Savanni D'Gerinel ddf83b3018 GameViewModel now subscribes directly to the Core 2024-02-28 04:42:57 +00:00
Savanni D'Gerinel a1f41a440f Remove typeshare from kifu 2024-02-28 04:42:57 +00:00
Savanni D'Gerinel e838f601ca Set up a placeholder for the GameViewModel 2024-02-28 04:42:57 +00:00
Savanni D'Gerinel 1b0a90a332 Create the placeholder for the database view model 2024-02-28 04:42:57 +00:00
Savanni D'Gerinel 4dc6e3151b Remove everything related to the kifu typescript code 2024-02-28 04:42:57 +00:00
Savanni D'Gerinel 79cec6e21d Switch to async channels and disable most of the existing runtime api 2024-02-28 04:42:57 +00:00
Savanni D'Gerinel 32cc74edfa Set up gio settings 2024-02-28 04:42:57 +00:00
Savanni D'Gerinel d3d3260091 Create a flake that can run the Kifu app 2024-02-28 04:42:57 +00:00
Savanni D'Gerinel a1441f7bb1 Bump versions to 0.6.0 2024-02-19 18:47:48 -05:00
Savanni D'Gerinel 9e7350b087 Add an about page that calls out gtk-rs and the GUI development book 2024-02-19 18:41:38 -05:00
Savanni D'Gerinel 0032f16422 Resolve the duplicate widget insertion warning 2024-02-19 18:04:45 -05:00
Savanni D'Gerinel a5d51dab70 Hugely improve the historical view formatting 2024-02-19 17:56:48 -05:00
Savanni D'Gerinel c24a5f515f Set up CSS styles around the date range picker 2024-02-19 17:27:02 -05:00
Savanni D'Gerinel d70ca08db2 Correctly set the date range picker when initializing the historical view 2024-02-19 16:47:10 -05:00
Savanni D'Gerinel 55b6327d42 Open the welcome screen if the database is not available 2024-02-19 16:27:11 -05:00
Savanni D'Gerinel 1c2f40c868 Apply clippy suggestions 2024-02-19 16:14:08 -05:00
Savanni D'Gerinel 1527942f9c Add support for DurationWorkout and SetRep, finishing the legacy importer 2024-02-19 14:24:52 -05:00
Savanni D'Gerinel 7ba758b325 Build an application that can read the legacy record data structure 2024-02-19 13:27:19 -05:00
Savanni D'Gerinel aed4735209 Add some documentation around the quit action 2024-02-19 12:05:21 -05:00
Savanni D'Gerinel c14b20b79e Set up an application quit action group
This ties together a menu item, closing the main window, and Ctrl-Q into
the same action, which is to quit the application.
2024-02-19 11:58:01 -05:00
Savanni D'Gerinel 56ff5527ba Quit the application when the user clicks the header bar X 2024-02-19 09:49:20 -05:00
Savanni D'Gerinel f7f55d74fd Bump fitnesstrax to v0.5.0 2024-02-18 17:58:52 -05:00
Savanni D'Gerinel 843924afef Wrap the list view within a scrolled window 2024-02-18 22:19:39 +00:00
Savanni D'Gerinel 86d7ca0b01 Change TextEntry to a builder pattern 2024-02-18 22:19:39 +00:00
Savanni D'Gerinel d137ee2481 Apply clippy 2024-02-18 22:19:39 +00:00
Savanni D'Gerinel 74dbb58ed9 Extract the date range picker and enable the quick picker 2024-02-18 22:19:39 +00:00
Savanni D'Gerinel 9a18496c95 Apply the value of a date field to the historical view
Date fields can now be updated and their values retrieved. So now I have added a button that retrieves the range of the date field and updates the historical view in response to them.
2024-02-18 22:19:39 +00:00
Savanni D'Gerinel 01776a534e Start setting up date range widgets 2024-02-18 22:19:39 +00:00
Savanni D'Gerinel b33d17c256 Start building an internally editable date field 2024-02-18 22:19:39 +00:00
Savanni D'Gerinel ab59eedef5 Fitnesstrax v0.4.1 2024-02-12 10:14:55 -05:00
Savanni D'Gerinel 4dd6afeae7 Add the desktop shortcut and the gsettings schema to the fitnesstrax installation 2024-02-12 09:15:47 -05:00
Savanni D'Gerinel cb2bec4287 First pass at an installer override 2024-02-10 12:28:12 -05:00
Savanni D'Gerinel 5a93c4fdcd Bump the fitnesstrax version to 0.4.0 2024-02-09 22:52:34 -05:00
Savanni D'Gerinel 6e5cbc0930 Ensure there is a button for every workout type 2024-02-09 22:40:29 -05:00
Savanni D'Gerinel 73a5ab89a3 Rename BikeRide to Biking
This just generally feels more comfortable, especially when put in conjuction with the other activity types
2024-02-09 08:24:01 -05:00
Savanni D'Gerinel 291dc32fe5 Show summaries of all time-distance workouts 2024-02-09 08:22:12 -05:00
Savanni D'Gerinel b5c42e3ac3 Add the activity type selector to the time-distance widget 2024-02-09 08:17:10 -05:00
Savanni D'Gerinel 6394d89331 Create new records with the date of the view model 2024-02-08 22:11:46 -05:00
Savanni D'Gerinel 38b1e62b60 Add the ability to edit the time on a time_distance record 2024-02-08 21:58:22 -05:00
Savanni D'Gerinel 4acf034b8d Clean up warnings and remove printlns 2024-02-08 19:01:56 -05:00
Savanni D'Gerinel 1aff203afc Reload data when the user saves on the DayEdit panel
This required some big overhauls. The view model no longer takes records. It only takes the date that it is responsible for, and it will ask the database for records pertaining to that date. This means that once the view model has saved all of its records, it can simply reload those records from the database. This has the effect that as soon as the user moves from DayEdit back to DayDetail, all of the interesting information has been repopulated.
2024-02-08 19:01:56 -05:00
Savanni D'Gerinel 9fc9d2b758 Create Duration and Distance structures to handle rendering
These structures handle parsing and rendering of a Duration and a Distance, allowing that knowledge to be centralized and reused. Then I'm using those structures in a variety of places in order to ensure that the information gets rendered consistently.
2024-02-08 10:30:14 -05:00
Savanni D'Gerinel 76f4b31466 Show existing time/distance workout rows in day detail and editor 2024-02-08 10:23:47 -05:00
Savanni D'Gerinel 73052a0694 Save new time/distance records
This sets up a bunch of callbacks. We're starting to get into Callback Hell, where there are things that need knowledge that I really don't want them to have.

However, edit fields for TimeDistanceEdit now propogate data back into the view model, which is then able to save the results.
2024-02-08 10:20:57 -05:00
Savanni D'Gerinel 2c42c35dfe Build the facilities to add a new time/distance workout
This adds the code to show the new records in the UI, plus it adds them to the view model. Some of the representation changed in order to facilitate linking UI elements to particular records. There are now some buttons to create workouts of various types, clicking on a button adds a new row to the UI, and it also adds a new record to the view model. Saving the view model writes the records to the database.
2024-02-08 09:44:58 -05:00
Savanni D'Gerinel afe693fe10 Make emseries::Record copyable 2024-02-08 09:18:55 -05:00