[ADE-66] fixes and improvements to uploading, processing, and viewing a report #106
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 several changes across the backend and frontend to enhance document processing, report management, and user experience. Key updates include improved handling of document processing states, the addition of a report deletion feature, and UI adjustments for better usability.
Backend Changes
Document Processing Improvements:
DocumentProcessorControllerto provide more descriptive messages based on the processing status (IN_PROGRESS,PROCESSED, or not started) when initiating document processing. This ensures clearer feedback to users. [1] [2]Report Deletion Feature:
DELETEendpoint in theReportsControllerto allow users to delete reports. This includes API documentation (@ApiOperation,@ApiResponse, and@ApiParam) for better clarity. [1] [2]deleteReportIntegrationand adding the corresponding method to thereportIdResourcein the infrastructure code. [1] [2]Frontend Changes
Report Management Enhancements:
ReportDetailPageto include aDELETErequest for discarding reports, redirecting users to the home tab after successful deletion.UI and Usability Improvements:
UploadPagewhen the component mounts, simplifying the user flow. Removed redundant UI elements like the "select file" button. [1] [2] [3] [4]AiAnalysisTabto render theFlaggedValuesSectiononly when flagged values are present, improving the component's robustness.Localization:
Does this PR introduce a breaking change?
{...}
What needs to be documented once your changes are merged?
{...}
Additional Comments
{...}