Skip to content

feat: add in-page browser DevTools via Eruda#48

Open
sergioestebance wants to merge 1 commit intomainfrom
worktree-moonlit-whistling-octopus
Open

feat: add in-page browser DevTools via Eruda#48
sergioestebance wants to merge 1 commit intomainfrom
worktree-moonlit-whistling-octopus

Conversation

@sergioestebance
Copy link
Contributor

Summary

  • Bundle Eruda (eruda.min.js) and inject it into every WKWebView page load via WKUserScript
  • Add a toggle button (hammer icon) in the browser nav bar and Cmd+Option+I keyboard shortcut to show/hide the DevTools panel per-tab
  • Add ErudaScript helper enum with testable pure-logic script generation (init, show, hide, toggle)

Test plan

  • Unit tests for script generation (BrowserDevToolsTests.swift)
  • Manual: open a browser tab, click the hammer icon — Eruda panel appears at page bottom
  • Manual: press Cmd+Option+I to toggle DevTools
  • Manual: navigate to a new URL — Eruda re-injects automatically
  • Manual: verify DevTools state is independent across tabs

Inject bundled eruda.min.js into every WKWebView page load so
developers can inspect Console, Elements, Network, and Sources
without leaving Kanban Code. A toggle button (hammer icon) and
Cmd+Option+I shortcut control visibility per-tab.
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