Skip to content

feat(brand)!: make hyperstructure's symbol fctl's mark, with app icons - #4

Merged
kalaspuff merged 1 commit into
mainfrom
fctl/12-let-s-change-the-logo-of-everything-on-f
Oct 18, 2026
Merged

kalaspuff merged 1 commit into
mainfrom
fctl/12-let-s-change-the-logo-of-everything-on-f

Conversation

@fctl-sh

@fctl-sh fctl-sh Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

fctl's mark was two slanted bars on a blackish square. It is now hyperstructure's symbol, the rings in #0d1117 on a yellow #ffff5d square with its corners rounded to a fifth of its side, so fctl (app.fctl.sh, fctl.sh) looks like the hyperstructure organization on GitHub, without the avatar's hard corners.

fctl's app also becomes installable on phones and computers, which needs PNG icons. They are new here, in assets/icons/:

File Size Shape For
icon-192.png, icon-512.png 192, 512 rounded, like the mark manifest icons with purpose any (shown as they are: Windows, Linux, install dialogs)
icon-maskable-512.png, icon-maskable-1024.png 512, 1024 yellow to the edges manifest icons with purpose maskable (Android, ChromeOS, the macOS Dock; WebKit asks for 1024)
apple-touch-icon.png 180 yellow to the edges, opaque iOS and iPadOS home screens, Safari

Platforms that shape icons themselves get the full square, so their own rounding is the only one. The rings reach 39% of the side from the centre, inside the maskable safe zone (a circle of 40%), so Android's circle doesn't clip them.

How

  • src/brand.ts: mark is derived from hyperstructure (same path, ink and yellow; radius: 51.2 in the 256×256 viewBox). markSvg(size, { square, title }) draws it, with square for the full-bleed icons.
  • scripts/icons.mjs (npm run icons) renders assets/mark.svg, assets/favicon.svg and assets/icons/* from brand.ts with resvg (@resvg/resvg-js, a new dev dependency). scripts/icons.test.mjs re-renders them in npm test and compares pixels (within 2/255, since rasterizers may round differently on other CPUs), and checks the full-bleed icons are opaque.
  • package.json exports ./assets/icons/*.
  • The playground shows the new mark as the file is, and the maskable icon in Android's circle. README and AGENTS.md describe the mark, the icons and npm run icons.

Verification

BREAKING CHANGE: mark is now drawn in a 256×256 viewBox (it was 32×32), with the rings as path, yellow background and dark foreground, and markSvg() no longer draws a hairline border. Code that drew the mark from these values at 32×32 must draw the background rect from mark.viewBox (256×256, rx={mark.radius}) and fill the path with fill-rule evenodd, or use markSvg().

Releasing

After this merges, release it (gh workflow run release.yml --repo hyperstructure/design --ref main -f bump=auto; it becomes v0.2.0), then move hyperstructure/fctl and hyperstructure/fctl-site from this branch's commit to the tag in their pull requests.

Made in fctl session https://app.fctl.sh/s/ses_01M56BTAZM8R6TT2QC6HXQV6WX

fctl's mark was two slanted bars on a blackish square. It is now
hyperstructure's symbol, the rings in #0d1117 on a yellow square whose
corners are rounded to a fifth of its side, so fctl looks like the
hyperstructure organization on GitHub.

scripts/icons.mjs renders assets/mark.svg, assets/favicon.svg and the new
PNG app icons in assets/icons/ from brand.ts with resvg: icon-192.png and
icon-512.png (rounded, for manifests' purpose "any"), and
icon-maskable-512.png, icon-maskable-1024.png and apple-touch-icon.png,
yellow to the edges for platforms that shape icons themselves (iOS home
screens, the macOS Dock, Android). The rings reach 39% of the side from
the centre, inside the maskable safe zone (40%). npm test checks the
files against a fresh render, pixel by pixel.

BREAKING CHANGE: `mark` is now drawn in a 256×256 viewBox (it was
32×32), with the rings as `path`, yellow `background` and dark
`foreground`, and `markSvg()` no longer draws a hairline border. Code that
drew the mark from these values at 32×32 must draw the background rect
from `mark.viewBox` (256×256, `rx={mark.radius}`) and fill the path with
fill-rule evenodd, or use `markSvg()`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kalaspuff
kalaspuff merged commit ec23801 into main Oct 18, 2026
2 checks passed
@kalaspuff
kalaspuff deleted the fctl/12-let-s-change-the-logo-of-everything-on-f branch October 18, 2026 02:40
kalaspuff pushed a commit to hyperstructure/fctl that referenced this pull request Oct 18, 2026
fctl's logo is now hyperstructure's symbol, the rings on a yellow square
with rounded corners, as on the hyperstructure organization on GitHub
but without the hard corners. And the app installs on phones and
computers (Safari on iPhone, iPad and Mac, Chrome and Edge), so it opens
from the home screen or the Dock in its own window.

## The logo

- `@hyperstructure/design` moves from v0.1.1 to
[v0.2.0](https://github.com/hyperstructure/design/releases/tag/v0.2.0)
(hyperstructure/design#4), which makes the symbol fctl's `mark` and adds
PNG app icons. v0.1.2's Instrument Serif comes along; the app doesn't
use it, and its font files load only when text does.
- `Logo` (sidebar, phone top bar, sign-in) draws the new `mark`: a
256×256 viewBox now, so the background is drawn from it and the rings
are filled with fill-rule evenodd. The favicon comes from the package as
before.
- The README's image is fctl.sh's favicon, so it changes when
hyperstructure/fctl-site#5 deploys.

## Installing the app

- `web/public/manifest.webmanifest`: name, `standalone` display, colors,
and icons from the design package. Icons that are shown as they are
(`purpose: any`, 192 and 512) are the rounded mark; icons the platform
shapes itself (`maskable`, 512 and 1024, and `apple-touch-icon.png`,
180) are yellow to the edges, so iOS, macOS, Android and ChromeOS apply
their own rounding to a full square. `index.html` links the manifest and
the apple-touch-icon and names the app for iOS.
- The `brand-assets` plugin in `vite.config.ts` serves and emits the
favicon and the icons from the package (`BRAND_ASSETS`).
- `web/public/sw.js`, a small service worker registered in production
builds only. Chrome and Edge show the install button in the address bar,
and Android its install prompt, only for apps that have one with a fetch
handler; menu installs work without it. It answers page navigations from
the network and shows `offline.html` when that fails (instead of the
browser's error), caches nothing else, and leaves `/api/` alone, so
sign-in redirects and downloads never pass through it. It caches the
page at `/offline` because Workers static assets redirect
`/offline.html` there (307), and a navigation can't take a redirect from
a service worker.
- The theme color (the browser's toolbar and the installed app's title
bar) follows the theme: `public/theme.js` sets it before the first paint
and `setTheme` on a switch. It was always the dark canvas color.
- With `viewport-fit=cover`, the installed app on a phone reaches under
the notch and the home indicator. The message box, toasts, the sidebar
and the project settings' save button keep clear of them with
`env(safe-area-inset-*)`, and the shell pads the sides in landscape.
- Docs: getting-started says how to install the app; development.md how
it works and how to try it; the architecture table mentions it.
hyperstructure/fctl-site#5 adds the cached offline page to the privacy
policy's browser storage section.

Every instance's manifest names the app "fctl", whatever its instance
name: the manifest is a static asset.

## Verification

- `cargo xtask check` passes (with the design commit before the release;
after moving to v0.2.0, `npm run check`, `npm test` and the build again;
the built icons are byte for byte v0.2.0's).
- New tests: a theme switch sets the theme color
(`src/lib/theme.test.ts`), and the manifest and `index.html` point at
icons the build serves, at the sizes they claim
(`src/app-manifest.test.ts`; it fails on a mistyped icon).
- `cargo xtask dev --no-vite` (the production build on wrangler) with
Chromium 156 through Playwright and DevTools: no installability errors
(`Page.getInstallabilityErrors` in a normal profile), the manifest
parses without errors, the service worker is active with scope `/`, an
offline page load shows the offline page, an offline `/api/` request
fails as before, and the manifest and icons come with
`application/manifest+json` and `image/png`.
- Screenshots in both themes at 1280×800 and 390×844: floor, session,
sign-in and the phone drawer, and with an iPhone's safe areas emulated
(34 px at the bottom in portrait, 47 px at the sides in landscape): the
message box and the drawer's last row clear the home indicator.
- Not tried on a real iPhone, Android phone or Mac: this sandbox has
none.

Made in fctl session
https://app.fctl.sh/s/ses_01M56BTAZM8R6TT2QC6HXQV6WX

---------

Co-authored-by: fctl-sh[bot] <fctl-sh[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <[email protected]>
kalaspuff pushed a commit to hyperstructure/fctl-site that referenced this pull request Oct 18, 2026
fctl.sh shows fctl's new mark: hyperstructure's symbol (the rings) on a
yellow square with rounded corners, from hyperstructure/design#4. It
replaces the two slanted bars in the nav and the favicon, and fctl.sh
gets a home screen icon.

- The nav on the landing page, docs and legal pages shows `/favicon.svg`
(an `<img>`) instead of a copy of the mark inlined in each page, so the
pages can't drift from the design package. AGENTS.md says so instead of
asking for the inline copies to match `brand.ts`.
- The `brand-assets` plugin in `vite.config.ts` also serves
`apple-touch-icon.png` from the package (180×180, yellow to the edges,
for iOS home screens and Safari's favorites), and every page links it.
- The privacy policy's "Cookies and browser storage" now says
app.fctl.sh keeps a copy of its offline page in the browser: it comes
with making the app installable in hyperstructure/fctl (a service worker
that shows that page when there's no connection). It holds no personal
data. `updated` is 2026-10-18. fctl.sh itself still stores nothing in
the browser.

`@hyperstructure/design` moves from v0.1.2 to
[v0.2.0](https://github.com/hyperstructure/design/releases/tag/v0.2.0),
the release with hyperstructure/design#4. Its breaking change (`mark` is
drawn in a 256×256 viewBox) doesn't affect this site, which doesn't read
`mark`.

## Verification

- `npm run check` and `FCTL_DOCS_DIR=<fctl checkout> npm run build` (7
docs pages and 2 legal pages rendered).
- The built site under `vite preview`: the landing page in both themes
at 1280 wide and at a phone width (390), and a docs page; the nav mark
at 24px is sharp. `/favicon.svg` and `/apple-touch-icon.png` are served
as `image/svg+xml` and `image/png`.

Goes with hyperstructure/design#4 (released as v0.2.0) and
hyperstructure/fctl#44 (the app's logo and installing it).

Made in fctl session
https://app.fctl.sh/s/ses_01M56BTAZM8R6TT2QC6HXQV6WX

---------

Co-authored-by: fctl-sh[bot] <fctl-sh[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <[email protected]>
kalaspuff pushed a commit that referenced this pull request Oct 18, 2026
The Release workflow now also runs after every merge to `main`, and
releases when the commits since the last tag include a `feat`, `fix`,
`perf`, `revert` or breaking change. Other changes (`docs`, `refactor`,
`test`, `build`, `ci`, `chore`) wait for the next release. Running it by
hand works as before: it releases whatever is new, with any bump, or
does a dry run.

This automates what has been done by hand so far: each feature was
released by hand within minutes of merging (#4 → v0.2.0, #5 → v0.3.0, #6
and #8 → v0.4.0), while #1–#3 (`ci`, `ci`, `docs`) waited and went out
with v0.2.0. It is also semantic-release's default rule. Consumers pin
exact tags, so a release changes nothing for fctl or fctl.sh until they
move their pin.

## How

- **`scripts/release.mjs --if-due`**: releases only when `releaseDue()`
says the changes call for it. Otherwise it prints `No release: no feat,
fix, perf, revert or breaking change since vX.Y.Z.`, adds that to the
job summary, and exits 0. The workflow passes it for merges (`push` to
`main`), not for runs by hand.
- **The workflow** checks out `main` as it is when the run starts, not
the commit that started it, so a run that waited behind another one sees
that one's release and finds nothing to do. Runs are already queued one
at a time (`concurrency: release`). If a merge lands while a run is
releasing, the atomic push of the commit and tag is rejected. A run
after a merge then leaves the release to the newer merge's run (a
notice, exit 0) instead of failing. Any other rejected push still fails.
- **`releaseOptions()` moves from `scripts/commits.mjs` to
`scripts/release.mjs`**, which exports it with `releaseDue()` and
releases only when run as a script, as `icons.mjs` does.
hyperstructure/fctl-site copies `commits.mjs` and its test and is told
to keep them in step. #8 added a function there that only this script
uses, so the copies had drifted. Both files are now the same as
fctl-site's again, and the tests are in `scripts/release.test.mjs`. The
check for being run as a script compares real paths, because through a
symlink `argv[1]` and `import.meta.url` differ and a release script must
not silently do nothing.
- **Docs**: README.md's release section said to bump the version and
push a tag by hand, which the workflow has done since #1. It, AGENTS.md
and the `release`, `commit` and `pull-requests` skills now say which
merges release, how to release the rest by hand, and how to find the
release a merge made (`gh run list --workflow release.yml --commit
MERGE_SHA`, then `git tag --contains`). The commit skill's type table
says when each type is released.

Merging this releases nothing: since v0.4.0 there are only this pull
request's `refactor`, `ci` and `docs` commits.

fctl's and fctl-site's AGENTS.md say to change design, "tag a release",
then bump the tag. That stays true: a merge now makes the tag.

## Verification

- `npm run check`, `npm test` (8 tests: "release options", and "a merge
releases features, fixes, reverts and breaking changes") and `npm run
build`.
- `node scripts/release.mjs` still runs by relative path, absolute path
and through a symlinked directory, and importing it in the tests
releases nothing.
- The release step's shell, extracted from the workflow, run against a
local bare repository standing in for GitHub, with a stub `gh` that
records its arguments:

| Case | Result |
|---|---|
| This pull request merges | No release, exit 0 |
| A `feat` merges | v0.5.0: commit and tag pushed, `gh release create
v0.5.0 … --notes-file …` |
| A run that waited behind that release | No release, exit 0 |
| A `docs` merge | No release, exit 0 |
| A `fix` merges, and a `feat` lands during its run | The push is
rejected; notice, exit 0, nothing pushed |
| The newer merge's run | v0.6.0 with the `docs`, `fix` and `feat`
together |
| By hand, nothing new | `nothing to release since v0.6.0`, exit 1 (as
before) |
| By hand, only `docs` | v0.6.1 |
| A merge whose push is rejected by the server | exit 1 |

- The workflow file parses, and the step's script passes `bash -n`.
- Not run on GitHub: this session can't start workflows (HTTP 403, no
Actions write access). A dry run on this branch checks the run-by-hand
path there: `gh workflow run release.yml --repo hyperstructure/design
--ref fctl/36-look-into-https-github-com-hyperstructur -f dry_run=true`.
The merge path first runs when this merges, and should end with "No
release".

Session: https://app.fctl.sh/s/ses_01M57KT5CM8S7DMP21YJMN6JCK

---------

Co-authored-by: fctl-sh[bot] <343971779+fctl-sh[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant