Skip to content

The open-source app everyone uses to manage agents at work

Remove planning badge from inbox issue rows (PAP-9691) (#6269)

Dotta32605b71ad46
diff --git a/tests/e2e/planning-mode-visual-verification.spec.ts b/tests/e2e/planning-mode-visual-verification.spec.ts
index 3e6e2444e9..8095c770f3 100644
--- a/tests/e2e/planning-mode-visual-verification.spec.ts
+++ b/tests/e2e/planning-mode-visual-verification.spec.ts
@@ -119,7 +119,7 @@ test("captures planning mode UI for desktop and mobile", async ({ page }) => {
await page.goto(`/${companyPrefix}/issues`);
await expect(page.locator(issueLinkSelector)).toBeVisible();
- await expect(page.locator(issueLinkSelector)).toContainText("Planning");
+ await expect(page.locator(issueLinkSelector)).not.toContainText("Planning");
await page.screenshot({
path: `${screenshotDir}/desktop-planning-row-${timestamp}.png`,
fullPage: true,
@@ -149,7 +149,7 @@ test("captures planning mode UI for desktop and mobile", async ({ page }) => {
await page.goto(`/${companyPrefix}/issues`);
await expect(page.locator(issueLinkSelector)).toBeVisible();
- await expect(page.locator(issueLinkSelector)).toContainText("Planning");
+ await expect(page.locator(issueLinkSelector)).not.toContainText("Planning");
await page.screenshot({
path: `${screenshotDir}/mobile-planning-row-${timestamp}.png`,
fullPage: true,
diff --git a/ui/src/components/IssueRow.test.tsx b/ui/src/components/IssueRow.test.tsx
index 8b0e10b3dd..28f0c14fa5 100644
--- a/ui/src/components/IssueRow.test.tsx
+++ b/ui/src/components/IssueRow.test.tsx
@@ -228,7 +228,7 @@ describe("IssueRow", () => {
});
});
- it("renders planning mode marker for planning work mode issues", () => {
+ it("does not render a planning mode marker for planning work mode issues", () => {
const root = createRoot(container);
act(() => {
@@ -237,8 +237,7 @@ describe("IssueRow", () => {
const link = container.querySelector("[data-inbox-issue-link]") as HTMLAnchorElement | null;
expect(link).not.toBeNull();
- expect(link?.textContent).toContain("Planning");
- expect(link?.textContent?.match(/Planning/g)).toHaveLength(1);
+ expect(link?.textContent).not.toContain("Planning");
act(() => {
root.unmount();
diff --git a/ui/src/components/IssueRow.tsx b/ui/src/components/IssueRow.tsx
index 546933c800..978dd94986 100644
--- a/ui/src/components/IssueRow.tsx
+++ b/ui/src/components/IssueRow.tsx
@@ -85,14 +85,6 @@ export function IssueRow({
{checklistStepNumber}.
</span>
) : null;
- const planningModeIndicator = issue.workMode === "planning" ? (
- <span
- className="ml-1.5 inline-flex shrink-0 items-center rounded-full border border-amber-500/60 bg-amber-500/15 px-2 py-0.5 text-[10px] font-medium text-amber-700 dark:text-amber-300"
- title="This issue is in planning mode."
- >
- Planning
- </span>
- ) : null;
const recoveryAction = issue.activeRecoveryAction ?? null;
const recoveryIndicator = recoveryAction ? renderRecoveryChip(recoveryAction, selected) : null;
const parkedBlockerIndicator = hasAssignedBacklogBlocker(issue.blockedBy) ? (
@@ -156,7 +148,6 @@ export function IssueRow({
{recoveryIndicator}
</>
)}
- {planningModeIndicator}
{mobileMeta ? (
<>
<span className="text-xs text-muted-foreground sm:hidden" aria-hidden="true">