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
2 changes: 1 addition & 1 deletion apps/sim/app/(auth)/components/auth-button-classes.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/** Shared className for inline auth action links. */
export const AUTH_TEXT_LINK =
'font-medium text-[var(--brand-accent)] underline-offset-4 transition hover:text-[var(--brand-accent-hover)] hover:underline disabled:cursor-not-allowed disabled:opacity-50' as const
'text-[var(--brand-accent)] underline-offset-4 transition hover:text-[var(--brand-accent-hover)] hover:underline disabled:cursor-not-allowed disabled:opacity-50' as const
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,7 @@ export default function EmailAuth({ identifier }: EmailAuthProps) {
Didn't receive a code?{' '}
{countdown > 0 ? (
<span>
Resend in{' '}
<span className='font-medium text-[var(--text-primary)]'>{countdown}s</span>
Resend in <span className='text-[var(--text-primary)]'>{countdown}s</span>
</span>
) : (
<button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function ChatHeader({ chatConfig, starCount }: ChatHeaderProps) {
className='size-6 rounded-md object-cover'
/>
)}
<h2 className='font-medium text-[var(--text-primary)] text-lg'>
<h2 className='text-[var(--text-primary)] text-lg'>
{chatConfig?.customizations?.headerText || chatConfig?.title || 'Chat'}
</h2>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ export function ChatMessageContainer({
{messages.length === 0 ? (
<div className='flex flex-col items-center justify-center py-10'>
<div className='space-y-2 text-center'>
<h3 className='font-medium text-[var(--text-primary)] text-lg'>
How can I help you today?
</h3>
<h3 className='text-[var(--text-primary)] text-lg'>How can I help you today?</h3>
<p className='text-[var(--text-muted)] text-sm'>
{chatConfig?.description || 'Ask me anything.'}
</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function LinkWithPreview({ href, children }: { href: string; children: React.Rea
</a>
</Tooltip.Trigger>
<Tooltip.Content side='top' align='center' sideOffset={5} className='max-w-sm'>
<span className='truncate font-medium text-xs'>{href}</span>
<span className='truncate text-xs'>{href}</span>
</Tooltip.Content>
</Tooltip.Root>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export const ClientChatMessage = memo(function ClientChatMessage({
{getFileIcon(attachment.type)}
</div>
<div className='min-w-0 flex-1'>
<div className='truncate font-medium text-[var(--text-primary)] text-xs md:text-sm'>
<div className='truncate text-[var(--text-primary)] text-xs md:text-sm'>
{attachment.name}
</div>
{attachment.size && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -705,9 +705,7 @@ export default function ResumeExecutionPage({
<Tooltip.Provider>
<div className='flex flex-1 items-center justify-center p-6'>
<div className='max-w-[400px] text-center'>
<h1 className='mb-2 font-medium text-[20px] text-[var(--text-primary)]'>
Execution Not Found
</h1>
<h1 className='mb-2 text-[20px] text-[var(--text-primary)]'>Execution Not Found</h1>
<p className='mb-6 text-[14px] text-[var(--text-secondary)]'>
This execution could not be located or has already completed.
</p>
Expand All @@ -726,7 +724,7 @@ export default function ResumeExecutionPage({
{/* Header */}
<div className='mb-8 flex items-center justify-between'>
<div>
<h1 className='font-medium text-[20px] text-[var(--text-primary)]'>Paused Execution</h1>
<h1 className='text-[20px] text-[var(--text-primary)]'>Paused Execution</h1>
<p className='mt-1 text-[14px] text-[var(--text-secondary)]'>
Select a pause point to review and resume
</p>
Expand Down
2 changes: 1 addition & 1 deletion apps/sim/app/_shell/desktop-update-gate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export function DesktopUpdateGate() {
data-native-surface-occlusion='takeover'
>
<div className='flex max-w-sm flex-col gap-2'>
<h1 className='font-medium text-[var(--text-primary)] text-lg'>Update Sim to continue</h1>
<h1 className='text-[var(--text-primary)] text-lg'>Update Sim to continue</h1>
<p className='text-[var(--text-secondary)] text-sm'>
This version of the Sim desktop app is no longer compatible with the latest Sim. Install
the update to keep going.
Expand Down
3 changes: 1 addition & 2 deletions apps/sim/app/f/[token]/public-file-email-auth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,7 @@ export function PublicFileEmailAuth({ token }: PublicFileEmailAuthProps) {
Didn't receive a code?{' '}
{countdown > 0 ? (
<span>
Resend in{' '}
<span className='font-medium text-[var(--text-primary)]'>{countdown}s</span>
Resend in <span className='text-[var(--text-primary)]'>{countdown}s</span>
</span>
) : (
<button
Expand Down
2 changes: 1 addition & 1 deletion apps/sim/app/f/[token]/public-file-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export function PublicFileView({
</>
)}
<div className='flex min-w-0 flex-col'>
<span className='truncate font-medium text-[14px] text-[var(--text-body)]'>{name}</span>
<span className='truncate text-[14px] text-[var(--text-body)]'>{name}</span>
{provenance ? (
<span className='truncate text-[12px] text-[var(--text-muted)]'>{provenance}</span>
) : null}
Expand Down
8 changes: 2 additions & 6 deletions apps/sim/app/invite/components/status-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ export function InviteStatusCard({
return (
<>
<div className='space-y-1 text-center'>
<h1 className='font-medium text-[32px] text-[var(--text-primary)] tracking-tight'>
Loading
</h1>
<h1 className='text-[32px] text-[var(--text-primary)] tracking-tight'>Loading</h1>
<p className='text-[var(--text-muted)]'>{description}</p>
</div>
<div className='mt-8 flex w-full items-center justify-center py-8'>
Expand All @@ -49,9 +47,7 @@ export function InviteStatusCard({
return (
<>
<div className='space-y-1 text-center'>
<h1 className='font-medium text-[32px] text-[var(--text-primary)] tracking-tight'>
{title}
</h1>
<h1 className='text-[32px] text-[var(--text-primary)] tracking-tight'>{title}</h1>
<p className='text-[var(--text-muted)]'>{description}</p>
</div>

Expand Down
2 changes: 1 addition & 1 deletion apps/sim/app/oauth-error/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default async function OAuthErrorPage({ searchParams }: OAuthErrorPagePro
<main className='desktop-title-bar-page flex items-center justify-center px-6'>
<DesktopTitleBarLane />
<div className='max-w-sm text-center'>
<h1 className='font-semibold text-foreground text-lg'>Couldn’t complete that</h1>
<h1 className='text-foreground text-lg'>Couldn’t complete that</h1>
<p className='mt-2 text-muted-foreground text-sm'>{messageForError(code)}</p>
<p className='mt-4 text-muted-foreground text-sm'>
You can close this tab and try again from Sim.
Expand Down
6 changes: 2 additions & 4 deletions apps/sim/app/playground/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ import { env, isTruthy } from '@/lib/core/config/env'
function Section({ title, children }: { title: string; children: React.ReactNode }) {
return (
<section className='space-y-4'>
<h2 className='border-[var(--border)] border-b pb-2 font-medium text-[var(--text-primary)] text-lg'>
<h2 className='border-[var(--border)] border-b pb-2 text-[var(--text-primary)] text-lg'>
{title}
</h2>
<div className='space-y-4'>{children}</div>
Expand Down Expand Up @@ -188,9 +188,7 @@ export default function PlaygroundPage() {
</div>
<div className='mx-auto max-w-4xl space-y-12'>
<div>
<h1 className='font-semibold text-2xl text-[var(--text-primary)]'>
EMCN Component Playground
</h1>
<h1 className='text-2xl text-[var(--text-primary)]'>EMCN Component Playground</h1>
<p className='mt-2 text-[var(--text-secondary)]'>
All emcn UI components and their variants
</p>
Expand Down
16 changes: 6 additions & 10 deletions apps/sim/app/unsubscribe/unsubscribe.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ function UnsubscribeContent() {
return (
<InviteLayout>
<div className='space-y-1 text-center'>
<h1 className={'font-medium text-[32px] text-[var(--text-primary)] tracking-tight'}>
Loading
</h1>
<h1 className={'text-[32px] text-[var(--text-primary)] tracking-tight'}>Loading</h1>
<p className={'text-[var(--text-muted)] text-md'}>Validating your unsubscribe link…</p>
</div>
<div className={'mt-8 flex w-full items-center justify-center py-8'}>
Expand All @@ -56,7 +54,7 @@ function UnsubscribeContent() {
return (
<InviteLayout>
<div className='space-y-1 text-center'>
<h1 className={'font-medium text-[32px] text-[var(--text-primary)] tracking-tight'}>
<h1 className={'text-[32px] text-[var(--text-primary)] tracking-tight'}>
Invalid Unsubscribe Link
</h1>
<p className={'text-[var(--text-muted)] text-md'}>{error}</p>
Expand All @@ -75,7 +73,7 @@ function UnsubscribeContent() {
return (
<InviteLayout>
<div className='space-y-1 text-center'>
<h1 className={'font-medium text-[32px] text-[var(--text-primary)] tracking-tight'}>
<h1 className={'text-[32px] text-[var(--text-primary)] tracking-tight'}>
Important Account Emails
</h1>
<p className={'text-[var(--text-muted)] text-md'}>
Expand All @@ -97,7 +95,7 @@ function UnsubscribeContent() {
return (
<InviteLayout>
<div className='space-y-1 text-center'>
<h1 className={'font-medium text-[32px] text-[var(--text-primary)] tracking-tight'}>
<h1 className={'text-[32px] text-[var(--text-primary)] tracking-tight'}>
Successfully Unsubscribed
</h1>
<p className={'text-[var(--text-muted)] text-md'}>
Expand All @@ -120,7 +118,7 @@ function UnsubscribeContent() {
return (
<InviteLayout>
<div className='space-y-1 text-center'>
<h1 className={'font-medium text-[32px] text-[var(--text-primary)] tracking-tight'}>
<h1 className={'text-[32px] text-[var(--text-primary)] tracking-tight'}>
Email Preferences
</h1>
<p className={'text-[var(--text-muted)] text-md'}>
Expand Down Expand Up @@ -208,9 +206,7 @@ export default function Unsubscribe() {
fallback={
<InviteLayout>
<div className='space-y-1 text-center'>
<h1 className={'font-medium text-[32px] text-[var(--text-primary)] tracking-tight'}>
Loading
</h1>
<h1 className={'text-[32px] text-[var(--text-primary)] tracking-tight'}>Loading</h1>
<p className={'text-[var(--text-muted)] text-md'}>Validating your unsubscribe link…</p>
</div>
<div className={'mt-8 flex w-full items-center justify-center py-8'}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,32 +249,6 @@ export const MessageActions = memo(function MessageActions({
>
<ChipModalHeader onClose={() => handleModalClose(false)}>Give feedback</ChipModalHeader>
<ChipModalBody>
<div className='flex items-start justify-between gap-2 px-2'>
<p className='font-medium text-[var(--text-secondary)] text-sm'>
{pendingFeedback === 'up' ? 'What did you like?' : 'What could be improved?'}
</p>
{pendingFeedback === 'down' && requestId && (
<Tooltip.Root>
<Tooltip.Trigger asChild>
<button
type='button'
aria-label='Copy request ID'
onClick={copyRequestId}
className='flex size-[22px] shrink-0 items-center justify-center rounded-full text-[var(--text-icon)] transition-colors hover-hover:bg-[var(--surface-hover)] focus-visible:outline-none'
>
{copiedRequestId ? (
<Check className='size-[14px]' />
) : (
<Duplicate className='size-[14px]' />
)}
</button>
</Tooltip.Trigger>
<Tooltip.Content side='top'>
{copiedRequestId ? 'Copied request ID' : 'Copy request ID'}
</Tooltip.Content>
</Tooltip.Root>
)}
</div>
<ChipModalField
type='textarea'
title='Feedback'
Expand All @@ -292,6 +266,11 @@ export const MessageActions = memo(function MessageActions({
</ChipModalBody>
<ChipModalFooter
onCancel={() => handleModalClose(false)}
secondaryActions={
pendingFeedback === 'down' && requestId
? [{ label: copiedRequestId ? 'Copied' : 'Copy ID', onClick: copyRequestId }]
: undefined
}
primaryAction={{
label: 'Submit',
onClick: handleSubmitFeedback,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,9 +307,8 @@ const BreadcrumbSegment = memo(function BreadcrumbSegment({
)
/**
* Interactive crumbs use a plain `<button>` with bare-chip geometry — NEVER
* the Button component, whose buttonVariants inject font-medium /
* rounded-[5px] / justify-center and break chip parity with the static/title
* crumbs.
* the Button component, whose buttonVariants inject rounded-[5px] /
* justify-center and break chip parity with the static/title crumbs.
*/
const triggerClassName = cn(chipVariants(), 'group min-w-0 max-w-full justify-start')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ const Pagination = memo(function Pagination({
variant='ghost'
onClick={() => onPageChange(page)}
className={cn(
'h-auto p-0 font-medium text-sm transition-colors hover-hover:bg-transparent hover-hover:text-[var(--text-body)]',
'h-auto p-0 text-sm transition-colors hover-hover:bg-transparent hover-hover:text-[var(--text-body)]',
page === currentPage ? 'text-[var(--text-body)]' : 'text-[var(--text-secondary)]'
)}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ export function WorkspaceAccessDenied() {
<CircleAlert className='size-[18px] text-[var(--text-icon)]' aria-hidden />
</div>
<div className='space-y-1'>
<h1 className='font-medium text-[var(--text-primary)] text-lg'>
Workspace access denied
</h1>
<h1 className='text-[var(--text-primary)] text-lg'>Workspace access denied</h1>
<p className='text-[var(--text-muted)] text-sm'>
You do not have access to this workspace. Ask a workspace administrator for access or
choose another workspace.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ const MediaPreview = memo(function MediaPreview({
<div className='flex h-full flex-col items-center justify-center gap-4 bg-[var(--surface-1)] p-8'>
<div className='flex flex-col items-center gap-2 text-center'>
<Music className='size-[32px] text-[var(--text-muted)]' />
<p className='font-medium text-[14px] text-[var(--text-primary)]'>{file.name}</p>
<p className='text-[14px] text-[var(--text-primary)]'>{file.name}</p>
</div>
{blobUrl && (
// biome-ignore lint/a11y/useMediaCaption: audio from workspace files
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ interface PdfViewerCoreProps {
function PdfError({ error }: { error: string }) {
return (
<div className='flex flex-1 flex-col items-center justify-center gap-[8px]'>
<p className='font-medium text-[14px] text-[var(--text-body)]'>Failed to preview PDF</p>
<p className='text-[14px] text-[var(--text-body)]'>Failed to preview PDF</p>
<p className='text-[13px] text-[var(--text-muted)]'>{error}</p>
</div>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const UnsupportedPreview = memo(function UnsupportedPreview({ name }: { n

return (
<div className='flex flex-1 flex-col items-center justify-center gap-[8px]'>
<p className='font-medium text-[14px] text-[var(--text-primary)]'>
<p className='text-[14px] text-[var(--text-primary)]'>
Preview not available{ext ? ` for .${ext} files` : ' for this file'}
</p>
<p className='text-[13px] text-[var(--text-muted)]'>
Expand All @@ -31,9 +31,7 @@ export const UnsupportedPreview = memo(function UnsupportedPreview({ name }: { n
export function PreviewError({ label, error }: { label: string; error: string }) {
return (
<div className='flex flex-1 flex-col items-center justify-center gap-[8px]'>
<p className='font-medium text-[14px] text-[var(--text-primary)]'>
Failed to preview {label}
</p>
<p className='text-[14px] text-[var(--text-primary)]'>Failed to preview {label}</p>
<p className='text-[13px] text-[var(--text-muted)]'>{error}</p>
</div>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const SUGGESTION_SCROLL_CLASS = 'max-h-[240px] scroll-py-1.5 overflow-y-a
/** A selectable row: icon + label, 14px icon in `--text-icon`, truncating label. The `img` rules
* size custom-block image icons (rendered as `<img>`, so the `svg` rules never reach them). */
export const SUGGESTION_ITEM_CLASS =
'relative flex w-full min-w-0 cursor-pointer select-none items-center gap-2 rounded-[5px] px-2 py-1.5 text-left font-medium text-[var(--text-body)] text-caption outline-none transition-colors [&>span]:min-w-0 [&>span]:truncate [&_svg]:pointer-events-none [&_svg]:size-[14px] [&_svg]:shrink-0 [&_svg]:text-[var(--text-icon)] [&_img]:pointer-events-none [&_img]:size-[14px] [&_img]:shrink-0'
'relative flex w-full min-w-0 cursor-pointer select-none items-center gap-2 rounded-[5px] px-2 py-1.5 text-left text-[var(--text-body)] text-caption outline-none transition-colors [&>span]:min-w-0 [&>span]:truncate [&_svg]:pointer-events-none [&_svg]:size-[14px] [&_svg]:shrink-0 [&_svg]:text-[var(--text-icon)] [&_img]:pointer-events-none [&_img]:size-[14px] [&_img]:shrink-0'

/** A group heading above a run of rows. */
export const SUGGESTION_GROUP_LABEL_CLASS =
Expand Down
Loading
Loading