feat(studio): add debug indicator with error capture and copy bundle - #267
Open
SaadNiaziDev wants to merge 3 commits into
Open
feat(studio): add debug indicator with error capture and copy bundle#267SaadNiaziDev wants to merge 3 commits into
SaadNiaziDev wants to merge 3 commits into
Conversation
- Add DebugBar component as a floating bottom-left indicator (Next.js style) - Add captured-errors composable with onErrorCaptured wired in App.vue - Copy bundle action exports route, user, boot, and captured error stacks - Red dot on trigger badge when errors are present - Indicator always visible in dev, close collapses to badge only - Add studio-debug.ts with isStudioDebugBarAvailable guard - Add unit tests for availability helper Closes hapyco#250 Co-authored-by: Cursor <cursoragent@cursor.com>
SaadNiaziDev
marked this pull request as draft
September 3, 2026 15:20
Co-authored-by: Cursor <cursoragent@cursor.com>
SaadNiaziDev
marked this pull request as ready for review
September 3, 2026 18:19
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #250
Adds a dev-only Studio debug indicator — a floating badge in the bottom-left corner (Next.js style) that expands into a contextual debug panel.
What's included
Indicator
dbadge fixed to bottom-left, only rendered whenimport.meta.env.DEVis trueDebug panel
Error capture
onErrorCapturedwired atApp.vueroot — uncaught Vue component errors are collected (up to 5, newest first)Copy bundle
Files
features/debug/DebugBar.vue— componentfeatures/debug/captured-errors.ts— shared error capture composablefeatures/debug/studio-debug.ts—isStudioDebugBarAvailableguardfeatures/debug/index.ts— barrelapp/App.vue— mounts<DebugBar>and wiresonErrorCaptured