Skip to content

fix: restore table view in pipeline execution screens#2

Merged
HenryOwenz merged 1 commit intomainfrom
bug-fix/execution-view
Mar 14, 2025
Merged

fix: restore table view in pipeline execution screens#2
HenryOwenz merged 1 commit intomainfrom
bug-fix/execution-view

Conversation

@HenryOwenz
Copy link
Owner

This commit fixes an issue where the pipeline approval and start pipeline execution views were showing a 'loading...' message instead of the expected table with 'Execute' and 'Cancel' options. The issue was in the renderMainContent function in internal/ui/view/view.go, which was returning m.LoadingMsg for the ViewExecutingAction view instead of rendering the table. The fix changes the function to call renderTable(m) instead, which properly displays the table with execution options.

Added regression tests:

  • Unit test in view_test.go to verify the renderMainContent function correctly renders a table
  • Enhanced integration tests in aws_pipeline_start_test.go and aws_approvals_test.go to verify the table is displayed correctly

This ensures the execution view will continue to display properly in the future.

This commit fixes an issue where the pipeline approval and start pipeline execution views were showing a 'loading...' message instead of the expected table with 'Execute' and 'Cancel' options.
The issue was in the renderMainContent function in internal/ui/view/view.go, which was returning m.LoadingMsg for the ViewExecutingAction view instead of rendering the table.
The fix changes the function to call renderTable(m) instead, which properly displays the table with execution options.

Added regression tests:
- Unit test in view_test.go to verify the renderMainContent function correctly renders a table
- Enhanced integration tests in aws_pipeline_start_test.go and aws_approvals_test.go to verify the table is displayed correctly

This ensures the execution view will continue to display properly in the future.
@HenryOwenz HenryOwenz self-assigned this Mar 14, 2025
@HenryOwenz HenryOwenz added the bug Something isn't working label Mar 14, 2025
@HenryOwenz HenryOwenz merged commit 423d178 into main Mar 14, 2025
3 checks passed
@HenryOwenz HenryOwenz deleted the bug-fix/execution-view branch March 14, 2025 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant