Enhance Report Generation by Adding Animation During the Generation Process #2840
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.
This PR enhances the report generation functionality by adding animation during the process. This PR is a continuation and enhancement of the previous PR:
Adding a button to generate a report for a workflow: #2770
Enhancing Report Generation by adding Operator Results: #2792
Enhancing Report Generation by Adding Operator Json and Comments Section : #2807
Ai Flag: #2818 and #2808
Key Changes:
Added a div with class report-generation-spinner in the menu-content section.
Integrated a conditional *ngIf="isReportGenerating" to toggle the spinner visibility during report generation.
Included the nz-spin component from Ant Design with a “Generating” message for the spinner content.
SCSS Updates:
Defined new styles for the report-generation-spinner to ensure proper positioning and display behavior (fixed position, centered on the page).
Styled the spinner content, including text alignment and size adjustments for a clean UI.
Introduced a new boolean variable isReportGenerating in MenuComponent to control the spinner's state.
Updated the onClickGenerateReport method to set isReportGenerating = true when the report generation starts and reset it to false upon completion or error handling.
Enhanced error handling to ensure that the spinner is disabled when report generation fails.
Operation Process:


Click the button below to generate the report with detailed operator results and the workflow snapshot.