feat(dashboard): toggle assistant active/paused from list#2974
Conversation
Convert the read-only StatusBadge on the assistants list into a Switch that calls assistants.update with the new status. Optimistic update patches all cached list queries; on error the snapshots are restored and the list is invalidated. Closes AGE-2471
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review to trigger a review and subscribe this PR to future pushes, or @claude review once for a one-time review.
Tip: disable this comment in your organization's Code Review settings.
🦋 Changeset detectedLatest commit: 20587e2 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 59d811f430
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Drop optimistic cache patching in favour of disabling the switch while the mutation is in flight, then invalidating the list on success. This prevents out-of-order resolutions on rapid clicks (Codex P1). Hoist stopLinkNavigation to module scope.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ec29dc7f91
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Summary
StatusToggle) that callsassistants.updatewith the new status.assistants.listqueries optimistically; restore the snapshots and invalidate the list on error.Closes AGE-2471
✻ Clauded...