Altinn / Altinn/app-frontend-react

Repeating group: Show table header when using components in table

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

Description

### Description of the bug

The table headers in repeating groups are hidden when there is only one row and it is open for editing, this makes sense since there is no visible tabular data at this point. The exception to this is if you have components in the table, in that case you need the table headings since there is no other label for the input; this is not the case today.

image

There are also some weird empty rows with the edit container styling that sometimes occur when using only components in rows and no editcontainer

![image](https://github.com/Altinn/app-frontend-react/assets/47412359/12d69d10-5799-4f35-bc04-24b294a342b6)

see: https://altinn.slack.com/archives/C02EVE4RU82/p1696503841696019

### Steps To Reproduce

.

### Additional Information

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the repeating-group table behavior described in the issue, including a single editable row with components and rows without an edit container. Identify the frontend entry point responsible for table headers and edit-container styling. Done means headers remain visible when components need them and unintended empty styled rows no longer appear.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.