Commit Graph

16 Commits

Author SHA1 Message Date
Kylian Schmidt 491a4a9fd2 Add gallery index.html to website 2025-07-21 15:54:17 +02:00
Kylian Schmidt 465f9b6dc6 Try to fix metadata stuff again (does not work) 2025-07-21 15:33:33 +02:00
Kylian Schmidt 7a9275819a Fix index not being reloaded if a subfolder was added 2025-07-21 09:57:35 +02:00
Kylian Schmidt dbd67f6039 Fix template rendering issue and improve export functionality
- Fix template rendering by storing rendered HTML in variable before writing
  This resolves subdirectories not appearing in navigation despite being
  correctly detected and included in template variables
- Add missing template variables (paths.work_dir) to gallery config
- Add CGI refresh handler for web-based gallery regeneration
- Improve PDF export functionality with better error handling
- Add ESC key shortcut documentation for exiting selection mode
- Enhanced export manager with proper dependency checking

Fixes issue where new subdirectories were detected but not displayed
in browser navigation due to incomplete template rendering.
2025-07-20 08:59:10 +02:00
Kylian Schmidt 2d98ed0e7a Add export to latex button (i think) 2025-07-08 17:04:55 +02:00
Kylian Schmidt 8173d7618a Add metadata (WIP) 2025-07-08 13:54:13 +02:00
Kylian Schmidt 51a74b23f8 Add metadata button (WIP) 2025-07-08 13:19:54 +02:00
Kylian Schmidt 72ebc5e103 feat: Implement metadata system and reorganize project structure
 Features:
- Add comprehensive metadata system with YAML/JSON support
- Implement hierarchical metadata inheritance from parent folders
- Support plot-specific metadata overrides
- Add metadata caching for performance optimization

🗂️ Code Organization:
- Move Python orchestration code to orchestration/ folder
- Move validation utilities to tests/ folder
- Move documentation to docs/ folder
- Separate metadata functionality into dedicated module

🔧 Infrastructure:
- Add automatic asset copying to web directory
- Fix asset path resolution for nested directories
- Update template to use dynamic asset paths
- Add MetadataConfig class with inheritance options

📚 Documentation:
- Add comprehensive metadata usage guide (METADATA_USAGE.md)
- Add implementation documentation (METADATA_IMPLEMENTATION.md)
- Include example metadata files in examples/
- Add metadata validation utility script

🐛 Bug Fixes:
- Fix breadcrumb navigation and JavaScript functionality
- Resolve asset path issues in nested directories
- Update template imports for modular CSS/JS structure

This commit introduces a flexible metadata system that allows users to add
rich metadata to plots and folders using YAML or JSON files, with full
hierarchical inheritance and plot-specific overrides. The project structure
is now better organized with clear separation of concerns.
2025-07-08 12:33:49 +02:00
Kylian Schmidt 716e1c95fe Move jv and css to own folder 2025-07-08 08:14:10 +02:00
Kylian Schmidt 71cf2031e0 Add comparison between plots 2025-07-07 16:11:54 +02:00
Kylian Schmidt b5b2c676b3 Update 2025-07-07 15:26:01 +02:00
Kylian Schmidt 9041abb72f Update and refactor 2025-07-07 14:44:09 +02:00
Kylian Schmidt 976d90f26b Refactor gallery generator with smart file handling and improved UI
Key improvements:
- Add intelligent file update checking with 30-second buffer to avoid unnecessary operations
- Implement efficient PDF to PNG conversion (only when source is newer)
- Add smart file copying (skip if target is up-to-date)
- Create proper folder structure using plot_root/source_name pattern
- Improve template with better text handling for long plot names
- Add text wrapping, truncation, and hover tooltips for plot names
- Remove unnecessary directory cleaning for true incremental updates
- Fix title display issue (was showing '.' instead of 'Gallery')
- Add comprehensive logging showing what's processed vs skipped

Performance benefits:
- Subsequent runs are significantly faster (only processes changed files)
- Reduces ImageMagick conversions and file I/O operations
- Maintains file system timing robustness with buffer delays

UI improvements:
- Better handling of long filenames with word wrapping
- Constrained text areas prevent overlap between thumbnails
- Hover tooltips show full names when truncated
- Responsive grid layout maintained
2025-07-07 13:27:25 +02:00
Kylian Schmidt c2943bbe7b Configure SAST and Secret Detection in .gitlab-ci.yml, creating this file if it does not already exist 2025-07-04 16:03:29 +02:00
Kylian Schmidt 2ca0cfab00 Configure SAST in .gitlab-ci.yml, creating this file if it does not already exist 2025-07-04 16:03:29 +02:00
Kylian Schmidt ee3c82e372 Initial commit 2025-07-04 16:03:28 +02:00