[Bug]: "Reset state" on the playgrounds UX is confusing
オープン
まだ誰も着手していません。
bug: unconfirmed
- 主要言語
- JavaScript
- スター
- 11.8k
- フォーク
- 7.9k
- 平均マージ
- 1日 11時間
- マージ済み PR(30日)
- 11
説明
Summary
If you want to reset the React state of a playground, but not the code, it's very unclear how to do so.
The only way I found is clicking on "Reset", which triggers a popup saying "Reset all your edits too?" and then pressing "Cancel". This will successfully reset the state but not the code. However there are two issues with that:
- It's not clear at all that this is the proper way to do so. Should there be two buttons instead?
- UX itself is counter-intuitive:
a. The question is "Reset all your edits too?", which is a yes/no question, but the options are "Ok" or "Cancel"
b. Normally if you press "Cancel" on a confirmation modal, it should cancel the original action altogether, but here is applies the action partially (reset the state but not the edits)
Page
https://react.dev/learn/separating-events-from-effects#challenges
Details
No response
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
リンク先の「Separating Events from Effects」challengeページから始め、playground の Reset フローを再現します。状態のみをResetする選択肢と、編集してからResetする選択肢がどのように提示されているかを確認し、利用可能なアクションと確認文言が明確になるようにします。ユーザーがコードをResetせずに React state をResetする方法と、それぞれの選択肢で何が行われるかを理解できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, react
- 領域
- design, documentation, frontend
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 42/100