Skip to content

fix(island): the robot stays in the island - #56

Merged
ChrisPlayer merged 2 commits into
mainfrom
fix/island-only
Oct 25, 2026
Merged

ChrisPlayer merged 2 commits into
mainfrom
fix/island-only

Conversation

@ChrisPlayer

@ChrisPlayer ChrisPlayer commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

The robot no longer comes out of the island by accident.

Why

Since v0.1.19, a still press of 400 ms on a robot-only pill, then a drag, pulled the robot out onto the desktop. Users who pause before dragging set it loose without meaning to. Loose, the island is gone and the desktop companion shows instead, so the app looks like an older version.

What changes

  • A press that moves anywhere on the pill, its robot included, carries the island to another place. The long press and its 114 % cue are gone (lib/island/hold.svelte.ts removed).
  • The deck's top-left character only swaps agents on a click; a drag there does nothing.
  • Only Settings > Place > Robots > "On the desktop" sets the robots loose. The choice is saved as robotsPicked.
  • Saved prefs with robots: "desktop" but no robotsPicked came from a drag: they read as the island, so the island is back on the next launch.
  • A loose robot (picked in Settings) still docks when dragged near one of the six places.
  • The Settings hint no longer says to drag a robot out.
  • A maximized window no longer counts as full screen. Boite draws its own title bar, so maximized it covers the whole screen, taskbar included; the companion hid behind it and Settings from the tray showed nothing.

Checks

  • bun run check: 0 errors, 0 warnings.
  • vitest: 76 files, 550 tests. New: the prefs migration, a drag on the deck's character.
  • cargo test: 93 passed; clippy clean. New page test: Settings opens over loose robots and puts them back in the island.
  • Checked on a real desktop: Boite maximized has the rect 0,0,2560,1440 and IsZoomed true; Windows itself reports no full-screen app (QUNS 5). The fixed build was not run there.

A drag on the pill's robot or the deck's character no longer sets it loose
on the desktop: it carries the island like the rest of the pill. Only
Settings > Place puts the robots on the desktop (robotsPicked); a robot
pulled out by a drag before goes back into the island on launch.
An app that draws its own title bar, as Boite does, covers the whole screen when maximized. The companion took it for a game in full screen and stayed hidden, Settings from the tray included.
@ChrisPlayer
ChrisPlayer merged commit c462b8e into main Oct 25, 2026
3 checks passed
@ChrisPlayer
ChrisPlayer deleted the fix/island-only branch October 25, 2026 09:52
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