88 Commits

Author SHA1 Message Date
0c2962747d Merge remote changes 2026-08-19 21:23:54 -05:00
68eb4d9f43 feat: Add Rust UI and backend implementation with project infrastructure
Adds the new Rust-based UI (iced), backend service, shared Swift models,
CI/CD workflows, build scripts, and project documentation.
2026-08-19 21:22:08 -05:00
a372b8a665 ci: use gitea-job-image (Python+Node+Git unified) 2026-07-06 18:48:02 +00:00
d9546c838b ci: trigger re-run 2026-07-06 18:35:24 +00:00
f5d3e00ee2 Merge pull request 'test: add Vitest suite with 86% coverage threshold' (#16) from feat/add-tests into main
Reviewed-on: https://git.example.com/jarianc/MovieMapper/pulls/16
2026-07-06 00:02:32 -05:00
a23632b15c ci: use node:20-bookworm image for test/lint/security jobs 2026-07-06 05:00:05 +00:00
6076357a36 chore: remove coverage artifacts from git 2026-07-06 04:54:44 +00:00
9b6e90ce0e test: add Vitest suite with 86% coverage threshold
- Add Vitest + jsdom test framework with V8 coverage
- 118 tests across 7 test files covering AppState, ProgressManager, EpisodeManager, FileListManager, fileUtils, main.js logic, renderer escapeHtml, preload module polyfill
- Fix async bug in extractFileDuration (await in non-async callback)
- CI enforces 85% coverage threshold on testable modules
- Exclude Electron IPC wrappers (FileManager, SearchManager, TagManager, ModalManager, UIManager) from coverage as they require Electron runtime
2026-07-06 04:54:40 +00:00
baca6e0120 Merge pull request 'Fix #10: Replace sync fs calls with async in fileUtils.js' (#15) from fix/async-fs into main
Reviewed-on: https://git.example.com/jarianc/MovieMapper/pulls/15
2026-07-05 02:38:32 -05:00
fa7e264f86 Merge branch 'main' into fix/async-fs 2026-07-05 02:37:42 -05:00
1904e4478f fix #10: replace sync fs calls with async in fileUtils.js 2026-07-05 07:36:50 +00:00
b8e9d9dc08 Merge pull request 'Fix #11: Remove vim swap file, harden .gitignore' (#14) from fix/gitignore-swap into main
Reviewed-on: https://git.example.com/jarianc/MovieMapper/pulls/14
2026-07-05 02:36:19 -05:00
723b6b23ec fix #11: remove vim swap file, add swap patterns to .gitignore 2026-07-05 07:33:30 +00:00
f6e9d5457a Merge pull request 'Fix #3,#4,#5,#6,#7,#8,#9: Security hardening - Electron context isolation, XSS fixes, command injection fix' (#13) from fix/security-all into main
Reviewed-on: https://git.example.com/jarianc/MovieMapper/pulls/13
2026-07-05 02:33:02 -05:00
73f5585488 security: harden Electron app - context isolation, preload, fix XSS & command injection
- Enable contextIsolation, disable nodeIntegration, remove enableRemoteModule
- Add preload.js with safe contextBridge API exposure
- Fix OS command injection: exec() → execFile() in open-file-in-player
- Fix DOM XSS: replace innerHTML with textContent/createElement in FileListManager, UIManager, ModalManager
- Remove direct fs/electron access from renderer, route through IPC
- Add validate-folder and get-file-stats IPC handlers
- Load renderer modules via script tags with require polyfill
2026-07-05 07:31:06 +00:00
38b7bc0d6e Merge pull request 'CI: remove --no-cache for docker layer caching' (#12) from ci-fix-nocache into main
Reviewed-on: https://git.example.com/jarianc/MovieMapper/pulls/12
2026-07-04 22:23:25 -05:00
8d68d760ef CI: remove --no-cache for docker layer caching 2026-07-05 03:13:22 +00:00
89c26da489 CI: add generalized workflow 2026-07-05 02:46:33 +00:00
6dd4e83ddf feat: Add Rust implementation for performance-critical components
- Implement core Rust backend with FFmpeg integration
- Add TheTVDB API client with token caching
- Implement directory scanner with progress callbacks
- Create file manager with rename and move operations
- Add audit logging functionality
- Implement file mapping for TV episode renaming
- Build Node.js native addon via NAPI
- Include comprehensive unit and integration tests
- Update gitignore to exclude build artifacts and temp files

Resolves #TBD
2026-02-28 09:52:08 -06:00
5b1d24ae4a Add file editing via double-click and fix TVDB ID appending logic
- Add double-click handler to make file names editable in UI
- Remove duplicate IPC handler for rename-file in renderer.js
- Fix checkEpisodeCountMatch to properly validate sequential episodes
- Fix begin-mapping to handle both season folder and show folder cases
- Improve open-file-in-player handler to properly log results
2026-02-26 19:20:15 -06:00
c23f8cb484 fix: Implement proper tagging feature with file movement
- Fix handleTagClick to unselect other tags when selecting new tag
- Add handlePlayButtonClick to move individual tagged files
- Add 'behind-the-scenes' tag support to main.js
- Map tag types to Jellyfin-compatible folder names
- Add comprehensive test coverage (24 new tests)
- Fix displayCreatedFolder folder name mapping issue

This implements the full tagging workflow: tag a file with extra/
behind-the-scenes/delete, then click play button to move it to the
appropriate folder.
2026-02-25 10:13:05 -06:00
336d9fb98d Add handleTagClick method and event listeners for tag icons 2026-02-25 09:15:19 -06:00
cc30396b5c Fix behind-the-scenes tag class name and tagType consistency 2026-02-25 09:13:19 -06:00
31c9eff781 Change behind-the-scenes icon from clapperboard to movie camera 2026-02-25 09:10:55 -06:00
eda919c88b Rename commentary tag to behind-the-scenes (Jellyfin compatible) 2026-02-25 09:09:52 -06:00
bfcb1082bf Fix episode arrow buttons and expand test suite to 111 tests 2026-02-25 08:42:52 -06:00
ba6ff78cca Update comprehensive test suite with improved mocks
- Improved mock element implementation with proper innerHTML/textContent support
- Added getElementById mock that returns different elements based on ID
- Enhanced querySelectorAll mock for episode number queries
- Fixed isUpdatingEpisodeNumbers test to access property directly
- Tests now show 41/70 passing with improved mocks
2026-02-25 08:15:55 -06:00
7bd7cdacac Refactor renderer.js into modular class-based architecture
- Split renderer.js into 9 manager classes following SOLID principles:
  * AppState - State management
  * EpisodeManager - Episode numbering and range editing
  * TagManager - File tagging system
  * SearchManager - TheTVDB search integration
  * FileManager - Directory and file operations
  * ModalManager - Video preview modals
  * ProgressManager - Progress display
  * FileListManager - File list rendering and drag/drop
  * UIManager - Main UI coordinator

- Add comprehensive test suite (test-renderer-classes-comprehensive.js)
  with 100+ tests covering all business logic
- Fix drag/drop handler 'this' binding issues
- Add CSS for highlighted episodes and improved file list styling
- Restore all original functionality including episode cascading,
  tagging system, TVDB search, and Jellyfin naming
2026-02-25 02:47:35 -06:00
1176c74c2e Add comprehensive test coverage for renderer class refactoring
- Added test-renderer-classes.js with tests for all 8 new class files
- Updated test-functional.js to match new code structure
- All tests passing:
  * 4 renderer class tests (AppState, EpisodeManager, ProgressManager, imports)
  * 9 audit system tests
  * 4 functional tests
- Syntax verified with node --check
2026-02-25 02:33:37 -06:00
be887c3855 Refactor renderer.js into modular class-based structure
- Split large renderer.js file into 8 separate class files:
  - AppState.js: Manages application state
  - FileListManager.js: Handles file list display and manipulation
  - TagManager.js: Manages file tagging functionality
  - EpisodeManager.js: Handles episode number editing and highlighting
  - SearchManager.js: Manages TVDB search and show selection
  - FileManager.js: Handles file operations
  - ModalManager.js: Manages video preview modal
  - ProgressManager.js: Manages progress display
  - UIManager.js: Main coordinator for UI functionality
- Follows SOLID principles and single responsibility
- Improves code maintainability and testability
- All syntax verified with node --check
2026-02-25 02:32:08 -06:00
8ebd419a91 Fix episode range format to include E prefix on both episodes
- Changed S05E01-03 to S05E01-E03 (proper format with E prefix on end episode)
- File now names correctly as 'Demon Slayer S05E01-E03 - 1080p.mkv'
2026-02-25 00:34:16 -06:00
17b10edbbc Fix show name extraction to remove leading semicolons
- Add regex to strip leading semicolons/colons from show folder name
- This fixes filenames like ';Demon Slayer S05E01-03' -> 'Demon Slayer S05E01-03'
2026-02-25 00:33:07 -06:00
b2e4f2d45e Fix episode number arrow cascade and remove Update Ranges button
- Add isUpdatingEpisodeNumbers flag to prevent re-entrant calls
- Arrow buttons now properly cascade shifts to all subsequent episodes
- Remove Update Ranges button and associated code
- Remove DevTools auto-open for cleaner release
- Syntax validation passes
2026-02-25 00:24:54 -06:00
46bfba582d Fix arrow button episode number cascading - all subsequent episodes now shift correctly 2026-02-25 00:17:51 -06:00
30eba3ae4e Add Begin Mapping feature with Jellyfin naming, fix tvdbid regex 2026-02-22 03:08:51 -06:00
92320cc908 Add delete tag, episode count matching indicator, fix season episode counts 2026-02-22 02:33:41 -06:00
ef2fbd1a95 MKV opens directly in player, improved search results contrast, updated AGENTS.md 2026-02-22 02:04:30 -06:00
246f768e02 Clean up UI with dark theme and improved layout 2026-02-22 01:42:20 -06:00
98d6810066 Fix play button, add progress spinner, folder navigation, and UI improvements 2026-02-22 01:38:48 -06:00
4b1c3e0fc6 Clean up all duplicate path declarations in main.js 2026-02-21 16:06:16 -06:00
7717315c84 Add startup log file creation with error handling 2026-02-21 16:03:47 -06:00
ad6c9b0d8d Fix duplicate path declaration properly 2026-02-21 15:59:15 -06:00
937200bf79 Fix duplicate variable declaration in main.js 2026-02-21 15:58:48 -06:00
ce07fdbb74 Add debug logging to file moving functionality 2026-02-21 15:58:08 -06:00
b4a23b5fd7 Add comprehensive debugging to move functionality 2026-02-21 15:53:45 -06:00
83a5a734b8 Add detailed logging to file moving functionality for debugging 2026-02-21 15:51:42 -06:00
9f8f428da4 Fix missing play button click handler and add debugging 2026-02-21 15:50:26 -06:00
66da3ca60a Add directory creation feedback and improve move functionality 2026-02-21 15:49:02 -06:00
c795c39d94 Add functionality to move tagged files to extra/commentary folders 2026-02-21 15:47:48 -06:00
3f837ccf94 Disable play button until item is tagged, instead of hiding it 2026-02-21 15:45:59 -06:00