Align the vault with shipped capture, HUD overlay, and Planner.
Build / build (push) Failing after 33s

Roadmap no longer lists hover-add as next. ADR-015: tooltip plus rebindable key; overlay is not a Screen.
This commit is contained in:
Stephen Fasciani
2026-09-08 05:11:40 -04:00
parent 6007d62dfa
commit a66043915e
13 changed files with 82 additions and 40 deletions
+3 -3
View File
@@ -2,7 +2,7 @@
First use case. Application layer. It does not contain domain rules; it uses [[🎯 Goal]] invariants.
Capture (hover → `+ Add to Crafting Goals`) is one caller. The use case does not know about inventory screens.
Capture (hover item → Add key) is one caller. The use case does not know about inventory screens.
---
@@ -60,9 +60,9 @@ No confirm on Clear.
## First wiring
Capture: hover an item in inventory, the crafting bench craft pane, or the craft book, then `+ Add to Crafting Goals`. That calls this use case.
Capture: hover an item in inventory, the crafting bench craft pane, or the craft book; tooltip shows the bound key; press it. That calls this use case.
`/satistaskory add` remains a debug caller. Overlay on the **right** of the play screen.
`/satistaskory add` remains a debug caller (unknown ids are rejected). Overlay on the **right** of the play screen.
Do not start EMI. Do not start a planner menu.
+5 -5
View File
@@ -96,9 +96,7 @@ Recipe resolution uses a `RecipeProvider` port. It does not call a recipe mod.
Coordinates use cases.
First use case: [[▶️ Create Goal]].
Same slice: Adjust Goal Quantity, Remove Goal, Clear Goals, Refresh Progress.
First use case: [[▶️ Create Goal]]. In code this slice is one `Planner` facade (create / increment / decrement / clear / snapshot), not one class per use case.
Mark Goal Complete is named. It is not in the first slice.
@@ -123,6 +121,8 @@ Examples:
- Save data storage
- Inventory scanning
Shipped this slice: `StubRecipeProvider`, player-inventory snapshot, HUD overlay, tooltip+key capture. No save adapter yet.
Infrastructure is never the source of domain truth.
---
@@ -173,8 +173,8 @@ The UI should be replaceable. It renders domain information. It does not contain
Discovered consumers (see [[🖥️ Experience]]):
- **Capture** — in-place on inventory, crafting bench craft pane, and craft book. Hover → `+ Add to Crafting Goals`. We do not own those views.
- **Living** — play overlay panel on the **right** of the play screen (not a pause menu). Two regions: [[🎯 Goal|goals]] with quantity `[+]` / `[-]`, then aggregated materials still needed (one row per material, with a count). `X Clear Items` clears the goal list. See [[🖼️ Wireframes]] Screen 2.
- **Capture** — in-place on inventory, crafting bench craft pane, and craft book. Tooltip + rebindable Add key (default `=`). We do not own those views. Not a clickable chip beside the slot.
- **Living** — play overlay HUD on the **right** of the play screen (not a `Screen`). Two regions: [[🎯 Goal|goals]] with quantity `[+]` / `[-]`, then aggregated materials still needed (one row per material, with a count). `X Clear Items` clears the goal list. Vanilla button sprites + click sound; cursor via chat. See [[🖼️ Wireframes]] Screen 2.
Not discovered:
+18
View File
@@ -240,6 +240,24 @@ First impl: `StubRecipeProvider`. Production EMI/JEI/REI adapters come after the
---
### ADR-015 — Capture is tooltip + key; overlay is a HUD
**Date:** 2026-09-08
**Decision:** Capture is a tooltip line plus a rebindable `KeyMapping` (default `=`, Controls → Satistaskory). The mouse stays on the item. There is no clickable chip beside the slot.
The play overlay stays a HUD layer, not a `Screen`. `[+]` / `[-]` / Clear use vanilla `widget/button` sprites and `UI_BUTTON_CLICK`. A cursor is required (chat). Walking does not unlock the mouse.
**Reason:**
A button next to the slot vanishes when the cursor leaves the item. A `Screen` rewrite would replace a working HUD. Vanilla `Button` widgets belong on screens we do not own.
**Status:** ✅ Accepted
**Refines:** ADR-010 (in-place capture; the control is a key, not a click-off button). **Supersedes** ADR-013’s “first wiring may be one caller” — inventory, craft pane, and craft book all call [[▶️ Create Goal]].
---
## Related Documents
[[🏛️ Architecture]]
+8 -9
View File
@@ -24,20 +24,19 @@ com.sufficient.satistaskory
ProgressCalculation # domain service
application/
CreateGoal
AdjustGoalQuantity
RemoveGoal
ClearGoals
RefreshProgress
Planner # create / increment / decrement / clear / snapshot
InMemoryGoalStore
infrastructure/
recipe/
StubRecipeProvider # first impl. Not EMI/JEI/REI.
StubRecipeProvider # furnace, crafting_table, chest; else gather
inventory/
PlayerInventoryAdapter # player inventory → InventoryState
client/
PlayOverlay # Screen 2
CaptureHook # Screen 1 — hover add on inventory, craft pane, craft book
PlayOverlay # Screen 2 HUD (not a Screen)
CaptureHook # tooltip + KeyMapping ADD_GOAL
PlannerSession
ClientCommands # debug /satistaskory add|clear
```
Dependencies point inward: `infrastructure` and `application` may import `domain`. `domain` imports nothing from NeoForge, EMI, JEI, REI, or `infrastructure`.
@@ -54,7 +53,7 @@ Dependencies point inward: `infrastructure` and `application` may import `domain
| Persistence | In-memory goals. ADR-004 still holds; no save adapter yet |
| Full-screen planner | Not discovered |
The example block/item in the NeoForge template is not a package. Remove it when domain types land; do not put Goal next to it as if they were peers.
The NeoForge template example block/item is gone. Do not put it back.
---