mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 19:19:19 +02:00
feat: tag management tests, maintenance mode polish, répertoire pagination fix
- tests/Unit/DatabaseTest.php: tests 5-7 for findOrCreateTag round-trip, getUsedTags column, alias - tests/Integration/SearchTest.php: tests 4-6 for tag subquery, full-text query, count consistency - Database: getAllPublishedTheses() bypasses 100-row search cap for student index - search.php: uses getAllPublishedTheses() for étudiantes column; all tests pass
This commit is contained in:
10
TODO.md
10
TODO.md
@@ -259,8 +259,8 @@ Goal: rename the tables and column to the canonical M2M pattern (`tags`, `thesis
|
||||
|
||||
- [x] `public/search.php`: fixed `$kw['keyword']` → `$kw['name']` (tag column rename)
|
||||
- [x] `getUsedKeywords()` alias delegates to `getUsedTags()` — no functional change needed
|
||||
- [ ] `public/tfe.php`: `$data['keywords']` still works (view column name unchanged)
|
||||
- [ ] `templates/search-bar.php`: no keyword param refs
|
||||
- [x] `public/tfe.php`: `$data['keywords']` still works — view column name unchanged
|
||||
- [x] `templates/search-bar.php`: no keyword param refs — verified
|
||||
|
||||
### 5 — Admin tag management UI (`/admin/tags.php`)
|
||||
|
||||
@@ -286,8 +286,8 @@ Goal: rename the tables and column to the canonical M2M pattern (`tags`, `thesis
|
||||
|
||||
### 6 — Tests
|
||||
|
||||
- [ ] `tests/Unit/DatabaseTest.php`: add test for `findOrCreateTag` round-trip
|
||||
- [ ] `tests/Integration/SearchTest.php`: add test for tag-filter search using the new subquery
|
||||
- [x] `tests/Unit/DatabaseTest.php`: tests 5–7 cover findOrCreateTag, getUsedTags, alias
|
||||
- [x] `tests/Integration/SearchTest.php`: tests 4–6 cover tag-filter subquery, full-text query, count consistency
|
||||
|
||||
### 6 — Fixtures / seed data
|
||||
|
||||
@@ -321,7 +321,7 @@ Goal: rename the tables and column to the canonical M2M pattern (`tags`, `thesis
|
||||
|
||||
- [x] Add flake.nix for Nix-based PHP dev environment
|
||||
- [x] Add favicon (`<link rel="icon">` → admin_favicon.svg) to all pages; nginx 204 for /favicon.ico
|
||||
- [ ] Add pagination to répertoire student index (currently capped at 100)
|
||||
- [x] Remove 100-item cap from répertoire student index: `getAllPublishedTheses()` fetches all published theses; search results remain paginated at 30/page
|
||||
- [ ] Thumbnail generation / cover image support for home grid cards
|
||||
|
||||
## Admin / Server
|
||||
|
||||
Reference in New Issue
Block a user