-
Notifications
You must be signed in to change notification settings - Fork 72
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
fix: add alert to ReferenceTab.tsx
#14307
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #14307 +/- ##
=======================================
Coverage 95.53% 95.54%
=======================================
Files 1860 1860
Lines 24094 24104 +10
Branches 2779 2783 +4
=======================================
+ Hits 23019 23029 +10
Misses 817 817
Partials 258 258 ☔ View full report in Codecov by Sentry. |
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.
...-editor/src/components/config/editModal/EditOptions/OptionTabs/ReferenceTab/ReferenceTab.tsx
Outdated
Show resolved
Hide resolved
...-editor/src/components/config/editModal/EditOptions/OptionTabs/ReferenceTab/ReferenceTab.tsx
Outdated
Show resolved
Hide resolved
...or/src/components/config/editModal/EditOptions/OptionTabs/ReferenceTab/ReferenceTab.test.tsx
Outdated
Show resolved
Hide resolved
...or/src/components/config/editModal/EditOptions/OptionTabs/ReferenceTab/ReferenceTab.test.tsx
Outdated
Show resolved
Hide resolved
...or/src/components/config/editModal/EditOptions/OptionTabs/ReferenceTab/ReferenceTab.test.tsx
Outdated
Show resolved
Hide resolved
...or/src/components/config/editModal/EditOptions/OptionTabs/ReferenceTab/ReferenceTab.test.tsx
Outdated
Show resolved
Hide resolved
...or/src/components/config/editModal/EditOptions/OptionTabs/ReferenceTab/ReferenceTab.test.tsx
Outdated
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.
.../src/components/config/editModal/EditOptions/OptionTabs/ReferenceTab/ReferenceTab.module.css
Outdated
Show resolved
Hide resolved
...or/src/components/config/editModal/EditOptions/OptionTabs/ReferenceTab/ReferenceTab.test.tsx
Outdated
Show resolved
Hide resolved
The issues you mentioned have existed for a while One of the issues can be fixed by removing this useEffect in useEffect(() => {
const updatedSelectedOptionsType = getSelectedOptionsType(
component.optionsId,
component.options,
optionListIds,
);
setSelectedOptionsType(updatedSelectedOptionsType);
}, [optionListIds, component.optionsId, component.options, setSelectedOptionsType]); It would result in the user not being switched between the tabs unless they click on the titles/buttons at the top. I noticed a new issue with the changes in this PR. If the user types in a The issue you showed with a picture will be fixed be the redesign PR |
.../src/components/config/editModal/EditOptions/OptionTabs/ReferenceTab/ReferenceTab.module.css
Outdated
Show resolved
Hide resolved
Okey, nice! Lets create a new issue for it since it has existed for a while? 😊 |
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. Ser bra ut 😊
Dette vil bli fikset av feat: update codelist config design |
Description
Add alert to
ReferenceTab.tsx
to inform user of preexisting optionsId.Related Issue
Verification