Commit Graph
377 Commits
Author SHA1 Message Date
X4Lo cdbaedd7d0 Add watch status for TV series with UI and auto-fix
Added watch_status column to Entry model (plan_to_watch/watching/completed/
on_hold/dropped). Status pill on entry details page opens selection dialog.
Set Status in quick actions menu and EntryCard dropdown (TV only).
Status filter in Library filter popover. Maintenance auto-fix endpoint
that sets statuses based on watched episodes (excl. season 0).
2026-06-23 03:39:16 +01:00
X4Lo a5659cf4c8 Normalize to double quotes across all files with Prettier 2026-06-21 22:28:08 +01:00
X4Lo 73bff72cec Add Watch Trailer button next to Start Watching, fix cursors 2026-06-18 22:58:38 +01:00
X4Lo 3c089ee110 Add duplicate credits maintenance and fix dedup logic 2026-06-18 22:08:46 +01:00
X4Lo 5a0328a17f Director field, search, and collection improvements
Backend: Added director column to Entry model, set during creation and
refresh. Maintenance endpoint to scan/fix missing directors. Reverted
expensive credit JOIN in getAllEntries.

Frontend: @director: search prefix for Library and Watchlist. Director
rendered on EntryDetailsPage via useEntryCredits. Fixed home page cards
to link directly to EntryDetailsPage when entry is in library. Added
TmdbCastsPage for TMDB cast browsing. Persisted collection sort order
and gray-out-unseen toggle. Tooltip component now theme-aware.
2026-06-18 20:09:11 +01:00
X4Lo 8671184dc5 Fix home page navigation and add TMDB cast page
Home page cards now check library store and link directly to EntryDetailsPage
when the entry is already added. Created useTmdbEntryLink hook for shared
library-check logic. Added TmdbCastsPage with filter/search/sort for
TMDB preview cast & crew, and limited credits to 12 on TmdbPreviewPage.
2026-06-18 13:37:39 +01:00
X4Lo 6c2fd3837b removed old routes 2026-06-17 04:03:37 +01:00
X4Lo 3c29cf78ea Add toggle to gray out unseen entries in collections
Hide unseen button near sort controls applies grayscale + low opacity to
posters of entries that haven't been watched. Preference is persisted
per-collection via the existing sort store.
2026-06-17 04:03:16 +01:00
X4Lo e434dd3b5e Persist collection sort order across page reloads
Add useCollectionSortStore with localStorage persistence, keyed by collection ID. CollectionDetailsPage now reads/writes sort preferences through the store instead of local useState.
2026-06-17 03:57:43 +01:00
X4Lo 702cd537d1 fix(ai-query): two-step query for recently-watched endpoints to avoid genre join row multiplication 2026-05-29 02:57:28 +01:00
X4Lo 0459a1b4bf fix(ai-query): correct model column names for EntryRating, Collection, Media 2026-05-29 02:45:53 +01:00
X4Lo 88ada32064 docs(ai-query): add API reference to docs-vault 2026-05-29 02:35:51 +01:00
X4Lo 6b6e95e736 feat(ai-query): add AI query API scaffold with all 15 endpoints 2026-05-29 02:13:12 +01:00
Mohammed Abad 8641e55362 feat(home): implement new homepage design with full-bleed hero slider and component refactor
- Replace old HomePage layout with Apple TV+/Hulu-inspired design (HomePage3)
- Extract all home UI into reusable components under src/components/home/:
  HeroSlider, BackdropCard, BackdropScrollCard, PopularBelt,
  NumberedListItem, MiniPosterCard, UpcomingCard, SectionHeader
- Hero slider: true slide-track animation, embedded search bar, autoplay with dot indicators
- Trending Now: rotating 2x2 backdrop grid with slide-out/slide-in stagger animation (7s interval)
- Popular Right Now: infinite CSS marquee belt, pauses on hover
- Top Rated: 16:9 featured backdrop + 4 poster cards, no labels
- Coming Soon: compact horizontal scroll, date overlay, relative countdown on hover
- Fix sidebar ml offset in AppLayout (md:ml-56 -> md:ml-20) to re-center all pages
- Move Collections page filters to top-right, search input to left
2026-05-25 04:42:24 +01:00
Mohammed Abad 070aea3c51 fix(layout): adjust sidebar and main layout for improved responsiveness 2026-05-25 04:30:45 +01:00
Mohammed Abad 022c9a271b feat(streaming): add watch button to episode cards and episode details page
- Add play overlay on episode thumbnails in SeasonPage (click to stream directly)
- Add clickable watch overlay on episode still image in EpisodePage
- Fix StreamingDialog rendering via React portal (document.body) to prevent ancestor overflow/max-width clipping
- Fix EpisodePage JSX parse error (streaming dialog was outside root element)
- Fix watch buttons not working: use useEntry hook for full entry data with entryIds instead of library store (which lacks entryIds)
- Fix preventDefault called after guard check, causing link navigation when tmdb_id was missing
- Pass seasons via useEntrySeasons to StreamingDialog from both pages so episodes sidebar renders correctly
- Apply final UI polish: entry title in dialog top bar, season selector label, episode format "E1 Title", watched badge always-on, unreleased episodes greyed out
2026-05-25 04:25:45 +01:00
Mohammed Abad afc032ca1c feat(streaming): simplify iframe sandbox and allow attributes for better compatibility 2026-05-25 02:41:46 +01:00
Mohammed Abad a928a5a995 Docs: add streaming system docs
- Create docs-vault/Streaming.md with full streaming architecture docs
- Update docs-vault/Index.md to link to streaming documentation
2026-05-25 02:10:38 +01:00
Mohammed Abad 54014ae01f feat(frontend): implement full in-app streaming system with 4 APIs
- Add streaming types, interfaces, and normalized response structures
- Create StreamingManager with URL building, validation, and security
- Implement provider adapters for VidLink (2 servers), VidKing (1 server), AnyEmbed (5 servers)
- Add Zustand streaming store with server selection, fallback, and retry logic
- Build StreamingPlayer iframe component with fullscreen and keyboard shortcuts
- Add ServerSelector dropdown with 8 servers and active state indicator
- Create EpisodeNavigator with season tabs and episode grid
- Implement AutoMarkWatchedPrompt for one-time completion opt-in
- Add StreamingSection with Watch Now / Continue Watching entry point
- Integrate StreamingSection into EntryDetailsPage
2026-05-25 02:09:40 +01:00
X4Lo 1a2ec5c505 Merge branch 'react-frontend' of https://github.com/X4Lo/Showy into react-frontend 2026-05-04 08:36:57 +01:00
Mohammed AbadandCopilot 3448142242 feat(frontend): add Spotlight-style command palette with recent tracking
- Add CommandPalette component with keyboard navigation (arrows, Enter, Shift+Enter, Esc)
- Add useCommandPaletteStore Zustand store with localStorage-persisted recently viewed
- Show two distinct sections: Library results and TMDB Results (no duplicates)
- Exclude library entries from TMDB Results section by TMDB ID index
- Add "View all" links: Library section → /library, TMDB section → /search
- Persist non-library TMDB entries in localStorage for recently viewed support
- Register global Ctrl+P / Cmd+P / slash shortcuts in AppLayout
- Track entry visits in EntryDetailsPage for recently viewed
- Track TMDB preview visits in TmdbPreviewPage for recently viewed
- Updated related docs files

Co-authored-by: Copilot <copilot@github.com>
2026-05-04 08:33:27 +01:00
X4Lo 639e41aebf feat(electron): added app icon 2026-05-04 08:24:51 +01:00
Mohammed AbadandCopilot 4303b33677 feat(electron/frontend) Electron Full Rework
- **Electron Full Rework**: Completely rewrote `electron/main.js` — removed child process spawn, backend now runs in-process via `require()`; frameless window with custom title bar; dual-mode support (dev loads Vite at `:4200`, production loads built files)
- **`electron/preload.js`**: Enhanced contextBridge to expose `windowControls` (minimize/maximize/close) and `isElectron` flag alongside existing `ipcRenderer` bridge
- **`electron/package.json`**: Updated scripts (`start`, `dev`, `build-front` → calls React build), removed duplicated backend dependencies (backend now required in-process), updated electron-builder config with proper `files` and `extraResources`
- **`TitleBar` component**: New `react_frontend/src/components/layout/TitleBar.tsx` — custom frameless window title bar with drag region, app branding, and IPC-powered minimize/maximize/close buttons
- **`AppLayout`**: Conditionally renders `<TitleBar>` when built for Electron (`VITE_ELECTRON=true`); wrapped content in an extra flex container to accommodate title bar height
- **`vite.config.ts`**: Added `VITE_ELECTRON` env detection — sets `base: './'` for correct asset resolution in `file://` context
- **`api.ts`**: Dynamic base URL — uses `http://localhost:4000/api/v1` in Electron mode, `/api/v1` (proxy-relative) otherwise
- **`router.tsx`**: Conditional router factory — uses `createHashRouter` in Electron mode (required for `file://` navigation) and `createBrowserRouter` for web
- **`electron.d.ts`**: Added TypeScript declarations for `window.electron` global (windowControls, ipcRenderer, isElectron)
- **`package.json`**: Added `build:electron` script with `cross-env VITE_ELECTRON=true`; added `cross-env` devDependency
- Updated `Electron.md`

Co-authored-by: Copilot <copilot@github.com>
2026-05-03 02:00:14 +01:00
Mohammed Abad 7b84f89b65 feat(frontend): Added custom scrollbar 2026-05-03 01:32:55 +01:00
Mohammed AbadandCopilot 3b882c9c35 feat: UI improvements across Calendar, Cast, People, and Entry Details pages
Calendar:
- Add list/agenda view for mobile with view toggle button (defaults to list on small screens)
- Grid view: show entry poster cards (not episode stills) with S01E04 label for TV, title for movies
- Grid cells use grid-rows-6 to fill exact viewport height with no scrolling on desktop
- Clicking a day opens a dialog showing all episodes as a poster grid
- Cap grid cells to 3 visible posters with overflow badge
- Hide episodes with no known entry title

Cast & Crew Page:
- Increase people card size (h-32 w-32 avatar, larger text, fewer columns)
- Add search box filtering by name and role
- Restructure controls: search + count on left, filter + sort on right
- Default filter to "Cast", default sort to "Episode Count"

People Page:
- Mobile layout: search input takes full width, switch & filter move to second line

Entry Details Page:
- Remove favorite heart icon overlay from poster
- Add favorite pill in ratings row (gold background/star when active, dashed border when inactive)

Co-authored-by: Copilot <copilot@github.com>
2026-04-29 16:56:19 +01:00
Mohammed Abad 5fa2556b43 feat(frontend): show seen dates inline on episode cards and fix cast page
- Display all seen dates inline (comma-separated) on episode cards in SeasonPage; remove unused Tooltip imports
- Propagate episode_count in normalizeCredit so TV series cast shows X ep.
- Add entriesApi.getCredits(id) API method and useEntryCredits(id) hook
- Load all credits in EntryCastsPage via useEntryCredits (no more 10-cast limit)
- Replace full-list render with IntersectionObserver lazy loader (24 per chunk)
- Fix Sort/Filter Select trigger to show human-readable label instead of raw key
2026-04-29 16:04:19 +01:00
Mohammed Abad 22d111ef71 fix(backend): include EpisodeSeen in season episodes and add entry credits endpoint
- Add getEntryCredits service method returning all cast + crew with People, ordered by cast_type, order, episode_count
- Add getEntryCredits controller method
- Add GET /entries/:id/credits route in entry.routes.js
- Include EpisodeSeen association in getSeasonEpisodes so seen dates are returned to frontend
2026-04-29 16:04:10 +01:00
Mohammed AbadandCopilot e460290b9b feat(frontend): unify person routing, cast page, and centralize ratings
- Add EntryCastsPage at /entry/:id/cast with sort/filter and breadcrumb nav
- Show episode count under character names for TV series in CastList
- Add "All Cast & Crew →" link to CastList section header
- Extract reusable StarRating component with half-star support and 3 sizes
- Replace all rating UIs (EntrySettingsDialog, CollectionEditDialog, RatingDialog)
- Document StarRating component as the single rating standard in Components.md

Co-authored-by: Copilot <copilot@github.com>
2026-04-27 13:45:48 +01:00
Mohammed AbadandCopilot b3002a329d fix(frontend): redirect to local person page if already in DB
- PersonDetailsPage (TMDB mode) redirects to /people/:localId when local_id is present
- "Add to Library" button only shown for people not in local DB
- Shows skeleton during redirect to avoid flash of preview content

Co-authored-by: Copilot <copilot@github.com>
2026-04-27 13:44:34 +01:00
Mohammed Abad 507cdbcff7 fix(backend): check local DB before returning TMDB person preview
- Return local_id in GET /people/tmdb/preview/:tmdbId if person exists in DB
- Prevents duplicate "Add to Library" prompts for already-saved people
2026-04-27 13:43:57 +01:00
Mohammed Abad db6da6782f feat(people): unify person detail page for DB and TMDB sources
- Merge PersonDetailsPage and PersonTmdbRedirectPage into one component
- /people/:id fetches from local DB with favorite toggle
- /people/tmdb/:tmdbId fetches from TMDB with "Add to Library" button
- Add TMDB external link in person metadata
- Fix CastList links for TMDB preview cast (use /people/tmdb/:tmdbId)
- Replace 11MB getAll() with server-side paginated infinite scroll
- Add useLocalPeopleInfinite hook and PaginatedPeopleResponse type
2026-04-27 13:29:30 +01:00
Mohammed AbadandCopilot 6d676d803c feat(people): add pagination support to getAllPeople endpoint
Support optional page, limit, and search query params.
Returns { data, total, page, totalPages } when paginated,
plain array for backward compatibility.

Co-authored-by: Copilot <copilot@github.com>
2026-04-27 13:29:16 +01:00
Mohammed Abad 8aca121b10 fix: people details page not working for people that are not in db 2026-04-27 12:33:02 +01:00
Mohammed Abad 0329808562 Small fixes 2026-04-27 12:07:39 +01:00
Mohammed AbadandCopilot a42d4ee7d7 feat(frontend): fix hooks crash, persist library filters, improve UI
- Fix "rendered more hooks" crash in CollectionDetailsPage by moving all hooks before conditionals
- Persist library search/filters only on back navigation using useNavigationType
- Add resetAll() to useLibraryFiltersStore
- Move sort toolbar to hero bottom-right in CollectionDetailsPage
- Fall back to entry backdrops when collection has none
- Show full cast in TmdbPreviewPage matching EntryDetailsPage layout
- Remove tagline/icons from TmdbPreviewPage to match in-library style
- Lazy load people in local DB mode with infinite scroll
- Move All/Favorite filter to right side in PeoplePage, always visible
- Track dropdownOpen state in EntryCard to fix menu close flash

Co-authored-by: Copilot <copilot@github.com>
2026-04-27 11:49:00 +01:00
Mohammed Abad ea143fb32a fix(backend): fetch credits in TMDB preview and fix collection fallback
- Add credits fetch to GET /entries/tmdb/preview/:type/:tmdbId endpoint
- Map cast/crew to Credit-like shapes in preview response
- Fall back to entry backdrops when collection has no backdrop
2026-04-27 11:48:47 +01:00
X4Lo 23bce5a681 Merge branch 'react-frontend' of https://github.com/X4Lo/Showy into react-frontend 2026-04-27 04:03:39 +01:00
Mohammed AbadandCopilot 02cdcf733d feat(frontend): navigate non-library entries to TMDB preview page
- Add TmdbPreviewPage showing TMDB details without adding to library
- Display backdrop, poster, title, tagline, genres, rating, storyline
- Show season/episode count for TV series
- Add "Add to Library" button that creates entry then redirects to details page
- Show "Already in Library — View" if entry exists in DB
- Add /entry/tmdb/:type/:tmdbId route in router.tsx
- Add TmdbPreview type, entriesApi.previewTmdb(), and useTmdbPreview() hook
- Update EntryCard to navigate to preview page instead of auto-adding

Co-authored-by: Copilot <copilot@github.com>
2026-04-27 04:03:21 +01:00
Mohammed Abad 25b645a16f feat(backend): add TMDB preview endpoint for non-library entries
- Add GET /entries/tmdb/preview/:type/:tmdbId endpoint in entryController.js
- Fetch TMDB data via tmdbService.fetchEntryData() without persisting to DB
- Return normalized preview object with title, poster, genres, rating, season/episode counts
2026-04-27 04:03:02 +01:00
X4Lo e9bc8886d4 Minor changes
- Updated frontend credit type
- Updated sorting of entry credits in `getEntryById()`
2026-04-23 22:23:10 +01:00
Mohammed Abad 6aa57cbe71 feat(frontend): add MarkSeasonWatchedDialog with scatter mode
- Create MarkSeasonWatchedDialog replacing two-step EpisodeSeenEditDialog+ConfirmDialog flow
- Add scatter mode to distribute episodes across a date range with preview
- Always show "Mark Season Watched" button on SeasonPage
2026-04-23 16:51:29 +01:00
Mohammed Abad ce01dc34fa feat(backend): fix credit duplicates, support multi-role TV credits, fix collection upload
- Fix credit dedup key to people_id + cast_type (scoped to entry_id)
- Detect aggregate_credits format via Array.isArray(c.roles) instead of is_tvseries flag
- Join multiple roles/jobs with "; " instead of taking only the first
- Add episode_count field to Credit model from total_episode_count
- Increase character and job columns to VARCHAR(500)
- Deselect existing collection posters/backdrops before inserting new upload
- Updated docs-vault
- Updated some agents files
2026-04-23 16:51:18 +01:00
Mohammed Abad 260282a0e2 Updated the Obsidian docs-vault 2026-04-22 14:48:43 +01:00
X4Lo 72fd77ee01 Backend: Updated tmdb services endpoint to get tv series credits 2026-04-22 13:54:23 +01:00
Mohammed Abad 1058274a6a Initiated the obsidian vault 2026-04-22 02:09:10 +01:00
Mohammed Abad 3c4958df50 Frontend: UI improvements, dashboard fixes, and settings cleanup
- EntrySeenDialog: native date input, merged date+accuracy row
- EpisodeSeenEditDialog: merged date+accuracy row
- LibraryGrowthChart: use createdAt only, include all entries
- SeasonPage/EpisodePage: max-w-4xl, improved breadcrumbs ("Title / Season x / Episode x"), fixed season number display
- SettingsPage: added Cleanup section for orphan files/media records
- Added maintenance API client
- Updated docs-vault and project documentation
2026-04-22 02:08:54 +01:00
Mohammed Abad cd695ef4cf Updated Agent Instructions 2026-04-22 02:08:40 +01:00
Mohammed Abad a0d8ee0317 Backend: statistics accuracy filter and maintenance docs
- statisticsController: filter CouchDayChart data to accuracy='EXACT'
- Documented maintenance endpoints and statistics changes in docs-vault
2026-04-22 02:08:01 +01:00
X4Lo 1cc75a94ef backend: removed migrateAccuracyField() function as it was temporary. 2026-04-20 20:25:04 +01:00
Mohammed Abad 63fdc00ac2 feat: entry details overhaul, navigation, rating half-stars, library growth "all", accuracy field
- SeasonPage: add back navigation link to entry details page
- EpisodePage: add breadcrumb navigation back to entry and season pages
- EntryCard: non-library entries now open a details dialog on click with overview, rating, and add-to-library button
- EntryDetailsPage: move favorite and mark-watched buttons into grouped dropdown menu with separators
- EntryDetailsPage: add favorite badge (heart icon) on top-left of poster
- EntryDetailsPage: add "mark as watched" clickable text next to runtime for unwatched movies
- EntryDetailsPage: genre pills are now clickable links that navigate to library page with genre filter
- EntryDetailsPage: hide status pill for movies; show status as text next to release date for TV series
- EntryDetailsPage: add delete entry option in dropdown menu with confirmation dialog and redirect to library
- EntryDetailsPage: add TMDB and IMDb external links under poster using entry.entryIds
- EntryDetailsPage: group all dropdown actions by relevance (Watch/Rate, Organize, Manage, Danger) with separators
- RatingDialog: support half-star ratings (0.5 increments) with left/right click zones per star
- RatingDialog: fix clear rating button by syncing state on dialog open and using dedicated handleClear function
- LibraryGrowthChart: add "All" option to year selector (default) showing cumulative growth across all years
- Frontend: add SeenAccuracy type to types/index.ts, update API layers and hooks to support accuracy
- EntrySeenDialog: add Date Accuracy selector (Exact/Estimated/Unknown) with EXACT default
- EpisodeSeenEditDialog: add Date Accuracy selector, updated overrideSubmit signature
- SeasonPage: pass accuracy through bulk mark-all-watched flow
2026-04-20 01:24:55 +01:00