Render object references in hint steps as tappable references
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 72/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
- Ambito
- frontend
Direzione di ricerca
Start with apps/web/src/components/hintModal.ts and apps/web/src/screens/game.ts, then compare how apps/web/src/components/transcript.ts renders references using apps/web/src/logic/text.ts. Check the content-pack rules in docs/spec/content-pack.md, then run the relevant unit or end-to-end tests and apps/web/test/styles.test.ts. Done means present objects open their action sheet from a hint, absent objects remain plain text, and inserted text stays text-only.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Context
Hint steps may contain {object_id} and {object_id|text} references, like all pack text. The hint sheet strips them to plain names (stepText uses stripMarkup in apps/web/src/screens/game.ts), so players cannot tap the object a hint talks about, unlike in the story text.
Scope
- Render hint steps with the same span rendering as the transcript, references as buttons.
- Tapping a reference closes the hint sheet and opens the object's action sheet.
- References to objects that are not present render as plain text, so no action is offered on an absent object.
- Keep the
langattribute of the pack language.
Acceptance criteria
- In a test fixture, a hint step with
{red_book}shows a tappable "red book" when the book is present; tapping it opens its action sheet. - A reference to an absent object renders as plain text.
- A unit or end-to-end test covers both cases.
- Text is still inserted as text nodes only (apps/web/test/styles.test.ts passes).
References
- apps/web/src/components/hintModal.ts
- apps/web/src/screens/game.ts
- apps/web/src/components/transcript.ts
- apps/web/src/logic/text.ts
- docs/spec/content-pack.md (sections 4 and 13)
- Lingua principale
- TypeScript
- Stelle
- 0
- Fork
- 0
- Merge medio
- 28m
- PR unite (30g)
- 2
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di nullthrone/lexvm
-
area: web good first issue priority: low type: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
nullthrone/lexvm#49 ·
-
area: infra good first issue priority: low type: chore
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
nullthrone/lexvm#41 ·
-
area: engine good first issue priority: low type: feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
nullthrone/lexvm#27 ·
-
area: web priority: low type: research
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
nullthrone/lexvm#63 ·
-
area: infra area: web priority: medium type: chore
Difficoltà 5/5 Più di una settimana Idoneità per principianti 38/100
nullthrone/lexvm#62 ·
Tutte le issue di nullthrone/lexvm
Issue simili
-
freshness freshness:observed-only
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
thoroc/context-radar#282 ·
-
bug P2 rust
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
area: web
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
gabe-santana/arkdraw#25 ·
-
bug require-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
expressjs/expressjs.com#2549 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
bug good first issue hacktoberfest
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
codercops/discord-bot#101 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno