- New notes: History, Artwork - Rewrite TMDB Integration: single detail request, entry mapper, rate limiter, refresh sync, stale-entry refresh, recommendations - Update pages, routing, API reference, models, database migrations, services, components, hooks, API clients, settings, media system, library, Electron (Tauri in progress) and known issues - Rewrite README for the current React/Express stack and setup
4.3 KiB
4.3 KiB
title, tags
| title | tags | |||
|---|---|---|---|---|
| Known Issues |
|
Known Issues
Tracked bugs and technical debt items.
Backend
Synchronous File Checks in Maintenance
- File:
backend/services/maintenanceService.js - Issue:
deleteOrphanMediaRecordsusesfs.existsSync()in a loop, which is synchronous and blocks the event loop - Impact: Slow for large media libraries
- Fix: Replace with
fs.promises.access()or batch withPromise.all()
Hardcoded Database Credentials
- File:
backend/config/database.js - Issue: MySQL credentials hardcoded as
root/password - Impact: Security concern for non-local deployments
- Fix: Read from environment variables or
settings.json
CORS Allows All Origins
- File:
backend/server.js - Issue: CORS set to
*(all origins) - Impact: Acceptable for single-user local app, problematic if exposed to network
- Fix: Configure allowed origins in settings
Bundled Moment.js
- File:
backend/utils/moment.js - Issue: Full Moment.js 2.29.0 is bundled directly in source code instead of as npm dependency
- Impact: Outdated version, harder to update
- Fix: Replace with
date-fnsor install via npm
Killer Route in Production
- File:
backend/server.js - Issue:
GET /killercrashes the backend — useful for debug only - Impact: DoS risk if backend is exposed
- Fix: Gate behind dev-mode check
Packaged Backend Can't Find settings.json
- Issue:
configServiceresolvessettings.jsonfrom__dirname, which points inside pkg's read-only snapshot inbackend.exe - Impact: Blocks the Tauri release build (sidecar backend); see Electron
- Fix: Resolve settings next to the executable (
process.execPath) or a user data folder when running under pkg
Frontend
Implicit any Types in SeasonPage
- File:
react_frontend/src/pages/SeasonPage.tsx - Issue: Several callback parameters have implicit
anytype - Impact: TypeScript strict mode violations
- Fix: Add explicit type annotations
Unused Imports in EntrySeenDialog
- File:
react_frontend/src/components/dialogs/EntrySeenDialog.tsx - Issue: Some imports from old Calendar implementation may still exist
- Impact: Bundle size (minor)
- Fix: Clean up unused imports
Normalizer Inconsistency
- Issue: Backend returns mixed camelCase/snake_case fields depending on query type
- Impact: Normalizers layer exists to handle this, but it's fragile
- Fix: Standardize backend response format (ideally all snake_case)
Web Build Fails Type Checking
- Issue:
tsc -b(and sopnpm build) reports ~41 existing errors, mostlyasChildon Base UI components andstring | nullselect values (LibraryPage, WatchlistPage, several dialogs) - Impact: The plain web build fails; Vite dev, Electron and Tauri dev still run
- Fix: Replace
asChildwithrenderprops and narrow select values
Old Media Not Matched in Artwork
- Issue: Images downloaded before
media.tmdb_pathexisted have no TMDB path - Impact: They show as local-only in Artwork, and the same TMDB image can be added again as a duplicate
- Fix: Backfill by re-downloading, or compare image hashes
Unknown-Date Watches
- Issue: ~311 imported movie watches have
accuracy = UNKNOWN - Impact: Badged in History and excluded from the Year in Review by default (toggle to include)
Database
Franchise Model Unused
- File:
backend/models/Franchise.js - Issue: Model defined but not used anywhere in the application
- Impact: Dead code
- Fix: Implement franchise feature or remove model
No Database Migrations
- Issue:
sequelize.sync({ alter })is disabled;config/migrations.jsonly adds missing columns and widens a fixed list of types - Impact: Renames, drops and index changes still need manual SQL
- Fix: Adopt versioned Sequelize migrations if the schema starts changing in non-additive ways
Docker
Legacy Frontend in Docker
- Issue: Docker Compose uses the Angular frontend (
/frontend), not the React frontend (/react_frontend) - Impact: Docker deployment serves outdated UI
- Fix: Create Dockerfile for React frontend, update Compose