codeforpdx / PASS

PASS project - with HMIS module integration
MIT License
24 stars 24 forks source link

Enhancement: Dialog modal when adding document of same name #536

Closed xscottxbrownx closed 7 months ago

xscottxbrownx commented 7 months ago

Describe the Current Behavior/Feature:

Currently, there is a window.confirm() when a user tries to upload a document that has same name of an already uploaded document.

File: UploadDocumentModal.jsx in the handleDocUpload function's catch block.


Proposed Behavior/Feature:

Should be an MUI modal to match all other user feedback styling of app.


Rationale:

It provides consistent and trustworthy feedback to the user.


Proposed Implementation (if applicable):

Just something similar to other dialog modals that popup with 2 button options.


Additional context:

https://github.com/codeforpdx/PASS/assets/71395931/c0da56da-fa63-444b-93b5-7737e1d637d7