Restyle the status page in Cottage's brand

The page (pages/, components/, styles/) is rewritten in Cottage's brand, replacing Mantine.
- Brand files: tokens, fonts and component CSS copied from Hearth; logo, pod row, status
  pill and banner ported from the brand handbook.
- Themes: light by default, dark when the OS asks.
- Services: grouped; each has a status pill, uptime and 90 daily bars (30 on phones).
- Bars: each bar has a text label, keyboard navigation and a day card.
- Response-time chart: optional, drawn in brand colours.
- Notices: colour-coded posted notices and planned maintenance.
- Incident history: by month, with the brand's empty state.

The check worker, D1 storage, types and Terraform are untouched, so upstream merges stay
clean. uptime.config.ts lists Cottage's services (website, dashboard, apps in US East).
`npm run dev` shows sample data (?sample=outage|maintenance|empty) since there's no D1.

Deploys are gated on the CLOUDFLARE_DEPLOY repository variable until launch, Wrangler
telemetry is off, and a Check workflow lints, type-checks and builds every pull request.
Removed upstream's issue-translation workflow, funding file and translations.
This commit is contained in:
Michael Kinder committed 2026-11-21 14:04:00 -05:00
1 parent 8035521268
commit fdc16007e3
54 files changed
+2197 -2705

No files matched your search

+32
View File
@@ -0,0 +1,32 @@
name: Check
on:
pull_request:
push:
branches: ['main']
permissions:
contents: read
env:
WRANGLER_SEND_METRICS: 'false'
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22.x
cache: 'npm'
- run: npm ci
- run: cd worker && npm ci
- name: Lint and types
run: |
npx next lint
npx tsc --noEmit -p .
- name: Build the worker
run: cd worker && npx wrangler deploy src/index.ts --outdir dist --dry-run
- name: Build the page for Cloudflare Pages
run: npx @cloudflare/next-on-pages
+6
View File
@@ -5,8 +5,14 @@ on:
branches: ['main']
workflow_dispatch:
# Cottage: deploys only once the repository variable CLOUDFLARE_DEPLOY is "true" (set at launch,
# with the CLOUDFLARE_API_TOKEN secret). Until then a push to main does nothing.
env:
WRANGLER_SEND_METRICS: 'false'
jobs:
build-and-deploy:
if: vars.CLOUDFLARE_DEPLOY == 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
-18
View File
@@ -1,18 +0,0 @@
name: 'issue-translator'
on:
issue_comment:
types: [created]
issues:
types: [opened]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: usthe/[email protected]
with:
IS_MODIFY_TITLE: false
# not require, default false, . Decide whether to modify the issue title
# if true, the robot account @Issues-translate-bot must have modification permissions, invite @Issues-translate-bot to your project or use your custom bot.
CUSTOM_BOT_NOTE: Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿
# not require. Customize the translation robot prefix message.