Files
Showy/docs-vault/Components.md
T
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

3.7 KiB

title, tags
title tags
Components
frontend
components
react

Components

All in react_frontend/src/components/. Organized by domain.


Layout

Component File Description
AppLayout layout/AppLayout.tsx Root layout with Sidebar + main area
Sidebar layout/Sidebar.tsx Left navigation sidebar

Entry Components

Component File Description
EntryCard entries/EntryCard.tsx Entry poster card (grid item)
EntryLibraryGrid entries/EntryLibraryGrid.tsx Grid layout for entry cards
TrendingSlider entries/TrendingSlider.tsx Horizontal slider for trending entries
TrendingGrid entries/TrendingGrid.tsx Grid for trending/popular TMDB entries
SeasonsContainer entries/SeasonsContainer.tsx Seasons list for TV entry details
EpisodeWatchHistory entries/EpisodeWatchHistory.tsx Watch history list for an episode
CastList entries/CastList.tsx Horizontal cast/crew list

Collection Components

Component File Description
CollectionsGrid collections/CollectionsGrid.tsx Grid of collection cards

Dashboard Charts

See Statistics for data details.

Component File Description
WatchActivityChart dashboard/WatchActivityChart.tsx Monthly watch activity (area chart)
WatchTimeChart dashboard/WatchTimeChart.tsx Monthly watch time (area chart)
CouchDayChart dashboard/CouchDayChart.tsx Day-of-week distribution (bar chart)
LibraryGrowthChart dashboard/LibraryGrowthChart.tsx Library growth over time (area chart)
MediaTypeChart dashboard/MediaTypeChart.tsx Movies vs TV breakdown
TopGenresChart dashboard/TopGenresChart.tsx Top genres by count
RatingsChart dashboard/RatingsChart.tsx Ratings distribution

Dialogs

Component File Description
EntrySeenDialog dialogs/EntrySeenDialog.tsx Mark movie/episode as watched. Uses react-hook-form + zod. See Watch Tracking
EpisodeSeenEditDialog dialogs/EpisodeSeenEditDialog.tsx Create/edit episode watch record
EntryMediaDialog dialogs/EntryMediaDialog.tsx Media gallery for entry
EntrySettingsDialog dialogs/EntrySettingsDialog.tsx Entry settings (calendar, sync, hidden)
MovieWatchHistoryDialog dialogs/MovieWatchHistoryDialog.tsx Full movie watch history
RatingDialog dialogs/RatingDialog.tsx Rate entry (supports half-stars)
ConfirmDialog dialogs/ConfirmDialog.tsx Generic confirmation dialog
AddEntryToCollectionDialog dialogs/AddEntryToCollectionDialog.tsx Add entry to collection picker
CollectionEditDialog dialogs/CollectionEditDialog.tsx Create/edit collection
MarkSeasonWatchedDialog dialogs/MarkSeasonWatchedDialog.tsx Mark season as watched — single date or scatter mode

Skeletons

[!info] File: components/skeletons/PageSkeletons.tsx

14 named skeleton exports used as <Suspense> fallbacks for lazy-loaded pages:

HomeSkeleton, LibrarySkeleton, WatchlistSkeleton, DashboardSkeleton, CollectionsSkeleton, CollectionDetailsSkeleton, MediaSkeleton, CalendarSkeleton, EntryDetailsSkeleton, SeasonSkeleton, EpisodeSkeleton, PeopleSkeleton, PersonDetailsSkeleton, SettingsSkeleton

UI Primitives (shadcn/ui)

Base components from shadcn/ui in components/ui/:

badge, avatar, button, calendar, card, checkbox, dialog, dropdown-menu, input, label, popover, progress, scroll-area, select, separator, sheet, skeleton, sonner, switch, tabs, textarea, tooltip

Theme: base-nova style.