feat: add table sorting, accessibility and session filters
CI / test (push) Successful in 3m18s

This commit is contained in:
strsv committed 2026-11-06 19:20:18 +03:00
1 parent a6db306847
commit 7e4fa74cd6
13 files changed
+363 -63

No files matched your search

+6
View File
@@ -70,6 +70,7 @@
| `min_review`, `max_review` | диапазон процента отзывов; без рейтинга исключаются |
| `duration` | `short` (≤8 ч), `medium` (8–25 ч), `long` (>25 ч) |
| `sort` | `name`, `hours`, `review`, `year`, `duration`, `added` |
| `dir` | `asc` или `desc` (по умолчанию зависит от `sort`) |
| `page` | с 1 |
| `per_page` | 12–120 (по умолчанию 60) |
@@ -234,10 +235,15 @@ Invoke-RestMethod "http://127.0.0.1:8765/api/games?genre=RPG&genre=Adventure&tag
"include_nostalgia": false,
"min_review": 65,
"allow_unknown": false,
"session": null,
"limit": 36
}
```
`session`: `short` (30 минут), `evening` (вечер), `weekend` (выходные) или `null`.
Это эвристика по тегам (Short/Casual/Roguelike, Story Rich/Atmospheric, Open World/RPG),
которая повышает вес подходящих игр и добавляет причину в `reasons`.
Можно передать `preset` или `mood` (свободный текст). Ответ:
```json