Skip to content

Commit 5f8cb04

Browse files
committed
fix(landing): remove blank preview intro and close mobile QA gaps
1 parent 6b40488 commit 5f8cb04

15 files changed

Lines changed: 175 additions & 595 deletions

File tree

‎apps/sim/app/(landing)/comparisons/components/source-info/source-info.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function SourceLink({ source, children, className }: SourceLinkProps) {
2828
href={source.url}
2929
target='_blank'
3030
rel='noopener noreferrer'
31-
className={cn('block min-w-0', className)}
31+
className={cn('relative block min-w-0', className)}
3232
>
3333
{children}
3434
<span className='sr-only'> (source: {source.label}, opens in a new tab)</span>

‎apps/sim/app/(landing)/components/hero/components/hero-chat-loop/hero-chat-loop.tsx‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,6 @@ export function HeroChatLoop({
256256
</div>
257257

258258
<div
259-
data-preview-outline='frame'
260-
data-preview-composer=''
261259
className={cn(
262260
'mx-auto w-[calc(100%-48px)] max-w-chat rounded-2xl border border-[var(--border)] bg-[var(--white)] px-2.5 py-2 dark:bg-[var(--surface-4)]',
263261
showWelcome

‎apps/sim/app/(landing)/components/hero/components/hero-chat-welcome/hero-chat-welcome.tsx‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export function HeroChatWelcome({ visible, onSelect }: HeroChatWelcomeProps) {
1515
return (
1616
<>
1717
<p
18-
data-preview-skeleton-label=''
1918
aria-hidden={!visible}
2019
className={cn(
2120
'absolute inset-x-0 bottom-[calc(100%+28px)] text-balance text-center text-[26px] text-[var(--text-primary)] leading-[1.2] tracking-[-0.01em] max-sm:bottom-[calc(100%+20px)] max-sm:text-[20px]',
@@ -34,9 +33,7 @@ export function HeroChatWelcome({ visible, onSelect }: HeroChatWelcomeProps) {
3433
visible ? 'opacity-100' : 'pointer-events-none opacity-0'
3534
)}
3635
>
37-
<span data-preview-skeleton-label='' className='text-[13px] text-[var(--text-secondary)]'>
38-
Suggested actions
39-
</span>
36+
<span className='text-[13px] text-[var(--text-secondary)]'>Suggested actions</span>
4037
<div className='mt-2 flex flex-col'>
4138
{PREVIEW_SUGGESTIONS.map((action, index) => {
4239
const Icon = ACTION_ICONS[index]
@@ -48,9 +45,7 @@ export function HeroChatWelcome({ visible, onSelect }: HeroChatWelcomeProps) {
4845
className='flex items-center gap-2 border-[var(--border)] px-2 py-2 text-left text-[var(--text-body)] text-sm transition-colors duration-150 hover:bg-[var(--surface-hover)] focus-visible:outline focus-visible:outline-1 focus-visible:outline-[var(--text-primary)] [&+button]:border-t'
4946
>
5047
<Icon className='size-[16px] shrink-0 text-[var(--text-icon)]' />
51-
<span data-preview-skeleton-label='' className='min-w-0 flex-1 truncate'>
52-
{action.title}
53-
</span>
48+
<span className='min-w-0 flex-1 truncate'>{action.title}</span>
5449
<ArrowRight className='size-[14px] shrink-0 text-[var(--text-icon)]' />
5550
</button>
5651
)

‎apps/sim/app/(landing)/components/hero/components/hero-platform-intro/draw-platform-preview.ts‎

Lines changed: 0 additions & 195 deletions
This file was deleted.

0 commit comments

Comments
 (0)