Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWS Integration: Account setup basic UI and functionality #6806

Open
wants to merge 1 commit into
base: aws-integration-skeleton
Choose a base branch
from

Conversation

ahmadshaheer
Copy link
Collaborator

@ahmadshaheer ahmadshaheer commented Jan 13, 2025

Summary

Related Issues / PR's

Screenshots

2025-01-15.09-39-04.mov

Affected Areas and Manually Tested Areas


Important

Add AWS account management UI to HeroSection with AccountActions component and supporting styles and data.

  • UI Components:
    • Add AccountActions component in AccountActions.tsx for AWS account management.
    • Integrate AccountActions into HeroSection.tsx.
  • Styling:
    • Add styles for AccountActions in AccountActions.style.scss.
    • Remove unused button styles from HeroSection.style.scss.
  • Data Handling:
    • Add cloudAccountsData to data.ts for mock AWS account data.
    • Define types for cloud accounts in types.ts.

This description was created by Ellipsis for 6f9b9c7. It will automatically update as commits are pushed.

@ahmadshaheer ahmadshaheer requested a review from YounixM as a code owner January 13, 2025 07:24
Copy link

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

1 similar comment
Copy link

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

@ahmadshaheer ahmadshaheer force-pushed the account-setup-basic-UI-and-functionality branch from 060fc10 to 5e59c1f Compare January 13, 2025 07:25
@ahmadshaheer ahmadshaheer changed the title Account setup basic UI and functionality AWS Integration: Account setup basic UI and functionality Jan 13, 2025
Copy link

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

@ahmadshaheer ahmadshaheer force-pushed the account-setup-basic-UI-and-functionality branch from 5e59c1f to 6c3b326 Compare January 14, 2025 07:58
Copy link

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

❌ Changes requested. Incremental review on 6c3b326 in 56 seconds

More details
  • Looked at 345 lines of code in 6 files
  • Skipped 0 files when reviewing.
  • Skipped posting 3 drafted comments based on config settings.
1. frontend/src/container/CloudIntegrationPage/HeroSection/AccountActions.tsx:59
  • Draft comment:
    Using cloud_account_id as the label might not be user-friendly. Consider using a more descriptive label if available.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The cloud_account_id is used as both the value and label in the select options. This might not be user-friendly if the cloud_account_id is not easily recognizable by users. Consider using a more descriptive label if available.
2. frontend/src/container/CloudIntegrationPage/HeroSection/AccountActions.tsx:72
  • Draft comment:
    optionRender is not a valid prop for Ant Design Select. Use dropdownRender to customize option rendering.
  • Reason this comment was not posted:
    Decided after close inspection that this draft comment was likely wrong and/or not actionable:
    The comment is factually incorrect. optionRender is a valid prop in Ant Design's Select component. dropdownRender serves a different purpose - it's for customizing the entire dropdown container, while optionRender is specifically for customizing individual options, which is what the code is trying to do here.
    Could there be a version compatibility issue where optionRender wasn't available in older versions of Ant Design?
    Even if there were version compatibility issues, the code is using optionRender correctly according to current Ant Design documentation, and the code is working as intended.
    The comment should be deleted as it is factually incorrect - optionRender is a valid and appropriate prop for this use case.
3. frontend/src/container/CloudIntegrationPage/HeroSection/HeroSection.tsx:25
  • Draft comment:
    Avoid using inline styles in React components. Consider using external stylesheets, CSS classes, or styled components instead.
  • Reason this comment was not posted:
    Comment was not on a valid diff hunk.

Workflow ID: wflow_lxfPggwgJd4N7igI


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

}

function renderOption(
option: any,
Copy link
Contributor

Choose a reason for hiding this comment

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

Avoid using any type for option. Consider defining a specific type for the options used in the Select component to ensure type safety.

@ahmadshaheer ahmadshaheer force-pushed the account-setup-basic-UI-and-functionality branch from 6c3b326 to 6f9b9c7 Compare January 14, 2025 12:54
Copy link

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

❌ Changes requested. Incremental review on 6f9b9c7 in 56 seconds

More details
  • Looked at 345 lines of code in 6 files
  • Skipped 0 files when reviewing.
  • Skipped posting 3 drafted comments based on config settings.
1. frontend/src/container/CloudIntegrationPage/HeroSection/HeroSection.tsx:3
  • Draft comment:
    Consider fetching cloudAccountsData from an API or state management if it is expected to change dynamically.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The cloudAccountsData is being imported from data.ts and used directly in HeroSection.tsx. This is fine for now, but if the data is expected to change dynamically, consider fetching it from an API or a state management solution.
2. frontend/src/container/CloudIntegrationPage/HeroSection/AccountActions.tsx:54
  • Draft comment:
    Handle the case where accounts might be empty to avoid potential errors when setting activeAccountId.
  • Reason this comment was not posted:
    Comment looked like it was already resolved.
3. frontend/src/container/CloudIntegrationPage/HeroSection/HeroSection.tsx:8
  • Draft comment:
    Avoid using inline styles in React components. Use external stylesheets, CSS classes, or styled components instead.
  • Reason this comment was not posted:
    Comment was not on a valid diff hunk.

Workflow ID: wflow_jO9Snkm1I0QK5mrl


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

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