Altinn / Altinn/app-frontend-react

Per-page settings for language selector, progress indicator, etc

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

Description

### Description

Currently, we have the `GlobalPageSettings` type that defines some settings that can be configured for pages. As it stands, these can be configured for all layout-sets in `layout-sets.json`, which sets the configuration for all pages (even for non-pages such as instance selector, confirm and receipt). It is also now possible to override them per-layoutset in `Settings.json` for each layout-set.

We should also make these settings configurable per-page (at least most of them, it may be the case that `autoSaveBehavior` is difficult to change per-page). If these settings are set per-page, they should override whatever is set in `Settings.json` and `layout-sets.json`.

Making this into generic hooks should make it easier to expand these settings and allow for new settings that then can be set on either of these 3 levels, with proper inheritance and shadowing.

### Related issue(s)

- #1862

Contributor guide

Open the contributing guide

Research direction

Start by reviewing GlobalPageSettings and the existing configuration in layout-sets.json and Settings.json, then read related issue #1862. Trace how these settings are inherited and overridden today. Done means page-level settings can override both broader configuration levels, with generic hooks supporting future settings and any limitations such as autoSaveBehavior documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.