Skip to content
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

O3 3685: Enable Deleting or Clearing Files in File Picker Component in Edit Mode #390

Closed
wants to merge 3 commits into from

Conversation

TrevorAntony
Copy link
Contributor

@TrevorAntony TrevorAntony commented Sep 11, 2024

Requirements

Enable Deleting or Clearing Files in File Picker Component in Edit Mode

Summary

When a file is selected using the file picker component and the form is later opened in edit mode, there is now an option to delete or clear the selected file.

Screenshots

Screenshot 2024-09-11 at 13 16 23 Screenshot 2024-09-11 at 13 16 31

Related Issue

https://openmrs.atlassian.net/browse/O3-3685

Copy link
Member

@samuelmale samuelmale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this @TrevorAntony; Just a few general concerns:

  1. Is the "delete" operation persistent on form submission? Do we void the complex obs?
  2. Can you add unit test(s) to assert that the cleared obs gets voided?

src/components/inputs/file/file.component.tsx Outdated Show resolved Hide resolved
src/components/inputs/file/file.component.tsx Outdated Show resolved Hide resolved
@TrevorAntony TrevorAntony marked this pull request as draft September 15, 2024 10:47
@TrevorAntony
Copy link
Contributor Author

Having an issue where even after voiding/clearing the obs and successful form submission, when you relaunch the form in edit mode, the cleared image/file is still displayed

@TrevorAntony TrevorAntony deleted the O3-3685 branch September 16, 2024 06:33
@TrevorAntony TrevorAntony restored the O3-3685 branch September 16, 2024 06:44
@TrevorAntony TrevorAntony deleted the O3-3685 branch September 16, 2024 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants