diff --git a/DEPLOY.md b/DEPLOY.md
index a721a68e..302da456 100644
--- a/DEPLOY.md
+++ b/DEPLOY.md
@@ -132,7 +132,7 @@ The login flow requests `scope=repo read:org`:
| `repo` | Read issues, PRs, check runs, workflow runs (includes private repos) |
| `read:org` | `GET /user/orgs` — list user's organizations for the org selector |
-**Note:** The `repo` scope grants write access to repositories. An Octokit request guard blocks all REST write operations (POST/PUT/PATCH/DELETE) and all GraphQL mutations except explicit user-confirmed PR approvals (`addPullRequestReview` with `event: APPROVE`).
+**Note:** The `repo` scope grants write access to repositories. An Octokit request guard blocks all REST write operations (POST/PUT/PATCH/DELETE) and all GraphQL mutations except explicit user-confirmed PR approvals (`addPullRequestReview` with `event: APPROVE`) and marking draft PRs ready (`markPullRequestReadyForReview`).
### Local development OAuth App
diff --git a/README.md b/README.md
index b1c484ed..365395e0 100644
--- a/README.md
+++ b/README.md
@@ -33,7 +33,7 @@ Open issues where you're the creator, assignee, or mentioned. A scope filter let
### Pull Requests
-Open PRs with CI status dots (green/yellow/red), review decision badges, a read-only `auto` badge when GitHub auto-merge is enabled (with merge method tooltip), size badges (XS–XL by lines changed), draft indicators, and a two-step inline `Approve` button on PR rows requiring approval. A "blocked" filter catches PRs where checks are failing or a review requested changes. The scope filter works here too. Reviewer avatars stack for multiple reviewers.
+Open PRs with CI status dots (green/yellow/red), review decision badges, a read-only `auto` badge when GitHub auto-merge is enabled (with merge method tooltip), size badges (XS–XL by lines changed), clickable two-step `Draft` → `Ready?` badges on your own draft PRs (read-only draft indicators on others'), and a two-step inline `Approve` button on PR rows requiring approval (hidden when CI checks are failing). A "blocked" filter catches PRs where checks are failing or a review requested changes. The scope filter works here too. Reviewer avatars stack for multiple reviewers.
### Actions
@@ -81,7 +81,7 @@ Star counts appear in repo group headers, fetched as part of the standard data r
### Dependencies Tab
-An auto-detected built-in tab that appears when dependency bot PRs are found in your tracked repos. Dependency PRs are identified via a multi-layer bot detection pipeline (PR author login, branch name prefix, configurable label). Items are grouped by status — **Needs Review** (CI passing, not yet approved), **Waiting** (CI pending or draft), and **Stale** (open more than 14 days) — rather than by repo. Abandoned dependency pills link directly to the Renovate Dashboard issue for bulk resolution. Configurable via **Settings > Dependencies**.
+An auto-detected built-in tab that appears when dependency bot PRs are found in your tracked repos. Dependency PRs are identified via a multi-layer bot detection pipeline (PR author login, branch name prefix, configurable label). Items are grouped by status — **Mergeable** (CI passing or no CI configured, not a draft, and no changes requested), **Pending Rebase**, **Needs Action** (with explicit reason badges for failing/running checks, merge conflicts, drafts, or requested changes), and **Stale** (not updated in over 14 days) — rather than by repo. Abandoned dependency pills link directly to the Renovate Dashboard issue for bulk resolution. Configurable via **Settings > Dependencies**.
### Custom Tabs
@@ -128,8 +128,8 @@ src/
layout/ # Header, TabBar, FilterBar
onboarding/ # OnboardingWizard, OrgSelector, RepoSelector
settings/ # SettingsPage, TrackedUsersSection, ThemePicker, Section, SettingRow
- shared/ # 28 shared components: FilterInput, FilterChips, StatusDot,
- # ReviewBadge, AutoMergeBadge, SizeBadge, RoleBadge, SortDropdown, PaginationControls,
+ shared/ # 29 shared components: FilterInput, FilterChips, StatusDot,
+ # ReviewBadge, AutoMergeBadge, DraftBadge, SizeBadge, RoleBadge, SortDropdown, PaginationControls,
# LoadingSpinner, SkeletonRows, ToastContainer, NotificationDrawer,
# RepoLockControls, UserAvatarBadge, ExpandCollapseButtons,
# RepoGitHubLink, ChevronIcon, ExternalLinkIcon, Tooltip/InfoTooltip
@@ -170,7 +170,7 @@ pnpm run screenshot # Capture dashboard screenshot
## Security
-OAuth tokens are stored in `localStorage` under an app-specific key — this is standard for single-user personal dashboards and matches the threat model here. CSP headers block script injection via Cloudflare (`script-src 'self'` with a SHA-256 exception for the dark-mode initialization script only). An Octokit hook blocks all non-GET REST requests and all GraphQL mutations except the single user-confirmed PR approval mutation (addPullRequestReview with event: APPROVE) — the repo scope is required for private repo access, and all other write operations are rejected client-side. OAuth state is generated with `crypto.getRandomValues` and verified on callback. Token validation runs on every page load via `GET /user`; a 401 clears the stored token immediately.
+OAuth tokens are stored in `localStorage` under an app-specific key — this is standard for single-user personal dashboards and matches the threat model here. CSP headers block script injection via Cloudflare (`script-src 'self'` with a SHA-256 exception for the dark-mode initialization script only). An Octokit hook blocks all non-GET REST requests and all GraphQL mutations except explicit user-confirmed PR approval (`addPullRequestReview` with `event: APPROVE`) and marking draft PRs ready (`markPullRequestReadyForReview`) — the repo scope is required for private repo access, and all other write operations are rejected client-side. OAuth state is generated with `crypto.getRandomValues` and verified on callback. Token validation runs on every page load via `GET /user`; a 401 clears the stored token immediately.
## Deployment
diff --git a/docs/USER_GUIDE.md b/docs/USER_GUIDE.md
index 1523301b..d1f3a1fa 100644
--- a/docs/USER_GUIDE.md
+++ b/docs/USER_GUIDE.md
@@ -81,7 +81,7 @@ If you prefer not to use OAuth, you can sign in with a GitHub Personal Access To
Two token formats are accepted:
- **Classic tokens** (starts with `ghp_`) — recommended. Works across all organizations you belong to. Required scopes: `repo`, `read:org` (under admin:org).
-- **Fine-grained tokens** (starts with `github_pat_`) — also work, but only access one organization at a time. Required permissions: Actions (read), Contents (read), Issues (read), Pull requests (read and write to approve PRs from the dashboard, or read-only for viewing only).
+- **Fine-grained tokens** (starts with `github_pat_`) — also work, but only access one organization at a time. Required permissions: Actions (read), Contents (read), Issues (read), Pull requests (read and write to approve PRs or mark draft PRs ready from the dashboard, or read-only for viewing only).
The token is validated against the GitHub API before being stored. It is saved permanently in your browser's `localStorage` — you will not need to re-enter it on revisit.
@@ -227,9 +227,17 @@ The dot links to the PR's checks page on GitHub.
When GitHub auto-merge is enabled on a pull request, a read-only `auto` badge appears next to the review badge (in both comfortable and compact density across the Pull Requests, Dependencies, and Tracked tabs). Hover or focus the badge to view the configured merge method (`merge`, `squash`, or `rebase`).
+#### Draft Badge & Mark Ready Action
+
+Draft pull requests display a `Draft` badge (`D` in compact mode) across the Pull Requests, Dependencies, and Tracked tabs. When you are the author of an open draft PR, the badge is interactive and uses a two-step confirmation to mark the PR ready for review on GitHub:
+1. Click **Draft** (or **D**) once to arm confirmation (**Ready?**). The confirmation state resets automatically after 4 seconds, on Escape, or when focus leaves the badge.
+2. Click **Ready?** to execute `markPullRequestReadyForReview` on GitHub and transition the PR out of draft status.
+
+Draft PRs authored by other users render as a read-only indicator.
+
#### Inline Approve Action
-Open, non-draft pull requests not authored by you show an **Approve** button next to the pull request title on hover when branch protection requires a review (`Review needed`) or when a review has been requested of you or your team (unless you have already approved the PR without a fresh re-request).
+Open, non-draft pull requests not authored by you show an **Approve** button next to the pull request title on hover when branch protection requires a review (`Review needed`) or when a review has been requested of you or your team (unless you have already approved the PR without a fresh re-request). The **Approve** button is hidden when CI checks are failing (`checkStatus === "failure"`).
Approval uses a two-step inline confirmation to prevent accidental clicks:
1. Click **Approve** once to arm confirmation (**Confirm?**, or **Confirm (auto)** when auto-merge is enabled on the PR). The confirmation state resets automatically after 4 seconds, on Escape, or when focus leaves the button.
@@ -318,10 +326,10 @@ Unlike the Pull Requests tab (which groups by repo), the Dependencies tab groups
| Group | Criteria |
|-------|----------|
-| **Mergeable** | CI passing (all checks green), not yet approved — awaiting review |
+| **Mergeable** | CI passing (or no CI configured), not a draft, and no changes requested — ready to review or merge |
| **Pending Rebase** | PR has the configured rebase label — waiting for the bot to rebase |
-| **Needs Action** | CI pending, checks still running, or PR is a draft — not yet actionable |
-| **Stale** | PR has been open more than 14 days without merging — may need a rebase or manual review |
+| **Needs Action** | Failing or running CI checks, merge conflicts, draft PR, or changes requested — rows display explicit reason badges (`Failing checks`, `Merge conflict`, `Checks running`, `Draft`, `Changes`) |
+| **Stale** | PR has not been updated in over 14 days — may need a rebase or manual review |
Within each group, PRs are sorted by repository name, then update category (maintenance, pin, digest, patch, minor, major), then update date.
@@ -838,9 +846,9 @@ For detailed per-source API call counts, see Settings > API Usage.
OAuth tokens (from "Sign in with GitHub") work across all your organizations and support all features. Classic PATs with the correct scopes (`repo`, `read:org`) behave identically to OAuth.
-Fine-grained PATs are limited to one organization at a time. Required permissions: Actions (read), Contents (read), Issues (read), Pull requests (read and write to approve PRs from the dashboard, or read-only for viewing only).
+Fine-grained PATs are limited to one organization at a time. Required permissions: Actions (read), Contents (read), Issues (read), Pull requests (read and write to approve PRs or mark draft PRs ready from the dashboard, or read-only for viewing only).
-**Approving a PR fails with a permission error (403 / FORBIDDEN).**
+**Approving a PR or marking a draft PR ready fails with a permission error (403 / FORBIDDEN).**
Your token does not have write permission for pull requests. If you are using a fine-grained Personal Access Token, open GitHub Settings, edit or regenerate the token with **Pull requests** set to **Read and write** (`Pull requests: Read and write`), and replace your token in **Settings > Data > Authentication**.
diff --git a/mcp/tests/octokit.test.ts b/mcp/tests/octokit.test.ts
index 1bf6c1a0..a0a6c356 100644
--- a/mcp/tests/octokit.test.ts
+++ b/mcp/tests/octokit.test.ts
@@ -92,6 +92,21 @@ describe("createOctokitClient — write guard hook", () => {
})
).rejects.toThrow(/Write operation blocked/);
});
+
+ it("blocks MARK_PR_READY_MUTATION (markPullRequestReadyForReview) on POST /graphql", async () => {
+ const { createOctokitClient } = await import("../src/octokit.js");
+ const { MARK_PR_READY_MUTATION } = await import("../../src/shared/validation.js");
+ const client = createOctokitClient("fake-token");
+
+ await expect(
+ client.request("POST /graphql", {
+ query: MARK_PR_READY_MUTATION,
+ variables: {
+ pullRequestId: "PR_kwDOtest42",
+ },
+ })
+ ).rejects.toThrow(/Write operation blocked/);
+ });
});
// ── Singleton tests ───────────────────────────────────────────────────────────
diff --git a/src/app/components/dashboard/DashboardPage.tsx b/src/app/components/dashboard/DashboardPage.tsx
index 93044619..8dd4192d 100644
--- a/src/app/components/dashboard/DashboardPage.tsx
+++ b/src/app/components/dashboard/DashboardPage.tsx
@@ -14,7 +14,7 @@ import DependenciesTab from "./DependenciesTab";
import { isDependencyPr, expandBotLogins, needsBodyFallback, parseRenovateBody, type VersionInfo } from "../../lib/dependency-detection";
import { isRepoExcludedFromDependencies } from "../../lib/dependency-exclusion";
import { findDashboardIssues, parseAbandonedSection, resetAbandonedPatternCache, type AbandonedDependency } from "../../lib/dependency-dashboard";
-import { fetchDashboardIssueBodies, fetchDepPRBodies, fallbackToPreviousEnrichment, pickEnrichmentFields, approvePullRequest } from "../../services/api";
+import { fetchDashboardIssueBodies, fetchDepPRBodies, fallbackToPreviousEnrichment, pickEnrichmentFields, approvePullRequest, markPullRequestReady } from "../../services/api";
import type { SortOption } from "../shared/SortDropdown";
import type { Issue, PullRequest, WorkflowRun, HotPRStatusUpdate } from "../../services/api";
import { fetchOrgs } from "../../services/api";
@@ -39,7 +39,7 @@ import { updateRelaySnapshot } from "../../lib/mcp-relay";
import { pushNotification, pushError, dismissNotificationBySource } from "../../lib/errors";
import { detectNewItems, dispatchNotifications } from "../../lib/notifications";
import { getClient, getGraphqlRateLimit, fetchRateLimitDetails } from "../../services/github";
-import { canApprovePR, formatCount, prSizeCategory, rateLimitCssClass, stripParenthetical } from "../../lib/format";
+import { canApprovePR, canMarkPRReady, formatCount, prSizeCategory, rateLimitCssClass, stripParenthetical } from "../../lib/format";
import { setsEqual } from "../../lib/collections";
import { withScrollLock } from "../../lib/scroll";
import { Tooltip } from "../shared/Tooltip";
@@ -211,6 +211,28 @@ function applyRecentApprovalGuard(pr: PullRequest, currentLogin: string): void {
}
}
+const [markingReadyPRIds, setMarkingReadyPRIds] = createSignal>(new Set());
+const RECENT_READY_TTL_MS = 60_000;
+const recentlyMarkedReadyPRs = new Map<
+ number,
+ { reviewDecision: PullRequest["reviewDecision"]; markedAt: number }
+>();
+
+function applyRecentReadyGuard(pr: PullRequest): void {
+ const now = Date.now();
+ for (const [id, entry] of recentlyMarkedReadyPRs) {
+ if (now - entry.markedAt > RECENT_READY_TTL_MS) {
+ recentlyMarkedReadyPRs.delete(id);
+ }
+ }
+ const entry = recentlyMarkedReadyPRs.get(pr.id);
+ if (!entry) return;
+ pr.draft = false;
+ if (pr.reviewDecision === null && entry.reviewDecision !== null) {
+ pr.reviewDecision = entry.reviewDecision;
+ }
+}
+
export function applyHotPollPRUpdates(
state: { pullRequests: PullRequest[] },
prUpdates: ReadonlyMap,
@@ -226,6 +248,7 @@ export function applyHotPollPRUpdates(
const update = prUpdates.get(pr.id);
if (!update) continue;
pr.state = update.state; // detect closed/merged quickly
+ if (typeof update.draft === "boolean") pr.draft = update.draft;
pr.checkStatus = update.checkStatus;
pr.reviewDecision = update.reviewDecision;
if (update.headSha) {
@@ -251,6 +274,7 @@ export function applyHotPollPRUpdates(
) {
pr.reviewerLogins = [...pr.reviewerLogins, loginLower];
}
+ applyRecentReadyGuard(pr);
applyRecentApprovalGuard(pr, currentLogin);
}
if (terminalPrIds.size > 0) {
@@ -283,6 +307,8 @@ onAuthCleared(() => {
_depBodyFailureCooldown.clear();
setApprovingPRIds(new Set());
recentlyApprovedPRs.clear();
+ setMarkingReadyPRIds(new Set());
+ recentlyMarkedReadyPRs.clear();
resetAbandonedPatternCache();
const coord = _coordinator();
if (coord) {
@@ -343,7 +369,10 @@ async function pollFetch(): Promise {
setHasFetchedFresh(true);
const now = new Date();
const currentLogin = user()?.login ?? "";
- for (const pr of data.pullRequests) applyRecentApprovalGuard(pr, currentLogin);
+ for (const pr of data.pullRequests) {
+ applyRecentReadyGuard(pr);
+ applyRecentApprovalGuard(pr, currentLogin);
+ }
if (phaseOneFired) {
// Phase 1 fired — use fine-grained merge for the light→enriched
@@ -376,16 +405,21 @@ async function pollFetch(): Promise {
if (!regressing) {
Object.assign(pr, pickEnrichmentFields(e));
pr.reviewDecision = e.reviewDecision;
+ pr.draft = e.draft;
pr.enriched = e.enriched;
}
pr.nodeId = e.nodeId;
pr.surfacedBy = e.surfacedBy;
pr.starCount = e.starCount;
+ applyRecentReadyGuard(pr);
applyRecentApprovalGuard(pr, currentLogin);
}
} else {
state.pullRequests = fallbackToPreviousEnrichment(state.pullRequests, data.pullRequests);
- for (const pr of state.pullRequests) applyRecentApprovalGuard(pr, currentLogin);
+ for (const pr of state.pullRequests) {
+ applyRecentReadyGuard(pr);
+ applyRecentApprovalGuard(pr, currentLogin);
+ }
}
}));
} else {
@@ -395,7 +429,10 @@ async function pollFetch(): Promise {
// DOM updates are synchronous within the setter, so save/restore
// around it to prevent scroll reset from DOM rebuild.
const pullRequests = fallbackToPreviousEnrichment(dashboardData.pullRequests, data.pullRequests);
- for (const pr of pullRequests) applyRecentApprovalGuard(pr, currentLogin);
+ for (const pr of pullRequests) {
+ applyRecentReadyGuard(pr);
+ applyRecentApprovalGuard(pr, currentLogin);
+ }
withScrollLock(() => {
setDashboardData({
issues: data.issues,
@@ -407,7 +444,15 @@ async function pollFetch(): Promise {
});
}
const filteredRuns = config.enableActions ? data.workflowRuns : [];
- rebuildHotSets({ ...data, workflowRuns: filteredRuns });
+ const hotPullRequests =
+ recentlyMarkedReadyPRs.size > 0 || recentlyApprovedPRs.size > 0
+ ? data.pullRequests.map((pr) =>
+ (recentlyMarkedReadyPRs.has(pr.id) || recentlyApprovedPRs.has(pr.id)) && pr.nodeId
+ ? { ...pr, enriched: true, checkStatus: "pending" as const }
+ : pr
+ )
+ : data.pullRequests;
+ rebuildHotSets({ ...data, pullRequests: hotPullRequests, workflowRuns: filteredRuns });
// Persist for stale-while-revalidate on full page reload.
// Errors are transient and not persisted. Deferred to avoid blocking paint.
const cachePayload = {
@@ -506,6 +551,7 @@ function handleTargetedData(data: DashboardData, affectedRepos: string[]): void
Object.assign(pr, pickEnrichmentFields(existingPr));
pr.enriched = existingPr.enriched;
}
+ applyRecentReadyGuard(pr);
applyRecentApprovalGuard(pr, currentLogin);
}
@@ -1454,6 +1500,40 @@ export default function DashboardPage() {
return /commitOID|was not part of the pull request|pull request head|outdated|end of the branch/i.test(msg);
}
+ function addIdToSet(prev: ReadonlySet, id: number): ReadonlySet {
+ const next = new Set(prev);
+ next.add(id);
+ return next;
+ }
+
+ function removeIdFromSet(prev: ReadonlySet, id: number): ReadonlySet {
+ if (!prev.has(id)) return prev;
+ const next = new Set(prev);
+ next.delete(id);
+ return next;
+ }
+
+ function handlePRMutationCommonError(
+ err: unknown,
+ source: string,
+ permissionDeniedMsg: string
+ ): boolean {
+ const status =
+ typeof err === "object" && err !== null && typeof (err as Record).status === "number"
+ ? ((err as Record).status as number)
+ : null;
+ if (status === 401) {
+ expireToken();
+ window.location.replace("/login");
+ return true;
+ }
+ if (isPermissionDeniedError(err)) {
+ pushNotification(source, permissionDeniedMsg, "error");
+ return true;
+ }
+ return false;
+ }
+
async function handleApprovePR(pr: PullRequest): Promise {
const currentLogin = userLogin();
if (!canApprovePR(pr, currentLogin)) return;
@@ -1468,11 +1548,7 @@ export default function DashboardPage() {
// is not suppressed by pushNotification's same-message no-op guard.
dismissNotificationBySource(`approve-pr:${pr.id}`);
- setApprovingPRIds((prev) => {
- const next = new Set(prev);
- next.add(pr.id);
- return next;
- });
+ setApprovingPRIds((prev) => addIdToSet(prev, pr.id));
try {
const result = await approvePullRequest(client, nodeId, approvedHeadSha);
@@ -1507,21 +1583,13 @@ export default function DashboardPage() {
persistDashboardSnapshot();
} catch (err) {
if (getClient() !== client) return;
- const status =
- typeof err === "object" && err !== null && typeof (err as Record).status === "number"
- ? ((err as Record).status as number)
- : null;
- if (status === 401) {
- expireToken();
- window.location.replace("/login");
- return;
- }
- if (isPermissionDeniedError(err)) {
- pushNotification(
+ if (
+ handlePRMutationCommonError(
+ err,
`approve-pr:${pr.id}`,
- "Unable to approve PR: your token lacks Pull Requests write permission. For fine-grained PATs, set 'Pull requests' to 'Read and write' in GitHub Settings, then replace your token in Settings.",
- "error"
- );
+ "Unable to approve PR: your token lacks Pull Requests write permission. For fine-grained PATs, set 'Pull requests' to 'Read and write' in GitHub Settings, then replace your token in Settings."
+ )
+ ) {
return;
}
if (isStaleCommitError(err)) {
@@ -1536,12 +1604,66 @@ export default function DashboardPage() {
const message = err instanceof Error ? err.message : "Unknown error";
pushNotification(`approve-pr:${pr.id}`, `Failed to approve ${pr.repoFullName}#${pr.number}: ${message}`, "error");
} finally {
- setApprovingPRIds((prev) => {
- if (!prev.has(pr.id)) return prev;
- const next = new Set(prev);
- next.delete(pr.id);
- return next;
+ setApprovingPRIds((prev) => removeIdFromSet(prev, pr.id));
+ }
+ }
+
+ async function handleMarkPRReady(pr: PullRequest): Promise {
+ const currentLogin = userLogin();
+ if (!canMarkPRReady(pr, currentLogin)) return;
+ if (markingReadyPRIds().has(pr.id)) return;
+ const client = getClient();
+ if (!client || !pr.nodeId) return;
+ const nodeId = pr.nodeId;
+
+ dismissNotificationBySource(`mark-ready-pr:${pr.id}`);
+
+ setMarkingReadyPRIds((prev) => addIdToSet(prev, pr.id));
+
+ try {
+ const result = await markPullRequestReady(client, nodeId);
+ if (getClient() !== client) return;
+
+ recentlyMarkedReadyPRs.set(pr.id, {
+ reviewDecision: result.reviewDecision,
+ markedAt: Date.now(),
+ });
+
+ setDashboardData(
+ produce((state) => {
+ const target = state.pullRequests.find((item) => item.id === pr.id);
+ if (target) {
+ target.draft = false;
+ if (result.reviewDecision !== null) {
+ target.reviewDecision = result.reviewDecision;
+ }
+ }
+ })
+ );
+
+ seedHotSetsFromTargeted({
+ issues: [],
+ pullRequests: [{ ...pr, nodeId, draft: false, enriched: true, checkStatus: "pending" }],
+ workflowRuns: [],
+ errors: [],
});
+
+ persistDashboardSnapshot();
+ } catch (err) {
+ if (getClient() !== client) return;
+ if (
+ handlePRMutationCommonError(
+ err,
+ `mark-ready-pr:${pr.id}`,
+ "Unable to mark PR ready: your token lacks Pull Requests write permission. For fine-grained PATs, set 'Pull requests' to 'Read and write' in GitHub Settings, then replace your token in Settings."
+ )
+ ) {
+ return;
+ }
+ const message = err instanceof Error ? err.message : "Unknown error";
+ pushNotification(`mark-ready-pr:${pr.id}`, `Failed to mark ${pr.repoFullName}#${pr.number} ready for review: ${message}`, "error");
+ } finally {
+ setMarkingReadyPRIds((prev) => removeIdFromSet(prev, pr.id));
}
}
@@ -1617,6 +1739,8 @@ export default function DashboardPage() {
depPrIds={dependencyPrIds()}
onApprovePR={handleApprovePR}
approvingPRIds={approvingPRIds()}
+ onMarkPRReady={handleMarkPRReady}
+ markingReadyPRIds={markingReadyPRIds()}
/>
@@ -1634,6 +1758,8 @@ export default function DashboardPage() {
onRefresh={() => _coordinator()?.manualRefresh()}
onApprovePR={handleApprovePR}
approvingPRIds={approvingPRIds()}
+ onMarkPRReady={handleMarkPRReady}
+ markingReadyPRIds={markingReadyPRIds()}
/>
@@ -1646,6 +1772,8 @@ export default function DashboardPage() {
hotPollingPRIds={hotPollingPRIds()}
onApprovePR={handleApprovePR}
approvingPRIds={approvingPRIds()}
+ onMarkPRReady={handleMarkPRReady}
+ markingReadyPRIds={markingReadyPRIds()}
/>
@@ -1712,6 +1840,8 @@ export default function DashboardPage() {
jiraKeyMap={jiraKeyMap}
onApprovePR={handleApprovePR}
approvingPRIds={approvingPRIds()}
+ onMarkPRReady={handleMarkPRReady}
+ markingReadyPRIds={markingReadyPRIds()}
/>
diff --git a/src/app/components/dashboard/DependenciesTab.tsx b/src/app/components/dashboard/DependenciesTab.tsx
index b1ddd204..6ff6227a 100644
--- a/src/app/components/dashboard/DependenciesTab.tsx
+++ b/src/app/components/dashboard/DependenciesTab.tsx
@@ -3,7 +3,7 @@ import { config, updateConfig } from "../../stores/config";
import { viewState, setTabFilter, resetAllTabFilters, ignoreItem, unignoreItem, trackItem, untrackItem, DependencyFiltersSchema, setDependencyExpandedGroups } from "../../stores/view";
import IgnoreBadge from "./IgnoreBadge";
import { isSafeGitHubUrl } from "../../lib/url";
-import { canApprovePR } from "../../lib/format";
+import { canApprovePR, canMarkPRReady } from "../../lib/format";
import type { PullRequest } from "../../services/api";
import type { AbandonedDependency } from "../../lib/dependency-dashboard";
import {
@@ -25,6 +25,7 @@ import StatusDot from "../shared/StatusDot";
import SizeBadge from "../shared/SizeBadge";
import ReviewBadge from "../shared/ReviewBadge";
import AutoMergeBadge from "../shared/AutoMergeBadge";
+import DraftBadge from "../shared/DraftBadge";
import ItemRow from "./ItemRow";
import SkeletonRows from "../shared/SkeletonRows";
@@ -114,6 +115,8 @@ interface DependenciesTabProps {
onRefresh?: () => void;
onApprovePR?: (pr: PullRequest) => void;
approvingPRIds?: ReadonlySet;
+ onMarkPRReady?: (pr: PullRequest) => void;
+ markingReadyPRIds?: ReadonlySet;
}
export default function DependenciesTab(props: DependenciesTabProps) {
@@ -370,6 +373,8 @@ export default function DependenciesTab(props: DependenciesTabProps) {
userLogin={props.userLogin}
onApprovePR={props.onApprovePR}
approvingPRIds={props.approvingPRIds}
+ onMarkPRReady={props.onMarkPRReady}
+ markingReadyPRIds={props.markingReadyPRIds}
/>
)}
@@ -395,6 +400,8 @@ interface StatusGroupProps {
userLogin: string;
onApprovePR?: (pr: PullRequest) => void;
approvingPRIds?: ReadonlySet;
+ onMarkPRReady?: (pr: PullRequest) => void;
+ markingReadyPRIds?: ReadonlySet;
}
function stripCommitPrefix(title: string): string {
@@ -463,9 +470,23 @@ function StatusGroup(props: StatusGroupProps) {
>