Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(process): Inform user of consequences of switching layoutset default data model #13794

Merged
merged 5 commits into from
Nov 1, 2024

Conversation

nkylstad
Copy link
Member

Description

Added an alternative text for combobox description when a data model is already selected. The text explains the consequences of switching to a different data model.

With no previously selected data model (as before):
Screenshot 2024-10-15 at 11 09 01

With previously selected data model (new text):
Screenshot 2024-10-15 at 11 08 52

Also fixed the following that I noticed:

  • Bug that did not show the selected value as selected in the combobox. The combobox appeared to have no selected value, even though one was selected.
  • Replaced use of Combobox directly from design system with StudioCombobox.

Would like feedback on the text content for the new text, maybe @Ildest could take a look?

"Du har allerede valgt en datamodell. Hvis du har brukt denne datamodellen i skjema kan eventuelle knytninger til datamodellfelt i skjemaet bli ugyldige. Felter det gjelder vil vises med feilmelding i forhåndsvisningen"

Related Issue(s)

Verification

  • Your code builds clean without any errors or warnings
  • Manual testing done (required)
  • Relevant automated test added (if you find this hard, leave it and we'll help out)

@github-actions github-actions bot added area/process Area: Related to app process (e.g. signing, receipt, fill inn, payment, etc). solution/studio/designer Issues related to the Altinn Studio Designer solution. frontend labels Oct 15, 2024
@nkylstad nkylstad changed the title chore(process-editor): Inform user of consequences of switching layoutset default data model chore(process): Inform user of consequences of switching layoutset default data model Oct 15, 2024
@nkylstad nkylstad linked an issue Oct 15, 2024 that may be closed by this pull request
2 tasks
@Ildest
Copy link
Contributor

Ildest commented Oct 15, 2024

Maybe tweak the message a bit @nkylstad: "Du har allerede valgt en datamodell. Hvis du har brukt denne datamodellen i et skjema, kan du få ugyldige knytninger til datamodellfelt i skjemaet. Du får en feilmelding om hvilke felter det gjelder, i forhåndsvisningen"

Copy link

codecov bot commented Oct 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.57%. Comparing base (36f0b3e) to head (0c4850c).
Report is 72 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #13794   +/-   ##
=======================================
  Coverage   94.57%   94.57%           
=======================================
  Files        1623     1623           
  Lines       21798    21798           
  Branches     2570     2571    +1     
=======================================
  Hits        20616    20616           
  Misses        939      939           
  Partials      243      243           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@standeren standeren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! 🎯
Left a small comment that has nothing to do with the functionality so feel free to fix or ignore 😎

Copy link
Contributor

@Konrad-Simso Konrad-Simso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! It works as expected 😄 I've added a suggestion, but it's up to you if it's changed or not.

Edit: Well, that failed... haha, here is the suggestion i wanted to make to nb.json
Before:

  "process_editor.configuration_panel_data_model_selection_description": "Velg en datamodell å knytte til prosessteget",
  "process_editor.configuration_panel_data_model_selection_description_existing_model": "Du har allerede valgt en datamodell. Hvis du har brukt denne datamodellen i et skjema, kan du få ugyldige knytninger til datamodellfelt i skjemaet. Du får en feilmelding om hvilke felter det gjelder, i forhåndsvisningen",

After:

  "process_editor.configuration_panel_data_model_selection_description": "Velg en datamodell å knytte til prosessteget.",
  "process_editor.configuration_panel_data_model_selection_description_existing_model": "Du har allerede valgt en datamodell. Hvis du har brukt denne datamodellen i et skjema, kan du få ugyldige knytninger til datamodellfelt i skjemaet. Du får en feilmelding om hvilke felter det gjelder, i forhåndsvisningen.",

@nkylstad nkylstad merged commit 606018e into main Nov 1, 2024
8 checks passed
@nkylstad nkylstad deleted the chore/13793-inform-user-switching-datamodels branch November 1, 2024 07:47
@nkylstad
Copy link
Member Author

nkylstad commented Nov 1, 2024

Nice! It works as expected 😄 I've added a suggestion, but it's up to you if it's changed or not.

Thanks for the suggestion! I decided to leave it as-is, because I think that is consistent with the other texts with the other description texts we use (although we don't have that many description texts yet). The question of punctuation at the end of descriptions in general might be something @Ildest has some thoughts on 😊

@Ildest
Copy link
Contributor

Ildest commented Nov 1, 2024

Yes @nkylstad I have actually noted that as a discussion point with the other content designer for next week. I have seen titles with or without a full stop, texts next to checkboxes with the same inconsequence, etc. So we content designers will discuss and agree on when and where to have punctuation in UI texts and come back wit some recommendations.

For my suggestion in this issue, I can see that I have left out the full stop at the end of the last sentence, so thank you for inserting that @Konrad-Simso @nkylstad :-D.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/process Area: Related to app process (e.g. signing, receipt, fill inn, payment, etc). frontend solution/studio/designer Issues related to the Altinn Studio Designer solution.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inform user of consequences of switching datamodel in layoutset
4 participants