Skip to content

Commit

Permalink
Adding docs for rc2
Browse files Browse the repository at this point in the history
  • Loading branch information
Ole Martin Handeland committed Jan 31, 2024
1 parent ef17cb0 commit 7cf3a18
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
12 changes: 11 additions & 1 deletion content/community/changelog/app-frontend/v4/_index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ App frontend v4 requires at least version 8.0.0 of the `Altinn.App.Core` and `Al
See the [overview of changes in backend v8](/community/changelog/app-nuget/v8) for more information on how to upgrade.

{{% notice warning %}}
The `v4.0.0-rc1` release requires version `v8.0.0-preview15` or above. When both major releases of app frontend and
The `v4.0.0-rc2` release requires version `v8.0.0-preview16` or above. When both major releases of app frontend and
backend are released, the `v4.0.0` release will require version `v8.0.0` or above.
{{% /notice %}}

Expand All @@ -38,6 +38,16 @@ This entails a slightly different folder structure in the `ui` folder of your ap
This used to be optional, but as of v4 it is required, even for apps with only a single data step.
See the [documentation on layout sets](/app/development/ux/pages/layout-sets) for more information.

## AddressComponent has been renamed to Address

{{% notice info %}}
This change was introduced in `v4.0.0-rc2`. It was not present in `v4.0.0-rc1`, so the component was still called
`AddressComponent` in that release.
{{% /notice %}}

In the layout files, the `AddressComponent` component has been renamed to `Address`. Our upgrade tool will rename
this for you automatically, but if you are migrating manually you will have to do this yourself.

## Custom receipt pages do not work (temporarily)

The functionality for custom receipt pages has been temporarily removed in the v4 release candidate, but will be
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ Make sure to read through the [list of breaking changes](/community/changelog/ap
{{% /notice %}}

{{% notice info %}}
As of writing this documentation, the latest release candidate of app-frontend v4 is `4.0.0-rc1`. Updated information
As of writing this documentation, the latest release candidate of app-frontend v4 is `4.0.0-rc2`. Updated information
[is available on GitHub](https://github.com/Altinn/app-frontend-react/releases). Before the release of v4.0.0 stable,
you will have to use exact version numbers in the URLs, e.g. `4.0.0-rc1` instead of `4`. Each time we release a new
you will have to use exact version numbers in the URLs, e.g. `4.0.0-rc2` instead of `4`. Each time we release a new
release candidate and you want to try out the new release, this URL will have to be updated. When the stable
version is released, you can use `4` as the version number in the URLs and get the latest stable version automatically.
{{% /notice %}}
Expand All @@ -26,8 +26,6 @@ To use App-frontend v4 in your app, you need to change which version is referenc
This file should be located in the `App/views/Home` folder.
In addition to changing the version, you should also remove the links to the third party CSS and font, as the font is now loaded by App-frontend itself, and the third party CSS is no longer used.

<!-- TODO: Should we change '4' in the URLs to the release candiate version to begin with? -->

Changes inside __&lt;head&gt;__:
{{< code-title >}}
App/views/Home/Index.cshtml
Expand All @@ -47,7 +45,7 @@ App/views/Home/Index.cshtml

<!-- Runtime CSS -->
- <link rel="stylesheet" type="text/css" href="https://altinncdn.no/toolkits/altinn-app-frontend/3/altinn-app-frontend.css">
+ <link rel="stylesheet" type="text/css" href="https://altinncdn.no/toolkits/altinn-app-frontend/4.0.0-rc1/altinn-app-frontend.css">
+ <link rel="stylesheet" type="text/css" href="https://altinncdn.no/toolkits/altinn-app-frontend/4.0.0-rc2/altinn-app-frontend.css">
```

Changes inside __&lt;body&gt;__:
Expand All @@ -72,13 +70,7 @@ App/views/Home/Index.cshtml
</div>

- <script src="https://altinncdn.no/toolkits/altinn-app-frontend/3/altinn-app-frontend.js"></script>
+ <script src="https://altinncdn.no/toolkits/altinn-app-frontend/4.0.0-rc1/altinn-app-frontend.js"></script>
```

If you are testing a release candidate version of App-frontend v4, you can use the following URLs instead:
```html
<link rel="stylesheet" type="text/css" href="https://altinncdn.no/toolkits/altinn-app-frontend/4.0.0-rc1/altinn-app-frontend.css">
<script src="https://altinncdn.no/toolkits/altinn-app-frontend/4.0.0-rc1/altinn-app-frontend.js"></script>
+ <script src="https://altinncdn.no/toolkits/altinn-app-frontend/4.0.0-rc2/altinn-app-frontend.js"></script>
```

{{% notice warning %}}
Expand Down

0 comments on commit 7cf3a18

Please sign in to comment.