Skip to content

feat(dashboard): toggle assistant active/paused from list#2974

Merged
danielkov merged 4 commits into
mainfrom
daniel/age-2471-make-activeinactive-badge-a-toggle-switch-on-assistant-page
May 21, 2026
Merged

feat(dashboard): toggle assistant active/paused from list#2974
danielkov merged 4 commits into
mainfrom
daniel/age-2471-make-activeinactive-badge-a-toggle-switch-on-assistant-page

Conversation

@danielkov
Copy link
Copy Markdown
Contributor

Summary

  • Replace the read-only active/paused badge on each assistant card with an interactive Switch (StatusToggle) that calls assistants.update with the new status.
  • Patch all cached assistants.list queries optimistically; restore the snapshots and invalidate the list on error.
  • Clicking the switch no longer navigates into the assistant detail page (event propagation is stopped at the wrapper).

Closes AGE-2471

✻ Clauded...

danielkov added 2 commits May 21, 2026 00:10
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
@danielkov danielkov requested review from a team as code owners May 20, 2026 23:10
@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 20, 2026

AGE-2471

Copy link
Copy Markdown

@claude claude Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 20, 2026

🦋 Changeset detected

Latest commit: 20587e2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
dashboard Patch

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

@vercel
Copy link
Copy Markdown

vercel Bot commented May 20, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
gram-docs-redirect Ready Ready Preview, Comment May 21, 2026 12:30am

Request Review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread client/dashboard/src/pages/assistants/Assistants.tsx
Comment thread client/dashboard/src/pages/assistants/Assistants.tsx Outdated
Comment thread client/dashboard/src/pages/assistants/Assistants.tsx Outdated
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.
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread client/dashboard/src/pages/assistants/Assistants.tsx
@danielkov danielkov removed this pull request from the merge queue due to a manual request May 21, 2026
@danielkov danielkov added this pull request to the merge queue May 21, 2026
Merged via the queue into main with commit 85790f1 May 21, 2026
33 checks passed
@danielkov danielkov deleted the daniel/age-2471-make-activeinactive-badge-a-toggle-switch-on-assistant-page branch May 21, 2026 00:40
@github-actions github-actions Bot locked and limited conversation to collaborators May 21, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants