Skip to content

Fix folder display on SPA navigation to Actions tab#10

Merged
kimuchanman merged 1 commit intomainfrom
feat/folders-on-top
Feb 26, 2026
Merged

Fix folder display on SPA navigation to Actions tab#10
kimuchanman merged 1 commit intomainfrom
feat/folders-on-top

Conversation

@kimuchanman
Copy link
Owner

Summary

  • Actions タブへの SPA ナビゲーション(Turbo Drive)でフォルダ表示が動作しない問題を修正
  • content script の matches パターンを /*/*/actions*/*/* に変更し、リポジトリ配下の全ページで注入されるようにした
  • isActionsPage() ガードを追加し、Actions ページ以外では処理をスキップ
  • ESLint globals に location を追加

Test plan

  • https://github.com/bm-sms/xuan のトップページから Actions タブをクリックし、フォルダ表示されることを確認
  • https://github.com/bm-sms/xuan/actions を直接リロードし、従来通りフォルダ表示されることを確認
  • Actions 以外のページ(Code, Issues 等)で拡張が誤動作しないことを確認
  • npm run lint / npm test がパスすることを確認

🤖 Generated with Claude Code

Broaden content script match pattern from /*/*/actions* to /*/* so
the script is injected on all repository pages. Add isActionsPage()
guard so processing only runs on Actions pages. This ensures the
MutationObserver and Turbo event listeners are active when users
navigate to the Actions tab via SPA (Turbo Drive) instead of a full
page load.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@kimuchanman kimuchanman marked this pull request as ready for review February 26, 2026 03:30
@kimuchanman kimuchanman merged commit 5abc469 into main Feb 26, 2026
3 checks passed
@kimuchanman kimuchanman deleted the feat/folders-on-top branch February 26, 2026 03:30
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.

1 participant