-
-
Notifications
You must be signed in to change notification settings - Fork 195
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
1261 introduce new start screen with helpful links #1327
1261 introduce new start screen with helpful links #1327
Conversation
MightyDevKnight
commented
Oct 7, 2022
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Commit SHA:9af4cc1716b7fe8583bd4c14d662d688c8b68bb1 Test coverage results 🧪
|
cypress/integration/startup.spec.js
Outdated
@@ -64,6 +64,6 @@ describe('Loads application', () => { | |||
it('shows welcome page when no token values are given', () => { | |||
cy.visit('/'); | |||
cy.startup(mockStartupParams); | |||
cy.get('p').contains('Welcome to Figma Tokens'); | |||
cy.get('a').contains("Found an issue We're on GitHub!"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cy.get('a').contains("Found an issue We're on GitHub!"); | |
cy.get('a').contains("Found an issue? We're on GitHub!"); |
src/app/components/Callout.tsx
Outdated
<Stack direction="row" gap={2}> | ||
<Box css={{ color: '$interaction' }}> | ||
<IconBell /> | ||
<Box css={{ backgroundColor: '$startScreenAlertBg', padding: '$4', borderRadius: '$default' }}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This component can be used outside Start screen as well, lets not introduce tokens that bind the usage to the start screen.
<Box css={{ backgroundColor: '$startScreenAlertBg', padding: '$4', borderRadius: '$default' }}> | |
<Box css={{ backgroundColor: '$dangerBg', padding: '$4', borderRadius: '$default' }}> |
src/app/components/Callout.tsx
Outdated
<IconBell /> | ||
<Box css={{ backgroundColor: '$startScreenAlertBg', padding: '$4', borderRadius: '$default' }}> | ||
<Stack direction="row" gap={4}> | ||
<Box css={{ color: '$dangerBg', marginTop: '$3' }}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're applying a token to the foreground color of an object, applying a Background token for that is not good.
<Box css={{ color: '$dangerBg', marginTop: '$3' }}> | |
<Box css={{ color: '$dangerFg', marginTop: '$3' }}> |
src/app/components/Callout.tsx
Outdated
</Box> | ||
<Stack align="start" direction="column" gap={2}> | ||
<Heading>{heading}</Heading> | ||
<Text size="xsmall">{description}</Text> | ||
<StyledButton data-cy={id} type="button" onClick={action.onClick}> | ||
<Button data-cy={id} id="button-configure" size="small" variant="primary" onClick={action.onClick}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This component can be used outside Start screen as well, let's not bind it to it. The ID should be dynamic.
src/app/components/StartScreen.tsx
Outdated
height: '55px', | ||
}); | ||
|
||
const HelpfulLinks = styled('a', { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would call this singular HelpfulLink or so.
src/app/components/StartScreen.tsx
Outdated
</a> | ||
<Stack direction="column" gap={4} css={{ padding: '2rem', background: '$startScreenBg' }}> | ||
<Stack direction="row" gap={2}> | ||
<StyledFigmaMark /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you call this 'FigmaTokensLogoMark' and 'FigmaTokensLogo'? This is not the Figma Mark but our logo.
src/app/components/StartScreen.tsx
Outdated
'&:hover, &:focus': { | ||
color: '$onInteraction', | ||
}, | ||
rel: 'noreferrer', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a html property, not a css one.
rel: 'noreferrer', |
src/app/components/StartScreen.tsx
Outdated
{/* eslint-disable-next-line */} | ||
<img alt="Figma Tokens Splashscreen" src={require('../assets/tokens-intro.jpg')} className="rounded" /> | ||
</a> | ||
<Stack direction="column" gap={4} css={{ padding: '2rem', background: '$startScreenBg' }}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/app/components/StartScreen.tsx
Outdated
@@ -32,40 +57,64 @@ function StartScreen() { | |||
|
|||
return ( | |||
<div className="h-auto p-4 my-auto content scroll-container"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<div className="h-auto p-4 my-auto content scroll-container"> | |
<div className="h-auto p-4 content scroll-container"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also change this container to have
height: 100%
display: flex
@@ -32,40 +57,64 @@ function StartScreen() { | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also fix that on line 49 we currently have
dispatch.uiState.setActiveTab(Tabs.TOKENS)
this should be
dispatch.uiState.setActiveTab(Tabs.SETTINGS)
Right now when you click Enter credentials you stay on start screen but it should take you to settings. which the above suggestion does
@MightyDevKnight can you link the issue? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice 🎉