mirror of
https://github.com/hanzo-inc/tabs.git
synced 2026-11-21 22:48:16 +00:00
`Tabs` is the fleet read with the host's bearer, nothing drawn before the registry answers, then the workspace with the plan's stream count. tabs.hanzo.ai draws it, and so do the app at hanzo.ai/tabs and platform.hanzo.ai/tabs; the app's copy rendered the workspace before the first read, so a reader with no saved layout got no pane, and it never passed the stream count. - `useFleet` takes the bearer or a reader of it, asked on every poll and mint, so a session renewed in storage is used without a re-render. - `Workspace` takes `at`, a machine named by the host's address: a pane on it is focused, or a shell on it opens beside the rest. - `createSandbox` read the running sandboxes from api.hanzo.ai whatever origin it was given. - CI runs on GitHub, where hanzo-inc has runners: the checks, the site, and an npm publish when package.json is ahead of the registry.
43 lines
2.1 KiB
YAML
43 lines
2.1 KiB
YAML
# Canonical CI/CD config for hanzo-inc/tabs — the one file the hanzoai/ci
|
|
# reusable (.github/workflows/cicd.yml) and platform.hanzo.ai read.
|
|
#
|
|
# Two other workflows ship what this repo makes, both on GitHub (hanzo-inc has
|
|
# the hanzo-platform app, so each job is a pod on the cluster):
|
|
# publish.yml @hanzo/tabs to npm when package.json is ahead of it; the app
|
|
# (hanzo.ai/tabs, platform.hanzo.ai/tabs) takes Tabs from there.
|
|
# release.yml the static export to the Sites plane (project `tabs`), which is
|
|
# what tabs.hanzo.ai serves from s3://hanzo-sites/hanzo/tabs.
|
|
# There is no `images:` and no `deploy:` here because neither describes that.
|
|
#
|
|
# The gate is typecheck, the jest suite, and the surface guard. Jest is
|
|
# deliberately narrow and says so in its own config — "pure logic only: the
|
|
# layout tree and the shell bindings; everything that needs a browser is
|
|
# verified against a real one" — so panes/tiles assert the split arithmetic that
|
|
# browser tests would only observe indirectly.
|
|
#
|
|
# The surface guard is the other half of that sentence, and until it existed
|
|
# nothing kept it. It builds the export and walks every screen a stranger can
|
|
# reach at 390, 768 and 1440, asserting four things a reader is owed: the page
|
|
# does not scroll sideways, every control is at least 44px tall, every colour
|
|
# pair clears AA against the background it actually sits on, and no run of prose
|
|
# is under 12px. Four defects were live when it was written and it reports all of
|
|
# them; the readings are soft so one does not hide the next.
|
|
#
|
|
# What it does NOT check: line breaking. A widowed last line is a measure
|
|
# decision, and a rule general enough to catch one would flag prose that is fine.
|
|
test:
|
|
- name: build
|
|
run: |
|
|
set -e
|
|
pnpm install --frozen-lockfile
|
|
pnpm typecheck
|
|
pnpm test
|
|
- name: surface
|
|
run: |
|
|
set -e
|
|
# The runner image bakes browsers under /opt/playwright as root, so the
|
|
# job's own copy goes where the job may write.
|
|
export PLAYWRIGHT_BROWSERS_PATH="$PWD/.cache/ms-playwright"
|
|
pnpm exec playwright install chromium
|
|
pnpm test:surface
|