Altinn / Altinn/app-frontend-react
Summary2: Panel vises ikke
- Dominant language
- TypeScript
- Stars
- 21
- Forks
- 33
- Avg merge
- 6d 23h
- Merged PRs (30d)
- 3
Description
### Description of the bug
Årsregnskap har 11 apper/skjemaer som bruker Panel-komponenten for å informere sluttbruker om virksomheten som er logget inn. Eksempel:

Denne panel-komponenten ser ut til å ikke vises i oppsummeringen ved bruk av Summary2. Har testet type = component, page og layoutSet.
Eksempel på config:
**Panel-komponenten**
```json
{
"id": "H-01-Panel-Virksomhet",
"type": "Panel",
"textResourceBindings": {
"title": "H-01-Panel-Virksomheten.title",
"body": "H-01-Panel-Enhet.body"
},
"variant": "success",
"showIcon": false
},
```
**Summary2-komponenten**
```json
{
"id": "Summary2-H-01-Panel-Virksomhet",
"type": "Summary2",
"target": {
"type": "component",
"id": "H-01-Panel-Virksomhet",
"taskId": "Utfylling"
}
},
```
Summary2 (her: ved type=layoutSet)

### Steps To Reproduce
Eksempel for testing: https://altinn.studio/repos/brg/aarsregnskap-funk-202405
### Additional Information
_No response_
Contributor guide
Research direction
Start by reproducing the issue in the linked aarsregnskap-funk-202405 app, using the Panel and Summary2 configurations in the report. Trace how Summary2 resolves its component, page, and layoutSet targets, then verify that the Panel is rendered in the summary for the reported target configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100