Bridge a postMessage type to TPEN.eventDispatcher so iframed tools can refresh the page
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 38/100
- issue の種類
- 機能追加
- 明瞭さ
- 説明が足りない
- 活発さ
- 静か
- 技術スタック
- javascript
- 領域
- frontend
調査の方向性
simple-transcription/index.js の handleToolMessages(942 行目)から始め、REQUEST_TPEN_ID_TOKEN と line-navigation メッセージタイプに対する既存の postMessage 処理を追跡してください。そのフローを、TPEN_CONTEXT および page PUT 成功後の JSON-paste フォールバックと比較してください。完了条件には、合意された parent-refresh メッセージパスと更新された親の transcription ビューを含めるべきですが、issue ではメッセージタイプもテストも指定されていません。
索引モデルが issue の本文から書いたものです。
説明
Problem
In-document components (e.g. tpen-transcription-block) can refresh the simple-transcription view after mutating project data because they share the TPEN.eventDispatcher singleton with simple-transcription — they dispatch on the bus and simple-transcription re-renders.
Iframed splitscreen tools cannot reach that bus. The only channel out is postMessage, and simple-transcription/index.js#handleToolMessages (line 942) currently only forwards REQUEST_TPEN_ID_TOKEN and routes line-navigation message types — there's no handler that lets a tool ask the parent to invalidate cached page data and repaint.
This blocks the JSON-paste fallback flow from refreshing the parent transcription view after a successful page PUT, and would block any future iframed tool that mutates project state.
Suggestion
Pass the parent current interface in via TPEN_CONTEXT (such as /transcribe). That will give us the ability to know the parent interface, and the child can attempt parent navigation or refresh from there.
or
Pass a message back out from the iframed child that tells the parent to repaint.
When a copy-and-paste fallback succeeds we want to see the data in the interface. There is a cheap hack to force the parent interface to reload right now.
- 主要言語
- JavaScript
- スター
- 2
- フォーク
- 3
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
CenterForDigitalHumanities/TPEN-interfaces のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
License link borkedオープン
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
CenterForDigitalHumanities/TPEN-interfaces の issue をすべて見る
似ている issue
-
BUG
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
type/bug
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
flarum/framework#5231 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
apache/rocketmq-dashboard#6896 ·
メンテナーはふだん 3 日以内に返信
-
bug good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
[workshop-sync] workshop/side-quest-17-06-output-injection.md: stale add_comment.cjs line referencesオープンdocumentation
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
githubnext/gh-aw-workshop#4679 ·
メンテナーはふだん 1 日以内に返信