Skip to content

Commit 8ed68db

Browse files
delchevclaude
andauthored
feat(harmonia): unify page/record title styling across all generated views + shell (#6361)
Every page title now uses one caption style - text-2xl font-semibold tracking-tight: - Record captions (document header, manage create/edit form, form-builder title): were an uppercased font-normal label; now semibold and NOT uppercased ('Sales Invoice', not 'SALES INVOICE'). The document number keeps font-bold so it stays heavier than the caption ('Sales Invoice SI-0000001'). - Browse titles (list, manage list, master-detail, report chart/table, report-file): x-h-toolbar-title kept (truncation) with the caption classes added. - Built-in shell sections: the Inbox title adopts the caption style, and Documents gains a 'Documents' caption alongside its path breadcrumb (root = Home). Secondary headers left as-is by design: the master-detail 'Entity #id' sub-panel titles, the document items-panel header, card ('Details') and dialog titles. Verified live: regenerated kf-mod-sales-invoices - the list, document caption/number, and the shared Inbox/Documents shell all render the unified caption. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent de1b224 commit 8ed68db

11 files changed

Lines changed: 15 additions & 13 deletions

File tree

components/resources/application-core/src/main/resources/META-INF/dirigible/application-core/shell/views/_documents.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
<div x-data="documentsPage" class="vbox size-full">
2020

2121
<div x-h-toolbar data-variant="transparent">
22+
<!-- Section caption, unified with the entity/inbox titles (text-2xl semibold); the breadcrumb
23+
below it is the in-folder path navigator (root = Home). -->
24+
<span x-h-toolbar-title class="shrink-0 text-2xl font-semibold tracking-tight" x-text="T('application-core:shell.nav.documents', 'Documents')"></span>
2225
<button x-h-button data-variant="transparent" data-size="icon-sm" :disabled="!hasBack()" @click="goBack()" aria-label="Back"><i role="img" x-h-lucide data-lucide="arrow-left"></i></button>
2326
<button x-h-button data-variant="transparent" data-size="icon-sm" :disabled="!hasForward()" @click="goForward()" aria-label="Forward"><i role="img" x-h-lucide data-lucide="arrow-right"></i></button>
2427
<button x-h-button data-variant="transparent" data-size="icon-sm" @click="refresh()" aria-label="Refresh"><i role="img" x-h-lucide data-lucide="refresh-cw"></i></button>

components/resources/application-core/src/main/resources/META-INF/dirigible/application-core/shell/views/_inbox.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
dashboard Process Inbox redesigned in #6064/#6068). -->
1717
<div x-data="inboxPage" class="vbox size-full">
1818
<div x-h-toolbar data-variant="transparent">
19-
<span x-h-toolbar-title x-text="T('application-core:shell.nav.inbox', 'Inbox')"></span>
19+
<span x-h-toolbar-title class="text-2xl font-semibold tracking-tight" x-text="T('application-core:shell.nav.inbox', 'Inbox')"></span>
2020
<span x-h-badge data-variant="information" x-text="tasks.length"></span>
2121
<div x-h-toolbar-spacer></div>
2222
<span x-show="lastUpdated" x-h-text.muted x-text="'Updated ' + fmtTime(lastUpdated)"></span>

components/template/template-application-ui-harmonia-java/src/main/resources/META-INF/dirigible/template-application-ui-harmonia-java/ui/perspective/document/document-view.html.template

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,10 @@
2020

2121
<div x-h-toolbar data-variant="transparent">
2222
#if($docNumberProp != "")
23-
<!-- Document title: the uppercased document label (normal weight) + the number in bold
24-
(e.g. SALES INVOICE 00001231). The label is a plain span on purpose - the x-h-text.h3
25-
directive injects font-semibold, which the label must NOT have; only the number is bold. -->
23+
<!-- Document title: the document label (semibold, unified caption style) + the number in bold
24+
(heavier than the caption so it stands out), e.g. "Sales Invoice SI-0000001". -->
2625
<div class="hbox items-baseline gap-2 shrink-0">
27-
<span class="text-2xl font-normal tracking-tight" x-text="T('$projectName:${tprefix}.t.${dataName}', '${documentLabel}').toUpperCase()"></span>
26+
<span class="text-2xl font-semibold tracking-tight" x-text="T('$projectName:${tprefix}.t.${dataName}', '${documentLabel}')"></span>
2827
<span class="text-2xl font-bold tracking-tight" x-show="(isEdit || isPreview) && form.${docNumberProp}" x-text="form.${docNumberProp}"></span>
2928
</div>
3029
#else

components/template/template-application-ui-harmonia-java/src/main/resources/META-INF/dirigible/template-application-ui-harmonia-java/ui/perspective/list/view.html.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<div x-data="${name}ListPage" class="vbox size-full">
77

88
<div x-h-toolbar data-variant="transparent">
9-
<span x-h-toolbar-title class="shrink-0" x-text="T('$projectName:${tprefix}.t.${dataName}', '${name}')"></span>
9+
<span x-h-toolbar-title class="shrink-0 text-2xl font-semibold tracking-tight" x-text="T('$projectName:${tprefix}.t.${dataName}', '${name}')"></span>
1010
<div x-h-toolbar-spacer></div>
1111
<div x-h-input-group data-size="sm">
1212
<input x-h-input.group type="text" :placeholder="T('$projectName:${tprefix}.messages.inputSearch', 'Search ${name}...', { name: T('$projectName:${tprefix}.t.${dataName}', '${name}') })"

components/template/template-application-ui-harmonia-java/src/main/resources/META-INF/dirigible/template-application-ui-harmonia-java/ui/perspective/manage/form-view.html.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<!-- Page caption in the document title style: the uppercased entity label (e.g. CUSTOMER),
2323
text-2xl normal weight - matches the document header look. This caption is intentionally only
2424
on the create/edit form, NOT on the list/master browse views. -->
25-
<span class="text-2xl font-normal tracking-tight shrink-0" x-text="T('$projectName:${tprefix}.t.${dataName}', '${entityLabel}').toUpperCase()"></span>
25+
<span class="text-2xl font-semibold tracking-tight shrink-0" x-text="T('$projectName:${tprefix}.t.${dataName}', '${entityLabel}')"></span>
2626
<div x-h-toolbar-spacer></div>
2727
#if($statusProp != "")
2828
<!-- EntityStatus badge, right-aligned like the document view's pill; shown once the record's

components/template/template-application-ui-harmonia-java/src/main/resources/META-INF/dirigible/template-application-ui-harmonia-java/ui/perspective/manage/list-view.html.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<div x-data="${name}ManageListPage" class="vbox size-full">
77

88
<div x-h-toolbar data-variant="transparent">
9-
<span x-h-toolbar-title class="shrink-0" x-text="T('$projectName:${tprefix}.t.${dataName}_plural', '${menuLabel}')"></span>
9+
<span x-h-toolbar-title class="shrink-0 text-2xl font-semibold tracking-tight" x-text="T('$projectName:${tprefix}.t.${dataName}_plural', '${menuLabel}')"></span>
1010
<div x-h-toolbar-spacer></div>
1111
<div x-h-input-group data-size="sm">
1212
<input x-h-input.group type="text" :placeholder="T('$projectName:${tprefix}.messages.inputSearch', 'Search ${menuLabel}...', { name: T('$projectName:${tprefix}.t.${dataName}', '${entityLabel}') })"

components/template/template-application-ui-harmonia-java/src/main/resources/META-INF/dirigible/template-application-ui-harmonia-java/ui/perspective/master/master-view.html.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<div x-data="${name}MasterPage" class="vbox size-full">
88

99
<div x-h-toolbar data-variant="transparent">
10-
<span x-h-toolbar-title class="shrink-0" x-text="T('$projectName:${tprefix}.t.${dataName}_plural', '${menuLabel}')"></span>
10+
<span x-h-toolbar-title class="shrink-0 text-2xl font-semibold tracking-tight" x-text="T('$projectName:${tprefix}.t.${dataName}_plural', '${menuLabel}')"></span>
1111
<div x-h-toolbar-spacer></div>
1212
<div x-h-input-group data-size="sm">
1313
<input x-h-input.group type="text" :placeholder="T('$projectName:${tprefix}.messages.inputSearch', 'Search ${name}...', { name: T('$projectName:${tprefix}.t.${dataName}', '${name}') })" x-model="searchTerm" @input="page = 1; refreshIcons()" />

components/template/template-application-ui-harmonia-java/src/main/resources/META-INF/dirigible/template-application-ui-harmonia-java/ui/perspective/report-file/index.html.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<div class="vbox size-full">
2525
<!-- Hidden in preview mode (the dashboard tile): no title/badge/toolbar, just the data. -->
2626
<div x-show="!preview" x-h-toolbar data-variant="transparent">
27-
<span x-h-toolbar-title class="shrink-0" x-text="displayName"></span>
27+
<span x-h-toolbar-title class="shrink-0 text-2xl font-semibold tracking-tight" x-text="displayName"></span>
2828
<span x-show="state === 'default'" x-h-badge data-variant="information" x-text="count + ' rows'"></span>
2929
<div x-h-toolbar-spacer></div>
3030
#if($chart)

components/template/template-application-ui-harmonia-java/src/main/resources/META-INF/dirigible/template-application-ui-harmonia-java/ui/perspective/report/chart-view.html.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<!-- Generated by Eclipse Dirigible. Report chart view for ${name} (native Harmonia chart). -->
44
<div x-data="${name}ReportPage" class="vbox size-full">
55
<div x-h-toolbar data-variant="transparent">
6-
<span x-h-toolbar-title>${name}</span>
6+
<span x-h-toolbar-title class="text-2xl font-semibold tracking-tight">${name}</span>
77
<div x-h-toolbar-spacer></div>
88
<button x-h-button data-variant="outline" data-size="sm" @click="load()"><i role="img" x-h-lucide data-lucide="refresh-cw"></i><span x-text="T('$projectName:${tprefix}.defaults.refresh', 'Refresh')"></span></button>
99
<button x-h-button data-variant="outline" data-size="sm" @click="printChart()"><i role="img" x-h-lucide data-lucide="printer"></i><span x-text="T('$projectName:${tprefix}.defaults.print', 'Print')"></span></button>

components/template/template-application-ui-harmonia-java/src/main/resources/META-INF/dirigible/template-application-ui-harmonia-java/ui/perspective/report/table-view.html.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!-- Generated by Eclipse Dirigible. Report table view for ${name}. -->
22
<div x-data="${name}ReportPage" class="vbox size-full">
33
<div x-h-toolbar data-variant="transparent">
4-
<span x-h-toolbar-title>${name}</span>
4+
<span x-h-toolbar-title class="text-2xl font-semibold tracking-tight">${name}</span>
55
<div x-h-toolbar-spacer></div>
66
<button x-h-button data-variant="outline" data-size="sm" @click="load()"><i role="img" x-h-lucide data-lucide="refresh-cw"></i><span x-text="T('$projectName:${tprefix}.defaults.refresh', 'Refresh')"></span></button>
77
<button x-h-button data-variant="outline" data-size="sm" @click="exportCsv()"><i role="img" x-h-lucide data-lucide="download"></i><span x-text="T('$projectName:${tprefix}.defaults.export', 'Export')"></span></button>

0 commit comments

Comments
 (0)