-
Notifications
You must be signed in to change notification settings - Fork 76
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
feat: Implement modal to create new code list #14019
feat: Implement modal to create new code list #14019
Conversation
85b732a
to
91fd085
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #14019 +/- ##
=======================================
Coverage 95.32% 95.33%
=======================================
Files 1780 1782 +2
Lines 23159 23202 +43
Branches 2689 2690 +1
=======================================
+ Hits 22077 22120 +43
Misses 835 835
Partials 247 247 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
91fd085
to
0207448
Compare
...o-content-library/src/ContentLibrary/LibraryBody/pages/CodeList/CodeLists/CodeLists.test.tsx
Fixed
Show fixed
Hide fixed
...o-content-library/src/ContentLibrary/LibraryBody/pages/CodeList/CodeLists/CodeLists.test.tsx
Fixed
Show fixed
Hide fixed
...o-content-library/src/ContentLibrary/LibraryBody/pages/CodeList/CodeLists/CodeLists.test.tsx
Fixed
Show fixed
Hide fixed
0b92066
to
e91b8ed
Compare
...aryBody/pages/CodeList/CodeListsActionsBar/CreateNewCodeListModal/CreateNewCodeListModal.tsx
Outdated
Show resolved
Hide resolved
...dy/pages/CodeList/CodeListsActionsBar/CreateNewCodeListModal/CreateNewCodeListModal.test.tsx
Outdated
Show resolved
Hide resolved
frontend/app-development/features/appContentLibrary/AppContentLibrary.test.tsx
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! I see that the saving UI pattern here differs from Utforming, where there is no save button, and changes are saved on close. Has this been discussed, or should we consider discussing it?
From what I understood after our meeting last week about saving patterns, I thought this was what we agreed upon 🙈 This is due to the filename has to be provided before the saving can be triggered. So we need a save button to control this interaction. However, when the |
Sorry, it was not on close in Utforming, but on debounce for the manual editor at least 😅 My impression was that we would first try debounce, and if that could not be implemented, then try onBlur. And if that could not be implemented, have a save button. Just a suggestion, but it might be possible to have a We could also wait until |
Hm, yes, we could do that 🤔 But what if they add a fileName, add codelist content -> save is triggerd -> and then they change the filename ans the content before they close the modal? Then they will have saved multiple codelists? 🫣 |
Good point! The file handling would get more complicated. Then I agree with using a save button 😄 |
267fcdd
to
331e4a8
Compare
048d2e8
to
d6dedda
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Testet OK.
Co-authored-by: Tomas Engebretsen <[email protected]>
Description
Skjermopptak.2024-11-08.kl.13.45.59.mov
FYI: Modal has fixed height, same as in ux-editor in code, but not in video ☝️
Related Issue(s)
Verification