Fix shared request access and Jellyfin-ready pipeline status

This commit is contained in:
2026-03-03 16:01:36 +13:00
parent bac96c7db3
commit 96333c0d85
9 changed files with 219 additions and 85 deletions

View File

@@ -567,21 +567,17 @@ export default function HomePage() {
<button
key={`${item.title || 'Untitled'}-${index}`}
type="button"
disabled={!item.requestId || !item.accessible}
disabled={!item.requestId}
onClick={() =>
item.requestId && item.accessible && router.push(`/requests/${item.requestId}`)
item.requestId && router.push(`/requests/${item.requestId}`)
}
>
{item.title || 'Untitled'} {item.year ? `(${item.year})` : ''}{' '}
{!item.requestId
? '- not requested'
: !item.accessible
? `- ${item.statusLabel || 'Requested'} · requested by ${
item.requestedBy || 'another user'
}`
: item.statusLabel
? `- ${item.statusLabel}`
: ''}
: item.statusLabel
? `- ${item.statusLabel}`
: '- already requested'}
</button>
))
)}

View File

@@ -368,7 +368,14 @@ export default function RequestTimelinePage() {
const jellyfinLink = snapshot.raw?.jellyfin?.link
const posterUrl = snapshot.artwork?.poster_url
const resolvedPoster =
posterUrl && posterUrl.startsWith('http') ? posterUrl : posterUrl ? `${getApiBase()}${posterUrl}` : null
posterUrl && posterUrl.startsWith('http') ? posterUrl : posterUrl ? `${getApiBase()}${posterUrl}` : null
const hasPartialReadyTimeline = snapshot.timeline.some(
(hop) => hop.service === 'Seerr' && hop.status === 'Partially ready'
)
const currentStatusText =
snapshot.state === 'IMPORTING' && hasPartialReadyTimeline
? 'Partially ready'
: friendlyState(snapshot.state)
return (
<main className="card">
@@ -400,7 +407,7 @@ export default function RequestTimelinePage() {
<section className="status-box">
<div>
<h2>Status</h2>
<p className="status-text">{friendlyState(snapshot.state)}</p>
<p className="status-text">{currentStatusText}</p>
</div>
<div>
<h2>What this means</h2>

View File

@@ -1,12 +1,12 @@
{
"name": "magent-frontend",
"version": "0303261507",
"version": "0303261601",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "magent-frontend",
"version": "0303261507",
"version": "0303261601",
"dependencies": {
"next": "16.1.6",
"react": "19.2.4",

View File

@@ -1,7 +1,7 @@
{
"name": "magent-frontend",
"private": true,
"version": "0303261507",
"version": "0303261601",
"scripts": {
"dev": "next dev",
"build": "next build",