Altinn / Altinn/app-frontend-react
xtended hideAppNameInPdf to be hidden or visible depending on which layoutSet is used when generating the PDF.
- Dominant language
- TypeScript
- Stars
- 21
- Forks
- 33
- Avg merge
- 6d 23h
- Merged PRs (30d)
- 3
Description
### Description
Direktoratet for byggkvalitet wants the ability to define which layoutSets should display the app name in PDF generation. This is because some users only submit subforms, where including the app name can be misleading, while the main form—submitted by another user—should include the app name in the PDF.
There are alternative ways to achieve this today. One option is to hide the app name entirely by setting `hideAppNameInPdf: true` and instead add a header component in the relevant custom PDFs. Another option is to use a dynamic boolean expression in `hideAppNameInPdf`, combined with custom logic to define a data model field that controls whether the app name should be shown or hidden.
### Additional Information
Relevent app: https://altinn.studio/repos/dibk/et-v4/src/branch/master/App/ui/layout-sets.json
Slack thread: https://digdir-samarbeid.slack.com/archives/C02EJ9HKQA3/p1781856267840309
Contributor guide
Research direction
Start by reviewing the referenced dibk/et-v4 layout-sets.json to understand how layout sets are defined, then trace the PDF-generation entry points that consume those settings. Done means users can configure app-name visibility per layoutSet while preserving the existing behavior for forms that do not use the new setting.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100