-
Notifications
You must be signed in to change notification settings - Fork 41
refactor: studio -> inspector #1185
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
refactor: studio -> inspector #1185
Conversation
Claude finished @jog1t's task —— View job PR Review: refactor: studio -> inspectorI've completed my review of this refactoring PR that renames "studio" to "inspector" across the codebase. Analysis SummaryThis PR performs a systematic refactoring to rename "studio" to "inspector" throughout the RivetKit codebase. The changes are consistent and well-executed across 11 files, touching core functionality including:
✅ Positive Aspects
|
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 either label to this PR to merge it via 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. |
46bcabd
to
2992423
Compare
Claude finished @jog1t's task —— View job PR Review: refactor: studio -> inspectorI've completed my review of this refactoring PR that renames "studio" to "inspector" across the codebase. Todo List:
Review SummaryThis refactoring is mostly well-executed but incomplete. The majority of the changes follow a consistent pattern and properly rename references from "studio" to "inspector", but there are several critical omissions that need to be addressed. ✅ What's Done Well1. Consistent API Changes
2. Proper Schema Updates
3. Code Quality
❌ Critical Issues Found1. Incomplete URL ReferencesHIGH PRIORITY: Two hardcoded URLs still reference the old domain: // packages/core/src/inspector/config.ts:27
"https://studio.rivet.gg",
// packages/core/src/inspector/utils.ts:67
const url = new URL("https://studio.rivet.gg"); These must be updated to maintain consistency and avoid confusion. 2. Documentation Still References "Studio"MEDIUM PRIORITY: The main README.md still contains multiple "Rivet Studio" references: - **[Rivet Studio](https://github.com/rivet-gg/rivet/tree/main/frontend/apps/studio)**: Like Postman, but for Rivet Actors
## Local Development with the Studio
Rivet Studio is like like Postman, but for all of your stateful serverless needs. [Visit the Studio →](https://studio.rivet.gg) 🔍 Technical AnalysisCode Quality Assessment
Security Considerations
📋 RecommendationsMust Fix (Blocking)
Should Fix (Before Merge)
Minor Suggestions
✅ Testing RecommendationsSince this is a rename refactor:
Overall Assessment7/10 - This is a solid refactoring that improves naming consistency, but the incomplete URL updates are a significant issue that must be resolved before merging. |
More templates
@rivetkit/actor
@rivetkit/core
@rivetkit/db
rivetkit
@rivetkit/cloudflare-workers
@rivetkit/redis
@rivetkit/framework-base
@rivetkit/next-js
@rivetkit/react
commit: |
Claude finished @jog1t's task —— View job PR Review: refactor: studio -> inspectorI've completed a comprehensive review of this refactoring PR that renames "studio" to "inspector" across the RivetKit codebase. Todo List:
Review SummaryThis refactoring is well-executed but still incomplete. The majority of changes properly rename references from "studio" to "inspector", improving terminology consistency. However, critical URL references remain incomplete from previous review feedback. ✅ What's Done Well1. Comprehensive API Refactoring
2. Proper Implementation Quality
3. Systematic ChangesThe refactoring touches the right layers:
❌ Critical Issues Still PresentHIGH PRIORITY: Incomplete URL ReferencesThe same issues from previous reviews remain unaddressed: // packages/core/src/inspector/config.ts:27
"https://studio.rivet.gg",
// packages/core/src/inspector/utils.ts:67
const url = new URL("https://studio.rivet.gg"); Impact: This creates inconsistency where internal code uses "inspector" but still connects to "studio.rivet.gg", potentially causing confusion for developers and maintainers. MEDIUM PRIORITY: Documentation ReferencesREADME.md still contains multiple "studio" references that should be updated for consistency:
🔍 Technical AnalysisCode Quality Assessment
Architecture Impact
Best Practices Adherence
📋 RecommendationsMust Fix Before Merge
Should Fix
Testing Verification NeededSince I cannot run type checking without approval:
🎯 Overall Assessment7/10 - This is a solid refactoring effort that successfully standardizes terminology from "studio" to "inspector" across most of the codebase. The changes are well-structured, maintain functionality, and follow repository guidelines. However, the incomplete URL references are a blocking issue that creates inconsistency and should be resolved before merging. The refactoring demonstrates good systematic thinking and execution, but needs completion to maintain code clarity. Recommendation: Request changes to address URL inconsistencies, then this will be ready to merge. |
Merge activity
|
### TL;DR Renamed all references from `studio` to `inspector` in the codebase to maintain consistent terminology. ### What changed? - Renamed the `studio` property to `inspector` in the `RunConfig` schema - Updated all references to this property throughout the codebase - Changed environment variable names from `RIVETKIT_STUDIO_TOKEN` to `RIVETKIT_INSPECTOR_TOKEN` and `RIVETKIT_STUDIO_DISABLE` to `RIVETKIT_INSPECTOR_DISABLE` - Renamed `getStudioUrl` function to `getInspectorUrl` - Updated log messages and comments to use "inspector" instead of "studio" - Renamed `defaultStudioOrigins` to `defaultInspectorOrigins` ### How to test? 1. Ensure the inspector functionality works correctly after the rename 2. Verify that environment variables using the new `RIVETKIT_INSPECTOR_*` naming pattern work as expected 3. Check that the inspector URL is correctly generated and displayed in logs 4. Confirm that CORS settings are properly applied for inspector endpoints ### Why make this change? This change standardizes terminology across the codebase by consistently using "inspector" instead of "studio". This improves code clarity, reduces confusion, and ensures that all references to this feature use the same naming convention. The rename aligns the code with the actual functionality being provided, which is an inspection tool rather than a studio.
TL;DR
Renamed all references from
studio
toinspector
in the codebase to maintain consistent terminology.What changed?
studio
property toinspector
in theRunConfig
schemaRIVETKIT_STUDIO_TOKEN
toRIVETKIT_INSPECTOR_TOKEN
andRIVETKIT_STUDIO_DISABLE
toRIVETKIT_INSPECTOR_DISABLE
getStudioUrl
function togetInspectorUrl
defaultStudioOrigins
todefaultInspectorOrigins
How to test?
RIVETKIT_INSPECTOR_*
naming pattern work as expectedWhy make this change?
This change standardizes terminology across the codebase by consistently using "inspector" instead of "studio". This improves code clarity, reduces confusion, and ensures that all references to this feature use the same naming convention. The rename aligns the code with the actual functionality being provided, which is an inspection tool rather than a studio.