Apiary: grow the island with land, and see the cell under the pointer #16

Merged
alex merged 5 commits from feat/island-building into feat/homestead 2026-10-31 21:50:40 +01:00
Owner

Stacked on #15 (merge #13, #14 and #15 first).

What changes

  • Hover: the cell under the pointer gets an outline: white normally, green where a tap would place something, red where it can't. Hives brighten under the pointer. The pointer picks the block you see, including its dirt side at the island's edge.
  • Land: the island is no longer a fixed 10 by 8. Build sells packs of 4 land blocks (20 nectar, 5 pollen). Placing land shows ghost blocks wherever a block can join the island (sharing a side, up to 6 blocks past the first edges); new land drops into place. The spade takes an empty added block back if the island stays in one piece. The starting ground always stays.
  • Camera: drag to pan; taps still work. The camera frames the whole island, whatever its shape.

Model

  • Homestead gains land and supplies.landBlocks, addLand / removeLand (LandAdded, LandRemoved, LandOutOfReachError). HomesteadPolicy.v1 gains growth and landPack.
  • BuySupplies takes land_pack; new POST /api/apiary/land and /land/remove. Cells in requests may be negative now.
  • Migration 202611011200-homestead-land adds apiary.homesteads.land (empty for everyone).

Checked

  • lint, typecheck and unit tests for all apiary projects; apiary integration tests against Postgres.
  • In the browser, on a new local demo account (Brezo, in tools/dev/demo-accounts.json): hover outlines, buying land, placing it on two edges, dragging the camera, and taking a block back with the spade. The server's stored land matched the screen.

🤖 Generated with Claude Code

Stacked on #15 (merge #13, #14 and #15 first). ## What changes - **Hover:** the cell under the pointer gets an outline: white normally, green where a tap would place something, red where it can't. Hives brighten under the pointer. The pointer picks the block you see, including its dirt side at the island's edge. - **Land:** the island is no longer a fixed 10 by 8. Build sells packs of 4 land blocks (20 nectar, 5 pollen). Placing land shows ghost blocks wherever a block can join the island (sharing a side, up to 6 blocks past the first edges); new land drops into place. The spade takes an empty added block back if the island stays in one piece. The starting ground always stays. - **Camera:** drag to pan; taps still work. The camera frames the whole island, whatever its shape. ## Model - `Homestead` gains `land` and `supplies.landBlocks`, `addLand` / `removeLand` (`LandAdded`, `LandRemoved`, `LandOutOfReachError`). `HomesteadPolicy.v1` gains `growth` and `landPack`. - `BuySupplies` takes `land_pack`; new `POST /api/apiary/land` and `/land/remove`. Cells in requests may be negative now. - Migration `202611011200-homestead-land` adds `apiary.homesteads.land` (empty for everyone). ## Checked - lint, typecheck and unit tests for all apiary projects; apiary integration tests against Postgres. - In the browser, on a new local demo account (Brezo, in tools/dev/demo-accounts.json): hover outlines, buying land, placing it on two edges, dragging the camera, and taking a block back with the spade. The server's stored land matched the screen. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The island is no longer a fixed rectangle. Keepers buy packs of land
blocks and place them beside the island to shape it; the spade takes an
empty block back when the island stays in one piece. The scene draws
the ground from data, outlines the cell under the pointer (green or red
while placing), shows ghost blocks where land can go, picks blocks by
their visible sides, and pans by dragging.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The pixel skin now follows block-game inventory screens in pastel jade and
sage: thicker bevels, slots lit from the bottom right, a jade secondary
button and a light well for notes. Slots lighten under the pointer and
show a tooltip drawn by the game layout; bees say whether their genome
is known. Drawers fit their contents, and slot buttons no longer pick up
the browser's button colours.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pixelify Sans drew 5 like S and 2 like Z, so timers and counts were hard
to read. The pixel skin now uses Jersey 10, declared as Habitea Pixel and
scaled to sit with Tailwind's sizes; it has one weight, so the skin turns
off synthetic bold.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Reviewed-on: https://git.selene.acl.sh/Habitea/App/pulls/17
alex merged commit d9816fad54 into feat/homestead 2026-10-31 21:50:40 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Habitea/App!16
No description provided.