bbcmicrobit / bbcmicrobit/PythonEditor
Feature request: New script button
- 主要言語
- JavaScript
- スター
- 201
- フォーク
- 126
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
## Feature
Add a 'new' button that create's a new blank script in the editor
## Issue
It isn't obvious how to start a new script in the editor. I can select all my code and delete, but that will keep the program name in the window. I can also refresh the page which offers a warning before resetting the editor to it's default status, but this is a less common UX eg forms often maintain data on refresh and the MakeCode editor also does, so we should look to implement a similar feature.
## Alternatives
We can refresh the editor to create a new script or delete code, so we have options, maybe we call this out more in help.html?
コントリビューションガイド
調査の方向性
まず、issue で説明されているエディターのエントリポイントを使って、現在エディターがどのようにスクリプトをリセットまたは作成しているかを追跡します。提案されているドキュメントの代替として help.html を確認し、その後、新しいボタンがページの再読み込みを必要とせず、適切なプログラム名を持つ空のスクリプトを作成することを検証します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript
- 領域
- frontend
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 42/100