Skip to content

scp management polish#22

Merged
ccbrown merged 1 commit intomainfrom
scp-management-polish
Apr 21, 2025
Merged

scp management polish#22
ccbrown merged 1 commit intomainfrom
scp-management-polish

Conversation

@ccbrown
Copy link
Owner

@ccbrown ccbrown commented Apr 21, 2025

What It Does

Minor UI improvements, especially to SCP management.

Also adds detail to access report generation error messages.

Copilot AI review requested due to automatic review settings April 21, 2025 17:56
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR polishes the SCP management UI and updates error messages for access report generation.

  • Improves UI styling in success and error messages
  • Enhances Dialog and ChipEditor components for better UX
  • Refines error messaging in AWS access report generation in the backend

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
frontend/src/models/reports.ts Returns API response in report generation flow
frontend/src/models/aws.ts Adds a new method to fetch AWS access reports by team and account ID
frontend/src/components/SuccessMessage.tsx Adjusts styling for success notifications
frontend/src/components/ErrorMessage.tsx Adjusts styling for error notifications
frontend/src/components/Dialog.tsx Introduces a size prop and adjusts Dialog layout
frontend/src/components/ChipEditor.tsx Enhances ChipEditor with altLabel support and refactors InlineCombobox
frontend/src/app/(user-area)/teams/[teamId]/settings/members/page.tsx Updates layout and table styling on team members page
frontend/src/app/(user-area)/teams/[teamId]/page.tsx Updates Dialog component usage by including the size prop
frontend/src/app/(user-area)/teams/[teamId]/Rules.tsx Updates ChipEditor usage with region/service alternate labels
backend/app/aws_integration.go Enhances error message detail for AWS access report generation

return nil, s.SanitizedError(fmt.Errorf("failed to generate access report"))
var message string
if output.ErrorDetails != nil && output.ErrorDetails.Message != nil {
message = *output.ErrorDetails.Message
Copy link

Copilot AI Apr 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider providing a default fallback value for 'message' when 'output.ErrorDetails.Message' is nil to ensure that error messages remain informative.

Suggested change
message = *output.ErrorDetails.Message
message = *output.ErrorDetails.Message
} else {
message = "No error details provided."

Copilot uses AI. Check for mistakes.
@ccbrown ccbrown merged commit a66b358 into main Apr 21, 2025
3 checks passed
@ccbrown ccbrown deleted the scp-management-polish branch April 21, 2025 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant