Fix dialog margins, add admin-dialog__body/styles, give trash page horizontal margins

This commit is contained in:
Pontoporeia
2026-05-19 18:08:00 +02:00
parent d619d2f116
commit 2cb8d71fe9
29 changed files with 608 additions and 11 deletions

17
TODO.md
View File

@@ -1,5 +1,22 @@
# Current tasks
## Tmp file cleanup (stale filepond + _trash)
- [x] Session-based detection: check manifest session_id against PHP session files
- [x] DB-based detection for _trash: check thesis_files row still exists
- [x] Time-based fallback: >2h filepond, >30d trash
- [x] admin cleanup-stats.php: stale vs active breakdown with sizes
- [x] admin cleanup-tmp.php: smart cleanup with detailed JSON response
- [x] admin index: Nettoyer button + dialog with stats and cleanup trigger
- [x] .gitignore: exclude tmp/filepond/* and tmp/_trash/*
- [ ] Deploy: just deploy
## Dialog & trash page margins
- [x] Add admin-dialog__body CSS rule with padding + margin resets
- [x] Add admin-dialog__stats + admin-dialog__hint classes
- [x] Fix admin-dialog__alert p margins (not-last-child gets bottom margin)
- [x] Add horizontal margins to .admin-main--list > direct children (trash page forms, tables, flash msgs)
- [x] Clean up tmp-cleanup dialog inline styles → CSS classes
## Deploy exclusions
- [x] Exclude storage/tmp/ (not just filepond/*) to skip _trash dirs with bad perms
- [x] Exclude storage/documents/ and storage/theses/ from rsync deploy