Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
293 commits
Select commit Hold shift + click to select a range
30549ac
Merge pull request #2233 from smalruby/refactor/ruby-to-ja-via-ja-not…
smalruby3-editor-bot[bot] Nov 18, 2026
59db4af
feat(dncl): keep the settings in the JaAST and shift indexes on the s…
smalruby3-editor-bot[bot] Nov 18, 2026
b926112
Merge pull request #2234 from smalruby/feat/ja-notation-settings-2100
smalruby3-editor-bot[bot] Nov 18, 2026
5579744
chore(dncl): move ja-notation to a workspace package with JSON test data
smalruby3-editor-bot[bot] Nov 18, 2026
7882526
Merge pull request #2236 from smalruby/refactor/ja-notation-package-2101
smalruby3-editor-bot[bot] Nov 18, 2026
99c4299
fix(dncl): join a name never set to a number with a string literal
smalruby3-editor-bot[bot] Nov 18, 2026
abe24fc
fix(dncl): convert a call written before the def of its method
smalruby3-editor-bot[bot] Nov 18, 2026
020fbae
fix(dncl): read every name the Japanese mode writes (佐々木 is one name)
smalruby3-editor-bot[bot] Nov 18, 2026
4d313cb
fix(dncl): tell Ruby that has no Japanese form instead of keeping it …
smalruby3-editor-bot[bot] Nov 18, 2026
7b3317e
Merge pull request #2238 from smalruby/fix/dncl-string-plus-2168
smalruby3-editor-bot[bot] Nov 18, 2026
37cdec6
Merge pull request #2239 from smalruby/fix/dncl-call-before-def-2167
smalruby3-editor-bot[bot] Nov 18, 2026
48ddfb3
fix(dncl): write and read a multiple assignment to array elements
smalruby3-editor-bot[bot] Nov 18, 2026
35b064f
Merge remote-tracking branch 'origin/topic/japanese-mode-1731' into f…
smalruby3-editor-bot[bot] Nov 18, 2026
31c3e71
Merge branch 'fix/dncl-1714' into fix/dncl-1740
smalruby3-editor-bot[bot] Nov 18, 2026
e222aef
Merge branch 'fix/dncl-1740' into fix/dncl-2237
smalruby3-editor-bot[bot] Nov 18, 2026
b353faf
test(dncl): add the swap of array elements to the Japanese-mode corpus
smalruby3-editor-bot[bot] Nov 18, 2026
c5ae491
Merge pull request #2240 from smalruby/fix/dncl-1714
smalruby3-editor-bot[bot] Nov 18, 2026
826215b
Merge pull request #2242 from smalruby/fix/dncl-1740
smalruby3-editor-bot[bot] Nov 18, 2026
01e42b5
Merge pull request #2244 from smalruby/fix/dncl-2237
smalruby3-editor-bot[bot] Nov 18, 2026
25ebc48
fix(dncl): quote the Japanese line in conversion errors of the Japane…
smalruby3-editor-bot[bot] Nov 18, 2026
64d4993
fix(dncl): read full-width digits and tell a name right after a number
smalruby3-editor-bot[bot] Nov 18, 2026
93026f5
feat(dncl): take the line numbers and marks of other texts when pasting
smalruby3-editor-bot[bot] Nov 18, 2026
84130ff
fix(dncl): translate the error of @ / $ and mark the character
smalruby3-editor-bot[bot] Nov 18, 2026
c9e4899
Merge pull request #2245 from smalruby/fix/dncl-1822
smalruby3-editor-bot[bot] Nov 18, 2026
7fb4690
Merge pull request #2246 from smalruby/fix/dncl-1752
smalruby3-editor-bot[bot] Nov 18, 2026
b7d5c3c
Merge pull request #2247 from smalruby/fix/dncl-1756
smalruby3-editor-bot[bot] Nov 18, 2026
d78ebcd
Merge pull request #2248 from smalruby/fix/dncl-1674
smalruby3-editor-bot[bot] Nov 18, 2026
4266822
feat(dncl): pick a pattern of settings and take a pasted index note a…
smalruby3-editor-bot[bot] Nov 18, 2026
9f25e41
feat(dncl): add an element at the end of an array with を追加する
smalruby3-editor-bot[bot] Nov 18, 2026
f3e2d12
test(dncl): wait for the menu items in the settings pattern test
smalruby3-editor-bot[bot] Nov 18, 2026
f9d9e83
test(dncl): accept the comma the auto-correct writes in the sentences
smalruby3-editor-bot[bot] Nov 19, 2026
165783d
docs(dncl): note that the auto-correct makes the comma of the sentenc…
smalruby3-editor-bot[bot] Nov 19, 2026
1368f50
Merge pull request #2249 from smalruby/fix/dncl-1757
smalruby3-editor-bot[bot] Nov 19, 2026
e899ff5
Merge pull request #2250 from smalruby/fix/dncl-1759
smalruby3-editor-bot[bot] Nov 19, 2026
bb15070
feat(console): add the console extension for 表示する and 入力する
smalruby3-editor-bot[bot] Nov 19, 2026
45049f1
feat(console): show the console in place of the stage
smalruby3-editor-bot[bot] Nov 19, 2026
e74a855
feat(dncl): make the Japanese tab separate from the Ruby tab
smalruby3-editor-bot[bot] Nov 19, 2026
9e6e91f
docs(dncl): describe the Japanese tab
smalruby3-editor-bot[bot] Nov 19, 2026
1be912a
feat(dncl): write 表示する and the inputs with the console blocks
smalruby3-editor-bot[bot] Nov 19, 2026
4aed5de
docs(console): keep the marker list as it was formatted
smalruby3-editor-bot[bot] Nov 19, 2026
7a8f4e0
Merge branch 'feat/dncl-console-1758-1' into feat/dncl-console-1758-2
smalruby3-editor-bot[bot] Nov 19, 2026
c843953
Merge branch 'feat/dncl-console-1758-2' into feat/dncl-console-1758-3
smalruby3-editor-bot[bot] Nov 19, 2026
0821225
fix(dncl): keep the side rail within a phone held sideways with the J…
smalruby3-editor-bot[bot] Nov 19, 2026
e27741f
feat(dncl): keep the console extension in the palette of the Japanese…
smalruby3-editor-bot[bot] Nov 19, 2026
36c61d6
docs(console): add the screenshots of the console
smalruby3-editor-bot[bot] Nov 19, 2026
930cb20
test(dncl): go back to Ruby by the Ruby tab in the problem form test
smalruby3-editor-bot[bot] Nov 19, 2026
5f1c39d
docs(dncl): take the screenshots of the Japanese tab
smalruby3-editor-bot[bot] Nov 19, 2026
1352a2f
Merge pull request #2251 from smalruby/feat/dncl-console-1758-1
smalruby3-editor-bot[bot] Nov 19, 2026
4d65b72
Merge pull request #2252 from smalruby/feat/dncl-console-1758-2
smalruby3-editor-bot[bot] Nov 19, 2026
07f3841
Merge pull request #2254 from smalruby/feat/dncl-console-1758-3
smalruby3-editor-bot[bot] Nov 19, 2026
7aa049e
test(dncl): expect the Japanese tab after the Ruby tab in the hint ta…
smalruby3-editor-bot[bot] Nov 19, 2026
09afd14
Merge remote-tracking branch 'origin/topic/japanese-mode-1731' into f…
smalruby3-editor-bot[bot] Nov 19, 2026
ad7e617
feat(dncl): show the console as the stage of the Japanese tab
smalruby3-editor-bot[bot] Nov 19, 2026
f640e88
Merge pull request #2253 from smalruby/feat/dncl-tab-1753
smalruby3-editor-bot[bot] Nov 19, 2026
54fb42f
fix(dncl): define the 「」 and 【】 brackets for the Monarch tokenizer
smalruby3-editor-bot[bot] Nov 19, 2026
1e36e51
docs(dncl): write the genai prompt and the docs in the standard form
smalruby3-editor-bot[bot] Nov 19, 2026
df30ac2
Merge pull request #2256 from smalruby/fix/dncl-brackets-2255
smalruby3-editor-bot[bot] Nov 19, 2026
15bc9b8
Merge pull request #2257 from smalruby/docs/dncl-standard-form-1760
smalruby3-editor-bot[bot] Nov 19, 2026
3a20709
docs(rules): list the data-testids of the Japanese tab and the console
smalruby3-editor-bot[bot] Nov 19, 2026
9baa5bf
Merge pull request #2258 from smalruby/docs/e2e-test-japanese-tab
smalruby3-editor-bot[bot] Nov 19, 2026
d9df92d
ci: run the ja-notation tests in their own unit test job
smalruby3-editor-bot[bot] Nov 19, 2026
3b3c429
fix(dncl): keep what is written in comments when auto-correcting
smalruby3-editor-bot[bot] Nov 19, 2026
f1c4867
fix(ja-notation): tell the variables of the stage instead of writing …
smalruby3-editor-bot[bot] Nov 19, 2026
76beac6
style(dncl): show the notice of restricted blocks with the design tokens
smalruby3-editor-bot[bot] Nov 19, 2026
0b655c9
fix(ja-notation): read full-width letters and digits as half-width ones
smalruby3-editor-bot[bot] Nov 19, 2026
7f0a57b
fix(ja-notation): tell a closing word of another kind of block
smalruby3-editor-bot[bot] Nov 19, 2026
1c78ff0
Merge pull request #2260 from smalruby/ci/ja-notation-unit-job
smalruby3-editor-bot[bot] Nov 19, 2026
136b161
fix(ja-notation): walk the syntax trees with a stack of their own
smalruby3-editor-bot[bot] Nov 19, 2026
d3f2acf
test(ja-notation): a counting loop closed by another closing word is …
smalruby3-editor-bot[bot] Nov 19, 2026
53a3e3b
Merge branch 'fix/ja-notation-closer-kind' into fix/ja-notation-itera…
smalruby3-editor-bot[bot] Nov 19, 2026
5d4cf3e
style(locales): format the message of the stage variables
smalruby3-editor-bot[bot] Nov 19, 2026
a3ffede
Merge branch 'fix/ja-notation-stage-vars-1706' into fix/ja-notation-f…
smalruby3-editor-bot[bot] Nov 19, 2026
9f4b849
Merge branch 'fix/ja-notation-fullwidth-alnum' into fix/ja-notation-c…
smalruby3-editor-bot[bot] Nov 19, 2026
fae6e32
Merge branch 'fix/ja-notation-closer-kind' into fix/ja-notation-itera…
smalruby3-editor-bot[bot] Nov 19, 2026
925d43a
docs(dncl): add a screenshot of the notice of restricted blocks
smalruby3-editor-bot[bot] Nov 19, 2026
327b4e7
fix(dncl): indent by 4 spaces when typing in the Japanese tab
smalruby3-editor-bot[bot] Nov 19, 2026
35f9d5c
Merge pull request #2263 from smalruby/fix/ja-notation-stage-vars-1706
smalruby3-editor-bot[bot] Nov 19, 2026
9adffd3
Merge pull request #2267 from smalruby/fix/ja-notation-fullwidth-alnum
smalruby3-editor-bot[bot] Nov 19, 2026
b3028a4
Merge pull request #2269 from smalruby/fix/ja-notation-closer-kind
smalruby3-editor-bot[bot] Nov 19, 2026
0d5c637
Merge pull request #2271 from smalruby/fix/ja-notation-iterative-walk
smalruby3-editor-bot[bot] Nov 19, 2026
a7e5436
test(dncl): type into the focused editor one key at a time
smalruby3-editor-bot[bot] Nov 19, 2026
dd716ba
Merge pull request #2262 from smalruby/fix/ja-auto-correct-comments
smalruby3-editor-bot[bot] Nov 19, 2026
447d74c
Merge pull request #2265 from smalruby/fix/ja-mode-notice-tokens
smalruby3-editor-bot[bot] Nov 19, 2026
4db2ad5
Merge pull request #2273 from smalruby/fix/ja-tab-indent-width
smalruby3-editor-bot[bot] Nov 19, 2026
1060d50
fix(ja-notation): read a reading comma in block lines like `の間,繰り返す:`
smalruby3-editor-bot[bot] Nov 19, 2026
9702518
Merge pull request #2275 from smalruby/fix/ja-notation-comma-2274
smalruby3-editor-bot[bot] Nov 19, 2026
94a417f
Merge remote-tracking branch 'origin/develop' into sync/develop-into-…
smalruby3-editor-bot[bot] Nov 22, 2026
1352758
fix(ruby): remove an unused procedure through the BlockStore
smalruby3-editor-bot[bot] Nov 22, 2026
d175089
Merge pull request #2365 from smalruby/sync/develop-into-japanese-mod…
smalruby3-editor-bot[bot] Nov 22, 2026
052ff98
fix(dncl): tell a branch not at the indent of its if
smalruby3-editor-bot[bot] Nov 22, 2026
a111908
test(dncl): pin built-ins on any receiver and methods with no Japanes…
smalruby3-editor-bot[bot] Nov 22, 2026
ddef823
Merge pull request #2369 from smalruby/fix/japanese-mode-2030
smalruby3-editor-bot[bot] Nov 22, 2026
6b723bd
Merge pull request #2370 from smalruby/test/japanese-mode-1699
smalruby3-editor-bot[bot] Nov 22, 2026
88b212c
feat(dncl): add the console extension only when the program prints or…
smalruby3-editor-bot[bot] Nov 22, 2026
bcee583
test(dncl): replace the center exam programs in tests with our own pr…
smalruby3-editor-bot[bot] Nov 22, 2026
2adc98d
Merge pull request #2375 from smalruby/topic/autopilot-2372
smalruby3-editor-bot[bot] Nov 22, 2026
42a0f1c
Merge pull request #2376 from smalruby/topic/autopilot-2373
smalruby3-editor-bot[bot] Nov 22, 2026
b91d3ce
test(dncl): use our own names for the examples of indexes from 1
smalruby3-editor-bot[bot] Nov 22, 2026
9f376e3
Merge pull request #2377 from smalruby/fix/japanese-mode-own-index-na…
smalruby3-editor-bot[bot] Nov 22, 2026
16fc9a1
feat(dncl): switch to the read mode without the done button
smalruby3-editor-bot[bot] Nov 23, 2026
ffeeccf
test(dncl): click a line of the editor to bring the write mode back
smalruby3-editor-bot[bot] Nov 23, 2026
d685907
Merge pull request #2381 from smalruby/feat/japanese-mode-read-mode-2380
smalruby3-editor-bot[bot] Nov 23, 2026
d1c1b2a
feat(dncl): give the Japanese tab its own toolbar and menu
smalruby3-editor-bot[bot] Nov 26, 2026
f33dadd
fix(dncl): name the menu items of the problem rules without the old p…
smalruby3-editor-bot[bot] Nov 26, 2026
159b4d8
docs(dncl): retake the Japanese tab screenshots with the new toolbar …
smalruby3-editor-bot[bot] Nov 26, 2026
66dc65c
Merge pull request #2462 from smalruby/topic/autopilot-2453
smalruby3-editor-bot[bot] Nov 26, 2026
1213c29
fix(dncl): merge develop into the japanese-mode topic and read the en…
smalruby3-editor-bot[bot] Nov 27, 2026
fe63878
style(ja-notation): keep the unrelated error entries of parse.json on…
smalruby3-editor-bot[bot] Nov 27, 2026
b43d65d
Merge pull request #2542 from smalruby/topic/autopilot-2539
smalruby3-editor-bot[bot] Nov 27, 2026
fc1a5b5
fix(dncl): keep the japanese text when switching tabs or sprites whil…
smalruby3-editor-bot[bot] Nov 28, 2026
947f66f
fix(dncl): show errors in the japanese tab for code that cannot becom…
smalruby3-editor-bot[bot] Nov 28, 2026
1a375ef
test(dncl): check the alert when the code tab is refused with an error
smalruby3-editor-bot[bot] Nov 28, 2026
d239b12
fix(dncl): compute integer division of negative numbers and keep pare…
smalruby3-editor-bot[bot] Nov 28, 2026
207b60e
Merge pull request #2558 from smalruby/topic/autopilot-2546
smalruby3-editor-bot[bot] Nov 28, 2026
92bad7f
fix(dncl): add parentheses to a negated name before a product and a q…
smalruby3-editor-bot[bot] Nov 28, 2026
f5790cb
fix(dncl): give the code tab errors the same words as the japanese check
smalruby3-editor-bot[bot] Nov 28, 2026
80ea1b0
fix(dncl): open the play view on a phone when a japanese program prin…
smalruby3-editor-bot[bot] Nov 28, 2026
661662a
Merge pull request #2561 from smalruby/topic/autopilot-2548
smalruby3-editor-bot[bot] Nov 28, 2026
e428ee4
fix(dncl): keep the editor after leaving the play view of a run start…
smalruby3-editor-bot[bot] Nov 28, 2026
9b7dbc6
fix(dncl): turn the rules into the indent when pasting text copied wi…
smalruby3-editor-bot[bot] Nov 28, 2026
50f934a
Merge remote-tracking branch 'origin/topic/japanese-mode-1731' into t…
smalruby3-editor-bot[bot] Nov 28, 2026
88b1a12
Merge remote-tracking branch 'origin/topic/japanese-mode-1731' into t…
smalruby3-editor-bot[bot] Nov 28, 2026
9e21dc2
Merge pull request #2562 from smalruby/topic/autopilot-2551
smalruby3-editor-bot[bot] Nov 28, 2026
4baec99
fix(dncl): keep the rules when a branch ends an inner block that open…
smalruby3-editor-bot[bot] Nov 28, 2026
429c1d5
feat(dncl): make the right column a tall console in the japanese tab
smalruby3-editor-bot[bot] Nov 28, 2026
96a6b85
Merge pull request #2564 from smalruby/topic/autopilot-2549
smalruby3-editor-bot[bot] Nov 28, 2026
ec46ae4
fix(dncl): keep the width of the stage in the japanese right column
smalruby3-editor-bot[bot] Nov 28, 2026
688a068
Merge remote-tracking branch 'origin/topic/japanese-mode-1731' into t…
smalruby3-editor-bot[bot] Nov 28, 2026
5195b20
fix(dncl): tidy the right column of the japanese tab after the review
smalruby3-editor-bot[bot] Nov 28, 2026
19288b4
fix(dncl): keep the order of function definitions after a round trip …
smalruby3-editor-bot[bot] Nov 28, 2026
ec611d7
test(dncl): update the expectations for ruby that prism cannot read
smalruby3-editor-bot[bot] Nov 28, 2026
465385f
fix(dncl): redraw the stage when the console moves into the right column
smalruby3-editor-bot[bot] Nov 28, 2026
9c6ca6e
Merge remote-tracking branch 'origin/topic/japanese-mode-1731' into t…
smalruby3-editor-bot[bot] Nov 28, 2026
63601f4
fix(dncl): keep the stage canvas at its size while the console hides it
smalruby3-editor-bot[bot] Nov 28, 2026
7904b5a
docs(dncl): move the errors of lines with no blocks to the chapter of…
smalruby3-editor-bot[bot] Nov 28, 2026
1f6db0b
fix(dncl): read the other sprites in the written order for the AI as …
smalruby3-editor-bot[bot] Nov 28, 2026
eb0fac7
Merge pull request #2566 from smalruby/topic/autopilot-2563
smalruby3-editor-bot[bot] Nov 28, 2026
0906990
fix(dncl): keep the read mode on the first run after reloading
smalruby3-editor-bot[bot] Nov 28, 2026
ddccb0c
Merge pull request #2559 from smalruby/topic/autopilot-2547
smalruby3-editor-bot[bot] Nov 28, 2026
6e264f8
docs(dncl): note that the fallback of closing the error widget moves …
smalruby3-editor-bot[bot] Nov 28, 2026
f2eb62f
fix(dncl): take else and closing lines back to the depth of their blo…
smalruby3-editor-bot[bot] Nov 28, 2026
bc4d1d3
Merge remote-tracking branch 'origin/topic/japanese-mode-1731' into t…
smalruby3-editor-bot[bot] Nov 28, 2026
c1d1836
Merge pull request #2569 from smalruby/topic/autopilot-2550
smalruby3-editor-bot[bot] Nov 28, 2026
9b13f39
fix(dncl): skip comments with // and # when finding the block of an else
smalruby3-editor-bot[bot] Nov 28, 2026
7643c09
fix(dncl): end the block on a closer after ⎿ and keep shallow comment…
smalruby3-editor-bot[bot] Nov 28, 2026
5e7ef66
Merge remote-tracking branch 'origin/topic/japanese-mode-1731' into t…
smalruby3-editor-bot[bot] Nov 28, 2026
fe03a6c
fix(dncl): small fixes found in the final check of the japanese mode
smalruby3-editor-bot[bot] Nov 28, 2026
3e6bd79
fix(dncl): keep the end on the ⎿ line when a comment line comes befor…
smalruby3-editor-bot[bot] Nov 28, 2026
dfc9525
Merge pull request #2570 from smalruby/topic/autopilot-2553
smalruby3-editor-bot[bot] Nov 28, 2026
a262762
Merge pull request #2571 from smalruby/topic/autopilot-2554
smalruby3-editor-bot[bot] Nov 28, 2026
16469fb
Merge pull request #2572 from smalruby/topic/autopilot-2556
smalruby3-editor-bot[bot] Nov 28, 2026
164fa41
Merge pull request #2573 from smalruby/topic/autopilot-2557
smalruby3-editor-bot[bot] Nov 28, 2026
47624e8
fix(dncl): treat a line at no indent of its block as an error
smalruby3-editor-bot[bot] Nov 28, 2026
930b317
feat(dncl): run the japanese program with the green flag
smalruby3-editor-bot[bot] Nov 28, 2026
16a7297
fix(dncl): let a newer green flag start the japanese program over
smalruby3-editor-bot[bot] Nov 28, 2026
0714b70
fix(dncl): read a line at a wrong indent where it is so its block is …
smalruby3-editor-bot[bot] Nov 28, 2026
5ade52b
fix(dncl): show an empty editor when selecting a target without a pro…
smalruby3-editor-bot[bot] Nov 28, 2026
f2b04f3
Merge pull request #2580 from smalruby/topic/autopilot-2552
smalruby3-editor-bot[bot] Nov 28, 2026
19848b0
Merge remote-tracking branch 'origin/topic/japanese-mode-1731' into t…
smalruby3-editor-bot[bot] Nov 28, 2026
97cafc1
Merge pull request #2579 from smalruby/topic/autopilot-2555
smalruby3-editor-bot[bot] Nov 28, 2026
72a811e
fix(dncl): keep the script order after the code tab and never fall ba…
smalruby3-editor-bot[bot] Nov 28, 2026
4cb6f3f
Merge remote-tracking branch 'origin/topic/japanese-mode-1731' into t…
smalruby3-editor-bot[bot] Nov 28, 2026
35f1ac1
fix(dncl): small fixes from the re-check of the japanese tab
smalruby3-editor-bot[bot] Nov 28, 2026
084fbf4
test(dncl): give the 30 round trips of the code tab their own timeout
smalruby3-editor-bot[bot] Nov 28, 2026
b288df1
Merge pull request #2581 from smalruby/topic/autopilot-2576
smalruby3-editor-bot[bot] Nov 28, 2026
1205573
fix(dncl): give no one-by-one example when it would change the result
smalruby3-editor-bot[bot] Nov 28, 2026
4add7d3
Merge remote-tracking branch 'origin/topic/japanese-mode-1731' into t…
smalruby3-editor-bot[bot] Nov 28, 2026
573fef7
Merge remote-tracking branch 'origin/topic/japanese-mode-1731' into t…
smalruby3-editor-bot[bot] Nov 28, 2026
a3cdde0
Merge pull request #2584 from smalruby/topic/autopilot-2577
smalruby3-editor-bot[bot] Nov 28, 2026
888d106
test(dncl): expect the ruby tab in the two error message tests
smalruby3-editor-bot[bot] Nov 28, 2026
0541e54
Merge remote-tracking branch 'origin/topic/japanese-mode-1731' into t…
smalruby3-editor-bot[bot] Nov 28, 2026
e1101e5
fix(dncl): pick a swap variable the program does not use and align words
smalruby3-editor-bot[bot] Nov 28, 2026
7808a7d
Merge pull request #2586 from smalruby/topic/autopilot-2578
smalruby3-editor-bot[bot] Nov 28, 2026
aafd3af
feat(console): show only the console in the right column of every tab
smalruby3-editor-bot[bot] Nov 28, 2026
9a7edd2
fix(ruby-generator): keep a call inside an expression after saving th…
smalruby3-editor-bot[bot] Nov 28, 2026
39ab87e
fix(ruby-generator): match a return variable by its own name after lo…
smalruby3-editor-bot[bot] Nov 28, 2026
4f65299
Merge pull request #2590 from smalruby/feat/console-covers-column-all…
smalruby3-editor-bot[bot] Nov 28, 2026
82dadba
Merge pull request #2591 from smalruby/topic/autopilot-2588
smalruby3-editor-bot[bot] Nov 28, 2026
ec38545
fix(dncl): empty the japanese tab when all blocks of the target are d…
smalruby3-editor-bot[bot] Nov 28, 2026
003d57e
fix(dncl): stop saving, submitting and running while japanese lines h…
smalruby3-editor-bot[bot] Nov 28, 2026
1123f14
fix(dncl): stop the run button while japanese lines have an error
smalruby3-editor-bot[bot] Nov 28, 2026
e11988f
test(dncl): keep the settings sentences when the ruby of the target i…
smalruby3-editor-bot[bot] Nov 28, 2026
bca64b1
fix(dncl): avoid the names of the sprite and stage variables for the …
smalruby3-editor-bot[bot] Nov 28, 2026
e137449
fix(ruby-generator): keep a local variable read after saving the project
smalruby3-editor-bot[bot] Nov 28, 2026
a3e13c2
fix(ja-notation): read an unread indented line as a line of its block
smalruby3-editor-bot[bot] Nov 28, 2026
fd4ab36
Merge pull request #2597 from smalruby/topic/autopilot-2560
smalruby3-editor-bot[bot] Nov 28, 2026
7d085b9
Merge pull request #2596 from smalruby/topic/autopilot-2583
smalruby3-editor-bot[bot] Nov 28, 2026
e3008a4
fix(ja-notation): do not tell the lines of an unread opening line as …
smalruby3-editor-bot[bot] Nov 28, 2026
ae343e2
fix(dncl): avoid the names of the sprites for the counter of n.times …
smalruby3-editor-bot[bot] Nov 28, 2026
5ff9db2
fix(ruby-generator): keep a local array or hash read after saving the…
smalruby3-editor-bot[bot] Nov 28, 2026
181c18e
Merge remote-tracking branch 'origin/topic/japanese-mode-1731' into t…
smalruby3-editor-bot[bot] Nov 28, 2026
141050f
Merge pull request #2598 from smalruby/topic/autopilot-2574
smalruby3-editor-bot[bot] Nov 28, 2026
7028b53
Merge pull request #2600 from smalruby/topic/autopilot-2587
smalruby3-editor-bot[bot] Nov 28, 2026
2084d93
Merge pull request #2599 from smalruby/topic/autopilot-2592
smalruby3-editor-bot[bot] Nov 28, 2026
a1d88ce
fix(dncl): keep the japanese mode when leaving the japanese tab durin…
smalruby3-editor-bot[bot] Nov 28, 2026
d0e209f
fix(ruby-toolbar): make the auto-correct toggle a switch
smalruby3-editor-bot[bot] Nov 28, 2026
16dbb8f
fix(dncl): keep all the blocks asked for during the check of the japa…
smalruby3-editor-bot[bot] Nov 28, 2026
0c74328
fix(dncl): read full-width digits typed into the integer input
smalruby3-editor-bot[bot] Nov 28, 2026
5e26787
docs(dncl): describe the integer input block in the console table
smalruby3-editor-bot[bot] Nov 28, 2026
367e0d0
fix(ruby-tab): give the editor's context menu its background
smalruby3-editor-bot[bot] Nov 28, 2026
1f15b94
Merge pull request #2613 from smalruby/topic/autopilot-2607
smalruby3-editor-bot[bot] Nov 28, 2026
177cb30
Merge remote-tracking branch 'origin/topic/japanese-mode-1731' into t…
smalruby3-editor-bot[bot] Nov 28, 2026
f1997c5
fix(ruby-tab): keep the context menu in its shadow dom
smalruby3-editor-bot[bot] Nov 28, 2026
dd1e00b
fix(dncl): do not run the body of a defined function when running the…
smalruby3-editor-bot[bot] Nov 28, 2026
f21da42
Merge remote-tracking branch 'origin/topic/japanese-mode-1731' into t…
smalruby3-editor-bot[bot] Nov 28, 2026
7d5bdd2
Merge pull request #2616 from smalruby/topic/autopilot-2608
smalruby3-editor-bot[bot] Nov 28, 2026
2e839b9
test(dncl): record the integer input block in the japanese-mode golden
smalruby3-editor-bot[bot] Nov 28, 2026
09e3691
Merge pull request #2617 from smalruby/topic/autopilot-2609
smalruby3-editor-bot[bot] Nov 28, 2026
a22cae3
docs(dncl): retake the toolbar screenshots with the auto-correct switch
smalruby3-editor-bot[bot] Nov 28, 2026
8383099
Merge remote-tracking branch 'origin/topic/japanese-mode-1731' into t…
smalruby3-editor-bot[bot] Nov 28, 2026
cf695c9
fix(ruby-generator): keep japanese argument names of a method
smalruby3-editor-bot[bot] Nov 28, 2026
ae3dfeb
docs(dncl): note full-width digits for the integer input and add jsdoc
smalruby3-editor-bot[bot] Nov 28, 2026
eebfa89
fix(dncl): join a string to the console input value
smalruby3-editor-bot[bot] Nov 28, 2026
b8f42b0
test(dncl): keep two console.gets values added
smalruby3-editor-bot[bot] Nov 28, 2026
b06e2e5
Merge pull request #2614 from smalruby/topic/autopilot-2605
smalruby3-editor-bot[bot] Nov 28, 2026
2bbd9f8
Merge pull request #2618 from smalruby/topic/autopilot-2611
smalruby3-editor-bot[bot] Nov 28, 2026
69c7aab
Merge pull request #2619 from smalruby/topic/autopilot-2610
smalruby3-editor-bot[bot] Nov 28, 2026
864138c
Merge remote-tracking branch 'origin/topic/japanese-mode-1731' into t…
smalruby3-editor-bot[bot] Nov 28, 2026
e2bf8f8
Merge pull request #2615 from smalruby/topic/autopilot-2612
smalruby3-editor-bot[bot] Nov 28, 2026
a4c92d4
fix(smalruby-console): use the same default greeting as the say block
smalruby3-editor-bot[bot] Nov 28, 2026
981f9fa
docs(dncl): write down the no-error policy for the Japanese mode
smalruby3-editor-bot[bot] Nov 28, 2026
3b5967e
fix(dncl): keep full-width characters inside strings and comments
smalruby3-editor-bot[bot] Nov 28, 2026
65008ab
Merge pull request #2626 from smalruby/docs/japanese-mode-no-errors
smalruby3-editor-bot[bot] Nov 28, 2026
bb9a301
Merge remote-tracking branch 'origin/topic/japanese-mode-1731' into t…
smalruby3-editor-bot[bot] Nov 28, 2026
007e823
Merge pull request #2625 from smalruby/topic/autopilot-2622
smalruby3-editor-bot[bot] Nov 29, 2026
6021e1a
fix(dncl): keep the order of functions after running the japanese pro…
smalruby3-editor-bot[bot] Nov 29, 2026
be02367
feat(dncl): treat the say and ask blocks as unsupported in the japane…
smalruby3-editor-bot[bot] Nov 29, 2026
2a348ae
fix(dncl): correct the code of #{} and end a string with its line
smalruby3-editor-bot[bot] Nov 29, 2026
28a7820
Merge remote-tracking branch 'origin/topic/japanese-mode-1731' into t…
smalruby3-editor-bot[bot] Nov 29, 2026
566ad96
Merge remote-tracking branch 'origin/topic/japanese-mode-1731' into t…
smalruby3-editor-bot[bot] Nov 29, 2026
806eea2
Merge remote-tracking branch 'origin/topic/japanese-mode-1731' into t…
smalruby3-editor-bot[bot] Nov 29, 2026
f3a112f
fix(dncl): end a string with its line also after a backslash at the l…
smalruby3-editor-bot[bot] Nov 29, 2026
6b3b3e6
docs(dncl): drop say and puts from the passed names in the comment
smalruby3-editor-bot[bot] Nov 29, 2026
3a213e6
test(dncl): run a program with a list after the code tab too
smalruby3-editor-bot[bot] Nov 29, 2026
9e7d223
fix(dncl): show the console after reloading in the Japanese mode
smalruby3-editor-bot[bot] Nov 29, 2026
d94b371
Merge pull request #2627 from smalruby/topic/autopilot-2621
smalruby3-editor-bot[bot] Nov 29, 2026
d73e876
fix(dncl): give the stage back when a lesson without Japanese starts
smalruby3-editor-bot[bot] Nov 29, 2026
1f1f00e
Merge pull request #2630 from smalruby/topic/autopilot-2620
smalruby3-editor-bot[bot] Nov 29, 2026
f12f16b
Merge pull request #2633 from smalruby/topic/autopilot-2628
smalruby3-editor-bot[bot] Nov 29, 2026
d3ca7a7
Merge remote-tracking branch 'origin/topic/japanese-mode-1731' into t…
smalruby3-editor-bot[bot] Nov 29, 2026
ac77732
fix(dncl): pick the rules of the problem in a popup from the green band
smalruby3-editor-bot[bot] Nov 29, 2026
213b83e
test(dncl): use console.puts in the japanese tab switch tests
smalruby3-editor-bot[bot] Nov 29, 2026
768648d
Merge remote-tracking branch 'origin/topic/japanese-mode-1731' into t…
smalruby3-editor-bot[bot] Nov 29, 2026
176459c
docs(dncl): drop the read-only say block from the palette row of the …
smalruby3-editor-bot[bot] Nov 29, 2026
6576f32
fix(dncl): keep the ok button of the rules popup on a short screen
smalruby3-editor-bot[bot] Nov 29, 2026
47258f7
Merge pull request #2631 from smalruby/topic/autopilot-2623
smalruby3-editor-bot[bot] Nov 29, 2026
01514ad
Merge pull request #2637 from smalruby/topic/autopilot-2606
smalruby3-editor-bot[bot] Nov 29, 2026
8ddaf55
feat(dncl): let students ask to add a problem rule from the rules popup
smalruby3-editor-bot[bot] Nov 29, 2026
a33ca6d
fix(dncl): call the editor スモウルビー in the confirm to ask for a rule
smalruby3-editor-bot[bot] Nov 29, 2026
9bf11cc
Merge pull request #2638 from smalruby/topic/autopilot-2635
smalruby3-editor-bot[bot] Nov 29, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
62 changes: 49 additions & 13 deletions .claude/rules/scratch-gui/e2e-test.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ const isActiveByTestId = (d, testId) =>
);

// 使用例
await clickByTestId(driver, 'ruby-toolbar-mode-dncl');
expect(await isActiveByTestId(driver, 'ruby-toolbar-mode-dncl')).toBe(true);
await clickByTestId(driver, 'ruby-toolbar-mode-furigana');
expect(await isActiveByTestId(driver, 'ruby-toolbar-mode-furigana')).toBe(true);
```

### Naming Convention

`data-testid` は `<component>-<element>` の形式:
- Component prefix: コンポーネント名をケバブケース(例: `ruby-toolbar`)
- Element suffix: 要素の役割をケバブケース(例: `mode-dncl`)
- Element suffix: 要素の役割をケバブケース(例: `mode-furigana`)

### Ruby Toolbar (`ruby-toolbar.jsx`)

Expand All @@ -53,21 +53,57 @@ expect(await isActiveByTestId(driver, 'ruby-toolbar-mode-dncl')).toBe(true);
| `ruby-toolbar-redo` | button | やり直す |
| `ruby-toolbar-search` | button | 検索 |
| `ruby-toolbar-keyboard` | button | ソフトウェアキーボード表示/非表示トグル(タッチデバイスのみレンダリング) |
| `ruby-toolbar-auto-correct` | button | 自動置換トグル |
| `ruby-toolbar-auto-correct` | button | 自動置換のスイッチ(ルビータブ・日本語タブ。`role="switch"`・`aria-checked`) |
| `ruby-toolbar-mode-furigana` | button | ふりがなモード |
| `ruby-toolbar-mode-ruby` | button | Rubyモード |
| `ruby-toolbar-mode-dncl` | button | 日本語(DNCL)モード |
| `ruby-toolbar-rules` | button | 日本語タブの「行番号と罫線」のスイッチ(読むモード/書くモード。日本語タブのみ。`role="switch"`・`aria-checked`) |
| `ruby-toolbar-more-menu` | button | その他メニュー |
| `ruby-toolbar-menu-download` | div | Rubyスクリプト保存 |
| `ruby-toolbar-menu-insert-class` | div | クラス挿入 |
| `ruby-toolbar-menu-preview` | div | プレビュー |
| `ruby-toolbar-menu-download` | div | Rubyスクリプト保存(ルビータブのみ) |
| `ruby-toolbar-menu-insert-class` | div | クラス挿入(ルビータブのみ) |
| `ruby-toolbar-menu-preview` | div | プレビュー(日本語タブでは「ルビーに直したものを確認」) |
| `ruby-toolbar-menu-download-japanese` | div | 日本語のプログラムを保存(.txt)。日本語タブのときだけ |
| `ruby-toolbar-menu-auto-correct-settings` | div | 自動置換設定 |

日本語モードは、ルビータブのボタンではなく**日本語タブ**(`gui-tab-japanese`)で開く(URL は `?tab=japanese`)。ルビータブのツールバーは、ふりがな・Ruby の 2 つ。

### タブ (`gui.jsx`)

| data-testid | 要素 | 説明 |
|------------|------|------|
| `gui-tab-ruby` | li | ルビータブ(いつも Ruby で開く) |
| `gui-tab-japanese` | li | 日本語タブ(日本語の表示のときだけ。レッスンの `allowDnclMode` が false なら押せない) |
| `ruby-tab-language-band` | div | 日本語タブのエディタの上の帯 |
| `ruby-tab-problem-settings` | span | 帯の「問題の約束: 添字は 0 から」(いまの約束) |
| `ruby-tab-problem-settings-change` | button | 帯の「変える」。「問題の約束」のポップアップを開く |

### 問題の約束のポップアップ (`problem-settings-modal.jsx`)

| data-testid | 要素 | 説明 |
|------------|------|------|
| `problem-settings-modal-pattern-example` | label | カード「例示の形(添字は 0 から)」(中に radio) |
| `problem-settings-modal-pattern-index-from-one` | label | カード「添字が 1 から始まる問題」(中に radio) |
| `problem-settings-modal-sentences` | div | 選んだパターンでプログラムの先頭に入る文 |
| `problem-settings-modal-cancel` | button | キャンセル(何も変えない) |
| `problem-settings-modal-ok` | button | 決定(選んだパターンで書く。何も選んでいないときは押せない) |
| `problem-settings-modal-request` | a | ほかの約束を頼む(確かめてから、値を入れたフィードバックのフォームを開く) |

### コンソール拡張機能 (`smalruby-console`)

| data-testid | 要素 | 説明 |
|------------|------|------|
| `smalruby-console-button` | button | ステージの上のコンソールのボタン(拡張機能を使う作品のときだけ) |
| `smalruby-console-button-unread` | span | 隠しているあいだに表示した行の数 |
| `smalruby-console` | div | コンソールの画面 |
| `smalruby-console-lines` / `smalruby-console-line` | div | 行の一覧 / 1 行 |
| `smalruby-console-input` | input | 答えの入力(`入力する` の待ちのあいだだけ) |
| `smalruby-console-clear` / `smalruby-console-close` | button | 行を消す / ステージに戻す |
| `ruby-toolbar-menu-copy-problem-form` | div | 行番号と罫線つきでコピー(日本語モードのみ) |

### Target Selector (`target-selector.jsx`)

| data-testid | 要素 | 説明 |
|------------|------|------|
| `ruby-toolbar-prev-sprite` | button | 前のスプライト |
| `ruby-toolbar-prev-sprite` | button | 前のスプライト(ルビータブのみ。日本語タブには出ない) |
| `ruby-toolbar-next-sprite` | button | 次のスプライト |
| `ruby-toolbar-sprite-search` | input | スプライト検索 |

Expand All @@ -88,11 +124,11 @@ expect(await isActiveByTestId(driver, 'ruby-toolbar-mode-dncl')).toBe(true);
// Playwright MCP の browser_click で ref を使う代わりに、
// browser_evaluate で data-testid を使って操作する
await page.evaluate(() => {
document.querySelector('[data-testid="ruby-toolbar-mode-dncl"]').click();
document.querySelector('[data-testid="gui-tab-japanese"]').click();
});

// または Playwright のロケーターを使う
await page.getByTestId('ruby-toolbar-mode-dncl').click();
await page.getByTestId('gui-tab-japanese').click();
```

## スクリーンショット / 一時ファイルの保存先は `tmp/` 配下
Expand Down Expand Up @@ -124,9 +160,9 @@ http://localhost:8601?no_beforeunload=1&tab=ruby&ruby_version=2&rubyMode=ruby
| Parameter | Values | Description |
|-----------|--------|-------------|
| `no_beforeunload` | `1` | beforeunload ダイアログを無効化(必須) |
| `tab` | `ruby` | Ruby タブを初期表示 |
| `tab` | `ruby`, `japanese` | Ruby タブ / 日本語タブを初期表示 |
| `ruby_version` | `2` | Ruby バージョン |
| `rubyMode` | `ruby`, `furigana`, `dncl` | Ruby タブの初期モード |
| `rubyMode` | `ruby`, `furigana` | Ruby タブの初期モード(前からの `?tab=ruby&rubyMode=dncl` は日本語タブで開く) |
| `features` | カンマ区切り | 隠し機能の有効化(現在は未使用) |

### ✅ `?tab=sounds` で直接アクセスしてよい(issue #633 で crash 修正済み)
Expand Down
6 changes: 6 additions & 0 deletions .claude/rules/scratch-gui/japanese-mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@
受験者が DNCL を知っている前提の問題は出ない。
- 呼び方: 共通テスト用プログラム表記に合わせた書き方は**標準の形**(旧「DNCLv2」。今後はこう呼ばない)。
`を実行する` / `を繰り返す` で閉じ、`かつ` / `または` を使ういまの書き方は**DNCL 風の形**(旧「Smalruby DNCL」)。
- 日本語モードを使うのは**高校ではじめてプログラミングを学ぶ人**。**誤りが出ない作り**にし、出てよい誤りは
**打ちまちがい**(つづり・かっこ・字下げ・全角と半角)くらいにする(正準は `docs/dncl/policy.md` の「誤りの出ない作り」)。
- 日本語で書けないブロック(見た目・動き・音・「聞いて待つ」と「答え」など)は、日本語モードのパレットに出さない。
- 1 つの言葉に 1 つの意味(`表示する` はコンソールだけ、`【外部からの入力】` はコンソールの入力だけ)。
- 人が作ったブロックを、日本語にするために黙って別のブロックに置きかえない。
- 実装とレビューでは、これに反するものを **Must** として扱う。新しい命令・ブロックを足すときは先に確かめる。
- 日本語モードは**プログラムを読む力をつけるための機能**。支える読み方は、公式に多い問われ方の順に、
①行番号と罫線を残したまま読めて動かせる、②行番号で行を指せる、③トレース、④実行回数、⑤空欄・行の差し込みを試せる。
- 「例題」は**公式の資料だけ**(例示・サンプル・試作・本試験・追試験)。非公式は、公式に無い記法の候補探しと、
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,26 @@ jobs:
- name: Run scratch-vm Unit Tests
run: npm run test:unit --workspace=packages/scratch-vm

unit-test-ja-notation:
runs-on: ubuntu-26.04
if: |
(!(
github.ref == 'refs/heads/develop' ||
github.ref == 'refs/heads/master' ||
github.ref == 'refs/heads/main'
))
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
cache: 'npm'
node-version-file: '.nvmrc'
- name: Install Dependencies
uses: ./.github/actions/install-dependencies
# ja-notation は依存なしの ESM なので、ほかのパッケージのビルドは要らない
- name: Run ja-notation Unit Tests
run: npm run test:unit --workspace=packages/ja-notation

unit-test-gui:
runs-on: ubuntu-26.04
if: |
Expand Down
1 change: 1 addition & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ This project uses npm workspaces with the following packages:
- **`packages/scratch-render`**: WebGL-based rendering engine for sprites and backdrops
- **`packages/scratch-svg-renderer`**: SVG processing for vector images
- **`packages/task-herder`**: Asynchronous task queue with throttling and concurrency control
- **`packages/ja-notation`**: Japanese program notation (日本語モード) ⇔ Ruby through syntax trees (MIT, no dependency, ESM source; tests are `node --test` on JSON data)

The `infra/` directory contains AWS CDK infrastructure projects (independent from npm workspaces):

Expand Down
22 changes: 22 additions & 0 deletions docs/design-system/code-tab.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,27 @@
| 見出し(`.backpack-header`) | 上に 0.5rem・枠 `1px solid $ui-black-transparent`・地 `$ui-white`・余白 0.25rem・文字 0.85rem `$text-primary`・中央・右上だけ角丸 `$space`・動き 0.2s | `$color-border`・`$color-surface`・`$font-size-dialog`・`$color-text` |
| 一覧(`.backpack-list`) | 右に `1px solid $ui-black-transparent`・高さ 5.5rem 以上・横にスクロール | |

## コンソールを出しているときの右の列(`japanese-right-column/`・`smalruby-console/`)

見本: [`../dncl/screenshots/0107-right-column-console-1366x768.png`](../dncl/screenshots/0107-right-column-console-1366x768.png)(同意したモックアップの案 C)

**決まり**: **コンソールを使うなら、コンソールだけ。スプライトや背景(ステージ)を使うなら、コンソールは出さない。** コンソールを出しているあいだは、どのタブ(コード・コスチューム・音・ルビー・日本語)でも、コンソールを右の列の高さいっぱいに出し、ステージとスプライト・背景の一覧の代わりにする。一覧は下の 1 行の札の後ろに隠し、札の「スプライトと背景を見る」は、コンソールを隠してステージと一覧を見せる(コンソールと一覧を同時には出さない)。日本語タブのあいだは右の列をいつもコンソールにし、`>_` のボタンをいつも出す(隠すとステージを見せ、一覧は札の後ろのまま)。

**理由**: コンソールとスプライトの一覧を同時に出すと、コンソールを読み書きしているつもりで一覧に触れ、編集の対象が黙って変わる事故(ステージを選ぶ・削除する・ドラッグする)が起きる。日本語モードは、キャラクターを動かさないターミナルのようなプログラムを書く場所([`../dncl/design.md`](../dncl/design.md))なので、右の列をいつもコンソールにし、出力と入力を縦に長く読めるようにする。札は「何が隠れているか」と「いつでも戻れる」ことを見せる。ステージ・スプライトとコンソールを一緒に使う形は、コンソールというより動作のログを扱う画面として別に考える。

| 部分・状態 | 値 | トークン | 理由 |
|---|---|---|---|
| 右の列の幅 | ステージの幅(小 240・中 360・大 480・狭い画面の大 408)にステージの左右の枠(1px ずつ)を足したもの。コンソールを出しても隠しても同じ幅で、旗・止める・`>_` と札が動かない。大きさのボタンの見た目はそのまま、意味を「右の列の幅」に読みかえる | `getStageDimensions` | 新しい部品を足さない。エディタの列の決め方を変えない |
| コンソール(`.console.in-column`) | 右の列の高さいっぱい(上の段と札を除く)・上に `$space` あける・角丸 `$radius-medium`。地は暗い色のまま(ステージに重ねるときと同じ) | `$space`・`$radius-medium` | 端末らしさ。ライト・ダークのどちらでも同じに見える。日本語タブの緑はエディタの帯だけに使う(色の意味を増やさない) |
| [ステージにもどる] | 右の列に出すときは出さない(ステージに重ねる全画面・プレーヤーだけ) | | `>_` と札があるので重ねない |
| `>_` のボタン | 止めるの右。緑の旗・止めると同じ 2rem の四角・角丸 0.25rem・ホバーの地 `$looks-light-transparent`。出しているあいだは「押した」の地 `$looks-transparent`。ツールチップは「コンソールを隠す / コンソールを出す」。隠しているあいだに出た行の数を札で出す | `$radius-small`・`$looks-light-transparent`・`$looks-transparent` | 旗・止めると並ぶ操作として同じ形にする。日本語タブのあいだいつも出すので、閉じて開き直せなくなることが無い |
| `>_` で隠したとき | 右の列の幅のステージを見せる。日本語タブ以外では、いつものステージと一覧に戻る | | キャラクターを動かすプログラムを日本語で試したい人の逃げ道 |
| 入力を待つとき | 日本語タブでは、隠していてもコンソールを出す。ほかのタブでは、隠していればステージの質問の欄で答える(コンソールを出していれば、コンソールで答える) | | 答えられないまま止まるのを防ぐ。ほかのタブの「聞いて待つ」はキャラクターを動かすプログラムに多く、ステージを隠すと動きが見えなくなる |
| 下の札(`.strip`) | 地 `$ui-white`・枠 `1px solid $ui-black-transparent`・角丸 `$radius-medium`・余白 0.375rem 0.625rem・上下に `$space`・文字 `$font-size-small`。名前は太字、「スプライトと背景を見る」は文字リンクの青(`$motion-tertiary`)と下線 | `$color-surface`・`$color-border`・`$color-action`・`$radius-medium`・`$font-size-small` | 白い欄の形(下の「独自の画面で使う形」)。新しい色は足さない。上流の `$motion-primary` は白に 2.9:1 で小さい文字には薄い |
| 札を押したとき | コンソールを出していれば、コンソールを隠してステージと一覧を見せる。日本語タブでコンソールを隠しているときは、その場で一覧を開き(ステージの下)、もう一度押すと閉じる(「スプライトと背景を隠す」)。コンソールを出し直すと一覧は閉じる | | コンソールと一覧を同時に出さない。選んだスプライトの日本語に切りかわり、札の名前も変わる |
| タブを移ったとき | コード・コスチューム・音のタブへ移っても、出し入れの状態はそのまま(出していれば、そのタブでもコンソールだけ)。ルビータブを開くと、いつものステージと一覧に戻る(`>_` で出せば、ルビータブでもコンソールだけ) | | 人が隠したもの・出したものを勝手に変えない |
| スマホ(MobileGui) | 札は出さない(MobileSpritePanel が同じ役割)。`>_` は再生の画面(全画面)でだけ出す。右の列のほかの形はここでは扱わない(別に決める) | | 編集中の右の列は幅 0 で、画面の外に描かれていた |

## スモウルビーの追加

上流の値とは分けて記録する。マーカーは `=== Smalruby: ... ===`(一覧は [`../maintenance/smalruby-markers-gui.md`](../maintenance/smalruby-markers-gui.md))。
Expand All @@ -235,6 +256,7 @@
| 低い画面での圧縮 | 高さ 800px 以下で、タブの並びを 2.25rem(36px)に縮める | `gui.css` | `narrow-height vertical chrome compression` |
| iPad の縦向き | 幅 744〜1023px でエディターの列を縮められるようにし、ステージを「小」にする | `gui.css`・`gui.jsx` | `iPad portrait narrow desktop layout` ほか |
| レッスンの課題バー | メニューバーの下に 2.5rem の帯を出し、本体をその分縮める | `gui.css` | `lesson mode` |
| コンソールを出しているときの右の列 | コンソールを右の列の高さいっぱいに出し、スプライトと背景の一覧を札の後ろに隠す(上の「コンソールを出しているときの右の列」)。コンソールを出しているあいだはステージを `display: none` にする(どのタブでも) | `gui.jsx`・`stage.jsx`・`stage.css`・`containers/stage.jsx` | `Japanese right column`(`gui.jsx`)・`console` |
| アラートの重なり順 | `$z-index-alerts` を 490 → 520 にして、アラート(`.alerts-container`)をモーダル(510)より上に出す(クラスのセッション切れを見せるため。[`tokens.md`](tokens.md) の「スモウルビーとの差」) | `css/z-index.css` | `alerts above modals so session-expired is visible` |

## 独自の画面で使う形
Expand Down
Loading
Loading