Prevent language switching from clearing input fields
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 64/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- javascript, ruby
- 領域
- frontend
研究方向
Start by locating the language switcher in the TryRuby UI and the handler it calls; trace what happens to the lesson editors when the locale changes, since the reset is presumably tied to re-rendering or re-initializing lessons. Read how editor input is stored (per lesson, in memory or in storage) and decide whether to keep that state across the switch or rehydrate it afterwards. Done looks like: switching language leaves typed input intact for every visited lesson, and a manual pass through the lessons confirms nothing else about the switch breaks.
由索引模型根據 Issue 內容生成。
描述
When using Try Ruby, users may want to revisit previous lessons to review or experiment with code they have already written. However, switching languages clears all input fields across lessons, causing their work to be lost. I consider it can improve the UX.
In short, my suggestion is: switching languages should preserve the content of all input fields.
- 主要語言
- Ruby
- 星號
- 258
- 分支
- 113
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
- 提供 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 沒有貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
ruby/TryRuby 的其他 Issue
-
docs: clarify default parameter behavior in section Quickening it Up and fix Portuguese translation typo可能已有人在做 @MatheoPaiva 於 2 天前認領。 未關閉
難度 1/5 1 小時以內 新手友好度 40/100
-
難度 4/5 3-5 天 新手友好度 25/100
-
難度 2/5 1-3 小時 新手友好度 48/100
-
難度 4/5 3-5 天 新手友好度 48/100
-
難度 4/5 3-5 天 新手友好度 25/100
相似的 Issue
-
🐛 bug 👩💻 équipe CE 🧑🏭 entreprises
難度 2/5 1-3 小時 新手友好度 76/100
betagouv/conseillers-entreprises#4808 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 76/100
yosiat/panko_serializer#250 ·
-
難度 1/5 1 小時以內 新手友好度 75/100
cline/mcp-marketplace#3886 ·
-
難度 2/5 1-3 小時 新手友好度 78/100