Add an auto-map of visited rooms
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 38/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
- Domain
- accessibility, frontend
Research direction
Start by reading packages/engine/src/types.ts, packages/engine/src/affordances.ts, and the noir pack map at packs/letzte-nacht-der-reichsmark/design/world.md. Then inspect apps/web/src/components/dock.ts to find the player controls and how themes and sheets are handled. The work is done when the pure helper has unit tests, the noir walkthrough map has no overlaps, unvisited rooms stay unnamed, and the accessible room list and all three themes meet the criteria.
Written by the indexing model from the issue text.
Description
Context
With ten or more rooms (the noir pack has eleven), players on phones lose their bearings. The engine already knows the visited rooms and the exits of each room, so a map needs no format change.
Scope
- Engine: a pure helper (for example
mapView(pack, state)) that returns the visited rooms with their names, the current room, and per visited room its listed exits (direction or custom label). Targets of exits are named only if visited; unvisited targets appear as unexplored stubs. Exits hidden byvisibleWhenare not revealed. - Layout: deterministic placement from compass directions (north, south, east, west, diagonals, up, down); custom exits drawn as labelled links; collisions resolved deterministically without overlapping rooms.
- Player: a map button opens a sheet with an SVG map built with DOM APIs (text as text nodes), current room highlighted, read-only in this version; themed for light, sepia and dark.
- Accessible alternative: a list of visited rooms and their exits.
Acceptance criteria
- After the noir pack's walkthrough the map shows all eleven rooms without overlaps.
- Unvisited rooms are never named.
- The helper is pure and unit-tested; the same state always produces the same layout.
- The list alternative is reachable with a screen reader.
- The map is legible in all three themes.
References
- packages/engine/src/types.ts (View)
- packages/engine/src/affordances.ts
- packs/letzte-nacht-der-reichsmark/design/world.md (Map)
- apps/web/src/components/dock.ts
- Dominant language
- TypeScript
- Stars
- 0
- Forks
- 0
- Avg merge
- 28m
- Merged PRs (30d)
- 2
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nullthrone/lexvm
-
area: web good first issue priority: low type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
nullthrone/lexvm#49 ·
-
area: infra good first issue priority: low type: chore
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
nullthrone/lexvm#41 ·
-
area: engine good first issue priority: low type: feature
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
nullthrone/lexvm#27 ·
-
area: web priority: low type: research
Difficulty 5/5 Over a week Newbie friendliness 35/100
nullthrone/lexvm#63 ·
-
area: infra area: web priority: medium type: chore
Difficulty 5/5 Over a week Newbie friendliness 38/100
nullthrone/lexvm#62 ·
All issues in nullthrone/lexvm
Similar issues
-
area: image-engine bug priority: low
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
snapotter-hq/SnapOtter#3885 ·
Maintainers usually reply within 1 day
-
Mend: dependency security vulnerability
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 3 days
-
pending triage
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
bug P3 UI/UX
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
openclaw/openclaw#182077 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day