Skip to content

fix(mobile): use unconfirmed badge for pending requests#132

Open
dhairyashiil wants to merge 1 commit into
mainfrom
codex/mobile-use-unconfirmed-badge
Open

fix(mobile): use unconfirmed badge for pending requests#132
dhairyashiil wants to merge 1 commit into
mainfrom
codex/mobile-use-unconfirmed-badge

Conversation

@dhairyashiil

Copy link
Copy Markdown
Member

What changed

  • Updated mobile pending booking request badges to always display Unconfirmed instead of Pending host confirmation.
  • Applied the copy consistently across booking list rows, recurring booking rows, and booking detail screens.
  • Removed now-unused badge-only host-confirmation state plumbing while preserving confirm/reject permission gating.

Verification

  • bun test apps/mobile/components/screens/BookingDetailRequestActions.test.js
  • bun --filter mobile test --runInBand
  • bun --filter mobile typecheck
  • bunx biome check apps/mobile/utils/booking-request-actions.ts apps/mobile/components/booking-list-item/BookingListItemParts.tsx apps/mobile/components/booking-list-item/BookingListItem.tsx apps/mobile/components/booking-list-item/BookingListItem.ios.tsx apps/mobile/components/booking-list-item/RecurringBookingListItem.tsx apps/mobile/components/booking-list-item/RecurringBookingListItem.ios.tsx apps/mobile/components/screens/BookingDetailScreen.tsx apps/mobile/components/screens/BookingDetailScreen.ios.tsx apps/mobile/components/screens/BookingDetailRequestActions.test.js
  • git diff --check
  • rg -n "Pending host confirmation" apps/mobile (no matches)

@vercel

vercel Bot commented Jun 29, 2026

Copy link
Copy Markdown

Deployment failed with the following error:

You don't have permission to create a Preview Deployment for this Vercel project: cal-companion-mcp.

View Documentation: https://vercel.com/docs/accounts/team-members-and-roles

@dhairyashiil dhairyashiil force-pushed the codex/mobile-use-unconfirmed-badge branch from f246de6 to 519eba9 Compare June 29, 2026 08:07
@vercel

vercel Bot commented Jun 29, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
cal-companion-chat Ignored Ignored Jun 29, 2026 8:07am

Request Review

@dhairyashiil dhairyashiil marked this pull request as ready for review June 29, 2026 08:11
@dhairyashiil dhairyashiil enabled auto-merge (squash) June 29, 2026 08:11

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 9 files

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="apps/mobile/components/screens/BookingDetailRequestActions.test.js">

<violation number="1" location="apps/mobile/components/screens/BookingDetailRequestActions.test.js:174">
P3: Test name describes behavior but body only asserts a constant's literal value.</violation>
</file>

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

});
});

test("uses the unconfirmed badge label when the current user cannot respond", () => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P3: Test name describes behavior but body only asserts a constant's literal value.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At apps/mobile/components/screens/BookingDetailRequestActions.test.js, line 174:

<comment>Test name describes behavior but body only asserts a constant's literal value.</comment>

<file context>
@@ -169,4 +170,8 @@ describe("getBookingRequestActionState", () => {
     });
   });
+
+  test("uses the unconfirmed badge label when the current user cannot respond", () => {
+    expect(BOOKING_REQUEST_BADGE_LABEL).toBe("Unconfirmed");
+  });
</file context>

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

Open in Devin Review

now?: Date;
};

export const BOOKING_REQUEST_BADGE_LABEL = "Unconfirmed";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚩 Attendees now see a generic label instead of an informative one

Previously, attendees (non-host users) viewing a pending booking saw "Pending host confirmation", which told them the booking was waiting on the host. Now all users see the generic "Unconfirmed" label. This is a user-facing behavior change that affects how attendees understand the status of their booking requests. The PR doesn't state intent for this change, so it's worth confirming this is the desired product behavior — attendees lose the signal that the ball is in the host's court.

Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

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.

1 participant