Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/unlucky-horses-brush.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/clerk-js': minor
---

Add a "Go to dashboard" link to the success state on the Keyless popover.
34 changes: 22 additions & 12 deletions packages/clerk-js/src/ui/components/KeylessPrompt/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { PropsWithChildren } from 'react';
import { useEffect, useState } from 'react';
import { createPortal } from 'react-dom';

import { Flex } from '../../customizables';
import { Flex, Link } from '../../customizables';
import { Portal } from '../../elements/Portal';
import { InternalThemeProvider } from '../../styledSystem';
import { ClerkLogoIcon } from './ClerkLogoIcon';
Expand Down Expand Up @@ -245,11 +245,7 @@ const _KeylessPrompt = (_props: KeylessPromptProps) => {
<p
data-text='Clerk is in keyless mode'
aria-label={
success
? 'Application claim completed'
: claimed
? 'Missing environment keys'
: 'Clerk is in keyless mode'
success ? 'Claim completed' : claimed ? 'Missing environment keys' : 'Clerk is in keyless mode'
}
css={css`
${baseElementStyles};
Expand All @@ -260,11 +256,7 @@ const _KeylessPrompt = (_props: KeylessPromptProps) => {
cursor: pointer;
`}
>
{success
? 'Application claim completed'
: claimed
? 'Missing environment keys'
: 'Clerk is in keyless mode'}
{success ? 'Claim completed' : claimed ? 'Missing environment keys' : 'Clerk is in keyless mode'}
</p>
</Flex>

Expand Down Expand Up @@ -351,11 +343,29 @@ const _KeylessPrompt = (_props: KeylessPromptProps) => {
text-overflow: ellipsis;
max-width: 8.125rem;
vertical-align: bottom;
font-weight: 500;
color: #d5d5d5;
`}
>
{appName}
</span>{' '}
has been successfully claimed.
has been claimed. Configure settings from the{' '}
<Link
isExternal
aria-label='Go to Dashboard to configure settings'
href='https://dashboard.clerk.com/last-active?path=user-authentication/email-phone-username'
sx={t => ({
color: t.colors.$whiteAlpha600,

textDecoration: 'underline solid',
transition: `${t.transitionTiming.$common} ${t.transitionDuration.$fast}`,
':hover': {
color: t.colors.$whiteAlpha800,
},
})}
>
Clerk Dashboard
</Link>
</>
) : claimed ? (
<>
Expand Down
Loading