feat(harmonia): generated-UI presentation - humanized labels, task-form Details layout, unified captions - #6355
Merged
Conversation
…s-card layout Two presentation fixes to the generated Harmonia UI, reported together. 1. Humanized property labels. The label catalog value for a property defaulted to the raw PascalCase name (parameterUtils widgetLabel default -> generateUtils translate action), so list columns and the detail/document view showed "PaymentMethod" / "TaxEventDate" instead of "Payment Method" / "Tax Event Date" - while entity labels were already humanized. humanizeName moves to parameterUtils (the shared util module generateUtils already imports from), is exported, and now backs the widgetLabel default; an explicitly authored widgetLabel still wins. Affects every generated app (Angular + Harmonia); flows to the label catalog and the form/list templates alike. 2. Task-form Details-card layout. A BPM task form's read-only fields rendered as label-beside-value hbox rows; they now render as the entity detail / document view's headerless x-h-card of vbox detail cells (muted text-xs label above a text-sm value), so the Inbox task form matches the entity Details layout. Verified live: regenerated kf-mod-sales-invoices - the served label catalog humanizes (Payment Method / Tax Event Date / Bank Account) and the ApproveSalesInvoice task form renders the x-h-card + vbox gap-0 detail cells. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two presentation fixes to the generated Harmonia UI (reported together on a running instance).
1. Humanized property labels
The label catalog value for a property defaulted to the raw PascalCase name —
parameterUtils.jssetwidgetLabel = name, and thegenerateUtils.jstranslateaction wrote that intot.<dataName>. So list columns and the detail/document view showed "PaymentMethod" / "TaxEventDate" instead of "Payment Method" / "Tax Event Date" — even though entity labels were already humanized.humanizeNamemoves toparameterUtils(the lower-level util modulegenerateUtilsalready importssanitizeJavaIdentifierfrom — no circular import, no third copy), is exported, and now backs thewidgetLabeldefault. An explicitly authoredwidgetLabelstill wins. Affects every generated app (Angular + Harmonia); the humanized value flows to both the label catalog and the form/list templates.2. Task-form Details-card layout
A BPM task form's read-only fields rendered as label-beside-value
hboxrows. They now render as the entity detail / document view's headerlessx-h-cardofvboxdetail cells (mutedtext-xslabel above atext-smvalue), so the Inbox task form matches the entity Details layout.Verification (live)
Rebuilt the jar and regenerated
kf-mod-sales-invoices: the served label catalog humanizes (Payment Method/Tax Event Date/Bank Account,Numberunchanged) and the servedApproveSalesInvoicetask form renders thex-h-card+vbox gap-0detail cells (oldwidth: 9remhbox gone).FormIntentGeneratoralready humanized form-control labels, so those were unaffected.🤖 Generated with Claude Code