1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-07-24 15:49:42 +02:00
mealie/frontend/composables
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
..
api chore: frontend testing setup (#1739) 2022-10-22 11:51:07 -08:00
forms refactor: ♻️ rewrite admin CRUD interface for admins (#825) 2021-11-23 18:57:24 -09:00
partials fix: 2148 infinite scroll on search (#2173) 2023-02-26 10:20:26 -09:00
recipe-page feat: improve automatic ingredient linking (#1836) 2022-12-29 13:00:31 -09:00
recipes feat: random sort option for front page (#2363) 2023-05-29 16:56:20 -08:00
store chore: frontend testing setup (#1739) 2022-10-22 11:51:07 -08:00
use-locales feat: server side search (#2112) (#2117) 2023-02-11 21:26:10 -09:00
use-users Feature: Global Timeline (#2265) 2023-04-25 09:46:00 -08:00
use-backups.ts chore: frontend testing setup (#1739) 2022-10-22 11:51:07 -08:00
use-context-presents.ts refator: reuse search page component (#2240) 2023-03-12 12:59:28 -08:00
use-copy.ts Localize hard-coded texts (#2044) 2023-01-28 16:39:51 -09:00
use-group-cookbooks.ts fix: cookbook ordering in frontend (#2180) 2023-02-26 11:48:32 -09:00
use-group-mealplan.ts feat(lang): more localization(#2219) 2023-03-21 11:45:27 -08:00
use-group-webhooks.ts feat(lang): more localization(#2219) 2023-03-21 11:45:27 -08:00
use-groups.ts chore: frontend testing setup (#1739) 2022-10-22 11:51:07 -08:00
use-passwords.test.ts fix: eslint errors and failing tests (#2078) 2023-01-29 13:01:41 -09:00
use-passwords.ts fix: eslint errors and failing tests (#2078) 2023-01-29 13:01:41 -09:00
use-router.ts Fix more typing issues (#928) 2022-01-15 17:38:11 -09:00
use-toast.ts refactor(frontend): 🚧 Migrate Dashboard to Nuxt 2021-08-07 15:12:25 -08:00
use-user.ts chore: frontend testing setup (#1739) 2022-10-22 11:51:07 -08:00
use-utils.ts Feature/group items editor (#1064) 2022-03-17 10:30:10 -08:00
use-validators.ts chore: frontend testing setup (#1739) 2022-10-22 11:51:07 -08:00