Skip to content

remove Y axis for discrete questions in feed and in collapsed group view#4938

Open
ncarazon wants to merge 1 commit into
mainfrom
feat/remove-discrete-question-y-axis
Open

remove Y axis for discrete questions in feed and in collapsed group view#4938
ncarazon wants to merge 1 commit into
mainfrom
feat/remove-discrete-question-y-axis

Conversation

@ncarazon

@ncarazon ncarazon commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Resolves #4900

Removes the Y-axis from discrete question distribution charts in feed cards and collapsed group rows.

Implemented changes:

  • Added support for hiding the chart Y-axis while preserving the distribution, median/range markers, and X-axis.
  • Applied the hidden Y-axis behavior to discrete questions in feed cards and collapsed group forecast rows.
image image

Summary by CodeRabbit

  • New Features

    • Charts now support optionally hiding the Y-axis.
    • Discrete questions will automatically use a cleaner chart layout without the Y-axis in more views.
  • Bug Fixes

    • Improved chart spacing so labels and axes align correctly when the Y-axis is shown or hidden.
    • Applied the same Y-axis behavior consistently across chart layouts.

@coderabbitai

coderabbitai Bot commented Jun 24, 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: 027d69bd-4eec-4d4b-9dff-9bac8b0e9f9d

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:

  • ✅ Review completed - (🔄 Check again to review again)
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/remove-discrete-question-y-axis

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.

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Preview Environment

Your preview environment is ready!

Resource Details
🌐 Preview URL https://metaculus-pr-4938-feat-remove-discrete-question-preview.mtcl.cc
📦 Docker Image ghcr.io/metaculus/metaculus:feat-remove-discrete-question-y-axis-5d97679
🗄️ PostgreSQL NeonDB branch preview/pr-4938-feat-remove-discrete-question
Redis Fly Redis mtc-redis-pr-4938-feat-remove-discrete-question

Details

  • Commit: c5d90becc28ff38f4ce5deda19fd90c1e7b010c5
  • Branch: feat/remove-discrete-question-y-axis
  • Fly App: metaculus-pr-4938-feat-remove-discrete-question

ℹ️ 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

@ncarazon ncarazon marked this pull request as ready for review June 25, 2026 08:32
@ncarazon ncarazon requested a review from lsabor June 25, 2026 08:38
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.

remove Y axis for discrete questions in feed and in collapsed group view

1 participant