mirror of
https://github.com/stack-auth/stack.git
synced 2026-07-03 21:02:05 +08:00
## Summary - Forward Babel/JSX compile errors, runtime throws, and unhandled rejections from the AI dashboard sandbox iframe to the parent composer via `postMessage`, so users see actionable errors instead of a blank preview - Compile AI-generated dashboard source explicitly with `Babel.transform` + try/catch (stored in `text/plain` to avoid Babel's auto-handler swallowing parse errors) and add `crossorigin="anonymous"` on the Babel script for readable cross-origin error messages - Switch authenticated smart-tier model from `moonshotai/kimi-k2.6:nitro` to `x-ai/grok-build-0.1` ## Test plan - [ ] Generate a dashboard with valid AI code and confirm the preview still renders - [ ] Generate a dashboard with invalid JSX and confirm the composer shows the compile error (not a blank iframe) - [ ] Trigger a runtime error in generated dashboard code and confirm it reaches the parent error boundary - [ ] Verify authenticated smart-tier requests route to `x-ai/grok-build-0.1` Made with [Cursor](https://cursor.com) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Embedded dashboards now show a clear “Dashboard failed to compile” message on compilation errors instead of a blank iframe. * Dashboard runtime errors and unhandled promise rejections are captured earlier and forwarded to the parent for improved visibility. * **Updates** * The authenticated AI model used for the "smart" quality has been changed, affecting model selection for authenticated requests. <!-- review_stack_entry_start --> [](https://app.coderabbit.ai/change-stack/hexclave/stack-auth/pull/1476?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack) <!-- review_stack_entry_end --> <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|---|---|---|
| .. | ||
| assistant-ui | ||
| commands | ||
| data-table | ||
| design-components | ||
| form-fields | ||
| pacifica | ||
| payments | ||
| rule-builder | ||
| stack-companion | ||
| ui | ||
| vibe-coding | ||
| walkthrough | ||
| app-square.tsx | ||
| app-store-entry.tsx | ||
| app-warning-modal.tsx | ||
| cmdk-commands.tsx | ||
| cmdk-search.tsx | ||
| code-block.tsx | ||
| confetti.tsx | ||
| copyable-text.tsx | ||
| country-code-select.tsx | ||
| dev-error-notifier.tsx | ||
| dialog-opener.tsx | ||
| editable-grid.tsx | ||
| editable-input.tsx | ||
| email-preview.tsx | ||
| email-theme-selector.tsx | ||
| email-verification-setting.tsx | ||
| entity-kpi-cards.tsx | ||
| env-keys.tsx | ||
| error-page.tsx | ||
| export-users-dialog.tsx | ||
| feedback-form.tsx | ||
| form-dialog.tsx | ||
| form-fields.tsx | ||
| illustrated-info.tsx | ||
| inline-code.tsx | ||
| inline-save-discard.tsx | ||
| link.tsx | ||
| logo-upload.tsx | ||
| logo.tsx | ||
| metadata-editor.tsx | ||
| navbar.tsx | ||
| permission-field.tsx | ||
| project-card.tsx | ||
| project-switcher.tsx | ||
| project-transfer-confirm-view.tsx | ||
| project-users-metric.tsx | ||
| repeating-input.tsx | ||
| resizable-container.tsx | ||
| router.tsx | ||
| search-bar.tsx | ||
| settings.tsx | ||
| site-loading-indicator.tsx | ||
| smart-form.tsx | ||
| smart-image.tsx | ||
| stack-companion.tsx | ||
| stepper.tsx | ||
| streaming-code-viewer.tsx | ||
| stripe-wordmark.tsx | ||
| style-link.tsx | ||
| theme-toggle.tsx | ||
| user-dialog.tsx | ||
| user-dialogs.tsx | ||
| version-alerter.tsx | ||