Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Render object references in hint steps as tappable references

オープン
#32 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
72/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript
領域
frontend

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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)
主要言語
TypeScript
スター
0
フォーク
0
平均マージ
28分
マージ済み PR(30日)
2

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

nullthrone/lexvm のほかの issue

nullthrone/lexvm の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。