Skip to content

Commit

Permalink
Start caching search responses (#1132)
Browse files Browse the repository at this point in the history
* feat(migrations): add table for user notification

* feat(models): add new model for user notification

* feat(migrations): add new file for issue 1130 migrations

* refactor(backend): switch to new notification model

* refactor(frontend): extract component to add images to workout

* feat(frontend): allow uploading images for workout

* fix(frontend):  make btn to upload images to workout more indicative

* refactor(backend): change name of function

* feat(frontend): add pro validation for workout level images

* refactor(backend): change the location of inputs

* refactor(backend): parse value in service itself

* refactor(backend): do not use inline structs

* refactor(backend): new struct for empty cache values

* feat(backend): cache metadata search query

* refactor(backend): use new generics for getting cache value

* feat(backend): cache people search query

* refactor(backend): change names of functions

* fix(services/misc): use correct return types

* feat(backend): cache metadata group search query

* refactor(services/cache): change order of attributes

* refactor(backend): generic struct for cache key

* refactor(backend): more generic structs for cache key

* refactor(migrations): change name of module

* feat(frontend): add pro validation for workout level images

* feat(frontend): error handling when uploading image in current workout

* feat(frontend): display workout level images
  • Loading branch information
IgnisDa authored Dec 15, 2024
1 parent 127c40f commit ead24c6
Show file tree
Hide file tree
Showing 42 changed files with 915 additions and 552 deletions.
9 changes: 9 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions apps/frontend/app/lib/state/fitness.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export type InProgressWorkout = {
videos: Array<string>;
repeatedFrom?: string;
supersets: Superset[];
images: Array<string>;
images: Array<Media>;
updateWorkoutId?: string;
exercises: Array<Exercise>;
replacingExerciseIdx?: number;
Expand Down Expand Up @@ -209,8 +209,8 @@ export const currentWorkoutToCreateWorkoutInput = (
updateWorkoutTemplateId: currentWorkout.updateWorkoutTemplateId,
startTime: new Date(currentWorkout.startTime).toISOString(),
assets: {
images: [...currentWorkout.images],
videos: [...currentWorkout.videos],
images: currentWorkout.images.map((m) => m.key),
},
},
};
Expand Down
Loading

0 comments on commit ead24c6

Please sign in to comment.