Concept: document composition (reports, invoices, preview) #18
Labels
No labels
coordination/cross-repo
coordination/needed
effort
large
effort
medium
effort
small
meta/duplicate
meta/planning
meta/wontfix
priority
high
priority
low
priority
medium
session
blocker
session
handover
session
next
status
blocked
status
done
status
in-progress
status
review
status
to-go
type
admin
type
bug
type
config
type
deployment
type
docs
type/documentation
type
enhancement
type
feature
type
handover
type
infrastructure
type
installation
type
maintenance
type
migration
type/refactor
type
research
type
security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
DAW/daw-modul-berhtjan-core#18
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
berhtjan makes data visible -- not only as interactive views, but
also as non-interactive documents: reports, invoices, print and
screen preview. Domain programs (fragjan, steurjan, raidan, sprengaz)
deliver data and a declarative definition; berhtjan composes the
document with generic mechanisms only.
Concept:
docs/CONCEPT-DOCUMENT-COMPOSITION.md(decided, working hypotheses,open questions).
Principles (decided)
berhtjan never receives data it must not show
Findings from current code
contribution.jsondescribes one record (groups, fields), notlists of records -> separate contract, not an extension
compose()returns groups as a map, iterated with pairs(); adocument needs a fixed order
daw_field_type/v1requires at least one acquisition path; reusingfield types for display-only columns needs a solution
Acceptance criteria
Out of scope
Related
DAW/daw-contracts#16, DAW/fragjan#140
Planned order and impact on this issue
Order (no dates):
Documents are built after that, but step 2 should already know this
concept. Two findings affect screens as well, not only documents:
a defined order just like documents
fields on screen have the same problem as display-only columns
For step 4, fix this boundary first:
reaches berhtjan (see docs/CONCEPT-DOCUMENT-COMPOSITION.md, branch
develop)
declared by the domain program, enforced by berhtjan
Acceptance test for the document capability stays: the fragjan
customer report renders byte-identical through berhtjan.
Refs: DAW/daw-contracts#16, DAW/fragjan#140