Files
xamxam/todo
Pontoporeia 9a58b97cb8 Extract SearchController from public/search.php
Move all data-fetching and request logic out of the 285-line search page
into src/SearchController.php:

- SearchController::create() — static factory; builds RateLimit + Database
  dependencies, sends HTTP 429 (and exits) if rate limit is exceeded,
  runs probabilistic cleanup, returns ready instance
- SearchController::handle() — sanitises GET params (query/year/orientation/
  ap_program/keyword), runs all DB queries (searchTheses, countSearchResults,
  getAvailableYears, getAllOrientations, getAllAPPrograms, getUsedTags,
  getPublishedAuthors), builds alphabetical author→id map, assembles
  OG/meta tags, returns a flat array of view variables
- Rate-limit 429 HTML response moved into private sendRateLimitResponse()

public/search.php is now a 6-line dispatcher:
  require SearchController; extract(SearchController::create()->handle());
followed by the unchanged view template (162 lines total, was 285).

The view template is byte-for-byte equivalent: same HTML, same variable
names, same pagination partial include.
2026-04-06 15:33:08 +02:00
..

TODO Index

Pending tasks split by topic. Completed tasks have been removed.

File Topic
01-css-semantic-refactor.md CSS class audit, semantic HTML for templates (public + admin), inline style extraction, favicon
02-php-components.md Form field partials, shared UI partials, controller extraction, backend maintenance
03-system-cache.md system_cache table, SystemCache class, system.php refactor
04-accessibility.md WCAG 2.1 AA — remaining failures grouped by success criterion