tech-debt: adapters/ui render() uses interim single-text-field approach #114

Open
opened 2026-06-02 14:05:58 +02:00 by michael · 0 comments
Owner

Context

adapters/ui.render() is implemented as interim solution until
ui_layout/v1 is defined (DAW/daw-modul-berhtjan-core#).

Current interim approach

Each domain record is translated to a single text field:

fields = { { id = "text" } }
records = { { text = "[WARN] src/main.lua:42 -- message" } }

Formatting (brackets, separators) is done in adapters/ui translators.
Providers render the text field as-is -- no logic, no assembly.

Known limitation

Single text field prevents providers (berhtjan-web, berhtjan-api) from
rendering individual fields differently (e.g. status as badge, file as link).

Resolution

Replace interim translators in adapters/ui with ui_layout/v1 aware
implementation once DAW/daw-modul-berhtjan-core#113 is done.

## Context adapters/ui.render() is implemented as interim solution until ui_layout/v1 is defined (DAW/daw-modul-berhtjan-core#<layout-issue>). ## Current interim approach Each domain record is translated to a single text field: fields = { { id = "text" } } records = { { text = "[WARN] src/main.lua:42 -- message" } } Formatting (brackets, separators) is done in adapters/ui translators. Providers render the text field as-is -- no logic, no assembly. ## Known limitation Single text field prevents providers (berhtjan-web, berhtjan-api) from rendering individual fields differently (e.g. status as badge, file as link). ## Resolution Replace interim translators in adapters/ui with ui_layout/v1 aware implementation once DAW/daw-modul-berhtjan-core#113 is done.
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
DAW/fragjan#114
No description provided.