altinn-studio
altinn-studio copied to clipboard
Text editor `appName` doesn't update `title` in `applicationMetaData`
Description of the bug
Edit: read the comment from @standeren below.
The appName
field in the text editor should update the title
field in applicationMetaData
. Currently, this field can only be changed through the settings modal. When the appName is updated in the settings modal, it correctly updates as well the appName
field in the text editor for Bokmål.
However, there is a one-way sync issue:
- When the
appName
is changed in the text editor, theappName
field in the settings modal (and subsequently in applicationMetaData) is not updated. - When the
appName
is changed in the settings modal, it correctly updates the appName field in the text editor for Bokmål (and subsequently in applicationMetaData).
Additionally, enabling the text editor to change this field in applicationMetaData should also allow for the inclusion of other languages, such as Nynorsk.
Additionally issue, when changing title
manually in applicationmetadata - it doesn't update the name in studio because studio read the config file instead of applicationmetadata. As @standeren suggested in the slack thread, maybe change this to only read from metadata instead and get rid of the config file?
Steps To Reproduce
- Go to settings modal, change the app name
- Go to text editor, see that
appName
is updated - Push changes and see that applicationMetaData is updated
- Repeat this, but change it in text editor.
Additional Information
Should add some playwright tests for this :)
Slack: https://altinndevops.slack.com/archives/CDU1S3NLW/p1717492210499339
No response