From 53ac2657e1e45e5ba77f808b9225ec1cf676d8b0 Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Sun, 29 Mar 2026 13:01:30 -0700 Subject: [PATCH 1/4] improvement(landing): lighthouse performance and accessibility fixes --- .../collaboration/collaboration.tsx | 1 - .../components/access-control-panel.tsx | 24 +++++++++++++++++-- .../components/audit-log-preview.tsx | 4 ++-- .../components/enterprise/enterprise.tsx | 14 +++++------ .../(home)/components/features/features.tsx | 1 - .../(home)/components/footer/footer-cta.tsx | 1 + apps/sim/app/layout.tsx | 1 + apps/sim/app/page.tsx | 2 +- 8 files changed, 34 insertions(+), 14 deletions(-) diff --git a/apps/sim/app/(home)/components/collaboration/collaboration.tsx b/apps/sim/app/(home)/components/collaboration/collaboration.tsx index 302bcc05904..02bee46ab15 100644 --- a/apps/sim/app/(home)/components/collaboration/collaboration.tsx +++ b/apps/sim/app/(home)/components/collaboration/collaboration.tsx @@ -288,7 +288,6 @@ export default function Collaboration() { width={876} height={480} className='h-full w-auto object-left md:min-w-[100vw]' - priority />
diff --git a/apps/sim/app/(home)/components/enterprise/components/access-control-panel.tsx b/apps/sim/app/(home)/components/enterprise/components/access-control-panel.tsx index 652b2b98ed3..6a45986c69b 100644 --- a/apps/sim/app/(home)/components/enterprise/components/access-control-panel.tsx +++ b/apps/sim/app/(home)/components/enterprise/components/access-control-panel.tsx @@ -97,7 +97,7 @@ export function AccessControlPanel() { return (
0 ? 'mt-4' : ''}> - + {category.label}
@@ -107,6 +107,10 @@ export function AccessControlPanel() { return ( setAccessState((prev) => ({ ...prev, [feature.key]: !prev[feature.key] })) } + onKeyDown={(e) => { + if (e.key === 'Enter' || e.key === ' ') { + e.preventDefault() + setAccessState((prev) => ({ ...prev, [feature.key]: !prev[feature.key] })) + } + }} whileTap={{ scale: 0.98 }} > @@ -140,7 +150,7 @@ export function AccessControlPanel() {
{PERMISSION_CATEGORIES.map((category, catIdx) => (
0 ? 'mt-4' : ''}> - + {category.label}
@@ -155,6 +165,10 @@ export function AccessControlPanel() { return ( setAccessState((prev) => ({ ...prev, [feature.key]: !prev[feature.key] })) } + onKeyDown={(e) => { + if (e.key === 'Enter' || e.key === ' ') { + e.preventDefault() + setAccessState((prev) => ({ ...prev, [feature.key]: !prev[feature.key] })) + } + }} whileTap={{ scale: 0.98 }} > diff --git a/apps/sim/app/(home)/components/enterprise/components/audit-log-preview.tsx b/apps/sim/app/(home)/components/enterprise/components/audit-log-preview.tsx index 53c938af1f5..89ad672e678 100644 --- a/apps/sim/app/(home)/components/enterprise/components/audit-log-preview.tsx +++ b/apps/sim/app/(home)/components/enterprise/components/audit-log-preview.tsx @@ -146,14 +146,14 @@ function AuditRow({ entry, index }: AuditRowProps) {
{/* Time */} - + {timeAgo} {entry.actor} - · + · {entry.description} diff --git a/apps/sim/app/(home)/components/enterprise/enterprise.tsx b/apps/sim/app/(home)/components/enterprise/enterprise.tsx index 52da8845d49..da8a88461c6 100644 --- a/apps/sim/app/(home)/components/enterprise/enterprise.tsx +++ b/apps/sim/app/(home)/components/enterprise/enterprise.tsx @@ -85,7 +85,7 @@ function TrustStrip() { SOC 2 & HIPAA - + Type II · PHI protected →
@@ -105,7 +105,7 @@ function TrustStrip() { Open Source - + View on GitHub →
@@ -120,7 +120,7 @@ function TrustStrip() { SSO & SCIM - + Okta, Azure AD, Google
@@ -165,7 +165,7 @@ export default function Enterprise() {

Audit Trail

-

+

Every action is captured with full actor attribution.

@@ -179,7 +179,7 @@ export default function Enterprise() {

Access Control

-

+

Restrict providers, surfaces, and tools per group.

@@ -211,7 +211,7 @@ export default function Enterprise() { (tag, i) => ( {tag} @@ -221,7 +221,7 @@ export default function Enterprise() {
-

+

Ready for growth?

diff --git a/apps/sim/app/(home)/components/features/features.tsx b/apps/sim/app/(home)/components/features/features.tsx index d402803ac91..1b5d9b8c9a8 100644 --- a/apps/sim/app/(home)/components/features/features.tsx +++ b/apps/sim/app/(home)/components/features/features.tsx @@ -190,7 +190,6 @@ export default function Features() { width={1440} height={366} className='h-auto w-full' - priority />
diff --git a/apps/sim/app/(home)/components/footer/footer-cta.tsx b/apps/sim/app/(home)/components/footer/footer-cta.tsx index b67ae3b3f84..984252f270a 100644 --- a/apps/sim/app/(home)/components/footer/footer-cta.tsx +++ b/apps/sim/app/(home)/components/footer/footer-cta.tsx @@ -67,6 +67,7 @@ export function FooterCTA() { type='button' onClick={handleSubmit} disabled={isEmpty} + aria-label='Submit message' className='flex h-[28px] w-[28px] items-center justify-center rounded-full border-0 p-0 transition-colors' style={{ background: isEmpty ? '#C0C0C0' : '#1C1C1C', diff --git a/apps/sim/app/layout.tsx b/apps/sim/app/layout.tsx index a58f0c25cbf..05fd18a7c0b 100644 --- a/apps/sim/app/layout.tsx +++ b/apps/sim/app/layout.tsx @@ -218,6 +218,7 @@ export default function RootLayout({ children }: { children: React.ReactNode }) {/* OneDollarStats Analytics */} +