Skip to content

WebDiscover: Enroll New AWS Integration Flow#24459

Merged
kimlisa merged 10 commits intomasterfrom
lisa/ryan/enroll-aws-integration
Apr 13, 2023
Merged

WebDiscover: Enroll New AWS Integration Flow#24459
kimlisa merged 10 commits intomasterfrom
lisa/ryan/enroll-aws-integration

Conversation

@kimlisa
Copy link
Copy Markdown
Contributor

@kimlisa kimlisa commented Apr 12, 2023

resolves #22129
enterprise PR: https://github.com/gravitational/teleport.e/pull/1123

Recommend reviewing by commit.
Also, this feature is not enabled yet as more work is coming.

Just made minor tweaks on top of ryan's major work:

  • moving files, and renaming things. I had naming issue with AWS so i had to change it to AwsOidc, i'm not exactly sure where it rooted from.
  • added sub routing to allow lazy loading the aws component
  • fixed some styling, removed unused props
  • created a dialog when user successfully creates integration. i'll be using location state to determine if user came from the discover flow

Note: skipped adding test to save time, i'll add them after branch 13 cut and polishing is necessary. I would probably add a behavioral test that each step renders as expected.

Screenshot & Mov

after creating integration dialog if a user came from discover flow, we will resume by passing in location state to the discover route:

image

dialog when a user didn't come from discover:

image

I sped past the animation, storybook contains the flow at your leisure Integrations/AwsOidc/Flow:

Screen.Recording.2023-04-12.at.10.04.00.AM.mov

@public-teleport-github-review-bot
Copy link
Copy Markdown

@kimlisa - this PR will require admin approval to merge due to its size. Consider breaking it up into a series smaller changes.

Copy link
Copy Markdown
Member

@ryanclark ryanclark left a comment

Choose a reason for hiding this comment

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

LGTM, there's some TODOs to replace the hostname of teleport.lol to the actual cluster name. Can you do these before merging please?

ryanclark and others added 8 commits April 13, 2023 11:39
* Rename AWS into AwsOidc, story expects pascal case
but ran into non-story issues where casing was a problem
even renaming AWS to Aws wasn't enough, i don't know
why

* Capitalize browser directory to Browser
Also define IntegrationKind as enum string values
to avoid hard coding it all over.
@kimlisa kimlisa force-pushed the lisa/ryan/enroll-aws-integration branch from 283a568 to 61e99f5 Compare April 13, 2023 18:40
@kimlisa kimlisa enabled auto-merge April 13, 2023 18:41
@kimlisa kimlisa added this pull request to the merge queue Apr 13, 2023
Merged via the queue into master with commit 49aa9db Apr 13, 2023
@kimlisa kimlisa deleted the lisa/ryan/enroll-aws-integration branch April 13, 2023 20:04
kimlisa added a commit that referenced this pull request May 4, 2023
* WebDiscover: Enroll New AWS Integration Flow (#24459)

* Add Lock icon

* WebDiscover: Create connect to aws account screen (#24506)

* WebDiscover: Add delete integration operation (#24590)

* Fix malformed JSON error response for 200

* Fix making response when fetching integrations

* Create re-usable integration ops hook (only delete for now)

* Create delete dialog

* Allow deleting integrations

* Fix lint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Discover] New AWS Integration Flow

4 participants