Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Render object references in hint steps as tappable references

Aperta
#32 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

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

area: web good first issue priority: low type: feature

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 lang attribute 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

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di nullthrone/lexvm

Tutte le issue di nullthrone/lexvm

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.