Skip to content

fix(global-chat): re-offer the Ship card once a draft or mismatch clears (INC-2180) - #715

Merged
arzafran merged 5 commits into
mainfrom
franco/inc-2180-ultra-iphone-and-ship-card-edges
Dec 4, 2026
Merged

arzafran merged 5 commits into
mainfrom
franco/inc-2180-ultra-iphone-and-ship-card-edges

Conversation

@arzafran

@arzafran arzafran commented Dec 4, 2026

Copy link
Copy Markdown
Member

What this does

The Ship card in global chat now comes back once the thing that hid it clears: a dirty draft or a checkout that did not match the workspace. Before, a card dismissed for either reason stayed gone until the chat was reopened. On iPhone, VoiceOver now announces which provider is selected in the title menu.

Summary

  • Refactor first: seams for Ship verdicts and probe times, so the re-offer logic can be tested (GlobalChatCards, GitMetadataProber).
  • Re-offer is probe-gated: a card is offered again only after a fresh git probe shows the mismatch or draft is gone.
  • A Ship card stays refreshed when a press loses its binding or its terminal closes.
  • GlobalChatScreen marks the selected provider with the selected accessibility trait.
  • Review order: tests in GlobalChatDispatchTests.swift, then GlobalChatCards.swift, then the rest.
  • The two other iPhone items in INC-2180 have no path in current code. They are left for an on-device check.

Test Plan

  • CI unit job runs GlobalChatDispatchTests: expect 0 failures, including the new draft, checkout-mismatch and probe-gated re-offer cases.
  • On device: open the iPhone provider menu with VoiceOver on and confirm the selected provider is announced as selected.

Fixes INC-2180

@vercel

vercel Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
programa-site Ready Ready Preview Dec 4, 2026 4:18pm UTC

@arzafran
arzafran merged commit 9bac8dc into main Dec 4, 2026
15 checks passed
@arzafran
arzafran deleted the franco/inc-2180-ultra-iphone-and-ship-card-edges branch December 4, 2026 16:37

This branch was successfully deployed

1 active deployment
Preview — f2265b38 Deployed Dec 4, 2026 by vercel[bot]
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