Skip to content

Releases: Altinn/app-frontend-react

v4.9.0-preview.1

10 Sep 07:57
Compare
Choose a tag to compare
v4.9.0-preview.1 Pre-release
Pre-release

What's Changed

IMPORTANT: See how to use this preview version in the notes for v4.9.0-preview.0.

New Features 🎉

Bugfixes 🐛

  • Subforms: Fixing bug causing multiple subforms to always load the first data model
  • Subforms: Fixinb bug causing an older/stale version of the main data model to be loaded when exiting the subform
  • Add spacing for components rendered in tabs by @Magnusrm in #2417
  • Preventing crash if function in ruleHandler is not found by @olemartinorg in #2418
  • Avoiding removing stale options for hidden nodes by @olemartinorg in #2419

New Contributors

Full Changelog: v4.9.0-preview.0...v4.9.0-preview.1

v4.8.1

10 Sep 07:55
2c2113e
Compare
Choose a tag to compare

What's Changed

Bugfixes 🐛

Full Changelog: v4.8.0...v4.8.1

v4.9.0-preview.0

09 Sep 09:27
Compare
Choose a tag to compare
v4.9.0-preview.0 Pre-release
Pre-release

This preview release includes early previews for new functionality, including support for multiple data models in the same task and support for sub-forms via the new Subform component.

IMPORTANT: We've released a newer version with bugfixes (v4.9.0-preview.1), prefer to use that instead.

Using this pre-release

In your app, open App/views/Home/Index.cshtml and change the two lines referring to the frontend version. Make them point to the pre-release:

- <link rel="stylesheet" type="text/css" href="https://altinncdn.no/toolkits/altinn-app-frontend/4/altinn-app-frontend.css">
- <script src="https://altinncdn.no/toolkits/altinn-app-frontend/4/altinn-app-frontend.js"></script>
+ <link rel="stylesheet" type="text/css" href="https://altinncdn.no/toolkits/altinn-app-frontend/4.9.0-preview.1/altinn-app-frontend.css">
+ <script src="https://altinncdn.no/toolkits/altinn-app-frontend/4.9.0-preview.1/altinn-app-frontend.js"></script>

Also change your App.csproj file to use the latest backend preview release, v8.5.0-preview.1

Support for multiple data models in the same task

In short, this allows you to set up multiple data models, all of which needs to have a taskId property in applicationmetadata.json. When multiple data models have been added, you can refer to another data model component configurations by changing the value(s) in dataModelBindings to point to your data model:

{
  "id": "my-component",
  "type": "Input",
  "dataModelBindings": {
    "simpleBinding": {
      "dataType": "someDataType",
      "field": "Path.Inside.DataModel"
    }
  }
}

Additionally, if you want to look up values in other data models in dynamic expressions, you can do that by adding a second argument to the dataModel function. For example, ["dataModel", "Path.Inside.DataModel", "someDataType"] will look up the path in the someDataType model instead of the default model.

If the data model binding is not specifying any data model, we use the default model for the current layout-set as configured in layout-sets.json.

Support for subforms

In order to set up a subform, please refer to the documentation here.

What's missing in this preview

Some functionality is still a work in progress and subject to change, including:

  • Better support for automatic PDF generation when including one or more subforms (when referred to in Summary2)
  • Making it possible to generate one PDF per subform, including support for naming these files differently per subform
  • Proper validation and feedback to the user when attempting to submit the main form while there are validation errors in a subform (subforms can already be validated when using a CustomButton to go back to the main form)

v4.8.0

09 Sep 08:43
1148b11
Compare
Choose a tag to compare

What's Changed

New Features 🎉

Bugfixes 🐛

Other Changes

Dependency Upgrades 📦

  • fix(deps): update dependency marked to v14 (main) by @renovate in #2294
  • chore(deps): update npm non-major dependencies (main) by @renovate in #2330
  • chore(deps): update npm non-major dependencies (main) by @renovate in #2365
  • chore(deps): update dependency jsdom to v25 (main) by @renovate in #2364
  • chore(deps): update npm non-major dependencies (main) by @renovate in #2393
  • chore(deps): update dependency eslint-plugin-sonarjs to v2 (main) by @renovate in #2363

Full Changelog: v4.7.0...v4.8.0

v4.8.0-geometrymap.preview2

03 Sep 12:20
Compare
Choose a tag to compare
Pre-release

Preview of Geometry Map functionality.

v4.8.0-performance.preview1

21 Aug 07:29
e5c7527
Compare
Choose a tag to compare
Pre-release

This pre-release can be tested out directly by switching versions via DevTools:

  1. Open DevTools (either using the icon in the lower right in test environments, or use the keyboard shortcut Ctrl + K)
  2. Use the dropdown on the first page of DevTools to switch version, and press the blue button
  3. The page will reload and this preview version will be active until you close the tab or refresh (it will then revert back to use the version the app is configured to use)

What's Changed

Full Changelog: v4.7.0...v4.8.0-performance.preview1

v4.7.0

20 Aug 10:04
8fa7d65
Compare
Choose a tag to compare

What's Changed

New Features 🎉

Bugfixes 🐛

  • Grid rows in RepeatingGroup (rowsBefore/rowsAfter) fixes by @olemartinorg in #2313
  • Fix summary2 validation message styling by @Magnusrm in #2312
  • Fix payment information component not fetching latest data on first render by @Magnusrm in #2307

Full Changelog: v4.6.3...v4.7.0

Hotfixes

19 Aug 07:45
e740bec
Compare
Choose a tag to compare

What's Changed

Bugfixes 🐛

Dependency Upgrades 📦

  • fix(deps): update dependency axios to v1.7.4 [security] (main) by @renovate in #2285

Full Changelog: v4.6.2...v4.6.3

v4.6.2

15 Aug 10:42
34d2d37
Compare
Choose a tag to compare

What's Changed

Bugfixes 🐛

Dependency Upgrades 📦

  • fix(deps): update npm non-major dependencies (main) by @renovate in #2293

Full Changelog: v4.6.1...v4.6.2

v4.6.1

14 Aug 10:35
babc1bd
Compare
Choose a tag to compare

What's Changed

Bugfixes 🐛

  • Respect overrideItemProps in ComponentStructureWrapper by @bjosttveit in #2289

Full Changelog: v4.6.0...v4.6.1