-
Notifications
You must be signed in to change notification settings - Fork 361
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
refactor: [M3-8157] - Clean up images drawer #10487
refactor: [M3-8157] - Clean up images drawer #10487
Conversation
search: new URLSearchParams({ | ||
...queryParams, | ||
[path]: 'true', | ||
}).toString(), | ||
}} |
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.
We need to preserve the search query specifically for the rebuild path. I don't think it hurts to do so for all other paths.
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.
Still needs to review a bit more, but cleanup looks great!
Coverage Report: ✅ |
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.
Clean up looks great 🔥 Much needed!
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.
Thanks for the cleanup! Nice to see react form here 🎉
Left a few comments to improve a couple things in the drawers
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.
Thx for the changes!
Approving pending CI passing
Description 📝
Apply our latest coding standards to
ImagesDrawer
including:ImagesDrawer
intoEditImageDrawer
andRestoreImageDrawer
react-hook-form
instead of manually managing form stateChanges 🔄
updateImage
function signature.UpdateImagePayload
type.EditImageDrawer
.ImagesDrawer
. Also implementedreact-hook-form
for state management.Handlers
interface - they are now passed the entireImage
EditImageDrawer
andRestoreImageDrawer
RebuildImageDrawer
.ImagesDrawer
. Also implementedreact-hook-form
for state management.updateImage
function.Preview 📷
No visual changes.
How to test 🧪
As an Author I have considered 🤔
Check all that apply