-
Notifications
You must be signed in to change notification settings - Fork 147
fix(dashboard): resource not found when navigating to settings on projects page #3979
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
|
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. |
|
🚅 Deployed to the rivet-pr-3979 environment in rivet-frontend
|
Code Review - PR #3979SummaryThis PR conditionally renders the Settings link in the sidebar based on whether the user is on a namespace page, and cleans up redundant button styling attributes. The changes are well-targeted and address the issue described. ✅ Positive Aspects
🔍 Code Quality Observations
🎯 Potential Improvements (Optional)
🐛 No Bugs IdentifiedThe implementation looks correct. The conditional rendering properly prevents the 404 error that would occur when clicking Settings from non-namespace pages. 🔒 No Security ConcernsNo security issues identified in this change. ⚡ No Performance ConcernsThe addition of 📊 Test CoverageWhile I cannot see the test files in this PR, I recommend ensuring test coverage for the conditional rendering logic. ✨ Overall AssessmentThis is a clean, focused PR that solves the stated problem effectively. The code follows React best practices and maintains consistency with the existing codebase patterns. The cleanup of redundant props is a nice bonus that improves code maintainability. Recommendation: LGTM ✅ - Ready to merge pending successful CI checks. |
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: |
e01279b to
c997179
Compare
8aa0f90 to
470992d
Compare
Merge activity
|
…jects page (#3979) Closes FRONT-916 ### TL;DR Conditionally render the Settings link in the sidebar and clean up button styling. ### What changed? - Added conditional rendering for the Settings link in the sidebar, only showing it when the user is on a namespace page - Removed explicit `size="xs"` attributes from various HeaderButton components - Removed redundant styling classes from several HeaderButton components - Added the `useMatchRoute` hook to check the current route for conditional rendering ### How to test? 1. Navigate to a namespace page and verify the Settings link appears in the sidebar 2. Navigate away from a namespace page and verify the Settings link disappears 3. Check that all buttons in the sidebar maintain consistent styling despite the removed attributes ### Why make this change? This change improves the user experience by only showing relevant navigation options based on context. The Settings link is only useful when viewing a namespace, so it should only appear in that context. Additionally, the code is cleaner by removing redundant styling attributes that are likely handled by default component styles.FRONT-916

Closes FRONT-916
TL;DR
Conditionally render the Settings link in the sidebar and clean up button styling.
What changed?
size="xs"attributes from various HeaderButton componentsuseMatchRoutehook to check the current route for conditional renderingHow to test?
Why make this change?
This change improves the user experience by only showing relevant navigation options based on context. The Settings link is only useful when viewing a namespace, so it should only appear in that context. Additionally, the code is cleaner by removing redundant styling attributes that are likely handled by default component styles.FRONT-916