From e4b6d918e42bfe39e051c6e40fcf3b673d72269e Mon Sep 17 00:00:00 2001 From: npeter83 Date: Wed, 4 Nov 2026 19:43:02 +0100 Subject: [PATCH] fix(plex,share): Recently added's See all opens newest first, and a share link says open See all on Recently added opened Browse in whatever sort was last used, by title on the account it was seen on. The share dialog said anyone can watch a link that may hold a zip. --- frontend/src/i18n/locales/en/downloads.json | 2 +- frontend/src/i18n/locales/hu/downloads.json | 2 +- frontend/src/modules/plex/PlexBrowse.tsx | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/frontend/src/i18n/locales/en/downloads.json b/frontend/src/i18n/locales/en/downloads.json index 9bef9fc1..8c0ceb85 100644 --- a/frontend/src/i18n/locales/en/downloads.json +++ b/frontend/src/i18n/locales/en/downloads.json @@ -92,7 +92,7 @@ "pickPlaceholder": "Search a user…", "noUsers": "No other users yet.", "linkSection": "Share a link", - "linkHint": "Anyone with the link can watch — no account needed.", + "linkHint": "Anyone with the link can open it — no account needed.", "linkCopied": "Share link copied to clipboard", "openNewTab": "Open in new tab", "linkFailed": "Couldn’t create the share link", diff --git a/frontend/src/i18n/locales/hu/downloads.json b/frontend/src/i18n/locales/hu/downloads.json index 10a10a22..21f02014 100644 --- a/frontend/src/i18n/locales/hu/downloads.json +++ b/frontend/src/i18n/locales/hu/downloads.json @@ -92,7 +92,7 @@ "pickPlaceholder": "Keress egy felhasználót…", "noUsers": "Nincs más felhasználó.", "linkSection": "Megosztás linkkel", - "linkHint": "A link birtokában bárki megnézheti — fiók nélkül is.", + "linkHint": "A link birtokában bárki megnyithatja — fiók nélkül is.", "linkCopied": "Megosztási link a vágólapra másolva", "openNewTab": "Megnyitás új lapon", "linkFailed": "Nem sikerült a megosztási link létrehozása", diff --git a/frontend/src/modules/plex/PlexBrowse.tsx b/frontend/src/modules/plex/PlexBrowse.tsx index 8cbbe24e..cfc1e27b 100644 --- a/frontend/src/modules/plex/PlexBrowse.tsx +++ b/frontend/src/modules/plex/PlexBrowse.tsx @@ -80,6 +80,9 @@ const LASTWATCHED_SORT: NonNullable = Object.freeze({ dir: "desc" as const, }); +// What the Recently added rail's See all opens on. +const ADDED_SORT: NonNullable = Object.freeze({ key: "added", dir: "desc" as const }); + // Watch-state options for the toolbar pill (moved out of the filter rail — it's a top-level "what am // I looking at" control now, like the feed's Watch-state pill, not a rail widget). const SHOW_OPTS = ["all", "unwatched", "in_progress", "watched"] as const; @@ -582,6 +585,9 @@ function PlexBrowseView({ sub }: { sub: ReturnType // Each opens the list its rail is the start of: the watch state goes with it, and // entering in-progress brings the last-watched sort (the effect above). onSeeAllRecent={() => { + // Newest first is the list's point, so no earlier sort comes back as it leaves in-progress. + preInProgressSort.current = null; + setSort(ADDED_SORT); setShow("all"); sub.open({ kind: "grid" }); }}