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

feat: Onboarding connect api token generation #8054

Merged
merged 7 commits into from
Sep 3, 2024

Conversation

kwasniew
Copy link
Contributor

@kwasniew kwasniew commented Sep 3, 2024

About the changes

When Clicking generate token or token exists for a given env you get token anatomy
Screenshot 2024-09-03 at 10 52 02

On mobile we move extra information and only show the token
Screenshot 2024-09-03 at 10 52 27

Details:

  • this step will be moved after SDK selection because we need token type (client vs frontend)
  • we will hardcode some token name
  • about 80 LOC in this PR is extract existing inline components into separate components for readability

Important files

Discussion points

Copy link

vercel bot commented Sep 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 3, 2024 9:21am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Sep 3, 2024 9:21am

Copy link
Contributor

github-actions bot commented Sep 3, 2024

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Manifest Files

@@ -185,49 +428,8 @@ export const ConnectSDKDialog = ({
</NextStepSectionSpacedContainer>
</NextStepSection>
</APIKeyGeneration>
<ConceptsDefinitions>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

extracted to separate component for readability

);
};

const ChooseEnvironment = ({
Copy link
Contributor Author

Choose a reason for hiding this comment

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

extracted into component for readability

return null;
}

const ConceptsDefinitions = () => (
Copy link
Contributor Author

Choose a reason for hiding this comment

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

extracted for readability

@@ -59,7 +67,7 @@ export const APIKeyGeneration = styled('div')(({ theme }) => ({
backgroundColor: theme.palette.background.paper,
display: 'flex',
flexDirection: 'column',
flexBasis: '70%',
flex: 1,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

take whole dialog in mobile view

@kwasniew kwasniew requested a review from sjaanus September 3, 2024 09:02
fontSize: theme.fontSizes.smallBody,
}));

function splitToken(
Copy link
Contributor

Choose a reason for hiding this comment

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

Can this be const splitToken, and can we have test for it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yup, will do

Copy link
Contributor

@sjaanus sjaanus left a comment

Choose a reason for hiding this comment

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

Approved with suggestion

@kwasniew kwasniew merged commit 6a51a0b into main Sep 3, 2024
8 of 11 checks passed
@kwasniew kwasniew deleted the onboarding-connect-api-token-generation branch September 3, 2024 09:28
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.

2 participants