Prevent language switching from clearing input fields

未關閉
#265 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 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 範本
  • 沒有貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

ruby/TryRuby 的其他 Issue

查看 ruby/TryRuby 的全部 Issue

相似的 Issue

更多 Ruby Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。