Skip to content

feat: dev toolbar#4325

Open
jog1t wants to merge 1 commit intomainfrom
02-27-feat_dev_toolbar
Open

feat: dev toolbar#4325
jog1t wants to merge 1 commit intomainfrom
02-27-feat_dev_toolbar

Conversation

@jog1t
Copy link
Contributor

@jog1t jog1t commented Feb 27, 2026

Description

Please include a summary of the changes and the related issue. Please also include relevant motivation and context.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

@railway-app
Copy link

railway-app bot commented Feb 27, 2026

🚅 Deployed to the rivet-pr-4325 environment in rivet-frontend

Service Status Web Updated (UTC)
website 😴 Sleeping (View Logs) Web Feb 27, 2026 at 9:53 pm
frontend-inspector 😴 Sleeping (View Logs) Web Feb 27, 2026 at 9:32 pm
frontend-cloud ❌ Build Failed (View Logs) Web Feb 27, 2026 at 9:26 pm
mcp-hub ✅ Success (View Logs) Web Feb 27, 2026 at 9:24 pm
ladle ❌ Build Failed (View Logs) Web Feb 27, 2026 at 9:23 pm

Copy link
Contributor Author

jog1t commented Feb 27, 2026


How to use the Graphite Merge Queue

Add 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.

@jog1t jog1t marked this pull request as ready for review February 27, 2026 21:23
@claude
Copy link

claude bot commented Feb 27, 2026

PR Review: feat: dev toolbar

Overall this is a nice, well-scoped dev utility. The gating mechanism (localStorage key + cloud-only) is a reasonable approach for an internal debug tool. A few things worth addressing before merge:

Bug: Incorrect shortcut badge for "load toolbar"

The registered hotkey sequence and the displayed badge don't match:

// Registered as 3-key sequence: Mod+Shift+G → R → L
useHotkeySequence([debugSequence, "R", "L"], () => {
    posthog.toolbar.loadToolbar();
});

// But badge shows only 2-key sequence (missing "L")
<ShortcutBadge hotkey="Mod+Shift+G R" />  // ← should be "Mod+Shift+G R L"

The other shortcuts are consistent between their registered sequences and badges, so this looks like a copy-paste oversight.

Performance: Unconditional 1-second re-render

The forced re-render every second is a code smell. The only thing that seems to need live updates is the PostHog recording status. Consider subscribing directly to posthog state instead, or at minimum only running the interval when the toolbar is actually enabled:

const [, setState] = useState({}); // used just to trigger re-render every second

useEffect(() => {
    const interval = setInterval(() => {
        setState({});
    }, 1000);
    return () => clearInterval(interval);
}, []);

Each tick creates a new object reference and schedules a re-render even when nothing has changed. If there's no reactive way to get posthog.sessionRecording?.status / posthog.sessionRecording?.started, at least document why polling is necessary.

Minor: Trailing space in className

const Sep = () => <span className=" text-muted-foreground"></span>;
//                              ^ extra leading space

Dependency: Pre-1.0 package with pinned peer deps

@tanstack/[email protected] is a pre-1.0 release. The lockfile shows it has hard-pinned peer dep requirements (react: 19.1.0, react-dom: 19.1.0), which is unusual and could cause friction when React is bumped. Worth tracking this package for a stable release.

Nit: @clerk/shared pin relaxed without explanation

The change from 3.27.1^3.27.1 in package.json/pnpm-lock.yaml appears to be unrelated to the dev toolbar. If this was an intentional fix, it's fine, but it would be clearer as a separate commit to avoid noise in this PR's diff.

Checklist

The PR checklist is fully unchecked — no self-review, no tests, no docs update noted. Since this is an internal-only debug toolbar, tests and docs may not be required, but a self-review check-off would be appropriate.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 27, 2026

More templates

@rivetkit/cloudflare-workers

pnpm add https://pkg.pr.new/rivet-dev/rivet/@rivetkit/cloudflare-workers@4325

@rivetkit/framework-base

pnpm add https://pkg.pr.new/rivet-dev/rivet/@rivetkit/framework-base@4325

@rivetkit/next-js

pnpm add https://pkg.pr.new/rivet-dev/rivet/@rivetkit/next-js@4325

@rivetkit/react

pnpm add https://pkg.pr.new/rivet-dev/rivet/@rivetkit/react@4325

rivetkit

pnpm add https://pkg.pr.new/rivet-dev/rivet/rivetkit@4325

@rivetkit/sql-loader

pnpm add https://pkg.pr.new/rivet-dev/rivet/@rivetkit/sql-loader@4325

@rivetkit/sqlite-vfs

pnpm add https://pkg.pr.new/rivet-dev/rivet/@rivetkit/sqlite-vfs@4325

@rivetkit/traces

pnpm add https://pkg.pr.new/rivet-dev/rivet/@rivetkit/traces@4325

@rivetkit/workflow-engine

pnpm add https://pkg.pr.new/rivet-dev/rivet/@rivetkit/workflow-engine@4325

@rivetkit/virtual-websocket

pnpm add https://pkg.pr.new/rivet-dev/rivet/@rivetkit/virtual-websocket@4325

@rivetkit/engine-runner

pnpm add https://pkg.pr.new/rivet-dev/rivet/@rivetkit/engine-runner@4325

@rivetkit/engine-runner-protocol

pnpm add https://pkg.pr.new/rivet-dev/rivet/@rivetkit/engine-runner-protocol@4325

commit: b32d06b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant