Skip to content

fix(self-host): link Pages and Bots in the sidebar on self-hosted installs - #1105

Open
TimBroddin wants to merge 1 commit into
rybbit-io:masterfrom
TimBroddin:fix/self-host-bots-pages
Open

fix(self-host): link Pages and Bots in the sidebar on self-hosted installs#1105
TimBroddin wants to merge 1 commit into
rybbit-io:masterfrom
TimBroddin:fix/self-host-bots-pages

Conversation

@TimBroddin

@TimBroddin TimBroddin commented Aug 5, 2026

Copy link
Copy Markdown

The Pages and Bots views already work on self-hosted installs. Their page components have no cloud check, the bot endpoints in index.ts register unconditionally alongside every other analytics route, and DisabledOverlay returns disabled = false whenever IS_CLOUD is unset. The only thing missing is the sidebar link, so today you can reach both by typing /<siteId>/pages or /<siteId>/bots and no other way. That seemed more like an oversight than a deliberate paywall, since a paywalled feature would normally be blocked rather than merely unlinked.

Only touches the two sidebar entries. Performance and the !IS_CLOUD Query block are untouched, so the import stays and this doesn't overlap #1104.

Summary by CodeRabbit

  • New Features
    • Pages and Bots are now available in the sidebar across all deployment environments.
    • Existing navigation routes, labels, icons, and active-state behavior remain unchanged.

Both views already work when self-hosting. Their pages carry no cloud check,
the bot endpoints in index.ts register unconditionally, and DisabledOverlay
returns disabled=false whenever IS_CLOUD is unset. Only the sidebar links were
hidden, so the pages were reachable by typing the URL and no other way.
@vercel

vercel Bot commented Aug 5, 2026

Copy link
Copy Markdown

@TimBroddin is attempting to deploy a commit to the goldflag's projects Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai

coderabbitai Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

Changes

Sidebar navigation availability

Layer / File(s) Summary
Render Pages and Bots items
client/src/app/[site]/components/Sidebar/Sidebar.tsx
The Pages and Bots sidebar items now render for all deployments. Their routes, labels, icons, and active-state behavior remain unchanged.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Suggested reviewers: goldflag

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes adding Pages and Bots sidebar links for self-hosted installations.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@TimBroddin
TimBroddin marked this pull request as ready for review August 5, 2026 06:18
@TimBroddin TimBroddin changed the title Link Pages and Bots in the sidebar on self-hosted installs fix(self-host): link Pages and Bots in the sidebar on self-hosted installs Aug 5, 2026
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