Commit Graph

172 Commits

Author SHA1 Message Date
f107085385 feat: add media suggestions to home screen
Introduce a new Suggestions section on the home screen that fetches and
displays recommended content from the Jellyfin API. This replaces the
previous manual featured items logic with a more robust suggestion
system supporting movies, series, and episodes.

Key changes:
- Implement `getSuggestions` in `JellyfinApiClient` to fetch video content.
- Update `AppContentRepository` and its implementation to manage
  suggestions, including caching and background refreshing.
- Add `SuggestedItem` models and update `AppViewModel` to expose
  suggestions as a state flow.
- Replace `HomeFeaturedSection` with `SuggestionsSection` using a
  horizontal pager.
- Implement auto-scrolling logic in `HomeContent` to ensure suggestions
  are visible upon initial load if the user hasn't already interacted.
2026-03-31 15:51:07 +02:00
f2759b271e Refine home screen card styling and visual hierarchy
Updated various home screen components (`ContinueWatchingCard`, `HomeBrowseCard`, `NextUpCard`, `HomeSearchResultCard`, etc.) to simplify their appearance and improve readability:

- Removed `tonalElevation` from multiple Surface containers.
- Replaced `surfaceVariant` backgrounds and `onSurfaceVariant` text colors with `surface` and `onSurface` for better contrast.
- Removed the thin border from `HomeBrowseCard`.
- Darkened the gradient overlay on `HomeFeaturedCard` for better text legibility and adjusted the progress bar padding.
2026-03-31 12:16:48 +02:00
4455640142 Refactor home composables into subpackages 2026-03-31 11:58:57 +02:00
0e1682fd16 Refactor home screen UI and top bar components
- Replace `HomeDiscoveryTopBar` with a simpler `HomeTopBar` using `TopAppBar`.
- Introduce `DefaultTopBar` as a reusable component with integrated search and profile actions.
- Update `HomeScreen` and `LibrariesScreen` to use the new top bar implementations.
- Simplify `HomeContent` background and remove `ContentBadge` from featured and next-up items.
- Refine `HomeSections` UI including library item shapes, padding, and text styling.
- Expose internal preview data functions for broader use in UI previews.
2026-03-31 11:29:02 +02:00
c815f53cff refactor: simplify color definitions using HSL for better readability 2026-03-31 11:01:07 +02:00
51fc17cb92 feat: redesign home screen with discovery-focused UI
Overhauls the home screen to provide a modern, media-focused discovery
experience. Key changes include:

- Introduced a featured content carousel at the top, highlighting
  continue watching items, next up episodes, and library additions.
- Implemented a search overlay with a real-time search bar and grid
  results for movies and series.
- Redesigned the top bar with a large collapsible title and subtitle
  that dynamically reflects content status.
- Updated sections for "Continue Watching", "Next Up", and libraries
  with high-fidelity cards, progress indicators, and better typography.
- Added a dedicated empty state with quick actions for refreshing or
  browsing libraries.
- Improved navigation by adding library-specific click actions and
  search-to-detail transitions.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-30 20:33:15 +02:00
1c5bb604f8 Remove unused action parameter from LibraryPosterSection and clean up imports 2026-03-30 07:48:05 +02:00
354c22cf93 Replace LazyColumn with LazyVerticalGrid for improved layout in LibrariesContent 2026-03-30 07:47:54 +02:00
266f310f1c Remove unused resources 2026-03-28 10:54:03 +01:00
6dacd269e0 Remove app name label from main activities in AndroidManifest 2026-03-28 10:51:04 +01:00
70514ea146 Added Profile dropdown menu 2026-03-27 14:52:27 +01:00
9eccf859bc Added logic for Searching through available medias and basic ui 2026-03-26 22:22:56 +01:00
3aa8b2cce4 Refactor navigation logic into separate container AppScreen 2026-03-26 20:12:19 +01:00
ea50a0c30e Fix library items black mark bug 2026-03-26 19:52:09 +01:00
473e780417 Remove add button from Episode and Movie Screen 2026-03-26 19:46:56 +01:00
e335cde887 Fix PlayerAdjustmentIndicator changing size when percentage gets one number 2026-03-26 19:44:07 +01:00
8afae8a71c Fix: Enhance NavDisplay transitions with fade animations and background color 2026-03-26 18:00:42 +01:00
dd3d8c044e Fix: Player seekbar ui blocking by only seeking when the seek bar is released 2026-03-26 17:19:27 +01:00
995913fef3 Fix TrackButtons to hide PersistentOverlay on outside touch 2026-03-25 21:03:11 +01:00
303c0e7c7f Fix buttons for navigation on SeriesScreen 2026-03-25 20:55:17 +01:00
2665b34b63 Fix MediaActionButton size on SeriesScreen 2026-03-25 20:23:09 +01:00
262d2624ea Add screen previews 2026-03-24 21:34:49 +01:00
f85624b159 Fix interactive episode navigation buttons 2026-03-24 21:34:38 +01:00
5137fd9893 code cleanup 2026-03-24 21:05:12 +01:00
Balogh Barnabás
291738d178 Return to episode screen after playback 2026-03-24 21:03:49 +01:00
Balogh Barnabás
2e8c864522 Fix playback progress updates on exit 2026-03-24 20:54:07 +01:00
Balogh Barnabás
ada0e9600a Refactor player track selection overlay 2026-03-24 20:32:36 +01:00
e37006486e Add series link to episode top bar 2026-03-20 16:55:37 +01:00
08cc4589c2 Refine series download actions 2026-03-20 16:55:37 +01:00
3941c67d8b feat: add smart download feature for series
Automatically manages downloaded episodes per series — keeps 5 unwatched
episodes downloaded, removing watched ones and fetching new ones on
HomeScreen open or pull-to-refresh. A single download button on the
Series screen opens a dialog to choose between downloading all episodes
or enabling smart download.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-20 16:55:37 +01:00
2d278bd348 feat: add batch download for seasons and entire series
Wire up the existing download button on the Series screen to download
all episodes, and add a per-season download button next to the season
tabs. Episode metadata is fetched in parallel for faster queuing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-20 16:55:37 +01:00
cf078c760e fix: always navigate to Series screen when exiting playback from Episode
Instead of just popping the EpisodeRoute (which could land on Home if
opened from ContinueWatching), pop and push a SeriesRoute so playback
exit consistently returns to the SeriesScreen.
2026-03-20 16:55:37 +01:00
12fdf977a4 feat: navigate back to Series screen when exiting playback
Pop the EpisodeRoute from the navigation stack when playback starts,
so finishing PlayerActivity returns to the SeriesScreen instead of
the EpisodeScreen.
2026-03-20 16:55:37 +01:00
5ca127434d feat: add pull-to-refresh gesture to HomeScreen
Wrap HomeContent with PullToRefreshBox to allow refreshing library,
continue watching, and next up sections by pulling down. Also fix
refreshHomeData to suspend until loading completes so the refresh
indicator dismisses properly.
2026-03-20 16:55:37 +01:00
cc972e0e89 feat: add play next up button to Series screen
Adds a MediaResumeButton to the Series screen action bar that directly
launches playback for the next unwatched episode. Shows "Resume" with
progress fill if partially watched, or "Play" for unwatched episodes.
2026-03-20 16:55:37 +01:00
b4b500d5dd fix: request POST_NOTIFICATIONS permission before episode downloads
EpisodeScreen called viewModel.onDownloadClick() directly without first
requesting the POST_NOTIFICATIONS runtime permission. On Android 13+
(API 33+), foreground service notifications are suppressed without this
permission, so downloads ran silently with no notification shown.

Mirrors the existing permission pattern from MovieScreen: on Android 13+
the system dialog is shown before the first download; on denial the
download still proceeds (notification is nice-to-have).
2026-03-20 16:55:37 +01:00
2a7874806d feat: show in-progress downloads with progress bar and cancel in DownloadsContent
- Add ActiveDownloadItem data class to represent a download in progress
- Add observeActiveDownloads() to MediaDownloadManager, polling the Media3
  download index every 500ms on Dispatchers.IO for reliable real-time progress
  (listener callbacks alone do not fire on every progress update)
- DownloadsViewModel exposes activeDownloads (StateFlow) and cancelDownload();
  the completed downloads flow filters out items currently in progress
- DownloadsContent shows a "Downloading" section with thumbnail, title,
  progress bar + percentage, and a cancel button above the completed grid
2026-03-20 16:55:37 +01:00
fce5a981a2 fix: use absolute seek position for gesture seeking to prevent snap-back
Capture the player position when the horizontal drag starts and compute
an absolute seek target instead of using relative seekBy, which could
drift or snap back due to playback advancing during the gesture.
2026-03-20 16:55:37 +01:00
96a9419746 feat: enable code optimization and resource shrinking in release build 2026-02-27 19:34:08 +01:00
78f03096dd feat: make prerequisits for app publication 2026-02-27 18:52:14 +01:00
cccb20312b fix: Prevent tap gesture handler from interfering with seek drag
The detectTapGestures and drag awaitEachGesture handlers competed for
pointer events, causing drag() to sometimes end prematurely and the
seek to not fire. A shared dragActive flag now gates tap/double-tap
callbacks so they are suppressed during active drags.
2026-02-27 16:22:54 +01:00
318b190061 Code cleanup 2026-02-22 19:08:28 +01:00
d90612a056 feat: Remove quick play content on the Nextup section 2026-02-22 15:48:16 +01:00
8c7ddab9c2 feat: Implement Episode download functionality 2026-02-22 15:41:42 +01:00
9ec09a0e94 feat: Allow offline mode in Purefin 2026-02-22 15:41:08 +01:00
d5c0bbded6 feat: add DownloadsViewModel for managing offline media downloads 2026-02-22 13:41:52 +01:00
ce126988d9 feat: add images to libraries on LibrariesContent screen 2026-02-22 12:50:56 +01:00
843bd749b1 feat: remove offline state toggle button 2026-02-22 11:17:03 +01:00
c72283c566 refactor: replace NavigationDrawer with NavigationBar on HomeScreen
Converts the mobile home screen from a ModalNavigationDrawer to a
bottom NavigationBar with three tabs: Home, Libraries, and Downloads.
2026-02-22 11:05:27 +01:00
7333781f83 refactor: modularize app into multi-module architecture 2026-02-22 11:05:26 +01:00