# Doodl drawings in ZDS ZDS assigns individual Doodl drawings to presentation slots. It does not read or require `tech.waow.doodl.iconset` records: drawings can come from different accounts, and their authors do not need to organize them into sets. ## Operator workflow Edit `config/drawings.json`. Each key is a slot; its value is a drawing strong reference with `uri` and `cid`. Use a DID-based AT URI pointing to a `tech.waow.doodl.drawing` record and the record's CID, not its image blob CID. The default configuration is empty. `config/pds.zat.dev.drawings.json` holds this instance's account and navigation selections. Run `just drawings` (or `just drawings path/to/config.json`), then review and commit the configuration, generated manifest and PNGs under `src/internal/web/icons/`. Enable that manifest explicitly with `zig build -Dweb-drawings=src/internal/web/icons/generated.zig`. An ordinary `zig build` excludes custom artwork entirely, regardless of cached PNGs. Docker accepts the equivalent `ZDS_WEB_DRAWINGS` build argument. This instance's deploy (`tools/ci-checks.sh` and `tools/fly-deploy.sh`) passes the option directly. Refreshing is explicit; normal builds and server startup never fetch drawings. A failed refresh leaves the previous manifest active. Unreferenced cached PNGs can be removed manually. Omitting the build option restores all bundled defaults. An empty `{}` configuration followed by refresh also clears the selected manifest. The refresh tool resolves the author's DID to its HTTPS PDS, disallows redirects, bounds responses, verifies the requested record revision against its DAG-CBOR hash, and verifies the image blob hash. Only PNGs up to 1 MB with dimensions up to 4096 × 4096 are accepted. The operator initiates these public PDS requests; the server never resolves arbitrary drawing URLs supplied by visitors. AT URIs identify mutable record locations; a CID pins the selected revision. If the author changes or deletes that record, refresh may fail until the operator chooses another revision. Already packaged images continue working. ZDS never silently substitutes the latest revision. ## Presentation boundary The manifest, assets and replacement script live under `src/internal/web/`. Pages receive local image URLs; `/ui/icon?cid=…` serves only embedded assets with immutable caching. No database schema, authentication logic, runtime setting or resident account-management page is added. The browser retains the bundled icon until the replacement loads successfully. Visible labels remain, and images are decorative for assistive technology. | Slot | Default / purpose | | --- | --- | | `zds.nav.home` | Home | | `zds.nav.account` | Account, including homepage account link | | `zds.nav.apps` | Apps | | `zds.nav.about` | About | | `zds.account.passkeys` | Fingerprint | | `zds.account.app-passwords` | Key | | `zds.account.email` | Envelope (account settings and overview) | | `zds.account.spaces` | Four spaces (overview) | | `zds.account.status` | Power | | `zds.header.brand` | ZDS brand | | `zds.header.source` | Source forge | | `zds.header.zat` | Zat | | `zds.header.atproto` | AT Protocol | | `zds.header.menu` | Menu | | `zds.consent.records` | Folder: records an app may write in your repo | | `zds.consent.files` | Paper clip: file (blob) uploads | | `zds.consent.space` | Padlock: private spaces | | `zds.consent.service` | Plug: calls to a named service | | `zds.consent.read` | Eye: read-only calls | | `zds.consent.report` | Flag: moderation reports | | `zds.consent.permission-set` | Shield: a publisher's permission set | | `zds.consent.account` | Envelope: email and account settings | | `zds.consent.identity` | ID card: handle and identity (shown in the warning colour for full identity access) | The OAuth sign-in and consent pages reuse these slots rather than adding their own: the passkey button uses `zds.account.passkeys`, "Use password" uses `zds.account.app-passwords`, an app without a resolvable icon uses `zds.nav.apps`, and an account without an avatar (and "Another account") uses `zds.nav.account`. A drawing on a button sits on a small paper tile so it reads against the accent colour. Each permission row on the consent page shows one of the `zds.consent.*` slots in a 36-pixel tinted tile. Omitted slots retain their bundled defaults. Unknown slot names are rejected to catch configuration mistakes. Account drawings use a 44-pixel box; header and navigation drawings have dedicated dimensions. Preview selected artwork at its actual size on light and dark backgrounds: arbitrary drawings may not make good small icons. Doodl's current icon-set lexicon uses the fixed record key `self`. That is a Doodl authoring concern, independent of ZDS's selection model. Future pickers or presets can produce the same slot map without changing the PDS core.