Skip to content

Releases: Altinn/app-frontend-react

v4.9.0-rc.2

14 Oct 13:00
6ec9b42
Compare
Choose a tag to compare
v4.9.0-rc.2 Pre-release
Pre-release

What's Changed

New Features 🎉

Bugfixes 🐛

Other Changes

  • Avoid line break for required indicator in likert by @cammiida in #2547
  • Refactors legacy listcomponent to new designsystemet by @cammiida in #2373

Dependency Upgrades 📦

  • fix(deps): update dependency @navikt/aksel-icons to v7 (main) by @renovate in #2466
  • chore(deps): update npm non-major dependencies (main) by @renovate in #2555

Uncategorized changes

Full Changelog: v4.9.0-rc.1...v4.9.0-rc.2

v4.9.0-testpurgeafd4

09 Oct 10:18
Compare
Choose a tag to compare
v4.9.0-testpurgeafd4 Pre-release
Pre-release

Test release workflow with purging azure front door cache

v4.9.0-rc.1

08 Oct 13:11
7e30e1c
Compare
Choose a tag to compare
v4.9.0-rc.1 Pre-release
Pre-release

Release candidate for v4.9.0.

NB! Subform and multiple data models features requires version 8.5.0-preview.7 of the Altinn.App.* nuget packages.

What's Changed

New Features 🎉

  • Add support for new multi-patch response and updating instance data by @bjosttveit in #2537

Full Changelog: v4.9.0-preview.3...v4.9.0-rc.1

v4.9.0-preview.3

08 Oct 11:08
3542c31
Compare
Choose a tag to compare
v4.9.0-preview.3 Pre-release
Pre-release

What's Changed

New Features 🎉

Bugfixes 🐛

Other Changes

Dependency Upgrades 📦

  • chore(deps): update dependency @faker-js/faker to v9 (main) by @renovate in #2435
  • fix(deps): update npm non-major dependencies (main) by @renovate in #2434
  • chore(deps): update npm non-major dependencies (main) by @renovate in #2465
  • chore(deps): update npm non-major dependencies (main) by @renovate in #2524
  • Udate designsystem react to 0.63.1 by @Magnusrm in #2545

Uncategorized changes

New Contributors

Full Changelog: v4.8.1...v4.9.0-preview.3

v4.9.0-preview.2

26 Sep 13:14
Compare
Choose a tag to compare
v4.9.0-preview.2 Pre-release
Pre-release

What's Changed

New Features 🎉

Bugfixes 🐛

Other Changes

  • Direct Percy snapshot method to capture PDF with emulated print media by @bjosttveit in #2446

Dependency Upgrades 📦

  • chore(deps): update dependency @faker-js/faker to v9 (main) by @renovate in #2435
  • fix(deps): update npm non-major dependencies (main) by @renovate in #2434

Uncategorized changes

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

v4.8.2

18 Sep 07:31
fd5fbb3
Compare
Choose a tag to compare

What's Changed

Bugfixes 🐛

Full Changelog: v4.8.1...v4.8.2

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