From 53f9a514864f79903d8fc5bcd2b6774f10e297da Mon Sep 17 00:00:00 2001 From: Michi Date: Tue, 24 Nov 2026 16:28:30 +0100 Subject: [PATCH] =?UTF-8?q?hilfe-dialog:=20schlie=C3=9Fen-fix,=20zentriert?= =?UTF-8?q?,=20kompakter,=20bl=C3=A4ttern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fix: display:flex nur für #helpDlg[open] (vorher überschrieb es das display:none des geschlossenen → ließ sich nicht schließen). - Dialog zentriert und schmaler, kompaktere Abstände. - Blätter-Funktion: ein Themenblock pro Seite, klickbare Titel-Chips (Ansichten, Finden, …), Zurück/Weiter, Punkt-Indikator, Pfeiltasten. Co-Authored-By: Claude Opus 4.8 --- public/app.js | 30 +++++++++++++++++++++-- public/index.html | 62 ++++++++++++++++++----------------------------- public/lang.js | 4 +++ 3 files changed, 56 insertions(+), 40 deletions(-) diff --git a/public/app.js b/public/app.js index bc2e219..5c93820 100644 --- a/public/app.js +++ b/public/app.js @@ -966,9 +966,34 @@ document.getElementById('fAddTarget').onclick = () => { } document.getElementById('btnSettings').onclick = () => openSettings(false) document.getElementById('btnCloseSettings').onclick = closeSettings -// help / overview dialog (native : Esc closes it) -document.getElementById('btnHelp').onclick = () => document.getElementById('helpDlg').showModal() +/* help / overview dialog – paged, one topic group per page (native : Esc closes it) */ +const HELP_PAGES = [ + { t: 'help.g.views', rows: [['kanban', 'help.board'], ['layout-grid', 'help.gallery'], ['list', 'help.list'], ['list-checks', 'help.tasks'], ['activity', 'help.activity'], ['hard-drive', 'help.storage']] }, + { t: 'help.g.find', rows: [['sliders-horizontal', 'help.mode'], ['search', 'help.search'], ['funnel', 'help.filters']] }, + { t: 'help.g.project', rows: [['pencil', 'help.edit'], ['info', 'help.info'], ['play', 'help.actions'], ['folder-open', 'help.quick']] }, + { t: 'help.g.backup', rows: [['hard-drive-upload', 'help.backup'], ['clock-alert', 'help.due']] }, + { t: 'help.g.misc', rows: [['folders', 'help.folders'], ['languages', 'help.lang'], ['keyboard', 'help.keys']] }, +] +let helpPage = 0 +function renderHelp() { + helpPage = Math.max(0, Math.min(HELP_PAGES.length - 1, helpPage)) + document.getElementById('helpNav').innerHTML = HELP_PAGES.map((p, i) => ``).join('') + document.getElementById('helpBody').innerHTML = HELP_PAGES[helpPage].rows.map(([icon, k]) => `
${ic(icon)}
${t(k)}
`).join('') + document.getElementById('helpDots').innerHTML = HELP_PAGES.map((_, i) => ``).join('') + document.getElementById('helpPrev').disabled = helpPage === 0 + document.getElementById('helpNext').disabled = helpPage === HELP_PAGES.length - 1 + document.getElementById('helpBody').scrollTop = 0 +} +const gotoHelp = (i) => { helpPage = i; renderHelp() } +document.getElementById('btnHelp').onclick = () => { helpPage = 0; renderHelp(); document.getElementById('helpDlg').showModal() } document.getElementById('helpClose').onclick = () => document.getElementById('helpDlg').close() +document.getElementById('helpNav').onclick = (e) => { const b = e.target.closest('[data-hp]'); if (b) gotoHelp(+b.dataset.hp) } +document.getElementById('helpPrev').onclick = () => gotoHelp(helpPage - 1) +document.getElementById('helpNext').onclick = () => gotoHelp(helpPage + 1) +document.getElementById('helpDlg').addEventListener('keydown', (e) => { + if (e.key === 'ArrowRight' && helpPage < HELP_PAGES.length - 1) gotoHelp(helpPage + 1) + if (e.key === 'ArrowLeft' && helpPage > 0) gotoHelp(helpPage - 1) +}) document.getElementById('spCancel').onclick = closeSettings document.getElementById('spSave').onclick = saveSettings @@ -3190,6 +3215,7 @@ function initLang() { if (editing) try { openEditor(editing) } catch {} const sp = document.getElementById('spanel') if (sp.classList.contains('open')) { I18N.apply(sp); try { renderAutoStatus() } catch {} } + try { if (document.getElementById('helpDlg').open) renderHelp() } catch {} }) } diff --git a/public/index.html b/public/index.html index ad54391..66ccd19 100644 --- a/public/index.html +++ b/public/index.html @@ -684,16 +684,25 @@ .dlg.wide .ihead { display: flex; align-items: center; gap: 8px; padding: 14px 20px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 1; } .dlg.wide .ihead h3 { margin: 0; display: flex; gap: 8px; align-items: center; font-size: 16px; } .dlg.wide .ihead .sp { flex: 1; } - #helpDlg { width: 640px; display: flex; flex-direction: column; } - .helpbody { padding: 16px 22px 22px; overflow-y: auto; min-height: 0; } - .helpintro { margin: 0; font-size: 13.5px; color: var(--text); line-height: 1.55; } - .helph { margin: 18px 0 4px; display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); } - .helph::after { content: ""; flex: 1; height: 1px; background: var(--border); } - .helprow { display: flex; gap: 11px; align-items: flex-start; padding: 7px 0; font-size: 13px; line-height: 1.5; color: var(--text); } - .helprow .hc { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; } - .helprow .hc .i { width: 16px; height: 16px; } + /* only style the OPEN dialog as flex – otherwise this overrides the UA display:none and it can never close */ + #helpDlg { width: 560px; max-height: calc(100vh - 80px); margin: auto; } + #helpDlg[open] { display: flex; flex-direction: column; } + .helpintro { margin: 0; padding: 12px 20px 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; } + .helpnav { display: flex; gap: 5px; flex-wrap: wrap; padding: 12px 20px 10px; } + .hnav { font: inherit; font-size: 12px; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; } + .hnav:hover { color: var(--text); } + .hnav.active { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; font-weight: 600; } + .helpbody { padding: 2px 20px 6px; overflow-y: auto; min-height: 0; } + .helprow { display: flex; gap: 11px; align-items: flex-start; padding: 6px 0; font-size: 13px; line-height: 1.5; color: var(--text); } + .helprow .hc { flex: 0 0 auto; width: 27px; height: 27px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; } + .helprow .hc .i { width: 15px; height: 15px; } .helprow > div { min-width: 0; } .helprow b { font-weight: 650; } + .helpfoot { display: flex; align-items: center; gap: 10px; padding: 11px 20px; border-top: 1px solid var(--border); } + .helpfoot .btn { padding: 6px 12px; } + .helpdots { display: flex; gap: 6px; margin: 0 auto; } + .helpdots i { width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); transition: background .12s; } + .helpdots i.on { background: var(--accent); } #itchBody { padding: 4px 20px 20px; } .isec { margin-top: 16px; } .isec h4 { margin: 0 0 8px; font-size: 13px; display: flex; align-items: center; gap: 7px; } @@ -1336,36 +1345,13 @@ -
-

Project Dashboard keeps all your projects under one roof: status, size, Git/backup state and quick actions – one tile per project folder.

- -
Views
-
Board – Kanban by status. Drag a card to another column to change its status.
-
Gallery – big tiles with thumbnails and the key facts.
-
List – compact table with sortable columns.
-
Tasks – all open to-dos across every project.
-
Activity – a calendar heatmap of what you worked on, and when.
-
Storage – who uses how much disk; find and delete regenerable folders (cache, builds).
- -
Finding things
-
Simple / Advanced – Simple shows only the essentials, Advanced every feature. Toggle at the top right.
-
Search – filter by name, tags or notes.
-
Quick filters – the chips under the counters filter by backup due, cleanable, no icon, favorites …
- -
A single project
-
Edit – status, priority, tags, notes, tasks, icon and a custom start command.
-
Info – read-only overview: description, Git, size, tech and recent activity.
-
Actions – start the program (▶), build, Git push, create a ZIP, make an itch.io page, clean up – and delete the project folder (Danger zone).
-
Quick buttons – Explorer, VS Code and ▶ start sit on every card and at the top of the panel.
- -
Backup & safety
-
Backup – copies projects to an external disk or NAS. Only new and changed files; nothing is ever deleted in the backup. Targets and an automatic schedule live in Settings.
-
Backup due – a project changed since its last backup is flagged and appears under the “Backup due” filter.
- -
Good to know
-
Project folders – choose which folders hold your projects in Settings → Project folders.
-
Language – switch English / German in Settings → General.
-
Shortcuts – Esc closes panels and dialogs; Ctrl+S saves the settings.
+

Project Dashboard keeps all your projects under one roof: status, size, Git/backup state and quick actions – one tile per project folder.

+
+
+
+ + +
diff --git a/public/lang.js b/public/lang.js index f7928e7..f6d1a32 100644 --- a/public/lang.js +++ b/public/lang.js @@ -744,6 +744,8 @@ window.LANG = { 'help.folders': 'Project folders – choose which folders hold your projects in Settings → Project folders.', 'help.lang': 'Language – switch English / German in Settings → General.', 'help.keys': 'Shortcuts – Esc closes panels and dialogs; Ctrl+S saves the settings.', + 'help.prev': 'Back', + 'help.next': 'Next', }, de: { @@ -1486,5 +1488,7 @@ window.LANG = { 'help.folders': 'Projektordner – in Einstellungen → Projektordner festlegen, welche Ordner deine Projekte enthalten.', 'help.lang': 'Sprache – Englisch / Deutsch umschalten in Einstellungen → Allgemein.', 'help.keys': 'Tastenkürzel – Esc schließt Panels und Dialoge; Strg+S speichert die Einstellungen.', + 'help.prev': 'Zurück', + 'help.next': 'Weiter', }, };