Skip to content

[Enhancement]: Require GitHub token before enabling "Show commits" checkbox #313

@Anshumancanrock

Description

@Anshumancanrock

Enhancement Summary

The "Show commits on open PRs/draft PRs" checkbox can currently be enabled without a GitHub token, even though the feature won't work without one.

Motivation

The "Show commits" checkbox uses GitHub's GraphQL API which requires authentication. Without a token, the checkbox can be enabled but commits never load, confusing users into thinking the feature is broken.

Proposed Solution

  • Prevent the checkbox from being checked if no GitHub token is set
  • Show a warning message when user tries to enable it without a token
  • Same behavior as the existing "Enable filtering" checkbox

Alternatives Considered

  • Just showing a tooltip (already exists but users ignore it)
  • Disabling the checkbox entirely when no token, but warning is more user-friendly

Screenshots / Video

Recording.2026-01-19.015440.mp4

Additional Context

This matches the existing UX pattern used for the repository filtering feature.

Contribution Checklist

  • I have checked existing enhancement requests
  • I have clearly described the proposed change
  • I have explained the motivation and context
  • I am willing to help implement this feature

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions