Skip to content

fix(dashboard): frontend error handling from CodeRabbit review#83

Merged
justinjdev merged 2 commits intofeat/command-dashboardfrom
worktree-fellowship-fix-frontend-errors
Mar 21, 2026
Merged

fix(dashboard): frontend error handling from CodeRabbit review#83
justinjdev merged 2 commits intofeat/command-dashboardfrom
worktree-fellowship-fix-frontend-errors

Conversation

@justinjdev
Copy link
Copy Markdown
Owner

Summary

  • Await res.json() in all 5 read helpers (fetchErrands, fetchTome, fetchAutopsies, fetchConfig, fetchCommands) so JSON parse errors are caught by surrounding try/catch instead of escaping as unhandled promise rejections
  • Add synchronous (non-reactive) submitting guard in GateActions.svelte to prevent duplicate approve/reject submissions on rapid double-click
  • Restructure QuestCard.svelte so gate action buttons are siblings of the clickable card link rather than nested inside it, fixing interactive element nesting. Also guard against empty quest.worktree

Test plan

  • svelte-check passes (1 pre-existing error in unrelated file)
  • vite build succeeds
  • Manual: verify gate approve/reject buttons still work on quest cards
  • Manual: verify command palette retains input on failed commands

🤖 Generated with Claude Code

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Mar 21, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 5299380a-41bc-4803-8d84-890ffd920ed2

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch worktree-fellowship-fix-frontend-errors

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@justinjdev justinjdev marked this pull request as ready for review March 21, 2026 22:47
justinjdev and others added 2 commits March 21, 2026 17:48
…parsing

- Add Adversarial phase to PhaseTimeline.svelte phases array so progress
  bar renders correctly during adversarial review
- Fix quests.ts to extract .quests array from eagles API response object
  instead of treating the whole response as the array

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ments

- Await res.json() in all read helpers so JSON parse errors are caught
  by surrounding try/catch instead of escaping as unhandled rejections
- Add synchronous (non-reactive) submitting guard in GateActions to
  prevent duplicate approve/reject submissions on rapid double-click
- Restructure QuestCard to render gate action buttons as siblings of the
  clickable card link rather than nested inside it, fixing interactive
  element nesting. Also guard against empty worktree prop.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@justinjdev justinjdev force-pushed the worktree-fellowship-fix-frontend-errors branch from 27f6a0e to 89f51d0 Compare March 21, 2026 22:49
@justinjdev justinjdev merged commit ef69faa into feat/command-dashboard Mar 21, 2026
@justinjdev justinjdev deleted the worktree-fellowship-fix-frontend-errors branch March 21, 2026 22:49
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.

1 participant