Skip to content

Conversation

@takaokouji
Copy link

Summary

This PR implements Phase 2 of issue #489 by adding a 'Learn' button to the MenuBar that links to external learning resources. It also restores the icon--tutorials.svg which was unintentionally deleted in Phase 1.

Implementation details

  • Restored src/lib/assets/icon--tutorials.svg.
  • Added 'Learn' button to MenuBar that links to the Smalruby study wiki: https://github.com/smalruby/smalruby.jp/wiki/study.
  • Added handleClickLearn method to MenuBar to open the link in a new tab.
  • Added learn message to ariaMessages and updated styles to handle the new label.

Test coverage

  • Ran npm run test:lint and it passed.
  • Ran npm run test:unit and it passed (63 test suites, 653 tests).

Usage examples

The 'Learn' button is now visible in the MenuBar. Clicking it opens the Smalruby study wiki in a new tab.

Co-Authored-By: Gemini noreply@google.com

takaokouji and others added 2 commits January 1, 2026 13:39
- Restored src/lib/assets/icon--tutorials.svg
- Added 'Learn' button to MenuBar that links to the Smalruby study wiki
- Added handleClickLearn method to MenuBar to open the link in a new tab
- Added learn message to ariaMessages and updated styles

Co-Authored-By: Gemini <noreply@google.com>
- Added 'gui.menuBar.learn' to ja.js, ja-Hira.js, and en.js

Co-Authored-By: Gemini <noreply@google.com>
@takaokouji takaokouji merged commit 4cd6c7f into develop Jan 1, 2026
2 checks passed
@takaokouji takaokouji deleted the feat/issue-489-add-learn-menu branch January 1, 2026 05:15
github-actions bot pushed a commit that referenced this pull request Jan 1, 2026
…9-add-learn-menu

feat: add 'Learn' menu button and restore tutorials icon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants