Altinn / Altinn/app-frontend-react

Summary2 component does not support summaryTitle property

Open
#2,872 0 comments 0 reactions 0 assignees View on GitHub
area/summary kind/bug
Dominant language
TypeScript
Stars
21
Forks
33
Avg merge
6d 23h
Merged PRs (30d)
3

Description

### Description of the bug

`summaryTitle` does not override the title of the component when `Summary2` is used to summarise said component. As the definition of `summaryTitle` states "_Title used in the summary view (overrides the default title)_", the expected behaviour is that the title should change if the `summaryTitle` is set.

### Steps To Reproduce

1. Add a component compatible with `Summary2`, such as Input or Dropdown to the form.
2. Add a `summaryTitle` to the component e.g.:
```json
"textResourceBindings": {
"title": "Component title",
"summaryTitle": "Component summaryTitle"
}
```
3. Add a `Summary2` component that refers to the component added in step 1.
4. See that the title remains unchanged from the `"title"` property.

### Additional Information

_No response_

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with an Input or Dropdown component and a Summary2 component using the shown textResourceBindings. Trace how Summary2 selects the referenced component's title; done means summaryTitle is displayed when it is set, while the default title remains the fallback.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.