Enhancement: catalog output via berhtjan #141

Open
opened 2026-10-14 11:58:39 +02:00 by michael · 0 comments
Owner

Goal

Catalog output (report, sheet) goes through berhtjan instead of
writing files directly.

Background (session 2026-10-13/14)

  • All output runs via adapters/ui -> berhtjan-cli render() ->
    out:write(), i.e. stdout -- warnings and content cannot be separated
    (> bericht.md would contain warnings)
  • Interim decision: catalog report and catalog sheet write their file
    with fs.write_file, terminal shows only warnings and status
  • Agreed: output via berhtjan is the next step after 0.5.x

Scope

  • Deliver report and sheet content through the UI layer (berhtjan)
  • Keep warnings separate from content
  • Renderer stays unchanged: it only turns the filtered model into
    Markdown (DAW/fragjan#139 architecture)

Acceptance criteria

  • Report and sheet content delivered via adapters/ui / berhtjan
  • Warnings never end up in report or sheet content
  • Sheets still never overwrite existing files
  • Acceptance test (test/test_catalog_acceptance.lua) stays green
  • Tests pass on Lua 5.1 and 5.4

Notes

  • May need changes in daw-modul-berhtjan-cli; design open
  • Related: configurable report profiles DAW/fragjan#140

Refs: DAW/fragjan#136, DAW/fragjan#139

## Goal Catalog output (report, sheet) goes through berhtjan instead of writing files directly. ## Background (session 2026-10-13/14) - All output runs via adapters/ui -> berhtjan-cli render() -> out:write(), i.e. stdout -- warnings and content cannot be separated (`> bericht.md` would contain warnings) - Interim decision: `catalog report` and `catalog sheet` write their file with fs.write_file, terminal shows only warnings and status - Agreed: output via berhtjan is the next step after 0.5.x ## Scope - Deliver report and sheet content through the UI layer (berhtjan) - Keep warnings separate from content - Renderer stays unchanged: it only turns the filtered model into Markdown (DAW/fragjan#139 architecture) ## Acceptance criteria - [ ] Report and sheet content delivered via adapters/ui / berhtjan - [ ] Warnings never end up in report or sheet content - [ ] Sheets still never overwrite existing files - [ ] Acceptance test (test/test_catalog_acceptance.lua) stays green - [ ] Tests pass on Lua 5.1 and 5.4 ## Notes - May need changes in daw-modul-berhtjan-cli; design open - Related: configurable report profiles DAW/fragjan#140 Refs: DAW/fragjan#136, DAW/fragjan#139
Sign in to join this conversation.
No milestone
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#141
No description provided.