1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-07-24 07:39:41 +02:00
mealie/frontend/lib/api/user
Jacob Corn e1d3a247c7
feat: random sort option for front page (#2363)
* Add hook for random sorting

* Add random sorting to front page

* Add multiple tests for random sorting.

* Be extra sure that all recipes are returned.

* Too stable random. seed doesn't reach backend.

* add timestamp to useRecipeSearch

* Update randomization tests for timestamp seeding

* ruff cleanup

* pass timestamp separately in getAll

* remove debugging log items

* remove timestamp from address bar

* remove defaults from backend timestamps

* timestamp should be optional

* fix edge case: query without timestamp

* similar edge case: no timestamp in pagination

* ruff :/

* better edge case handling

* stabilize random search test w/more recipes

* better pagination seeding

* update pagination seed test

* remove redundant random/seed check

* Test for api routes to random sorting.

* please the typing gods

* hack to make query parameters throw correct exc

* ruff

* fix validator message typo

* black reformatting

---------

Co-authored-by: Hayden <64056131+hay-kot@users.noreply.github.com>
2023-05-29 16:56:20 -08:00
..
recipes feat: random sort option for front page (#2363) 2023-05-29 16:56:20 -08:00
backups.ts chore: frontend testing setup (#1739) 2022-10-22 11:51:07 -08:00
email.ts chore: frontend testing setup (#1739) 2022-10-22 11:51:07 -08:00
group-cookbooks.ts chore: frontend testing setup (#1739) 2022-10-22 11:51:07 -08:00
group-event-notifier.ts chore: frontend testing setup (#1739) 2022-10-22 11:51:07 -08:00
group-mealplan-rules.ts chore: frontend testing setup (#1739) 2022-10-22 11:51:07 -08:00
group-mealplan.ts chore: frontend testing setup (#1739) 2022-10-22 11:51:07 -08:00
group-migrations.ts chore: frontend testing setup (#1739) 2022-10-22 11:51:07 -08:00
group-multiple-purpose-labels.ts chore: frontend testing setup (#1739) 2022-10-22 11:51:07 -08:00
group-reports.ts chore: frontend testing setup (#1739) 2022-10-22 11:51:07 -08:00
group-seeder.ts chore: frontend testing setup (#1739) 2022-10-22 11:51:07 -08:00
group-shopping-lists.ts Feature: Shopping List Label Section Improvements (#2090) 2023-02-21 18:58:41 -09:00
group-tasks.ts chore: frontend testing setup (#1739) 2022-10-22 11:51:07 -08:00
group-webhooks.ts chore: frontend testing setup (#1739) 2022-10-22 11:51:07 -08:00
groups.ts chore: frontend testing setup (#1739) 2022-10-22 11:51:07 -08:00
ocr.ts chore: frontend testing setup (#1739) 2022-10-22 11:51:07 -08:00
organizer-categories.ts chore: frontend testing setup (#1739) 2022-10-22 11:51:07 -08:00
organizer-tags.ts chore: frontend testing setup (#1739) 2022-10-22 11:51:07 -08:00
organizer-tools.ts chore: frontend testing setup (#1739) 2022-10-22 11:51:07 -08:00
recipe-bulk-actions.ts chore: frontend testing setup (#1739) 2022-10-22 11:51:07 -08:00
recipe-foods.ts chore: frontend testing setup (#1739) 2022-10-22 11:51:07 -08:00
recipe-units.ts chore: frontend testing setup (#1739) 2022-10-22 11:51:07 -08:00
upload.ts chore: frontend testing setup (#1739) 2022-10-22 11:51:07 -08:00
user-registration.ts chore: frontend testing setup (#1739) 2022-10-22 11:51:07 -08:00
users.ts chore: frontend testing setup (#1739) 2022-10-22 11:51:07 -08:00
utils.ts chore: frontend testing setup (#1739) 2022-10-22 11:51:07 -08:00