Skip to content

Feat/watchlist pr datatable#667

Merged
e35ventura merged 8 commits intoentrius:testfrom
plind-junior:feat/watchlist-pr-datatable
Apr 26, 2026
Merged

Feat/watchlist pr datatable#667
e35ventura merged 8 commits intoentrius:testfrom
plind-junior:feat/watchlist-pr-datatable

Conversation

@plind-junior
Copy link
Copy Markdown
Contributor

@plind-junior plind-junior commented Apr 21, 2026

Summary

  • Watchlist PR DataTable: Replace simple row layout in the Pull Requests tab with the reusable DataTable component — columns for PR number, title, repository, author (with avatar), status chip, score, and watchlist star
  • Clear dialog styling: Style the "Clear all pinned items?" confirmation dialog to match the project dark theme (JetBrains Mono font, background.default, themed borders and buttons)
  • Sidebar hover fix: Extend leaderboard row hover highlight to cover full width in LeaderboardSidebar
  • MinersList props fix: Update WatchlistButton usage from old githubId prop to new category + itemKey API

Test plan

  • Navigate to Watchlist page, star some PRs, verify they render in a proper table under the Pull Requests tab
  • Click "Clear pull requests" and verify the styled confirmation dialog appears
  • Verify the clear action removes all pinned PRs
  • Check the leaderboard sidebar hover covers full row width on the discoveries page
  • Verify no TypeScript or lint errors
    Fixes Display watchlist Pull Requests tab in a DataTable #666

Before
before

After
after

plind-junior and others added 7 commits April 21, 2026 07:56
Replace simple WatchedItemRow layout with reusable DataTable component
for the PR tab. Adds columns for PR number, title, repository, author
with avatar, status chip, score, and watchlist star button.
…chlist PRs tab

- Search box filters by title, repo, author, PR number
- Status filter buttons (All/Open/Merged/Closed) with counts
- List/card view mode toggle matching repositories page style
- Rows per page dropdown (10/25/50) with pagination
- Sortable table columns (PR, title, repo, author, score)
- Card view styled to match MinerCard pattern
JetBrains Mono is already the app-wide default via theme.typography.fontFamily,
so per-component declarations have no effect.
@anderdc anderdc added the enhancement New feature or request label Apr 21, 2026
@plind-junior
Copy link
Copy Markdown
Contributor Author

@anderdc @e35ventura Ready for review

@e35ventura e35ventura merged commit cd46eba into entrius:test Apr 26, 2026
2 checks passed
jerryzai pushed a commit to jerryzai/gittensor-ui that referenced this pull request Apr 26, 2026
bitloi added a commit to bitloi/gittensor-ui that referenced this pull request Apr 27, 2026
The Pull Requests tab previously showed only individually starred PRs.
It now also includes PRs whose hotkey belongs to a watched miner and
PRs whose repository is watched, in addition to explicit stars. Hotkey
is the join key because it is always present on /prs responses while
githubId is only on /miners.

The list/card view-mode toggle, status pills, search, sort, pagination,
and per-row star buttons added in entrius#667 are intentionally untouched.

Closes entrius#784
bitloi added a commit to bitloi/gittensor-ui that referenced this pull request Apr 27, 2026
The Pull Requests tab previously showed only individually starred PRs.
It now also includes PRs authored by a watched miner and PRs whose
repository is watched, in addition to explicit stars.

Miner matching uses pr.githubId directly against the watchlist's stored
githubIds. The /prs endpoint always populates githubId, so no /miners
round-trip is needed and matches still resolve when /miners is loading,
stale, or no longer lists a previously-registered miner.

Each row now carries a 'Why' badge (Starred / Miner / Repo) so users
can tell at a glance why a PR is in their watchlist; the badges also
appear on the card-view tile. The DataTable receives isLoading from
useWatchedPRs so the empty-state copy no longer flickers in while
/prs is fetching.

The list/card view-mode toggle, status pills, search, sort,
pagination, and per-row star buttons added in entrius#667 are intentionally
untouched.

Closes entrius#784
bitloi added a commit to bitloi/gittensor-ui that referenced this pull request Apr 27, 2026
The Pull Requests tab previously showed only individually starred PRs.
It now also includes PRs authored by a watched miner and PRs whose
repository is watched, in addition to explicit stars.

Miner matching uses pr.githubId directly against the watchlist's stored
githubIds. The /prs endpoint always populates githubId, so no /miners
round-trip is needed and matches still resolve when /miners is loading,
stale, or no longer lists a previously-registered miner.

Each row now carries a 'Why' badge (Starred / Miner / Repo) so users
can tell at a glance why a PR is in their watchlist; the badges also
appear on the card-view tile. The DataTable receives isLoading from
useWatchedPRs so the empty-state copy no longer flickers in while
/prs is fetching.

The list/card view-mode toggle, status pills, search, sort,
pagination, and per-row star buttons added in entrius#667 are intentionally
untouched.

Closes entrius#784
bitloi added a commit to bitloi/gittensor-ui that referenced this pull request Apr 27, 2026
The Pull Requests tab previously showed only individually starred PRs.
It now also includes PRs authored by a watched miner and PRs whose
repository is watched, in addition to explicit stars.

Miner matching uses pr.githubId directly against the watchlist's stored
githubIds. The /prs endpoint always populates githubId, so no /miners
round-trip is needed and matches still resolve when /miners is loading,
stale, or no longer lists a previously-registered miner.

Each row now carries a 'Why' badge (Starred / Miner / Repo) so users
can tell at a glance why a PR is in their watchlist; the badges also
appear on the card-view tile. The DataTable receives isLoading from
useWatchedPRs so the empty-state copy no longer flickers in while
/prs is fetching.

The list/card view-mode toggle, status pills, search, sort,
pagination, and per-row star buttons added in entrius#667 are intentionally
untouched.

Closes entrius#784
bitloi added a commit to bitloi/gittensor-ui that referenced this pull request Apr 27, 2026
The Pull Requests tab previously showed only individually starred PRs.
It now also includes PRs authored by a watched miner and PRs whose
repository is watched, in addition to explicit stars.

Miner matching uses pr.githubId directly against the watchlist's stored
githubIds. The /prs endpoint always populates githubId, so no /miners
round-trip is needed and matches still resolve when /miners is loading,
stale, or no longer lists a previously-registered miner.

Each row now carries a 'Why' badge (Starred / Miner / Repo) so users
can tell at a glance why a PR is in their watchlist; the badges also
appear on the card-view tile. The DataTable receives isLoading from
useWatchedPRs so the empty-state copy no longer flickers in while
/prs is fetching.

The list/card view-mode toggle, status pills, search, sort,
pagination, and per-row star buttons added in entrius#667 are intentionally
untouched.

Closes entrius#784
bitloi added a commit to bitloi/gittensor-ui that referenced this pull request Apr 27, 2026
The Pull Requests tab previously showed only individually starred PRs.
It now also includes PRs authored by a watched miner and PRs whose
repository is watched, in addition to explicit stars.

Miner matching uses pr.githubId directly against the watchlist's stored
githubIds. The /prs endpoint always populates githubId, so no /miners
round-trip is needed and matches still resolve when /miners is loading,
stale, or no longer lists a previously-registered miner.

Each row now carries a 'Why' badge (Starred / Miner / Repo) so users
can tell at a glance why a PR is in their watchlist; the badges also
appear on the card-view tile. The DataTable receives isLoading from
useWatchedPRs so the empty-state copy no longer flickers in while
/prs is fetching.

The list/card view-mode toggle, status pills, search, sort,
pagination, and per-row star buttons added in entrius#667 are intentionally
untouched.

Closes entrius#784
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Display watchlist Pull Requests tab in a DataTable

3 participants