diff --git a/AGENTS.md b/AGENTS.md index 88ca147..7f6c513 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -84,6 +84,13 @@ Notes: - `/gallery/` -> directory browsing and image view routing - Preserve lazy thumbnail generation behavior unless task explicitly changes performance strategy. +### Recent changes notes + +- The image view was refactored to match the gallery layout and styling; `viewer/templates/image_view.html` now uses the shared `viewer/static/css/styles.css` file and Bootstrap/Font Awesome includes like `gallery_view.html`. +- `_render_image` in `viewer/views.py` now exposes additional context keys used by the template and tests: `prev_url`, `next_url`, `prev_thumb`, `next_thumb`, `back_url`, `back_thumb`, `home_url`, `home_thumb`, and `image_meta` (dictionary with `filename`, `width`, `height`, `filesize`, `created`, `modified`). Agents modifying image-view behavior should update tests in `viewer/test.py` as well. +- The top-bar sort button for the image view was replaced by an Info button (`fa-circle-info`) which shows a dropdown containing image metadata. The dropdown is vertically scrollable for long content. +- The displayed main image now uses the same drop shadow and rounded corners as thumbnails (styles added to `viewer/static/css/styles.css`). + ## 7) Code Style Guidelines (Repository-Specific) ### Imports diff --git a/CLAUDE.md b/CLAUDE.md index bf89427..aa0508a 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -157,3 +157,10 @@ Default production location: `/var/lib/NibasaViewer` - Fast extension-based detection (checks `IMAGE_EXTENSIONS` set) - Supports common formats: JPEG, PNG, GIF, WebP, BMP, TIFF, SVG - Accepts both `pathlib.Path` and string paths + +### Recent changes notes + +- The image view was refactored to match the gallery layout and styling; `viewer/templates/image_view.html` now uses the shared `viewer/static/css/styles.css` file and Bootstrap/Font Awesome includes like `gallery_view.html`. +- `_render_image` in `viewer/views.py` now exposes additional context keys used by the template and tests: `prev_url`, `next_url`, `prev_thumb`, `next_thumb`, `back_url`, `back_thumb`, `home_url`, `home_thumb`, and `image_meta` (dictionary with `filename`, `width`, `height`, `filesize`, `created`, `modified`). Agents modifying image-view behavior should update tests in `viewer/test.py` as well. +- The top-bar sort button for the image view was replaced by an Info button (`fa-circle-info`) which shows a dropdown containing image metadata. The dropdown is vertically scrollable for long content. +- The main displayed image now uses the same drop shadow and rounded corners as thumbnails (styles added to `viewer/static/css/styles.css`).