212 Commits

Author SHA1 Message Date
f173204d2d dev: use cursor for the get_all_recipes 2024-07-12 18:48:25 -04:00
1f90cc2ef6 feat: migrate user_data and app_state
from localstorage to indexeddb
2024-07-12 18:26:13 -04:00
ed44e929f4 refactor: cleanup and make our upgrade logic more robust 2024-07-12 18:05:20 -04:00
51d165a50b dev: indexeddb indexes on recipe category and serving_count 2024-07-12 17:51:25 -04:00
84cc2a2713 refactor: have two object stores 2024-07-12 01:27:55 -04:00
f75652befa fix: cannot have database at version 0 2024-07-12 00:45:03 -04:00
b93edd2701 dev: use indexdb instead of local storage in the storage layer 2024-07-12 00:45:03 -04:00
4767115da6 dev: Add indexeddb and a helper method for it 2024-07-12 00:45:03 -04:00
fe181fb102 cleanup: a bunch of warnings 2024-07-11 18:28:45 -04:00
113b03016f dev: Handle serving counts in the api 2024-07-11 18:04:48 -04:00
3e675b47f4 fix: Unsafe recursive object use 2024-07-01 15:52:37 -05:00
0ba5f18b22 Display current plan date at the top 2024-07-01 15:52:37 -05:00
a320351041 NOTE comment. 2024-07-01 15:52:37 -05:00
874a5fdb57 cargo fmt 2024-07-01 15:52:37 -05:00
94e1987f09 ui: more layout tweaks 2024-07-01 15:52:37 -05:00
a104ef5f47 ui: normalization and font tweaks 2024-07-01 15:52:37 -05:00
dac529e8e8 ui: Typography tweaks 2024-07-01 15:52:37 -05:00
6e0e00c7f3 docs: comments for the event handling in login 2024-07-01 15:52:37 -05:00
8942eb59a5 ui: Menu font sizes 2024-07-01 15:52:37 -05:00
c64605f9e7 maint: Use gloo_net directly 2024-07-01 15:52:37 -05:00
d7cea46427 fix: Issue with request blocking occuring on login 2024-07-01 15:52:37 -05:00
45737f24e4 UI: Cleansheet CSS redesign
Initial skeleton and layout is working.
Still needs a bunch of tweaks.
2024-07-01 15:52:37 -05:00
a399858728 maint: Cleanup a bunch of stuff
:wq
2023-11-25 22:22:18 -05:00
1432dcea13 feat: Use a web component
A more ergonomic number spinner on mobile.
A cleaner number spinner interface.
2023-11-25 22:20:42 -05:00
a3aa579fa5 feat: some additional js_lib stuff for logging 2023-11-25 22:20:42 -05:00
Augie Fackler
e30555aabe cleanup: remove redundant clone
```
warning: call to `.clone()` on a reference in this situation does nothing
   --> web/src/app_state.rs:441:86
    |
441 | ..., &local_store, original.clone()).await
    |                            ^^^^^^^^ help: remove this redundant call
    |
    = note: the type `sycamore::reactive::Signal<AppState>` does not implement `Clone`, so calling `clone` on `&sycamore::reactive::Signal<AppState>` copies the reference, which does not do anything and can be removed
```
2023-11-25 11:17:25 -05:00
0b7f513f27 fix: Issue when loading user state from local storage 2023-09-23 13:44:16 -04:00
db03d603c3 Store the use_staples setting in localstore 2023-07-24 20:56:30 -04:00
2ea0339ad1 LinearSignal as a helper type 2023-07-24 19:37:31 -04:00
b496cf9568 Store app state atomically as one json blob 2023-07-22 16:14:23 -05:00
806fdd2721 When we select a plan date store that date in the app_state 2023-05-31 15:56:16 -04:00
4f3cf8d825 Messaging mechanism 2023-03-28 19:34:37 -04:00
c2b8e79288 Remove extra recipe_title input 2023-03-27 17:35:00 -04:00
3ea6d4fe66 Fix bug with recipe category not updating 2023-03-25 08:55:30 -04:00
ba825258bb Utilize the plan_table for listing, deleting, and saving meal plans 2023-03-21 17:01:05 -04:00
6421b12e27 Update to the new base64 api 2023-02-27 20:09:12 -05:00
a3c08e94fb use bind:valueAsNumber 2023-02-11 11:46:04 -05:00
2f6375e381 Sort out recipe saving 2023-02-04 12:29:49 -05:00
b95b297deb Sort the meals in the meal plan by category 2023-02-04 12:06:16 -05:00
e02fcc82e1 recipe categorization 2023-01-29 19:55:43 -05:00
3f1e79b001 Fix reciper view rendering 2023-01-24 17:43:44 -05:00
80e93fa476 sort the plan dates in descending order in the ui 2023-01-19 08:35:13 -05:00
2267744087 Various bugfixes 2023-01-18 20:58:25 -05:00
47183b6e7a Add plan deletion to the UI 2023-01-18 20:06:03 -05:00
7549decc71 Save plans for date via api 2023-01-18 07:34:05 -05:00
0a68c3d51c Handle saving and loading for specific plan_dates 2023-01-17 21:06:18 -05:00
80b6126e10 UI for selecting a plan from the list 2023-01-17 19:42:48 -05:00
f808ca8585 Handle messages for selecting a plan_date 2023-01-17 19:21:37 -05:00
3f0836dad2 Load plan_dates during the load state phase 2023-01-17 13:44:09 -05:00
be74b24f6b Wire in the new plan api endpoints into HttpStore 2023-01-17 13:31:48 -05:00