fix: load aurrent actor if its outside of current pagination window - #2772
fix: load aurrent actor if its outside of current pagination window#2772jog1t wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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. |
|
Claude finished @jog1t's task —— View job PR Review CompleteThis PR fixes an issue where actors outside the current pagination window need to be loaded individually when selected. The implementation adds functionality to detect when a current actor is not present in the paginated results and loads it separately. Todo List:
Review Feedback✅ Code Quality & Architecture
|
WalkthroughThe updates introduce a modularized approach to managing actor state in the frontend, centralizing logic for actor queries, mutations, and UI state. A new global atom tracks the loading and error state for the current actor query, and UI components now reflect loading states with appropriate indicators. The Vite configuration is simplified by removing unused MDX plugin logic. Additionally, a large actor-core package is added and a previously used preparation script is removed. Changes
Sequence Diagram(s)sequenceDiagram
participant UI
participant ActorsProvider
participant Store
participant QueryObserver
participant Atom
UI->>ActorsProvider: Render with actorId
ActorsProvider->>Store: Check if actorId in actors list
alt Actor not found
ActorsProvider->>QueryObserver: Fetch actor by actorId
QueryObserver-->>ActorsProvider: Return actor data
ActorsProvider->>Store: mountActor (create atoms, update store)
else Actor found
ActorsProvider->>Store: Use existing actor
end
ActorsProvider->>Atom: Update currentActorQueryAtom (loading/error)
UI->>Atom: Read currentActorQueryAtom
alt isLoading
UI->>UI: Show ShimmerLine
else Not loading
UI->>UI: Show Not Found or Actor UI
end
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (8)
💤 Files with no reviewable changes (2)
✅ Files skipped from review due to trivial changes (2)
🚧 Files skipped from review as they are similar to previous changes (4)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Graphite Automations"Test" took an action on this PR • (07/18/25)1 assignee was added to this PR based on Kacper Wojciechowski's automation. |
Deploying rivet-hub with
|
| Latest commit: |
d06b122
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://f82b0f19.rivet-hub-7jb.pages.dev |
| Branch Preview URL: | https://07-18-fix-load-aurrent-actor.rivet-hub-7jb.pages.dev |
7e39898 to
d06b122
Compare
|
Claude finished @jog1t's task —— View job PR Code Review CompleteTodo List:
This PR fixes an issue where actors outside the current pagination window need to be loaded individually when selected. The implementation adds functionality to detect when a current actor is not present in the paginated results and loads it separately. Review Feedback✅ Code Quality & Architecture
|
Merge activity
|
…2772) <!-- Please make sure there is an issue that this PR is correlated to. --> ## Changes <!-- If there are frontend changes, please include screenshots. --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Improved handling of loading and error states when accessing actor details, providing clearer feedback to users during data retrieval. * Introduced a loading indicator (shimmer effect) when actor information is being fetched, replacing the static "not found" message. * Ensured the current actor is always included in the actors list for consistent state management. * **Style** * Enhanced the display of hostnames in the network ports list for better text truncation and layout. * **Chores** * Updated internal configuration by removing unused MDX plugin settings. * Added local packaging of core actor functionality for streamlined dependency management. * Removed deprecated development script for actor-core preparation. <!-- end of auto-generated comment: release notes by coderabbit.ai -->

Changes
Summary by CodeRabbit
New Features
Style
Chores