[ADE-216] Add UploadModal component and integrate upload handling in ReportDetailPage #139
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Change
This pull request introduces a new
UploadModalcomponent to theReportDetailPagein the frontend application. The changes include integrating the modal into the page, managing its state, and updating the user flow for uploading new reports.Integration of
UploadModal:UploadModalcomponent import to theReportDetailPagefile. ([frontend/src/pages/Reports/ReportDetailPage.tsxR18](https://github.com/ModusCreateOrg/app-med-ai-gen/pull/139/files#diff-41d2e46246c1fcacef4f2cb888d10ce2e4087ed69ec7ab0bf5142ec5fe4c3364R18))isUploadModalOpenand a handler functionhandleUploadCompleteto manage the modal's visibility and behavior after upload completion. ([frontend/src/pages/Reports/ReportDetailPage.tsxR40-R45](https://github.com/ModusCreateOrg/app-med-ai-gen/pull/139/files#diff-41d2e46246c1fcacef4f2cb888d10ce2e4087ed69ec7ab0bf5142ec5fe4c3364R40-R45))UploadModalupon report deletion. ([frontend/src/pages/Reports/ReportDetailPage.tsxL125-R132](https://github.com/ModusCreateOrg/app-med-ai-gen/pull/139/files#diff-41d2e46246c1fcacef4f2cb888d10ce2e4087ed69ec7ab0bf5142ec5fe4c3364L125-R132))UploadModalcomponent to the JSX structure, passing props for its visibility, close action, and upload completion handler. ([frontend/src/pages/Reports/ReportDetailPage.tsxR168-R173](https://github.com/ModusCreateOrg/app-med-ai-gen/pull/139/files#diff-41d2e46246c1fcacef4f2cb888d10ce2e4087ed69ec7ab0bf5142ec5fe4c3364R168-R173))Does this PR introduce a breaking change?
{...}
What needs to be documented once your changes are merged?
{...}
Additional Comments
{...}