-
Notifications
You must be signed in to change notification settings - Fork 105
refactor(hub): hide rivetkit related tabs from ui #2724
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
base: main
Are you sure you want to change the base?
Conversation
WalkthroughThe changes comment out the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant UI
participant ActorFeatureLogic
User->>UI: Navigate to Actor page
UI->>ActorFeatureLogic: Request available features for actor
ActorFeatureLogic-->>UI: Return features (State, Connections, Metrics hidden)
UI-->>User: Render actor UI without State, Connections, Metrics tabs
Assessment against linked issues
Assessment against linked issues: Out-of-scope changes
Poem
✨ Finishing Touches
🪧 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 (
|
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: Hide RivetKit Related Tabs from UI![]() Review Tasks:
SummaryThis PR refactors the actor UI by commenting out several RivetKit-related features to hide them from the interface. The changes primarily affect the tabs/features available in the actor detail views. Code Review✅ Positive Aspects
|
Deploying rivet with
|
Latest commit: |
8301911
|
Status: | ✅ Deploy successful! |
Preview URL: | https://f68eb327.rivet.pages.dev |
Branch Preview URL: | https://07-07-refactor-hub-hide-rive.rivet.pages.dev |
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.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
frontend/apps/hub/src/routes/_authenticated/_layout/projects/$projectNameId/environments/$environmentNameId._v2/actors.tsx
(2 hunks)frontend/packages/components/src/actors/actor-context.tsx
(2 hunks)frontend/packages/components/src/actors/actor-network.tsx
(1 hunks)
🔇 Additional comments (4)
frontend/packages/components/src/actors/actor-network.tsx (1)
87-89
: LGTM - Good UI improvement for long hostnamesThe span wrapper with truncation classes is consistent with the existing pattern used for URLs and effectively handles hostname overflow in the UI.
frontend/apps/hub/src/routes/_authenticated/_layout/projects/$projectNameId/environments/$environmentNameId._v2/actors.tsx (1)
40-42
: Verify feature consistency between ActorNotFound and ActorsActorEmptyDetailsThe ActorNotFound component has
ActorFeature.Metrics
commented out, but the ActorsActorEmptyDetails component (lines 103-104) does not. This creates an inconsistency where metrics might be available in one context but not the other.Confirm whether this difference in feature availability is intentional or if both components should have consistent feature sets.
frontend/packages/components/src/actors/actor-context.tsx (2)
418-418
: Clarify the fallback feature configurationThe fallback case adds
ActorFeature.Metrics
explicitly, which contradicts its removal fromcommonActorFeatures
. This creates inconsistent behavior where actors without the framework tag have more features than those with it.Confirm whether this is the intended behavior or if the fallback should use
commonActorFeatures
without the additional Metrics feature.
412-415
: No unintended functionality disabled
Verified that commenting out these ActorFeature flags only prevents the corresponding tabs/UI inactors-actor-details.tsx
(and related components) from rendering for non-manager framework actors, which aligns with the PR’s goal of hiding rivetkit-related tabs. Core logic remains unchanged.Affected flags and their usages:
- ActorFeature.Connections → Controls “Connections” tab
- ActorFeature.State → Controls “State” tab
- ActorFeature.Console → Controls “Console” tab
- ActorFeature.InspectReconnectNotification → Controls reconnect-notification behavior
No further changes required.
// ActorFeature.Metrics, | ||
// ActorFeature.InspectReconnectNotification, |
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.
Inconsistent Metrics feature availability
There's a logical inconsistency in the feature configuration:
commonActorFeatures
excludesActorFeature.Metrics
(commented out here)- The fallback return at line 418 explicitly includes
ActorFeature.Metrics
This means actors without the framework tag will have Metrics available, while those with the framework tag will not. This seems counterintuitive.
🤖 Prompt for AI Agents
In frontend/packages/components/src/actors/actor-context.tsx around lines 391 to
392, the ActorFeature.Metrics is commented out in commonActorFeatures but
included in the fallback return at line 418, causing inconsistent availability
of the Metrics feature. To fix this, ensure ActorFeature.Metrics is either
consistently included or excluded in both places depending on the intended
behavior, so that actors with and without the framework tag have a consistent
feature set regarding Metrics.
Deploying rivet-hub with
|
Latest commit: |
8301911
|
Status: | ✅ Deploy successful! |
Preview URL: | https://6c4a34be.rivet-hub-7jb.pages.dev |
Branch Preview URL: | https://07-07-refactor-hub-hide-rive.rivet-hub-7jb.pages.dev |
Graphite Automations"Test" took an action on this PR • (07/07/25)1 assignee was added to this PR based on Kacper Wojciechowski's automation. |
Changes
Closes FRONT-694
Summary by CodeRabbit