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 .claude/skills/frontend-review/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: frontend-review
description: Self-review of the Traced AI marketing site (Vite + React 19 + TypeScript + Tailwind v4 + react-router-dom 7) before merge. Covers accessibility (WCAG 2.2 AA), routing, TypeScript, theming/Tailwind, component structure, third-party embeds, performance, security, code quality, and the project's EU AI Act copy + legal-page + copy.ts/site-copy.md disciplines. Use before merging a branch, or pass `full` to audit the whole codebase.
description: Self-review of the Traced AI marketing site (Vite + React 19 + TypeScript + Tailwind v4 + react-router 7) before merge. Covers accessibility (WCAG 2.2 AA), routing, TypeScript, theming/Tailwind, component structure, third-party embeds, performance, security, code quality, and the project's EU AI Act copy + legal-page + copy.ts/site-copy.md disciplines. Use before merging a branch, or pass `full` to audit the whole codebase.
argument-hint: [full]
allowed-tools: [Read, Glob, Grep, Bash]
---
Expand Down
12 changes: 8 additions & 4 deletions .claude/skills/frontend-review/references/checklist.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Rules ordered by user-impact priority. IDs are used in review findings and cross-reference `docs/dev-guide.md`.
Skip anything `tsc` + `eslint` already catch (unused vars, missing keys, hook rules). Step 1 runs those first and they take priority.

Stack reality this checklist assumes: Vite 8 + React 19 + react-router-dom 7 + Tailwind v4 + TypeScript 6, Bun, static Vercel. No shadcn, no Next.js, no `@/` alias, `clsx` not installed.
Stack reality this checklist assumes: Vite 8 + React 19 + react-router 7 + Tailwind v4 + TypeScript 6, Bun, static Vercel. No shadcn, no Next.js, no `@/` alias, `clsx` not installed.

---

Expand All @@ -15,7 +15,7 @@ Stack reality this checklist assumes: Vite 8 + React 19 + react-router-dom 7 + T

**A3**: Each page has exactly one `<h1>`. Heading levels are sequential, no skipped levels (h1 to h2 to h3). Screen-reader navigation depends on it.

**A4**: Focus is visible on every interactive element. `src/index.css` has an `outline: none` (around L544) with a box-shadow replacement scoped to `.form-input` only. Verify every other interactive element (links, buttons, nav, theme toggle) still shows a visible focus style and none suppress the outline without a replacement.
**A4**: Focus is visible on every interactive element. `src/index.css` has an `outline: none` (around L544) on `.form-input` with a soft box-shadow glow, plus a solid `:focus-visible` outline that must reach 3:1 in both themes. Verify every other interactive element (links, buttons, nav, theme toggle) still shows a visible focus style and none suppress the outline without a replacement.

**A5**: Landmark regions present on every page: `<header>`, `<nav>`, `<main>`, `<footer>`. Flag any page that bypasses this structure or puts content outside the landmarks.

Expand All @@ -31,7 +31,7 @@ Stack reality this checklist assumes: Vite 8 + React 19 + react-router-dom 7 + T

## 2. Routing (RR)

**RR1**: Internal navigation uses `<Link>` / `<NavLink>` from react-router-dom, never `<a href>`. Plain `<a>` causes a full page reload. This mistake recurred across Hero, PricingPage, NavBar, and Terms during the initial build. Treat it as a high-priority target.
**RR1**: Internal navigation uses `<Link>` / `<NavLink>` from react-router, never `<a href>`. Plain `<a>` causes a full page reload. This mistake recurred across Hero, PricingPage, NavBar, and Terms during the initial build. Treat it as a high-priority target.

**RR2**: External links use `<a href target="_blank" rel="noopener noreferrer">`. Both attributes are required; missing `rel` is a reverse-tabnabbing security issue.

Expand Down Expand Up @@ -170,7 +170,7 @@ Forward-looking: Tally (live in `WaitlistForm`), Cal.eu (live in `ThankYou`), an

**P3**: Images in `public/` use appropriate formats (SVG for icons, compressed PNG/WebP for raster). OG image and any raster asset stay size-bounded (under 200KB target).

**P4**: Fonts load with `font-display: swap` to avoid invisible-text flashes. Keep INP low: avoid heavy synchronous work on interaction and layout thrash. Lighthouse targets (per GTM plan): 90+ performance, 95+ accessibility.
**P4**: Fonts are self-hosted (`public/fonts/`, no Google Fonts or other font CDN: third-party font requests leak visitor IPs) and load with `font-display: swap` to avoid invisible-text flashes. Keep INP low: avoid heavy synchronous work on interaction and layout thrash. Lighthouse targets (per GTM plan): 90+ performance, 95+ accessibility.

---

Expand All @@ -193,3 +193,7 @@ Forward-looking: Tally (live in `WaitlistForm`), Cal.eu (live in `ThankYou`), an
**Q2**: No `console.*` debug output in production paths (see P2).

**Q3**: Imports ordered external-then-internal, no unused imports. `bun` is the only package manager; no `package-lock.json` or `yarn.lock` committed.

**H-cache**: `vercel.json` sets `Cache-Control: public, max-age=31536000, immutable` on hashed `/assets/*`. Verify when touching headers.
**A-heading**: Two-line headlines are one heading with a `<span>`, not two headings. `NotFound` and `ThankYou` render NavBar and Footer.
**RESP-overflow**: No horizontal scroll at 320 to 412px width. Check hidden `::after` tooltips and legal tables (they must not widen the page).
17 changes: 17 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: 2
updates:
- package-ecosystem: npm
directory: /
schedule:
interval: weekly
groups:
minor-and-patch:
update-types: [minor, patch]
ignore:
# typescript-eslint peers typescript <6.1; lift when its range widens
- dependency-name: typescript
update-types: [version-update:semver-major]
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@ jobs:
- uses: actions/checkout@v6
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
bun-version-file: package.json
- uses: actions/cache@v5
with:
path: ~/.bun/install/cache
key: bun-${{ hashFiles('bun.lock') }}
restore-keys: bun-
key: ${{ runner.os }}-bun-${{ hashFiles('bun.lock') }}
restore-keys: ${{ runner.os }}-bun-
- run: bun install --frozen-lockfile
- run: bun run typecheck
- run: bun run lint
- run: bun run test
- run: bun run build
3 changes: 2 additions & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ Stack: Vite + React + TypeScript, Tailwind CSS v4, Bun, deployed static to Verce
```bash
bun run dev # local dev server
bun run build # production build to /dist
bun run typecheck # tsc --noEmit
bun run typecheck # tsc --noEmit (src and tests)
bun run lint # eslint
bun run test # bun test (tests/)
```

Use `rtk err bun run build` and `rtk err bun run typecheck` to surface only errors.
Expand Down
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ Marketing site for [Traced AI](https://traced-ai.com): tamper-evident audit infr

- Vite 8 + React 19 + TypeScript 6
- Tailwind CSS v4
- react-router-dom 7
- Bun (runtime + package manager)
- react-router 7
- Bun 1.4 (runtime + package manager, pinned via `packageManager` in `package.json`; CI reads the same pin)
- Vercel (hosting + analytics)

## Setup
Expand All @@ -23,8 +23,9 @@ bun run dev
|---------|-------------|
| `bun run dev` | Local dev server at `localhost:5173` |
| `bun run build` | Production build to `/dist` |
| `bun run typecheck` | TypeScript check (no emit) |
| `bun run typecheck` | TypeScript check for `src/` and `tests/` (no emit) |
| `bun run lint` | ESLint |
| `bun run test` | Unit tests (`bun test`, in `tests/`) |
| `bun run preview` | Preview the production build locally |

### Docker (optional)
Expand All @@ -41,7 +42,9 @@ docker compose exec web bun run typecheck

## CI

Every PR and push to `main` runs typecheck, lint, and build via GitHub Actions (`.github/workflows/ci.yml`). The check must pass before merging.
Every PR and push to `main` runs typecheck, lint, tests, and build via GitHub Actions (`.github/workflows/ci.yml`). The check must pass before merging.

Dependabot (`.github/dependabot.yml`) opens weekly grouped PRs for npm and GitHub Actions. TypeScript major bumps are ignored until typescript-eslint's peer range allows them.

## Deployments

Expand Down
Loading
Loading