Commit 02f510f
feat: add comprehensive GraphQL debug dashboard with VFS inspection (#42)
* feat: add comprehensive GraphQL debug dashboard
- Add new debug endpoint at /_nitro/graphql/debug
- Display environment, scanned files, and runtime info
- Show resolver exports with color-coded type badges
- Add virtual module inspection
- Implement GraphQL brand colors and professional design
- Support scrollable lists for large resolver counts
- Add JSON API endpoint with ?format=json
Features:
- Color-coded resolver types (query/mutation/type/directive)
- Unique symbols for each resolver type
- Tailwind CSS v4 with custom scrollbars
- GraphQL pink (#E535AB) brand theming
- Responsive grid layouts
- File path listings for schemas and documents
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* feat: display generated virtual module source code in debug dashboard
- Add virtualModules field to debugInfo with generated code
- Create expandable/collapsible details for each virtual module
- Show module statistics (line count, byte size)
- Add copy-to-clipboard functionality for each module
- Color-code modules by type (schemas, resolvers, directives, config)
- Display modules:
- server-schemas (blue)
- server-resolvers (GraphQL pink)
- server-directives (amber)
- module-config (purple)
- graphql-config (emerald)
Improvements:
- Users can now inspect generated VFS code at runtime
- Each module shows size and line count
- One-click copy functionality
- Scrollable code blocks with max-height
- Professional color coding matching resolver types
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* fix: use actual virtual module source code instead of runtime samples
- Fix virtualModules field to use debugInfo.virtualModules (string code)
- Rename runtime sample data to virtualModuleSamples
- Add null check for virtualModules to prevent errors
- Now displays actual generated TypeScript/JavaScript code
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* fix: resolve TypeScript type errors in virtual modules and debug route
- Add type casting for virtual module generators (as string)
- Add explicit any types for import map parameters
- Fix Promise<string> | string type conflicts
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent fb03474 commit 02f510f
File tree
5 files changed
+806
-98
lines changed- src
- routes
5 files changed
+806
-98
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
226 | 244 | | |
227 | 245 | | |
228 | | - | |
229 | 246 | | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
246 | 267 | | |
247 | 268 | | |
248 | 269 | | |
| |||
292 | 313 | | |
293 | 314 | | |
294 | 315 | | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
295 | 326 | | |
296 | 327 | | |
297 | 328 | | |
| |||
0 commit comments