-
Notifications
You must be signed in to change notification settings - Fork 305
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(metadata-sidebar): UnsavedChangesModal changes #3691
Conversation
f5fa8f5
to
0cde9ee
Compare
38c18dd
to
5698d74
Compare
setSelectedTemplates(templateInstances); | ||
}, [templateInstances]); | ||
// disable only pre-existing template instances from dropdown if not editing or editing pre-exiting one | ||
if (!editingTemplate || templateInstances.some(t => t.templateKey === editingTemplate.templateKey)) { |
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.
Lets's add scope
attribute to the filter condition
5698d74
to
7376d0e
Compare
0722a2e
to
036dd44
Compare
036dd44
to
1c62666
Compare
bb9ff41
to
9d8e0a3
Compare
<AutofillContextProvider isAiSuggestionsFeatureEnabled={isBoxAiSuggestionsEnabled}> | ||
<AutofillContextProvider | ||
isAiSuggestionsFeatureEnabled={isBoxAiSuggestionsEnabled} | ||
fetchSuggestions={() => Promise.resolve([])} |
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.
Is this going to be implemented in the future?
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.
this is a temporary placeholder while the feature is still being implemented in metadata-editor
<MetadataInstanceForm | ||
areAiSuggestionsAvailable={true} |
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.
can we just pass areAiSuggestionsAvailable without the explicit boolean assignment since it is always true?
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.
this is a temporary placeholder while the feature is still being implemented in metadata-editor
src/elements/content-sidebar/stories/tests/MetadataSidebarRedesign-visual.stories.tsx
Outdated
Show resolved
Hide resolved
2323843
to
06e03f5
Compare
bf03f0a
to
8f82edf
Compare
8f82edf
to
a821954
Compare
Rename
onUnsavedChangesModalCancel
to new proponDiscardUnsavedChanges
added on UnsavedChangesModal redesignAdd storybook test for switching the templates through unsaved changes modal
move disabling the templates with
setSelectedTemplates
for AddTemplateDropdown to ownuseEffect
to avoid conflicts