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

style(dashboard): improve keys page design and look and feel #7236

Merged
merged 10 commits into from
Dec 8, 2024

Conversation

scopsy
Copy link
Contributor

@scopsy scopsy commented Dec 8, 2024

What changed? Why was the change needed?

  • Polish the API keys design
  • Add API URL

Screenshots

CleanShot 2024-12-08 at 12 35 08@2x

Expand for optional sections

Related enterprise PR

Special notes for your reviewer

Copy link

netlify bot commented Dec 8, 2024

Deploy Preview for dev-web-novu ready!

Name Link
🔨 Latest commit 16243a2
🔍 Latest deploy log https://app.netlify.com/sites/dev-web-novu/deploys/6755988c809b8400087c3d0a
😎 Deploy Preview https://deploy-preview-7236.dashboard.novu-staging.co
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Dec 8, 2024

Deploy Preview for dashboard-v2-novu-staging ready!

Name Link
🔨 Latest commit 16243a2
🔍 Latest deploy log https://app.netlify.com/sites/dashboard-v2-novu-staging/deploys/6755988cef40580008ee7029
😎 Deploy Preview https://deploy-preview-7236.dashboard-v2.novu-staging.co
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Comment on lines +17 to +19
'bg-background flex h-12 w-full items-center justify-between border-b border-b-neutral-100 px-2.5 py-1.5',
className
)}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed the color to match Figma designs of the bottom border

Comment on lines +12 to +16
<div
ref={ref}
className={cn('flex flex-col space-y-1.5 bg-neutral-50 p-4 text-sm font-medium', className)}
{...props}
/>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated card bg to reflect design system

Comment on lines +3 to +5
export const Container = ({ children, className }: { children: React.ReactNode; className?: string }) => {
return <div className={cn('mx-auto w-full max-w-[1152px] px-14 py-14', className)}>{children}</div>;
};
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Add a reusable container at 1152px width

Copy link
Contributor

Choose a reason for hiding this comment

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

to me feels like to generic component with very specific CSS 😅

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The goal for this one is to be consistent across all pages that needs to use the container width. This is the first page to need it

Comment on lines +11 to +24
export function HelpTooltipIndicator({ text, className, size = '5' }: HelpTooltipIndicatorProps) {
return (
<Tooltip>
<TooltipTrigger asChild>
<span className={cn('text-foreground-400 hover:cursor inline-block', className)}>
<RiInformation2Line className={`size-${size}`} />
</span>
</TooltipTrigger>
<TooltipContent>
<p>{text}</p>
</TooltipContent>
</Tooltip>
);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This can be used to easily embed help tooltips

@scopsy scopsy changed the title Feat polish api keys page polish(dashboard): improve keys page design and look and feel Dec 8, 2024
@scopsy scopsy requested a review from djabarovgeorge December 8, 2024 10:38
@scopsy scopsy changed the title polish(dashboard): improve keys page design and look and feel style(dashboard): improve keys page design and look and feel Dec 8, 2024

const handleClick = () => {
telemetry(TelemetryEvent.EXTERNAL_LINK_CLICKED, {
href,
Copy link
Contributor

Choose a reason for hiding this comment

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

noice!

Copy link
Contributor

Choose a reason for hiding this comment

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

🥳

Co-authored-by: George Djabarov <39195835+djabarovgeorge@users.noreply.github.com>
Copy link
Contributor

@djabarovgeorge djabarovgeorge left a comment

Choose a reason for hiding this comment

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

🚀

@scopsy scopsy merged commit 64a1c99 into next Dec 8, 2024
35 checks passed
@scopsy scopsy deleted the feat-polish-api-keys-page branch December 8, 2024 14:18
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