Skip to content

fix: hide unlisted secondary project chips across question page & notebook#4895

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

fix: hide unlisted secondary project chips across question page & notebook#4895
SylvainChevalier wants to merge 1 commit into
mainfrom
claude/issue-4687-only-show-unlisted-project-chip

Conversation

@SylvainChevalier

Copy link
Copy Markdown
Contributor

Closes #4687

Summary

The earlier fix only filtered unlisted secondary projects in the question page sidebar. The same concatenated project list also renders in the header meta row (with a “N more” popover), the Question Info tab, and the notebook reader — so unlisted secondary projects were still visible there.

Changes

  • meta_row.tsx: add unlisted-visibility guard to the dedup/filter chain.
  • question_info.tsx: add unlisted-visibility guard to allProjects.
  • notebook_editor/index.tsx: add unlisted-visibility guard to otherProjects.

In every case the default (main) project is still shown even if it’s unlisted; only secondary unlisted projects are dropped.

Generated with Claude Code

…nfo tab and notebook

The previous fix only covered the sidebar chip list. The header meta row,
the Question Info tab, and the notebook reader concatenate the same
project arrays and were still rendering unlisted secondary projects.

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

coderabbitai Bot commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

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: d4dce825-3838-496c-bdf3-1bb4205c8ae4

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

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

🚀 Preview Environment

Your preview environment is ready!

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

Details

  • Commit: 621676e033191a1543c4190276bb14834464d894
  • Branch: claude/issue-4687-only-show-unlisted-project-chip
  • Fly App: metaculus-pr-4895-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