Releases: Altinn/app-frontend-react
v4.9.0-rc.2
What's Changed
New Features 🎉
- Add instance to single-patch response by @bjosttveit in #2573
Bugfixes 🐛
- Fix issue where subunit names were not present on confirm/receipt page by @martinothamar in #2570
- Switch from using
jsPropertySyntax
tojsonPointer
in AJV by @bjosttveit in #2553 - Conditinally render fieldset for Group by @Magnusrm in #2549
- Add "no-visual-testing" to example date string by @paal2707 in #2575
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
Test release workflow with purging azure front door cache
v4.9.0-rc.1
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
What's Changed
New Features 🎉
- Support multiple datamodels in the same task by @bjosttveit in #2108
- Added download option for Link component by @SimenRokaas in #2411
- Add summary2 for Map by @Magnusrm in #2410
- Sumary2 for Tabs component by @Magnusrm in #2427
- Add summary 2.0 support for Payment by @Magnusrm in #2443
- Add summary2 for Likert component by @Magnusrm in #2463
- Feature/subform by @HauklandJ in #2382
- feat: added print preview action type to action button by @adamhaeger in #2489
Bugfixes 🐛
- Add spacing for components rendered in tabs by @Magnusrm in #2417
- Fixed accordion view for Summary2 of a layoutset by @Magnusrm in #2426
- Fix grid not working multiple places by @Magnusrm in #2433
- Fixing problems with removal of stale options by @olemartinorg in #2450
- Fixing hard fail on missing
componentRef
in Summary by @olemartinorg in #2448 - Fix handling of ITaskValidator validations by @bjosttveit in #2462
- WCAG: Validation errors by @bjosttveit in #2440
- Fix tab navigation for dropdown by @Magnusrm in #2500
- Fix small visual bugs in grid and group by @bjosttveit in #2532
- Fix edit button not showing and allow Header component in grid summary by @Magnusrm in #2512
- Validation logic fixes by @bjosttveit in #2514
- Stale options bugfix (and more performance improvements) by @olemartinorg in #2511
- Fixing 'unknown error' when clicking the back button (stateless <- instance) by @olemartinorg in #2523
- Feat/test previous task by @adamhaeger in #2409
- fixed e2e test by @adamhaeger in #2472
- added break-inside: avoid; to relevant components by @adamhaeger in #2481
- removed summary1 fallback by @adamhaeger in #2488
- scaling down font size in pdf by overriding base font-size by @adamhaeger in #2487
Other Changes
- remove header summary2 by @Magnusrm in #2415
- 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
- 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
- removed flex wrap from header by @adamhaeger in #2510
- fix for test by @adamhaeger in #2515
- fix: swapped tbody to rows by @adamhaeger in #2513
- Likert wcag by @cammiida in #2521
New Contributors
- @SimenRokaas made their first contribution in #2411
Full Changelog: v4.8.1...v4.9.0-preview.3
v4.9.0-preview.2
What's Changed
New Features 🎉
- Add summary2 for Map by @Magnusrm in #2410
- Sumary2 for Tabs component by @Magnusrm in #2427
- Add summary 2.0 support for Payment by @Magnusrm in #2443
- Add summary2 for Likert component by @Magnusrm in #2463
Bugfixes 🐛
- Fixed accordion view for Summary2 of a layoutset by @Magnusrm in #2426
- Fix grid not working multiple places by @Magnusrm in #2433
- Fixing problems with removal of stale options by @olemartinorg in #2450
- Fixing hard fail on missing
componentRef
in Summary by @olemartinorg in #2448 - Fix handling of ITaskValidator validations by @bjosttveit in #2462
- WCAG: Validation errors by @bjosttveit in #2440
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
- Feat/test previous task by @adamhaeger in #2409
- add subform cypress tests by @HauklandJ in #2423
- fixed e2e test by @adamhaeger in #2472
- Subform pdf summary by @adamhaeger in #2447
- added break-inside: avoid; to relevant components by @adamhaeger in #2481
Full Changelog: v4.9.0-preview.1...v4.9.0-preview.2
v4.8.2
What's Changed
Bugfixes 🐛
- Showing backend validations that conflicts with frontend-validations (fixes #2412) by @olemartinorg in #2428
- Fixing missing nodes in repeating group when UUID has changed by @olemartinorg in #2453
- Fixing a bug causing infinite PATCH requests by @olemartinorg in #2457
- Fixing hard fail on missing
componentRef
in Summary by @olemartinorg in #2448
Full Changelog: v4.8.1...v4.8.2
v4.9.0-preview.1
What's Changed
IMPORTANT: See how to use this preview version in the notes for v4.9.0-preview.0.
New Features 🎉
- Added download option for Link component by @SimenRokaas in #2411
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
- @SimenRokaas made their first contribution in #2411
Full Changelog: v4.9.0-preview.0...v4.9.0-preview.1
v4.8.1
What's Changed
Bugfixes 🐛
- Preventing crash if function in ruleHandler is not found by @olemartinorg in #2418
- Avoiding removing stale options for hidden nodes by @olemartinorg in #2419
Full Changelog: v4.8.0...v4.8.1
v4.9.0-preview.0
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
What's Changed
New Features 🎉
- Feat: External API by @cammiida in #2324
- Feat/2006 custom empty component text by @adamhaeger in #2327
- Add support for showing geometries in Map component by @bjosttveit in #2283
- Feat/2052 repeating group summary 2 by @Magnusrm in #2240
- Add summary2 for List component by @Magnusrm in #2403
Bugfixes 🐛
- Performance: Hierarchy generator rewrite by @olemartinorg in #2244
- not wrapping dropzone in label to prevent unwanted filepicker in complex mode by @adamhaeger in #2328
- Handling self-identifies users in party selection by @olemartinorg in #2336
- Ensures id in labelcontent for correct label and description ids by @cammiida in #2352
- Summary 2 merge and refactor after perfomance by @adamhaeger in #2350
- Preventing data model updates when rounding numbers in Input by @olemartinorg in #2380
- Replacing
useMediaQuery
with custom hook (fixes #2177) by @olemartinorg in #2377 - Minor fixes for RepeatingGroup in non-standard modes by @olemartinorg in #2376
Other Changes
- Updated quirks for fixed duplicate ids in apps by @olemartinorg in #2405
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