You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Sidebar: show Links and GitHub stars for app projects - #238
With an app project selected, the sidebar hid Links (and Pixel, under Links) and GitHub stars: APP_NAV_SUFFIXES, the allow-list for app projects, never included them. Links has no project-kind restriction in the backend, and GitHub stars is organization-wide (pixel projects already show it). Adds both to the list, plus a test. Web unit tests 1995/1995, typecheck clean.
No actionable comments were generated in the recent review.
Walkthrough
The app navigation suffix allowlist now includes /links. A sidebar navigation test checks that app projects show /links and /github-stars.
Changes: App navigation
Layer / File(s)
Summary
Allow /links in app navigation web/src/components/Sidebar.tsx, web/src/components/sidebar-navigation.test.tsx
APP_NAV_SUFFIXES now includes /links. The test checks that app project navigation contains /links and /github-stars.
Possibly related PRs
velixio/supermetry#126: Establishes the organisation-scoped GitHub stars feature that this change includes in app project navigation.
Merge Risk: Minimal · up to d399f
App projects now show Links in the sidebar alongside GitHub stars. The Links list request does not depend on project kind, so the new entry should work, and no merge-blocking issue remains.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: Links and GitHub stars now appear in the sidebar for app projects. It matches the single-line allow-list change in Sidebar.tsx (APP_NAV_SUFFIXES gains '/links') and th…
Description check
The description explains the problem (Links, Pixel under Links, and GitHub stars hidden for app projects), the cause (APP_NAV_SUFFIXES omits them), and the fix (both added, plus a test). It gives test…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the main change: Links and GitHub stars now appear in the sidebar for app projects. It matches the single-line allow-list change in Sidebar.tsx (APP_NAV_SUFFIXES gains '/links') and the added test. It is concise and specific.
Full details: Description check
Explanation
The description explains the problem (Links, Pixel under Links, and GitHub stars hidden for app projects), the cause (APP_NAV_SUFFIXES omits them), and the fix (both added, plus a test). It gives test results (web unit tests 1995/1995, typecheck clean). It does not follow the template: the 'What and why' section lacks an issue link, the 'How it was tested' section lacks specific commands (for example, the vitest run for sidebar-navigation.test.tsx), the Screenshots section is missing for this UI change (add before and after images, or state why none apply), and the Checklist is absent (tests added, docs updated where behaviour changed, no secrets or visitor data in the diff). The description is mostly complete, so the check passes.
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.
Reviewing files that changed from the base of the PR and between e76c304 and d399fb5.
Files selected for processing: 2
web/src/components/Sidebar.tsx
web/src/components/sidebar-navigation.test.tsx
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With an app project selected, the sidebar hid Links (and Pixel, under Links) and GitHub stars: APP_NAV_SUFFIXES, the allow-list for app projects, never included them. Links has no project-kind restriction in the backend, and GitHub stars is organization-wide (pixel projects already show it). Adds both to the list, plus a test. Web unit tests 1995/1995, typecheck clean.