Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start caching search responses #1132

Merged
merged 26 commits into from
Dec 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
da4d7c7
feat(migrations): add table for user notification
IgnisDa Dec 14, 2024
566c364
feat(models): add new model for user notification
IgnisDa Dec 14, 2024
4947668
feat(migrations): add new file for issue 1130 migrations
IgnisDa Dec 14, 2024
bfd66cc
refactor(backend): switch to new notification model
IgnisDa Dec 14, 2024
fc339e0
refactor(frontend): extract component to add images to workout
IgnisDa Dec 14, 2024
3bc5b05
feat(frontend): allow uploading images for workout
IgnisDa Dec 14, 2024
ad51a89
fix(frontend): make btn to upload images to workout more indicative
IgnisDa Dec 14, 2024
a900ca7
refactor(backend): change name of function
IgnisDa Dec 14, 2024
8cf78ad
feat(frontend): add pro validation for workout level images
IgnisDa Dec 14, 2024
da3db72
refactor(backend): change the location of inputs
IgnisDa Dec 15, 2024
d83f28d
refactor(backend): parse value in service itself
IgnisDa Dec 15, 2024
1f83ffe
refactor(backend): do not use inline structs
IgnisDa Dec 15, 2024
baa5374
refactor(backend): new struct for empty cache values
IgnisDa Dec 15, 2024
d1a41aa
feat(backend): cache metadata search query
IgnisDa Dec 15, 2024
1cdafbb
refactor(backend): use new generics for getting cache value
IgnisDa Dec 15, 2024
b858a31
feat(backend): cache people search query
IgnisDa Dec 15, 2024
850f002
refactor(backend): change names of functions
IgnisDa Dec 15, 2024
5a5ad7a
fix(services/misc): use correct return types
IgnisDa Dec 15, 2024
a3f1f16
feat(backend): cache metadata group search query
IgnisDa Dec 15, 2024
0fb1cc0
refactor(services/cache): change order of attributes
IgnisDa Dec 15, 2024
02e25d0
refactor(backend): generic struct for cache key
IgnisDa Dec 15, 2024
4f724a3
refactor(backend): more generic structs for cache key
IgnisDa Dec 15, 2024
09dc542
refactor(migrations): change name of module
IgnisDa Dec 15, 2024
8c8ed9a
feat(frontend): add pro validation for workout level images
IgnisDa Dec 15, 2024
31bb350
feat(frontend): error handling when uploading image in current workout
IgnisDa Dec 15, 2024
81110be
feat(frontend): display workout level images
IgnisDa Dec 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading