From 6e2c8b4b2d4c3a096d15b767abd86ed1ac01c3fe Mon Sep 17 00:00:00 2001 From: cdricms <36056008+cdricms@users.noreply.github.com> Date: Fri, 24 Jul 2026 14:18:22 +0200 Subject: [PATCH] feat(apple): open the share panel right after creating a transfer After Start sharing succeeds, jump straight to the new transfer's share panel (QR code + delivery actions) instead of returning to the list and making the user drill in via the row and the share row. Refresh first so the transfer exists in state before selecting it; the share panel already handles the brief window before the ticket is ready. --- apple/VniDrop/Features/Send/SendModel.swift | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apple/VniDrop/Features/Send/SendModel.swift b/apple/VniDrop/Features/Send/SendModel.swift index 325fe5c..18175dc 100644 --- a/apple/VniDrop/Features/Send/SendModel.swift +++ b/apple/VniDrop/Features/Send/SendModel.swift @@ -300,6 +300,13 @@ final class SendModel: ObservableObject { state.transferName = "" state.accessPolicy = .requireApproval state.isSharing = false + // Jump straight to the new transfer's share panel (QR + delivery) rather + // than dropping the user on the list to drill in manually. Refresh first + // so the transfer exists in state before it's selected. + _ = await repository.refresh() + state.selectedTransferId = share.transferId + state.detailPanel = .share + refreshReceivers(share.transferId) messages.show(UiMessage(text: .resource(L10n.Send.transferCreated), tone: .success)) case .failure(let error): state.isSharing = false