Skip to content

fix(mobile): frame app icons full-bleed for ios and android - #427

Merged
nixuuu merged 1 commit into
devfrom
fix/mobile-icon-framing
Nov 9, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/mobile-icon-framing

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

The nightly iOS icon placed the complete rounded desktop artwork inside a second scene, producing two frames, two moons and an undersized tree. Generate mobile artwork directly from the bare, channel-graded tree: opaque 1024×1024 RGB iOS scenes with a 70%-width tree, Android foregrounds reduced 14% from the 66 dp safe-circle fit on the 108 dp canvas, leaving at least 8% of the visible mask diameter between the tree and every edge, and decoration placement that clears both the tree and launcher masks.

Add the Android 13+ monochrome layer through Expo's existing config support. Splash screens now use the bare tree on the channel background in light and dark mode. Desktop icons, favicons and other web artwork remain byte-for-byte unchanged.

Native release: these assets and config change the runtime fingerprint. The icons and splash arrive with the next native build triggered by the release pipeline; OTA cannot update existing launcher icons. No EAS builds were run.

Fixes: #424

Validation:

  • bun install --frozen-lockfile and bun run gen:check passed.
  • bun test scripts/channel-identity.test.ts: 3 passed, including RGB/no-alpha iOS output, tree scale/placement, Android visible-mask margins and moon clearance, monochrome alpha and all EAS channel profiles.
  • bun run typecheck, bun run lint and bun run format:check passed.
  • bun run --filter @canopy/web build passed; regeneration was byte-for-byte identical by SHA-256.
  • CANOPY_CHANNEL={nightly,beta,stable} bunx expo config --type public resolved each channel's icon, adaptive layers and bare-tree splash. Full local check:tmp was intentionally omitted on the shared machine; CI remains the full-suite gate. No UI tests.

Reproduce assets and simulated mask previews with bun scripts/icons/channel-icons.ts --previews <directory>. Local preview artifacts (outside the repository):

  • /var/tmp/canopy-mobile-icons/mobile-previews.html — overview.
  • /var/tmp/canopy-mobile-icons/{nightly,beta,stable}-ios-{1024,180,120,87,60}.png.
  • /var/tmp/canopy-mobile-icons/{nightly,beta,stable}-android-{circle,squircle,rounded-square}.png.
  • /var/tmp/canopy-mobile-icons/iphone-home-row.png and /var/tmp/canopy-mobile-icons/testflight-large.png.
  • /var/tmp/canopy-mobile-icons/expo-config-{nightly,beta,stable}.txt — resolved Expo configs.

Copy audit: no user-facing app text changed. The mask images are simulated previews, not device screenshots.

@nixuuu
nixuuu force-pushed the fix/mobile-icon-framing branch from 01f8ede to 22d260a Compare November 9, 2026 17:47
@nixuuu
nixuuu merged commit 5d1dfd1 into dev Nov 9, 2026
10 checks passed
@nixuuu
nixuuu deleted the fix/mobile-icon-framing branch November 9, 2026 17:54
nixuuu added a commit that referenced this pull request Nov 9, 2026
Bot composer text was held by the mounted component, so leaving Bots
could discard the message. Bot drafts now live in the owner's gateway
database and restore on web, desktop and mobile. Bot chats also accept
images and deliver them to the official worker harness.

- Persist text, structured mentions, quotes/comments and uploaded image
metadata with revision checks. Keep pending uploads through navigation,
preserve failed sends and their request IDs, and clear only the
acknowledged draft revision.
- Reuse attachment uploads, configured file/count/message limits,
thumbnails and viewers. Web/desktop support paste, drop and Attach
images; mobile uses the existing paste/photos/files intake. This scope
supports PNG, JPEG, GIF and WebP only; other file types can follow.
- Deliver verified, normalized images as native Claude SDK, Codex
app-server and Grok ACP image parts. Bots gain no filesystem tools.
Resumed sessions receive current images; rebuilt sessions also receive
bounded historical images, with a note for omissions. Preserve #429's
Canopy MCP approval override on Codex start/resume, Grok MCP allow rule,
actionable failures and shared approval labels; gateway authorization
remains authoritative.
- Add `bot_images_v1` and `remote_bot_composer_v1` capability gates.
Linked draft/upload/send operations remain owner-scoped. Moving a bot
preserves its draft, images and thumbnails; an older destination is
refused before cut-over.
- Add migration `0102_bot_composer` (latest dev migration was 0101 when
opening this PR), additive RPC/fields and generated contracts. Polish
docs cover persistence, native delivery, schema and mobile behavior.

Validation: `bun install --frozen-lockfile`, `bun run typecheck`, `bun
run lint`, `bun run format:check`, `bun run gen:check` and `bun run
--filter @canopy/web build` passed.

Focused tests rerun on dev ecb20e4 (#429): 52 passed across
bot-composer, bots-harness-context, bots-harness-approvals, worker
isolation/Grok transcript and DB schema (282 assertions). The official
Codex MCP approval regression also passed (4 assertions). The bot
computer-move case was previously verified during implementation (20
assertions). Coverage includes restart durability, structured draft CAS
and lost acknowledgements, send idempotency, owner scoping,
MIME/size/count limits, active-turn blob authorization, all three native
image adapters, resume/rebuild and historical image limits. The move
case also exercises draft/upload/send through a linked computer.

Manual browser check used an isolated gateway with the fake Codex
harness: Threads/Bots navigation, full reload, picker, clipboard/drop
events, dropping on an existing chip, uploaded draft restoration,
send/clear, message thumbnails and viewer. The harness recorded five
native image parts across two sends. Checked light/dark at desktop and
phone widths, including long filenames; no console errors. No UI tests
were added. Native device UI and live provider accounts were not
exercised.

Mobile changes are JS/TS only. Both `bunx [email protected]
fingerprint:generate --platform <ios|android> --build-profile production
--json --non-interactive` results match current dev (ecb20e4, including
#427/#428/#429):
- iOS: `6ddec9ef559ee0095ac33e94ff9418a942053b17`
- Android: `5f6eae3ab278f1cd543e9ed763f923a319b65ec9`

Full `check:tmp` was intentionally left to CI as requested for the
shared machine. An upload still in progress when the application closes
must be added again; completed uploads are durable.

Copy audit (§8): “Attachments are coming soon” → “Attach images” for the
implemented action; new “Drop images to attach” describes the supported
intake; “Load saved draft” names the recovery result. Conflict copy
tells the user to copy edits before loading the saved version;
upload/send errors explain recovery. Labels use English sentence case
and action verbs, existing attachment terms and limits are reused, and
controls have text/accessibility labels independent of icons or colour.
No new empty states or decorative sentences. Short, typical and long
filenames were checked at desktop and phone widths.

Related: #398, #421
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant