73 Commits

Author SHA1 Message Date
314ba461c0 Removed spurious kate-swp file from the repo. 1.0 2026-03-27 22:01:17 -04:00
f8a4f71e74 Update login template. 2026-03-27 21:54:09 -04:00
7cc9d1ed17 Add special-gallery back thumbnail and hide sort button for specials 2026-03-27 21:10:38 -04:00
21a3ab40c5 special-gallery: scope image prev/next/back to special galleries; add tests 2026-03-27 21:04:18 -04:00
0e48a5d9bd Removed unused imports. 2026-03-27 20:36:59 -04:00
701845dceb tests: add most-visited/recent and edge-case tests for special galleries 2026-03-27 20:33:33 -04:00
97aa42661a tests: add view-level tests for special galleries (favorites directory and image view) 2026-03-27 20:32:54 -04:00
5f1035a252 special galleries: add tests; make special breadcrumb clickable; highlight active special; hide back only 2026-03-27 20:31:43 -04:00
532690a329 special galleries: helper module, renderers, templates & urls; hide back in special views; highlight active special 2026-03-27 20:09:35 -04:00
24c1c96f19 Added home and back links to gallery view. 2026-03-25 12:35:00 -04:00
5a2bea3040 Assorted CSS tweaks for mobile. 2026-03-25 12:21:49 -04:00
27da3a33d3 Made top bar fit screen borders on mobile. 2026-03-25 12:15:01 -04:00
Miguel Astor
ab81a0a97d test: add clear-search URL and template tests
Add tests for clear_search_url context and template clear-search button when a search is active.
2026-03-25 06:08:00 -04:00
Miguel Astor
b8e7a876a7 tests: accept build_query only preserving search (drop sort/theme from gallery link assertions) 2026-03-25 05:54:41 -04:00
Miguel Astor
377951efbe Fixed issue with sort and theme keys still being applied as GET parameters. 2026-03-25 04:53:36 -04:00
Miguel Astor
73b538b698 feat(viewer): persist theme/sort via toggle view; use middleware-provided theme/sort in views and templates 2026-03-25 04:43:35 -04:00
Miguel Astor
8719be3227 tests: add UserSettings model and middleware tests; ensure tests create UserSettings defaults 2026-03-25 04:25:38 -04:00
Miguel Astor
13ab55d1d3 Changed Image model path to method. 2026-03-24 15:39:09 -04:00
Miguel Astor
5ec793b47d Added kate droppings to gitignore. 2026-03-24 15:34:15 -04:00
Miguel Astor
f658106316 Fixed issue with image links covering all image wrapper area. 2026-03-24 15:34:03 -04:00
Miguel Astor
7cc7f04b80 test: update image view tests and add Image model tests 2026-03-24 15:12:45 -04:00
Miguel Astor
5a6632491a Added model for special galleries. 2026-03-24 15:06:48 -04:00
77d83c58d1 docs: update README with run/test instructions 2026-03-23 23:55:26 -04:00
480ec37ef6 Updated AGENTS and CLAUDE files. 2026-03-23 23:53:14 -04:00
3e209519e5 refactor: split directory and image rendering into viewer.directory, viewer.image; add viewer.common for shared helpers 2026-03-23 23:48:23 -04:00
caf8130c93 gallery: allow multiple fixed 128px thumbnails per row on small screens 2026-03-23 23:20:57 -04:00
d42de13d4e Fixed layout issues with the offcanvas sidebar in mobile. 2026-03-23 23:15:49 -04:00
a7008f9c28 Fixed issue with previous change on mobile. 2026-03-23 22:59:47 -04:00
138f0ec76c Made image file names appear fully in breadcrumbs. 2026-03-23 22:57:47 -04:00
9d3cb3dfd0 gitignore: ignore top-level static/ but allow app-level static/ (unignore */static/) 2026-03-23 21:21:22 -04:00
9b7a5b2a0e Made image views avoid scrolling. 2026-03-23 21:12:37 -04:00
38e098cc49 Edited the image_view template. 2026-03-23 20:46:31 -04:00
1c8b5da627 style: dropdowns follow dark theme; improve muted text contrast 2026-03-23 20:43:50 -04:00
9de61e9b46 docs: document recent image-view refactor and new view context keys 2026-03-23 20:30:23 -04:00
a97fb6078b image view: implement gallery-based layout, metadata dropdown, and thumbnails; add styles for image shadow; update tests 2026-03-23 20:25:40 -04:00
Miguel Astor
5122ece42b Fixed old styles in login template. 2026-03-23 03:15:27 -04:00
Miguel Astor
b934b6e779 Separated local styles from gallery view template. 2026-03-23 00:21:37 -04:00
8efb623ab6 Updated requirements. 2026-03-22 23:06:56 -04:00
4ba90f79ee Read SECRET_KEY/DEBUG/ALLOWED_HOSTS from .env with defaults 2026-03-22 22:57:29 -04:00
912446d9b7 Refactor local settings to dotenv-based gallery paths 2026-03-22 22:52:07 -04:00
16bd651cfb Redesigned gallery view layout and added sorting tests 2026-03-22 22:33:31 -04:00
Miguel Astor
6fd2dd3769 Removed filetype from requirements.txt 2026-02-27 01:53:15 -04:00
Miguel Astor
078eb25b66 Updated CLAUDE.md to reflect performance optimizations.
Updated documentation to reflect recent changes:
- Changed image detection from MIME-type to extension-based
- Added Performance Optimizations section explaining the change
- Updated Code Patterns to use is_image_file() instead of filetype
- Marked filetype as legacy dependency (no longer actively used)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-27 01:48:13 -04:00
Miguel Astor
4cab0a2647 Optimized image detection using extension-based filtering.
Replaced costly MIME-type detection (filetype.is_image) with fast
extension-based filtering. This eliminates I/O operations for every
file in a directory, significantly improving gallery view performance.

Changes:
- Added IMAGE_EXTENSIONS constant and is_image_file() helper to utils.py
- Updated views.py to use extension-based filtering
- Updated makethumbnails command to use extension-based filtering
- Removed filetype import from views.py and makethumbnails.py

Performance impact: ~99% reduction in I/O for directory listings.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-27 01:46:25 -04:00
Miguel Astor
e9307c8fae Added CLAUDE.md documentation file.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-27 01:36:25 -04:00
Miguel Astor
964fee5ddf Simple code cleanups. 2025-01-15 15:14:40 -04:00
bcefd5fdd1 Changed colors to darker versions. 2023-09-19 02:11:19 -04:00
01cebe36ed Added logout button to image view. 2023-08-23 22:01:09 -04:00
72513f2f6d Fixed image view dimensions. 2023-08-23 21:57:43 -04:00
bac5437e7e Added basic user authentication. 2023-08-23 17:45:39 -04:00