Skip to content

feat(dncl): let students ask to add a problem rule from the rules popup (#2635) - #2638

Merged
smalruby3-editor-bot[bot] merged 2 commits into
topic/japanese-mode-1731from
topic/autopilot-2635
Nov 29, 2026
Merged

smalruby3-editor-bot[bot] merged 2 commits into
topic/japanese-mode-1731from
topic/autopilot-2635

Conversation

@smalruby3-editor-bot

Copy link
Copy Markdown

Summary

日本語タブの「問題の約束」のポップアップに、約束を足してほしいと開発者に頼むためのリンク「ほかの約束を頼む」を置く。

  • 押すと確かめのダイアログ「Smalruby の開発者に、問題の約束を足してほしいと頼みます。フィードバックの画面を開きますか?」を出す。
  • 「OK」で、「フィードバックを送信」と同じ Google フォームを新しいタブで開く。種類は「機能要望」、内容は「日本語モードの問題の約束を足してほしい。/足したい約束の文:」を入れておくので、利用者は足したい約束の文だけを書けばよい。
  • 値を入れた URL は新しい src/lib/feedback-form.js の feedbackFormUrl で作る(フォームの質問の id entry.366340186(種類)・entry.419674590(内容)。フォームの公開ページから読んだもの)。
  • リンクの置き場所: モックアップ(https://claude.ai/artifact/PsNCFTg52UwyVqBgdEhtrq ・案 C)にはリンクが無いので、「ほかのコメントはそのまま残ります。」の下、「キャンセル」「決定」の上に、小さな下線つきの文字のリンクとして置いた(カードと見まちがえない・ボタンと並べない)。

Changes Made

  • problem-settings-modal.jsx / .css: リンク(data-testid="problem-settings-modal-request")と確かめ
  • src/lib/feedback-form.js: フォームの URL と値を入れた URL(.prettierignore に追加)
  • en.js / ja.js / ja-Hira.js: gui.problemSettingsModal.request / requestConfirm / requestContent
  • docs/dncl/README.md、.claude/rules/scratch-gui/e2e-test.md の testid 一覧

Test Coverage

  • test/unit/lib/feedback-form.test.js(値なしは元の URL、種類と内容が入る)
  • test/unit/components/problem-settings-modal.test.jsx(確かめのあとに値の入ったフォームを開く・「キャンセル」では開かない)
  • 注: この worktree の node_modules は main を指していて @smalruby/ja-notation が解決できないため、ローカルでは moduleNameMapper を足した一時的な jest 設定で流した(14 件通過)。CI では通常の設定で流れる。
  • 画面での確認(dev server)はしていない。見た目は小さなリンク 1 つの追加。

Closes #2635

🤖 Generated with Claude Code

The rules popup gets a link 「ほかの約束を頼む」. After a confirm dialog it opens the feedback
form with the kind (機能要望) and the request filled in, so the user only writes the rule.
The prefilled URL is built by src/lib/feedback-form.js from the ids of the form questions.

Closes #2635

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@smalruby3-editor-bot smalruby3-editor-bot Bot added the 🤖 autopilot autopilot が処理対象にした Issue/PR(daemon が付与) label Nov 29, 2026
@smalruby3-editor-bot

smalruby3-editor-bot Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Author

🤖 autopilot status

field value
Status Review
AI Status —
HITL No
Size middle

Linked issue #2635. Maintained by autopilot (single writer); do not edit.

Match the name used by the other Japanese messages (the feedback link), and
make the English confirm read naturally.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@smalruby3-editor-bot

Copy link
Copy Markdown
Author

🤖 敵対的レビュー(round 1): 指摘 5 件(Must 0 / Question 0 / FYI 5)

FYI

  • [FYI1] packages/scratch-gui/src/locales/ja.js:2095 確かめの文が「Smalruby の開発者に…」で、ほかの日本語の文言(「フィードバックを送信」の確かめなど・ja.js で 43 か所)が使う「スモウルビー」とそろっていない。はじめての人が同じものを 2 つの名前で読むことになる — 修正済み(a33ca6df02)。ja / ja-Hira / docs/dncl/README.md を「スモウルビー」に
  • [FYI2] packages/scratch-gui/src/locales/en.js:1766 英語の確かめの文「You ask … Do you open the page to send feedback?」が不自然 — 修正済み(a33ca6df02)。「This asks … Open the page to send feedback?」に(jsx の defaultMessage も)
  • [FYI3] packages/scratch-gui/src/components/gui/gui.jsx:881 「フィードバックを送信」のリンクに同じフォームの URL が直書きで残り、FEEDBACK_FORM_URL と二重になっている — 見送り: upstream のファイル(gui.jsx)に import とマーカーを増やすことになる。upstream への追従を軽く保つため、この PR では触らない
  • [FYI4] packages/scratch-gui/src/lib/feedback-form.js:8 確かめたこと: フォームの質問 id(entry.366340186 = お問い合わせの種類、entry.419674590 = お問い合わせの内容)と選択肢「機能要望」は、フォームの公開ページのデータと一致する。confirm のあとの window.open は、ポップアップの抑止を有効にした headless chromium で、ダイアログを 6 秒待ってから OK しても新しいタブが開いた — 見送り: 情報共有のみ
  • [FYI5] packages/scratch-gui/test/unit/components/problem-settings-modal.test.jsx 軽量の worktree では @smalruby/ja-notation が解決できず、ローカルの jest はこのテストを読み込めない(実装のときと同じ)。moduleNameMapper を足した一時的な設定で 2 ファイル 14 件が通ることを確かめた — 見送り: 情報共有のみ(CI では通常の設定で流れる)

直してほしい指摘は、モニターの「AI に直してもらう」で指示を書くか、Request changes で ID を指定してから 🙋 HITL を外してください(例: Q1はOK, FYI1は修正して)。ふつうのコメントだけでは autopilot は動きません。

@github-actions

Copy link
Copy Markdown

🚀 Preview deployed (stg API): https://preview.smalruby.app/topic-autopilot-2635-6d9b8f73/

@smalruby3-editor-bot
smalruby3-editor-bot Bot merged commit 9bf11cc into topic/japanese-mode-1731 Nov 29, 2026
11 checks passed
@smalruby3-editor-bot
smalruby3-editor-bot Bot deleted the topic/autopilot-2635 branch November 29, 2026 02:06

This branch was previously deployed

1 inactive deployment
stg — a33ca6df Deployed Nov 29, 2026 by smalruby3-editor-bot[bot] via cleanup #670
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🤖 autopilot autopilot が処理対象にした Issue/PR(daemon が付与)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants