Skip to content

Conversation

@arukompas
Copy link
Contributor

Summary

Refactored Laravel stack trace visualization into a dedicated component to fix performance issues and improve code organization.

Changes

  • New component: LaravelStackTraceDisplay.vue with computed property for single-parse optimization
  • Performance fix: Eliminated 7+ redundant getStackTraceData() calls per log entry (~85% reduction)
  • UX improvement: Moved Stack Trace tab before Raw tab for easier access
  • Error handling: Added try-catch for graceful fallback on malformed traces
  • Code quality: Extracted 50+ lines of parsing logic for better maintainability

Before/After

Before: Regex parsing executed 7+ times per log (every template interpolation)
After: Stack trace parsed once via Vue computed property

Testing

  • Built successfully with npm run dev
  • Follows existing component patterns (MailTextPreview, etc.)

@arukompas arukompas self-assigned this Oct 18, 2025
@arukompas arukompas merged commit 8a6f6a3 into main Oct 18, 2025
26 checks passed
@arukompas arukompas deleted the refactor/laravel-stack-trace-display-improvements branch October 18, 2025 08:41
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.

2 participants