-
Notifications
You must be signed in to change notification settings - Fork 147
fix(dashboard): display support dropdown on actor error #3980
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
Conversation
|
🚅 Deployed to the rivet-pr-3980 environment in rivet-frontend
|
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
How to use the Graphite Merge QueueAdd the label merge-queue to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Pull Request ReviewSummaryThis PR fixes navigation issues in the context switcher and improves UI components for the actor unavailable screen. Overall, the changes are solid and address real UX issues, but there are a few areas that need attention. Issues Found🔴 Critical: Type Safety Issue in
|
More templates
@rivetkit/cloudflare-workers
@rivetkit/db
@rivetkit/framework-base
@rivetkit/next-js
@rivetkit/react
rivetkit
@rivetkit/sql-loader
@rivetkit/virtual-websocket
@rivetkit/engine-runner
@rivetkit/engine-runner-protocol
commit: |
8aa0f90 to
470992d
Compare
d96ece2 to
213eb7b
Compare
Graphite Automations"Test" took an action on this PR • (01/20/26)1 assignee was added to this PR based on Kacper Wojciechowski's automation. |
213eb7b to
a1d74b9
Compare
Merge activity
|
| export type RivetActorError = | ||
| | string | ||
| | null | ||
| | object | ||
| | { runner_id: string } | ||
| | { serverless_http_error: unknown } | ||
| | { serverless_connection_error: unknown } | ||
| | { serverless_invalid_sse_payload: unknown }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The RivetActorError type definition has formatting issues. Fix by ensuring consistent spacing around the pipe (|) operators and adding a newline at the end of the file. Also, the 'object' type is too generic - it should be more specific or removed if redundant with the other object types listed.
Spotted by Graphite Agent (based on CI logs)
Is this helpful? React 👍 or 👎 to let us know.
| import { useQuery } from "@tanstack/react-query"; | ||
| import { formatISO } from "date-fns"; | ||
| import { isObject } from "lodash"; | ||
| import { match, P } from "ts-pattern"; | ||
| import { CodePreview } from "../code-preview/code-preview"; | ||
| import { RelativeTime } from "../relative-time"; | ||
| import { | ||
| Accordion, | ||
| AccordionContent, | ||
| AccordionItem, | ||
| AccordionTrigger, | ||
| } from "../ui/accordion"; | ||
| import { ScrollArea } from "../ui/scroll-area"; | ||
| import { Code } from "../ui/typography"; | ||
| import { useDataProvider } from "./data-provider"; | ||
| import type { ActorId, ActorStatus } from "./queries"; | ||
| import { RivetActorError } from "@/queries/types"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The imports appear to be unsorted or improperly organized. The removal of the Rivet import and addition of RivetActorError import may need to be properly sorted according to the project's import ordering rules.
Spotted by Graphite Agent (based on CI logs)
Is this helpful? React 👍 or 👎 to let us know.
Closes FRONT-917 ### TL;DR Fixed navigation issues in context switcher and improved UI components for better user experience. ### What changed? - Fixed context switcher navigation by calling `onClose()` before navigation to prevent UI glitches - Added a "Need help?" button with a help dropdown to the actor unavailable screen - Improved error details accordion styling with proper padding - Enhanced popover animation by adding `fill-mode-forwards` to prevent flickering during transitions - Removed unused Rivet type import from actor-status-label ### How to test? 1. Test the context switcher by creating new projects and namespaces - verify the dropdown closes properly before navigation 2. Check the actor unavailable screen to ensure the help button appears and functions correctly 3. Verify error details accordion displays properly with correct padding 4. Test popovers throughout the application to ensure smooth animations without flickering ### Why make this change? These changes address several UI/UX issues: - The context switcher was not properly closing before navigation, causing visual glitches - Users needed more guidance when encountering unavailable actors - Error details display needed better spacing for readability - Popover animations were flickering during transitions due to missing animation properties
| onClose?.(); | ||
| return navigate({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This creates a floating promise. Either remove the 'return' keyword or use 'void' operator: onClose?.(); void navigate({...});
Spotted by Graphite Agent (based on CI logs)
Is this helpful? React 👍 or 👎 to let us know.

Closes FRONT-917
TL;DR
Fixed navigation issues in context switcher and improved UI components for better user experience.
What changed?
onClose()before navigation to prevent UI glitchesfill-mode-forwardsto prevent flickering during transitionsHow to test?
Why make this change?
These changes address several UI/UX issues: