Skip to content

fix: only show unlisted project chip when it's the main project#4690

Draft
SylvainChevalier wants to merge 1 commit intomainfrom
claude/issue-4687-only-show-unlisted-project-chip
Draft

fix: only show unlisted project chip when it's the main project#4690
SylvainChevalier wants to merge 1 commit intomainfrom
claude/issue-4687-only-show-unlisted-project-chip

Conversation

@SylvainChevalier
Copy link
Copy Markdown
Contributor

Closes #4687

Summary

Hides unlisted project chips in the question page sidebar when the unlisted project is a secondary project. Unlisted projects are still shown when they are the question's main (default) project.

Implementation

Added a filter in sidebar_question_projects.tsx that drops any project with visibility === ProjectVisibility.Unlisted unless its id matches default_project.id.

Generated with Claude Code

Closes #4687

Co-authored-by: Sylvain <SylvainChevalier@users.noreply.github.com>
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 5, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: a3982215-0c89-4644-be70-4efa36f9a49e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/issue-4687-only-show-unlisted-project-chip

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


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 and usage tips.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 5, 2026

🚀 Preview Environment

Your preview environment is ready!

Resource Details
🌐 Preview URL https://metaculus-pr-4690-claude-issue-4687-only-show-un-preview.mtcl.cc
📦 Docker Image ghcr.io/metaculus/metaculus:claude-issue-4687-only-show-unlisted-project-chip-35a7b0f
🗄️ PostgreSQL NeonDB branch preview/pr-4690-claude-issue-4687-only-show-un
Redis Fly Redis mtc-redis-pr-4690-claude-issue-4687-only-show-un

Details

  • Commit: 3086b30c52bbf2df0eed29d06b32342b36c41e49
  • Branch: claude/issue-4687-only-show-unlisted-project-chip
  • Fly App: metaculus-pr-4690-claude-issue-4687-only-show-un

ℹ️ Preview Environment Info

Isolation:

  • PostgreSQL and Redis are fully isolated from production
  • Each PR gets its own database branch and Redis instance
  • Changes pushed to this PR will trigger a new deployment

Limitations:

  • Background workers and cron jobs are not deployed in preview environments
  • If you need to test background jobs, use Heroku staging environments

Cleanup:

  • This preview will be automatically destroyed when the PR is closed

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.

Only show unlisted project chip if it's the main project of the question

1 participant