Skip to content

Commit 679773d

Browse files
fix(firstMile): create token page update text to figma spec (#4407)
1 parent 5369430 commit 679773d

File tree

1 file changed

+31
-17
lines changed

1 file changed

+31
-17
lines changed

src/homepageExperience/components/steps/CreateToken.tsx

Lines changed: 31 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
// Libraries
2-
import React, {useEffect, useMemo, useState, FC} from 'react'
2+
import React, {FC, useEffect, useMemo, useState} from 'react'
33
import {useDispatch, useSelector} from 'react-redux'
44

55
// Actions
6-
import {getAllResources} from 'src/authorizations/actions/thunks'
7-
import {createAuthorization} from 'src/authorizations/actions/thunks'
6+
import {
7+
createAuthorization,
8+
getAllResources,
9+
} from 'src/authorizations/actions/thunks'
810

911
// Selectors
1012
import {getOrg} from 'src/organizations/selectors'
@@ -21,6 +23,13 @@ import {event} from 'src/cloud/utils/reporting'
2123

2224
// Types
2325
import {AppState, Authorization} from 'src/types'
26+
import {
27+
AlignItems,
28+
ComponentSize,
29+
FlexBox,
30+
Icon,
31+
IconFont,
32+
} from '@influxdata/clockface'
2433

2534
type OwnProps = {
2635
wizardEventName: string
@@ -85,24 +94,29 @@ export const CreateToken: FC<OwnProps> = ({wizardEventName}) => {
8594
<>
8695
<h1>Create a Token</h1>
8796
<p>
88-
InfluxDB Cloud uses Tokens to authenticate API access. We've generated
89-
an all-access token for you.
97+
InfluxDB Cloud uses Tokens to authenticate API access. We've created an
98+
all-access token for you for this set up process.
9099
</p>
91100
<p style={{marginTop: '51px'}}>
92-
Save your token as an environment variable; you’ll use it soon. Run this
93-
command in your terminal:
101+
Run this command in your terminal to save your token as an environment
102+
variable:
94103
</p>
95104
<CodeSnippet text={tokenTextboxText} onCopy={logCopyCodeSnippet} />
96-
<p style={{marginTop: '46px'}}>
97-
You can create tokens in the future in the{' '}
98-
<SafeBlankLink
99-
href={`orgs/${org.id}/load-data/tokens`}
100-
onClick={logDocsOpened}
101-
>
102-
Token page
103-
</SafeBlankLink>
104-
.
105-
</p>
105+
<FlexBox margin={ComponentSize.Large} alignItems={AlignItems.Center}>
106+
<Icon glyph={IconFont.Info_New} style={{fontSize: '30px'}} />
107+
<p>
108+
Creating an all-access tokens is not the best security practice! We
109+
recommend you to delete this token in the{' '}
110+
<SafeBlankLink
111+
href={`orgs/${org.id}/load-data/tokens`}
112+
onClick={logDocsOpened}
113+
>
114+
Token page
115+
</SafeBlankLink>{' '}
116+
after setting up, and creating your own token with specific set of
117+
permissions later.
118+
</p>
119+
</FlexBox>
106120
</>
107121
)
108122
}

0 commit comments

Comments
 (0)