mealie/frontend/lib/api
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
..
admin feature: add password reset token endpoint to the admin panel (#2171) 2023-03-12 12:33:36 -08:00
base fix: 2148 infinite scroll on search (#2173) 2023-02-26 10:20:26 -09:00
public chore: frontend testing setup (#1739) 2022-10-22 11:51:07 -08:00
types Feature: Global Timeline (#2265) 2023-04-25 09:46:00 -08:00
user feat: random sort option for front page (#2363) 2023-05-29 16:56:20 -08:00
client-admin.ts chore: frontend testing setup (#1739) 2022-10-22 11:51:07 -08:00
client-public.ts chore: frontend testing setup (#1739) 2022-10-22 11:51:07 -08:00
client-user.ts chore: frontend testing setup (#1739) 2022-10-22 11:51:07 -08:00
config.ts chore: frontend testing setup (#1739) 2022-10-22 11:51:07 -08:00
index.ts chore: frontend testing setup (#1739) 2022-10-22 11:51:07 -08:00