commit 6da0c2507b4224cc90eda35a06a659b9e7f40ffe
parent 9a358a10eda2e331f926fb88805cd1e030d9c957
Author: Bharatvaj Hemanth <bharatvaj@yahoo.com>
Date: Sat, 19 Sep 2026 05:12:29 +0530
parent 9a358a10eda2e331f926fb88805cd1e030d9c957
Author: Bharatvaj Hemanth <bharatvaj@yahoo.com>
Date: Sat, 19 Sep 2026 05:12:29 +0530
Remove duplicate title from document view, show status in side panel The document title and status were shown both: 1. In the main document heading (h1) 2. In the side panel title field This was redundant. Now: - Remove h1 heading from main document area (frees up space) - Show status badge next to title field in side panel - Keep title editing in one place (side panel only) - Reduce visual clutter in document workspace This makes better use of space and avoids duplication. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/www/app.js b/www/app.js @@ -545,7 +545,6 @@ async function showDoc(id) { const side = h('aside', { class: 'side card' }); const notices = h('div'); view.replaceChildren( - h('h1', {}, doc.title || doc.serial || 'Untitled draft', ' ', h('span', { class: 'status ' + doc.status }, doc.status.replace(/_/g, ' '))), notices, h('div', { class: 'workspace ' + doc.mode }, pages, side)); @@ -568,7 +567,9 @@ async function showDoc(id) { if (doc.mode === 'edit') { const orgs = Object.keys(app.pim || {}).sort(); side.append( - ...field('Title (blank = use the serial number)', h('input', { id: 'f-title', value: doc.title, maxlength: 200 })), + h('div', { class: 'row' }, + h('div', {}, ...field('Title (blank = use the serial number)', h('input', { id: 'f-title', value: doc.title, maxlength: 200 }))), + h('span', { class: 'status ' + doc.status }, doc.status.replace(/_/g, ' '))), ...field('Organisation (required)', selectEl([['', '(choose)'], ...orgs.map((org) => [org, org])], doc.org_code, refitAll, { id: 'f-org' })), ...field('Series', selectEl([['', '(none)'], ...app.series.map((s) => [s.code, `${s.code} ยท ${s.pattern}`])], doc.series_code, refitAll, { id: 'f-series', disabled: !!doc.serial })), doc.serial ? h('p', { class: 'mono' }, doc.serial) : null,
: asapien/signet