Skip to content

feat(web): use hyperstructure's logo and make the app installable - #44

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

kalaspuff merged 3 commits 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 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

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. feat: use hyperstructure's symbol as fctl's logo 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

fctl-sh Bot and others added 3 commits October 18, 2026 02:26
The logo is now hyperstructure's symbol on a rounded yellow square, from
@hyperstructure/design (pinned to the design pull request's commit until
it is released). The app is also installable as an app on phones and
computers: a web app manifest, an apple-touch-icon and PNG icons from the
design package (rounded for purpose "any", yellow to the edges for
maskable and home screen icons), and a service worker that shows an
offline page when a page cannot load, which also lets Chrome and Edge
offer the install button.

The browser's and the installed app's title bar now follow the theme, and
the message box, toasts, the sidebar and the project settings' save
button keep clear of the notch and the home indicator in the installed
app on a phone.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kalaspuff
kalaspuff merged commit 3b70a94 into main Oct 18, 2026
4 checks passed
@kalaspuff
kalaspuff deleted the fctl/12-let-s-change-the-logo-of-everything-on-f branch October 18, 2026 02:52
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]>
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