Altinn / Altinn/app-frontend-react

Summary2: Panel vises ikke

Open
#3,221 3 comments 1 reaction 0 assignees View on GitHub
area/summary kind/feature-request
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:

![Image](https://github.com/user-attachments/assets/4729f54e-2c05-47ad-b7de-a5d150574486)

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)

![Image](https://github.com/user-attachments/assets/17b6fee1-5282-4d6b-b669-7b581190d3d2)

### Steps To Reproduce

Eksempel for testing: https://altinn.studio/repos/brg/aarsregnskap-funk-202405

### Additional Information

_No response_

Contributor guide

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.