fix: ratchet lints on compute page (#51192)

## Problem

ratchet lints were failing after merging the compute landing page on a
previous PR.

## Solution

This PR cleans up the ratchet lint run.

## Review instructions

- Check that no ratchet lint fails on this PR
This commit is contained in:
Francesco Sansalvadore authored and GitHub committed 2026-10-02 18:45:57 +02:00
1 parent 0405b31b26
commit 4344fdea3d
3 files changed
+26 -23

No files matched your search

@@ -1,5 +1,6 @@
'use client'
import SectionContainerWithCn from 'components/Layouts/SectionContainerWithCn'
import { AnimatePresence, motion, useReducedMotion } from 'framer-motion'
import { Database } from 'icons'
import type { LucideIcon } from 'lucide-react'
@@ -7,7 +8,6 @@ import { Bot, User } from 'lucide-react'
import { useCallback, useEffect, useId, useRef, useState } from 'react'
import { cn } from 'ui'
import SectionContainerWithCn from '../../../../components/Layouts/SectionContainerWithCn'
import styles from './compute-visual.module.css'
import { ComputeLogo } from './ComputeLogo'
@@ -185,6 +185,7 @@ function ComputeCardHeader({
<ComputeIcon />
<div className="flex min-w-0 flex-col leading-tight">
<span className="truncate text-xs text-foreground">{name}</span>
{/* eslint-disable-next-line shadcn/no-arbitrary-values -- 11px is a deliberate micro-size for this diagram's dense card header, not a token gap */}
<span className="truncate font-mono text-[11px] text-foreground-muted">{runtime}</span>
</div>
</div>
@@ -513,9 +514,9 @@ function buildConnectors(geometry: Geometry, live: Record<string, boolean>): Con
const box = (key: NodeKey) => boxes[key] as Box
const top = (key: NodeKey) => box(key).y
const bottom = (key: NodeKey) => box(key).y + box(key).height
const cx = (key: NodeKey) => box(key).x + box(key).width / 2
const cy = (key: NodeKey) => box(key).y + box(key).height / 2
const center = (key: NodeKey): Point => ({ x: cx(key), y: cy(key) })
const centerX = (key: NodeKey) => box(key).x + box(key).width / 2
const centerY = (key: NodeKey) => box(key).y + box(key).height / 2
const center = (key: NodeKey): Point => ({ x: centerX(key), y: centerY(key) })
const at = (x: number, y: number): Point => ({ x, y })
// Horizontal bands: the empty strips above and below the card grid, where
@@ -533,16 +534,16 @@ function buildConnectors(geometry: Geometry, live: Record<string, boolean>): Con
// Each source feeds its own column.
connector('human-embeddings', [
center('human'),
at(cx('human'), sourceBand),
at(cx('embeddings'), sourceBand),
at(centerX('human'), sourceBand),
at(centerX('embeddings'), sourceBand),
center('embeddings'),
]),
connector(
'agent1-sandboxBottomMid',
[
center('agent1'),
at(cx('agent1'), sourceBand),
at(cx('sandboxBottomMid'), sourceBand),
at(centerX('agent1'), sourceBand),
at(centerX('sandboxBottomMid'), sourceBand),
center('sandboxBottomMid'),
],
live.sandboxBottomMid
@@ -551,8 +552,8 @@ function buildConnectors(geometry: Geometry, live: Record<string, boolean>): Con
'agent2-sandboxBottomRight',
[
center('agent2'),
at(cx('agent2'), sourceBand),
at(cx('sandboxBottomRight'), sourceBand),
at(centerX('agent2'), sourceBand),
at(centerX('sandboxBottomRight'), sourceBand),
center('sandboxBottomRight'),
],
live.sandboxBottomRight
@@ -561,8 +562,8 @@ function buildConnectors(geometry: Geometry, live: Record<string, boolean>): Con
// The always-on column serves the application.
connector('api-app', [
center('api'),
at(cx('api'), appBand),
at(cx('app'), appBand),
at(centerX('api'), appBand),
at(centerX('app'), appBand),
center('app'),
]),
]
@@ -592,6 +593,7 @@ function ConnectorLayer({
aria-hidden="true"
>
<mask id={maskId} maskUnits="userSpaceOnUse" x="0" y="0" width={width} height={height}>
{/* eslint-disable-next-line shadcn/no-raw-colors -- SVG mask luminance requires literal white, not a theme color */}
<rect x="0" y="0" width={width} height={height} fill="white" />
{Object.entries(boxes).map(([key, node]) => (
<rect
@@ -601,6 +603,7 @@ function ConnectorLayer({
width={node.width}
height={node.height}
rx={CARD_RADIUS}
// eslint-disable-next-line shadcn/no-raw-colors -- SVG mask luminance requires literal black, not a theme color
fill="black"
/>
))}
@@ -5,32 +5,32 @@ const features = [
{
title: 'Short-lived credentials',
paragraph: 'Access runs through Supabase Auth with short-lived keys, not standing secrets.',
icon: <KeyRound className="w-5 h-5 stroke-[1.4px]" />,
icon: <KeyRound className="w-5 h-5" strokeWidth={1.4} />,
},
{
title: 'Zero-config data access',
paragraph: 'Reach your database and Storage with the permissions your key already carries.',
icon: <Plug className="w-5 h-5 stroke-[1.4px]" />,
icon: <Plug className="w-5 h-5" strokeWidth={1.4} />,
},
{
title: 'Per-workload firewalls',
paragraph: 'Define which external endpoints and ports each workload can reach.',
icon: <Network className="w-5 h-5 stroke-[1.4px]" />,
icon: <Network className="w-5 h-5" strokeWidth={1.4} />,
},
{
title: 'Cloaked secrets',
paragraph: 'Scope secrets per workload, and cloak values so your code never sees them.',
icon: <EyeOff className="w-5 h-5 stroke-[1.4px]" />,
icon: <EyeOff className="w-5 h-5" strokeWidth={1.4} />,
},
{
title: 'Patched automatically',
paragraph: 'Kernel-level security patches roll out automatically. Nothing to do on your part.',
icon: <ShieldCheck className="w-5 h-5 stroke-[1.4px]" />,
icon: <ShieldCheck className="w-5 h-5" strokeWidth={1.4} />,
},
{
title: 'Dependency scanning',
paragraph: 'Dependencies are scanned at runtime, with alerts as new vulnerabilities land.',
icon: <ScanSearch className="w-5 h-5 stroke-[1.4px]" />,
icon: <ScanSearch className="w-5 h-5" strokeWidth={1.4} />,
},
]
@@ -46,9 +46,9 @@ export function TrustBoundarySection() {
<span className="text-foreground-lighter block">preconfigured</span>
</h2>
<p className="text-foreground-lighter text-sm lg:text-base">
Every sandbox and service inherits your project's auth, roles, and permissions the moment
it starts, running in its own microVM with dedicated CPU and memory. Agents get a sandbox
that is already scoped to the data it is allowed to touch — nothing more.
Every sandbox and service inherits your project&apos;s auth, roles, and permissions the
moment it starts, running in its own microVM with dedicated CPU and memory. Agents get a
sandbox that is already scoped to the data it is allowed to touch — nothing more.
</p>
</div>
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3">
@@ -7,7 +7,6 @@ import {
Pause,
Server,
Shield,
Terminal,
TrendingUp,
} from 'lucide-react'
@@ -89,7 +88,8 @@ export function WorkloadsSection() {
className="flex items-start gap-2 text-foreground-light text-sm"
>
<Icon
className="w-4 h-4 text-brand shrink-0 mt-0.5 stroke-[1.5px]"
className="w-4 h-4 text-brand shrink-0 mt-0.5"
strokeWidth={1.5}
aria-hidden
/>
{feature.text}