From 219e64f5a20355c828c126bf8f2ab9bac8095861 Mon Sep 17 00:00:00 2001 From: Dymas Date: Thu, 22 Oct 2026 13:57:12 +0200 Subject: [PATCH] Move sign out to the bottom center of every sidebar --- CHANGELOG.md | 5 +++++ README.md | 2 +- VERSION | 2 +- ai_subtitles_page.py | 11 ++++++----- config_page.py | 17 ++++++++++++----- queue_page.py | 17 ++++++++++++----- search_page.py | 17 ++++++++++++----- template_helpers.py | 8 +++++++- watchlist_page.py | 17 ++++++++++++----- 9 files changed, 68 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ab8a0f..04c0775 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.55.1 - 2026-10-22 + +- Moved Sign out to the bottom center of the left sidebar on every page, below navigation and page-specific controls. Desktop sidebars stay within the viewport and scroll when needed; mobile layouts keep the button below the sidebar content. +- Checked all three bundled anime providers against upstream; no updates were required. + ## 0.55.0 - 2026-10-22 - Added configurable `base_url` / `KAIZOKU_BASE_URL` for reverse proxies that forward a complete mount path such as `https://tools.coreplay.eu/kaizoku`. Navigation, APIs, thumbnails, exports, login redirects, and cookies respect the prefix; unrelated paths return 404. diff --git a/README.md b/README.md index 9711073..069cd2e 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ A local web app to search, track, and download anime from Anikoto, AniNeko, and - Download available English subtitles and translate them to Czech with Ollama or OpenAI. - Back up watchlists and receive Discord notifications. -The AI Subtitles page uses the same sidebar navigation and responsive layout as the other pages. +The AI Subtitles page uses the same sidebar navigation and responsive layout as the other pages. **Sign out** is centered at the bottom of the left sidebar on every page. Jellyfin handoff checks each downloaded TV season in **Finished** separately, verifies its season-specific completion metadata, and moves only that season and its sidecars once its expected video files are present. Other seasons remain in Downloads. Use **Config → Handoff → Run now** after updating to repair missing or incorrect season metadata and retry previously skipped seasons. If metadata cannot be verified, the queue reports the skip and retains the files for a later retry. diff --git a/VERSION b/VERSION index 316ba4b..b0b5281 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.55.0 +0.55.1 diff --git a/ai_subtitles_page.py b/ai_subtitles_page.py index 3d96d7e..d796fe7 100644 --- a/ai_subtitles_page.py +++ b/ai_subtitles_page.py @@ -1,5 +1,5 @@ """AI subtitle library and persistent translation queue UI.""" -from template_helpers import BROWSER_API_HELPER, BROWSER_POLL_HELPER, render_page_links, render_sidebar_brand +from template_helpers import BROWSER_API_HELPER, BROWSER_POLL_HELPER, render_page_links, render_sidebar_brand, render_sidebar_logout AI_SUBTITLES_HTML = r''' @@ -7,13 +7,14 @@ AI_SUBTITLES_HTML = r'''
+

AI Subtitles

Your Jellyfin dialogue, translated into Czech.

@@ -111,4 +112,4 @@ function renderDetail(){if(!selected)return;const host=$('seasons');const open=n async function refresh(){data=await api('/api/ai-subtitles');$('connection').textContent=`${data.backend==='openai'?'OpenAI API':'Ollama'} · ${data.model} · ${data.endpoint} · TV: ${data.roots.tv} · Movies: ${data.roots.movie}`;$('scan').disabled=data.scanning;$('scan').textContent=data.scanning?'Scanning…':'Scan libraries';$('scan-errors').textContent=data.scan_errors.join(' ');renderLibrary();renderDetail();} $('scan').onclick=()=>action('scan');$('filter').oninput=()=>{libraryPage=1;renderLibrary();};$('back').onclick=()=>{selected=null;$('library').hidden=false;$('detail').hidden=true;$('seasons').replaceChildren();};$('queue-title').onclick=()=>action('queue',selection());$('save-notes').onclick=()=>action('terminology',{...selection(),notes:$('notes').value}); refresh().catch(e=>message(e.message,true));startSerialPoll(async()=>{if(!busy&&!['SELECT','TEXTAREA'].includes(document.activeElement.tagName)){try{await refresh();}catch(e){message(e.message,true);}}},4000); -'''.replace('__BRAND__', render_sidebar_brand('Library translation', 'AI Subtitles')).replace('__NAV__', render_page_links('ai-subtitles')).replace('__API__', BROWSER_API_HELPER).replace('__POLL__', BROWSER_POLL_HELPER) +'''.replace('__BRAND__', render_sidebar_brand('Library translation', 'AI Subtitles')).replace('__NAV__', render_page_links('ai-subtitles')).replace('__LOGOUT__', render_sidebar_logout()).replace('__API__', BROWSER_API_HELPER).replace('__POLL__', BROWSER_POLL_HELPER) diff --git a/config_page.py b/config_page.py index 453cb31..d6094d1 100644 --- a/config_page.py +++ b/config_page.py @@ -3,7 +3,7 @@ """Config page template for Kaizoku.""" from app_support import DISCORD_WEBHOOK_EVENT_CHOICES, DISCORD_WEBHOOK_EVENT_LABELS -from template_helpers import BROWSER_API_HELPER, render_page_links, render_sidebar_brand +from template_helpers import BROWSER_API_HELPER, render_page_links, render_sidebar_brand, render_sidebar_logout WEBHOOK_EVENT_OPTIONS = "\n".join( @@ -126,11 +126,18 @@ CONFIG_HTML = r""" aside { border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(25, 18, 41, 0.94), rgba(14, 10, 24, 0.9)); - display: grid; - align-content: start; + display: flex; + flex-direction: column; + align-self: start; + position: sticky; + top: 0; + height: 100dvh; + overflow-y: auto; gap: 20px; backdrop-filter: blur(18px) saturate(170%); } + aside > * { flex-shrink: 0; } + .sidebar-logout { margin: auto 0 0; padding-top: 20px; text-align: center; } main { display: grid; gap: 20px; @@ -449,7 +456,7 @@ CONFIG_HTML = r""" } @media (max-width: 900px) { .app { grid-template-columns: 1fr; } - aside { border-right: 0; border-bottom: 1px solid var(--line); } + aside { position: static; height: auto; overflow: visible; border-right: 0; border-bottom: 1px solid var(--line); } .toolbar, .row { align-items: stretch; flex-direction: column; } } @media (max-width: 1080px) { @@ -495,7 +502,7 @@ CONFIG_HTML = r"""
- +""" + render_sidebar_logout() + r"""
diff --git a/queue_page.py b/queue_page.py index 1e4da73..c6df3e4 100644 --- a/queue_page.py +++ b/queue_page.py @@ -2,7 +2,7 @@ """Queue page template for Kaizoku.""" -from template_helpers import BROWSER_API_HELPER, BROWSER_POLL_HELPER, render_page_links, render_sidebar_brand +from template_helpers import BROWSER_API_HELPER, BROWSER_POLL_HELPER, render_page_links, render_sidebar_brand, render_sidebar_logout QUEUE_HTML = r""" @@ -99,11 +99,18 @@ QUEUE_HTML = r""" aside { border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(25, 18, 41, 0.94), rgba(14, 10, 24, 0.9)); - display: grid; - align-content: start; + display: flex; + flex-direction: column; + align-self: start; + position: sticky; + top: 0; + height: 100dvh; + overflow-y: auto; gap: 20px; backdrop-filter: blur(18px) saturate(170%); } + aside > * { flex-shrink: 0; } + .sidebar-logout { margin: auto 0 0; padding-top: 20px; text-align: center; } main { display: grid; grid-template-rows: auto auto 1fr; @@ -380,7 +387,7 @@ QUEUE_HTML = r""" } @media (max-width: 900px) { .app { grid-template-columns: 1fr; } - aside { border-right: 0; border-bottom: 1px solid var(--line); } + aside { position: static; height: auto; overflow: visible; border-right: 0; border-bottom: 1px solid var(--line); } .toolbar, .row { align-items: stretch; flex-direction: column; } .job-head { grid-template-columns: auto 1fr; } .job-head .status { grid-column: 2; justify-self: start; } @@ -405,7 +412,7 @@ QUEUE_HTML = r"""
- +""" + render_sidebar_logout() + r"""
diff --git a/search_page.py b/search_page.py index db238c5..db967fb 100644 --- a/search_page.py +++ b/search_page.py @@ -2,7 +2,7 @@ """Search page template for Kaizoku.""" -from template_helpers import BROWSER_API_HELPER, render_page_links, render_sidebar_brand +from template_helpers import BROWSER_API_HELPER, render_page_links, render_sidebar_brand, render_sidebar_logout INDEX_HTML = r""" @@ -129,11 +129,18 @@ INDEX_HTML = r""" aside { border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(25, 18, 41, 0.94), rgba(14, 10, 24, 0.9)); - display: grid; - align-content: start; + display: flex; + flex-direction: column; + align-self: start; + position: sticky; + top: 0; + height: 100dvh; + overflow-y: auto; gap: 20px; backdrop-filter: blur(18px) saturate(170%); } + aside > * { flex-shrink: 0; } + .sidebar-logout { margin: auto 0 0; padding-top: 20px; text-align: center; } main { display: grid; gap: 20px; @@ -442,7 +449,7 @@ INDEX_HTML = r""" } @media (max-width: 900px) { .app { grid-template-columns: 1fr; } - aside { border-right: 0; border-bottom: 1px solid var(--line); } + aside { position: static; height: auto; overflow: visible; border-right: 0; border-bottom: 1px solid var(--line); } .controls, .row, .toolbar { align-items: stretch; flex-direction: column; } .search-panel .controls { grid-template-columns: 1fr; } .results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } @@ -460,7 +467,7 @@ INDEX_HTML = r""" "Search", badge_id="serverBadge", ) + render_page_links("search") + r""" - +""" + render_sidebar_logout() + r"""
diff --git a/template_helpers.py b/template_helpers.py index c69b972..39d2873 100644 --- a/template_helpers.py +++ b/template_helpers.py @@ -87,5 +87,11 @@ def render_page_links(active_page): for key, label, href in PAGE_LINKS: class_name = "page-link active" if key == active_page else "page-link" links.append(f' {label}') - links.append('
') return " \n" + + +def render_sidebar_logout(): + return ( + ' \n' + ) diff --git a/watchlist_page.py b/watchlist_page.py index 2dc528d..ba9a9cd 100644 --- a/watchlist_page.py +++ b/watchlist_page.py @@ -2,7 +2,7 @@ """Watchlist page template for Kaizoku.""" -from template_helpers import BROWSER_API_HELPER, BROWSER_POLL_HELPER, render_page_links, render_sidebar_brand +from template_helpers import BROWSER_API_HELPER, BROWSER_POLL_HELPER, render_page_links, render_sidebar_brand, render_sidebar_logout WATCHLIST_HTML = r""" @@ -119,11 +119,18 @@ WATCHLIST_HTML = r""" aside { border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(25, 18, 41, 0.94), rgba(14, 10, 24, 0.9)); - display: grid; - align-content: start; + display: flex; + flex-direction: column; + align-self: start; + position: sticky; + top: 0; + height: 100dvh; + overflow-y: auto; gap: 20px; backdrop-filter: blur(18px) saturate(170%); } + aside > * { flex-shrink: 0; } + .sidebar-logout { margin: auto 0 0; padding-top: 20px; text-align: center; } main { display: grid; gap: 20px; @@ -734,7 +741,7 @@ WATCHLIST_HTML = r""" } @media (max-width: 900px) { .app { grid-template-columns: 1fr; } - aside { border-right: 0; border-bottom: 1px solid var(--line); } + aside { position: static; height: auto; overflow: visible; border-right: 0; border-bottom: 1px solid var(--line); } .toolbar, .row { align-items: stretch; flex-direction: column; } .summary-grid { grid-template-columns: 1fr; } .watchlist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } @@ -754,7 +761,7 @@ WATCHLIST_HTML = r""" "Watch tracking, refreshes, and automatic downloads.", "Watchlist", ) + render_page_links("watchlist") + r""" - +""" + render_sidebar_logout() + r"""