Skip to content

Error handling in playground panel #2440

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Apr 21, 2025
Merged

Error handling in playground panel #2440

merged 13 commits into from
Apr 21, 2025

Conversation

burieberry
Copy link
Contributor

@burieberry burieberry commented Apr 15, 2025

Changes:

  • handle indexing errors for playground the same way it's handled for interact mode and code-mode preview -- using cardResource's cardError property and displaying last known good state via error meta

  • refactor error processing in store -- added handling for serialization error type CardError (not sure how often this might happen, but previously came across this when previously there was a bug where playground was trying to create card in realm in which the user did not have permissions in)

  • when deleting a card, remove it from playground local storage if it was saved there

Copy link

github-actions bot commented Apr 15, 2025

Host Test Results

  1 files  ±0    1 suites  ±0   31m 30s ⏱️ +32s
949 tests +3  943 ✅ +3  6 💤 ±0  0 ❌ ±0 
956 runs  +3  950 ✅ +3  6 💤 ±0  0 ❌ ±0 

Results for commit 4522219. ± Comparison against base commit 7ef9235.

♻️ This comment has been updated with latest results.

@burieberry burieberry force-pushed the cs-8414-code-mode-errors branch from e597cda to 4522219 Compare April 18, 2025 14:08
@burieberry burieberry marked this pull request as ready for review April 18, 2025 14:22
@burieberry burieberry requested review from a team and habdelra April 18, 2025 14:25
@burieberry burieberry merged commit 4eb88df into main Apr 21, 2025
62 checks passed
@burieberry burieberry deleted the cs-8414-code-mode-errors branch April 21, 2025 14:37
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