From 64323fd17e39383a3a06105cea723834bcf7c529 Mon Sep 17 00:00:00 2001 From: Pontoporeia Date: Fri, 10 Jul 2026 17:29:35 +0200 Subject: [PATCH] =?UTF-8?q?sort=20TFE=20files=20by=20display=20category=20?= =?UTF-8?q?on=20public=20page:=20note=20d'intention=20=E2=86=92=20TFE=20?= =?UTF-8?q?=E2=86=92=20image=20=E2=86=92=20video=20=E2=86=92=20audio=20?= =?UTF-8?q?=E2=86=92=20website=20=E2=86=92=20annexes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TODO.md | 1 + app/src/Controllers/TfeController.php | 83 ++++++++++++++++++++++++++- 2 files changed, 83 insertions(+), 1 deletion(-) diff --git a/TODO.md b/TODO.md index 01a14dc..3db43b3 100644 --- a/TODO.md +++ b/TODO.md @@ -5,3 +5,4 @@ - [x] Fix student name popover overflowing below viewport: clamp position so popover stays within screen bounds - [x] Fix orientation (and other filter) metadata links on TFE page leading to empty search: remove redundant `query=` param - [x] Fix language metadata link using wrong `query=` param instead of dedicated `language=` filter +- [x] Sort TFE files by display category on public page (note d'intention → TFE → image → video → audio → website → annexes) diff --git a/app/src/Controllers/TfeController.php b/app/src/Controllers/TfeController.php index a574f2a..123594f 100644 --- a/app/src/Controllers/TfeController.php +++ b/app/src/Controllers/TfeController.php @@ -92,9 +92,16 @@ class TfeController // If access is restricted and user doesn't have valid access, hide files $shouldHideFiles = ($restrictedEnabled && $accessTypeId === 2 && !$hasRestrictedAccess); - // Caption (WebVTT) files — N-th VTT is paired with the N-th