You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1.**`src/browser_panel/page/backend.js`** — Injected into the inspected page. Hooks Turbo/Stimulus APIs and observes DOM. Sends messages via `window.postMessage`.
3.**`src/background.js`** — Central router. Injects proxy into the target tab when the panel opens, pipes messages bidirectionally, manages tab lifecycle.
`src/browser_panel/State.svelte.js` holds all reactive global state using Svelte 5 runes (`$state`). Incoming backend messages (handled in `messaging.js`) update this state, which automatically re-renders components.
50
+
`src/panel/State.svelte.js` holds all reactive global state using Svelte 5 runes (`$state`). Incoming backend messages (handled in `messaging.js`) update this state, which automatically re-renders components.
39
51
40
52
### Backend Observers
41
53
42
-
Each feature has a dedicated observer class in `src/browser_panel/page/`:
54
+
Each feature has a dedicated observer class in `src/page/observers/`:
43
55
-`turbo_frame_observer.js` — tracks `<turbo-frame>` elements
@@ -62,9 +74,11 @@ All message type constants live in `src/lib/constants.js`. Two directions:
62
74
```
63
75
$src/ → src/
64
76
$uikit/ → src/uikit/
65
-
$components/ → src/components/
77
+
$components/ → src/panel/components/
66
78
$utils/ → src/utils/
67
79
$lib/ → src/lib/
80
+
$panel/ → src/panel/
81
+
$page/ → src/page/
68
82
```
69
83
70
84
### Svelte 5 Runes
@@ -81,6 +95,6 @@ This project uses Svelte 5 rune syntax exclusively — no legacy Svelte 4 patter
81
95
-**svelte-splitpanes** — resizable panels
82
96
-**highlight.js** — syntax highlighting in logs
83
97
84
-
### Legacy Code
98
+
### Page-Level Features
85
99
86
-
`src/popup.js` and `src/content.js`are legacy popup-based features being phased out. All new development goes in `src/browser_panel/`.
100
+
`src/popup.js` and `src/page/content.js`provide features that work without opening DevTools: on-page frame/controller highlighting, console event logging, and diagnostics warnings. These are configured via the extension popup. New debugging features should go in `src/panel/`.
0 commit comments