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
Binary file removed .fallow/cache.bin
Binary file not shown.
Binary file removed .fallow/churn.bin
Binary file not shown.
16 changes: 1 addition & 15 deletions .fallowrc.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,13 @@
{
"$schema": "https://raw.githubusercontent.com/fallow-rs/fallow/main/schema.json",
"ignorePatterns": [
"posts/**/*.mdx",
"scripts/capture-screenshots.ts",
"src/app/resume/head.tsx",
"src/components/ProjectCard.tsx",
"src/components/providers/PostHogProvider.tsx",
"src/hooks/useKeyboardNavigation.ts",
"src/hooks/useProjectScroll.ts",
"src/lib/awardsTypes.ts"
],
"ignoreDependencies": [
"@mdx-js/loader",
"@mdx-js/react",
"@next/mdx",
"@vercel/speed-insights",
"gray-matter",
"postcss-load-config",
"remark-frontmatter",
"remark-html",
"remark-parse",
"remark-stringify",
"tailwindcss-animate",
"unified"
"tailwindcss-animate"
]
}
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: CI

on:
pull_request:
workflow_dispatch:

jobs:
checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 24
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm privacy:scan
- run: pnpm lint
- run: pnpm exec tsc --noEmit
- run: pnpm test
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,7 @@ squirrel.toml
# local test artifacts
.playwright-mcp/
/skillscan-product-pass.png

# tool caches and local QA captures
/.fallow/
/artifacts/
Binary file removed artifacts/maxwell-os/adventure-1440x900.png
Binary file not shown.
Binary file removed artifacts/maxwell-os/adventure.png
Binary file not shown.
Binary file removed artifacts/maxwell-os/ants-1440x900.png
Binary file not shown.
Binary file removed artifacts/maxwell-os/ants.png
Binary file not shown.
Binary file removed artifacts/maxwell-os/desktop-1440x900.png
Binary file not shown.
Binary file removed artifacts/maxwell-os/desktop.png
Binary file not shown.
Binary file removed artifacts/maxwell-os/mobile-390x844.png
Binary file not shown.
Binary file removed artifacts/maxwell-os/office-1440x900.png
Binary file not shown.
Binary file removed artifacts/maxwell-os/office.png
Binary file not shown.
10 changes: 1 addition & 9 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,7 @@ const nextConfig = {
experimental: {
optimizePackageImports: [
"@radix-ui/react-dialog",
"@radix-ui/react-label",
"@radix-ui/react-scroll-area",
"@radix-ui/react-select",
"@radix-ui/react-separator",
"@radix-ui/react-slot",
"@radix-ui/react-switch",
"@radix-ui/react-tabs",
"@radix-ui/react-toggle",
"@radix-ui/react-toggle-group",
"@radix-ui/react-visually-hidden",
"lucide-react",
"framer-motion",
],
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,11 @@
"react": "^18.3.1",
"react-dom": "^18.3.1",
"swr": "^2.4.2",
"tailwind-merge": "^2.4.0",
"zod": "^3.23.8"
"tailwind-merge": "^2.4.0"
},
"devDependencies": {
"@playwright/test": "^1.57.0",
"@types/node": "^20",
"@types/node": "^24.13.3",
"@types/react": "^18",
"@types/react-dom": "^18",
"eslint": "^9",
Expand Down
26 changes: 9 additions & 17 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion public/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"shortcuts": [
{
"name": "Projects",
"url": "/projects",
"url": "/#projects",
"description": "View my work"
},
{
Expand Down
11 changes: 8 additions & 3 deletions scripts/assert-canon-feed-fresh.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ import { readFileSync } from "node:fs";
const FEED_PATH = "src/lib/canonFeed.ts";
const DAY_MS = 24 * 60 * 60 * 1000;
const maxAgeDays = Number.parseInt(process.env.CANON_FEED_MAX_AGE_DAYS ?? "2", 10);
// A stale feed is a warning by default: the Canon cron on the mini can stall, and
// that must not block deploying unrelated code. Set CANON_FEED_STRICT=1 to fail.
const strict = process.env.CANON_FEED_STRICT === "1";

function fail(message) {
console.error(`[canon:fresh] ${message}`);
Expand Down Expand Up @@ -37,10 +40,12 @@ if (Number.isNaN(now.getTime())) {
const ageDays = Math.max(0, Math.floor((now.getTime() - syncedDate.getTime()) / DAY_MS));

if (ageDays > maxAgeDays) {
fail(
const message =
`${FEED_PATH} source data is ${ageDays} days old (synced ${freshnessDate}). ` +
"Regenerate it with `bun run scripts/export-folio-feed.ts` from the Canon repo.",
);
"Regenerate it with `bun run scripts/export-folio-feed.ts` from the Canon repo.";
if (strict) fail(message);
console.warn(`[canon:fresh] WARNING: ${message}`);
process.exit(0);
}

process.stdout.write(`[canon:fresh] ${FEED_PATH} source synced ${freshnessDate}; age ${ageDays}d <= ${maxAgeDays}d.\n`);
54 changes: 0 additions & 54 deletions src/app/api/artstyle/generate/route.ts

This file was deleted.

38 changes: 0 additions & 38 deletions src/app/api/artstyle/route.ts

This file was deleted.

34 changes: 0 additions & 34 deletions src/app/api/artstyle/shader/route.ts

This file was deleted.

5 changes: 5 additions & 0 deletions src/app/case-study/[slug]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Metadata } from "next";
import { notFound } from "next/navigation";
import {
getCaseStudy,
getAllCaseStudySlugs,
Expand Down Expand Up @@ -65,6 +66,10 @@ export default async function CaseStudyPage({ params }: PageProps) {
const { slug } = await params;
const study = getCaseStudy(slug);

if (!study) {
notFound();
}

const structuredData = study
? {
"@context": "https://schema.org",
Expand Down
4 changes: 3 additions & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ export const metadata: Metadata = {
creator: "@internetmaxwell",
},
alternates: {
canonical: "https://dev.maxwellyoung.info",
// "./" resolves to the current route, so every page canonicalises to itself
// unless it sets its own. A fixed URL here made every page claim the homepage.
canonical: "./",
},
robots: {
index: true,
Expand Down
23 changes: 0 additions & 23 deletions src/app/resume/head.tsx

This file was deleted.

Loading
Loading