-
Notifications
You must be signed in to change notification settings - Fork 0
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
Edit Dialog for Images #1151
base: develop
Are you sure you want to change the base?
Edit Dialog for Images #1151
Conversation
Codecov ReportAttention: Patch coverage is
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## develop #1151 +/- ##
===========================================
- Coverage 98.98% 98.56% -0.42%
===========================================
Files 97 98 +1
Lines 17672 18027 +355
Branches 2187 3044 +857
===========================================
+ Hits 17492 17768 +276
- Misses 179 258 +79
Partials 1 1 ☔ View full report in Codecov by Sentry. |
5d3f5a7
to
601f256
Compare
Can you amove the editFileDialog out of common/images to common/ please |
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.
just some grammar rewriting for the if test descriptions. The rest of the code looks good I think but I haven't tested the functionality.
|
||
const { mutateAsync: patchFile, isPending: isEditPending } = usePatchFile(); | ||
|
||
const initialFile: ObjectFilePatch = React.useMemo( |
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 you make the same changes that you have do to the uppy post here please. So don't allow the user to change the extenstion. and display the extension next the textField please.
Commit PR Review Suggestions. Co-authored-by: rowan04 <[email protected]> Co-authored-by: Joshua Kitenge <[email protected]>
…facilities/inventory-management-system into feature/add-edit-image-dialog-#1075
…facilities/inventory-management-system into feature/add-edit-image-dialog-#1075
b117bbc
to
0cc1b3a
Compare
0cc1b3a
to
5db78e1
Compare
Can you add the end adornment to the uppy upload dialog file in this pr please |
@@ -87,6 +87,10 @@ describe('Edit file dialog', () => { | |||
|
|||
it('Edits an image correctly', async () => { | |||
createView(); | |||
|
|||
//Checks if file extension is displayed. If it's editable, actual value will not match expected. |
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.
//Checks if file extension is displayed. If it's editable, actual value will not match expected. | |
// Checks if file extension is displayed. If it's editable, actual value will not match expected. |
); | ||
}); | ||
}); | ||
|
||
it('not changing any fields shows error', () => { | ||
it('shows error when no fields have been changed', () => { |
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.
it('shows error when no fields have been changed', () => { | |
it('shows error message when no fields have been changed', () => { |
apologies i know i changed it to this the first time :)
Can this be done for both dialog images and attachments |
Description
see #1075
N.B. Needs to wait for corresponding backend PR to merge.
Testing instructions
Checkout
**add-update-endpoint-without-primary-for-images-#35**
on the Object Storage API repo to test with the api.Agile board tracking
closes #1075