Gadget highlighting should come only from the gadget map
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- javascript, react
- 領域
- frontend
調査の方向性
Start with components/Visualization/svgs/StandardGraphSvgReact.js and StandardSATSvgReact.js, then trace the ProblemProvider/gadgets response for each reduction offered by the GUI. Confirm which gadget maps cover the pieces highlighted today before changing renderer behavior; gaps belong in the backend reductions. Done means gadget highlighting uses only the map, reports loading, failure, or empty states, clears exactly its own highlights, and any plain hover highlighting has a separate option.
索引モデルが issue の本文から書いたものです。
説明
Follow-up from #429 and the review of #390.
The problem
With "Highlight gadgets" on, hovering a piece colors it in two layers (components/Visualization/svgs/StandardGraphSvgReact.js, StandardSATSvgReact.js):
- Without the gadget map: the hovered piece (
#id…) and everything sharing its class (.class…) are colored before the renderer looks at the gadget map at all. - From the gadget map: every other id in a gadget that contains the hovered piece.
Layer 1 is the renderer's guess, not something the reduction reported. So when the gadgets request is blocked, fails or hasn't arrived, the switch still highlights things and looks like it works (seen in the #390 review with the endpoint blocked). And when the map is there, the highlight mixes the guess with the reduction's real answer.
There is also a clean-up bug from the same order: in StandardGraphSvgReact.js, clearClusters returns early when the map is empty, but highlightCluster already colored the .class… group, so those highlights should stay on after the mouse leaves when there is no map. (Not yet reproduced; read from the code.)
Proposal
- Gadget highlighting comes only from the gadget map: the hovered piece and its gadget partners, nothing else.
- If the map is loading, failed or empty, there is no gadget highlighting, and the user is told why instead of it failing silently (for example "Gadgets unavailable: …" using the failure text #390 added).
- Clearing undoes exactly what was highlighted.
- If plain "highlight what I hover" is still wanted without a reduction, it becomes its own option with its own name, not part of "Highlight gadgets".
Check first
Some reductions' gadget maps may not cover what Layer 1 covers today (for example a clause's literals). Before changing the renderers, check what ProblemProvider/gadgets returns for each reduction the GUI offers, so map-only highlighting doesn't make highlighting disappear for those reductions. Gaps go to the backend reductions.
Related: #429 (fetch the gadget map only when "Show reduction" is on).
- 主要言語
- JavaScript
- スター
- 3
- フォーク
- 18
- 平均マージ
- 1日 15時間
- マージ済み PR(30日)
- 27
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ReduxISU/Redux_GUI のほかの issue
-
Add GitHub and YouTube icons to the site footer再び着手できるかも @sushantshetty09 が 15 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンenhancement good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
ReduxISU/Redux_GUI#448 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ReduxISU/Redux_GUI#429 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
documentation good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
Make it clear the visualization shows the problem and the selected solver再び着手できるかも @Trosper3 が 38 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンenhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
ReduxISU/Redux_GUI#391 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
[Bug]: Main page problem search shows no "Add new problem" button when nothing matches対応中かも @ShahadatTest が 32 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
ReduxISU/Redux_GUI の issue をすべて見る
似ている issue
-
bug data-types
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
ClickHouse/clickhouse-js#1293 ·
メンテナーはふだん 1 日以内に返信
-
area: tests help wanted size/s
難易度 2/5 1〜3時間 初心者へのやさしさ 92/100
DahanItamar/DockNest#368 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100