Skip to content

Tag macOS share links and measure successful sends - #19409

Merged
Git-on-my-level merged 2 commits into
mainfrom
feat/sharing-macos-source-tags
Sep 27, 2026
Merged

Git-on-my-level merged 2 commits into
mainfrom
feat/sharing-macos-source-tags

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Sep 27, 2026 •

Copy link
Copy Markdown
Member

Summary

Tag macOS conversation, shared chat and task URLs with s=mac and a random non-identifying sid. Add the same share ID to the send event for copied conversation, floating-bar chat and task links. Copy actions identify target_app=copy; the operating system does not report a destination app for later pastes. Remove a duplicate conversation send event and avoid logging the full task share URL. The backend already emits Conversation Summary Shared after its email provider accepts a send; this PR uses that authoritative event rather than counting a second client-side email action.

Verification

  • xcrun swift test -c debug --package-path Desktop --filter 'ShareLinksEnvironmentTests|ConversationShareLinkActionTests': 9 passed.
  • Swift formatting and parse checks passed.
  • scripts/pr-preflight --pr-body-file and CI required checks before merge.

Product invariants affected

  • INV-CHAT-1
  • INV-DATA-1
  • INV-NAV-1
  • INV-TASK-1

Line-Count-Exception: desktop/macos/Desktop/Sources/MainWindow/Pages/TasksPage.swift | 6503 -> 6506 | reason: The three extra lines pass the tagged task share ID into its existing analytics call; extracting the surrounding large view is outside this focused metrics PR.

Rollout

Merge into the normal macOS release train. This PR does not trigger a Sparkle or desktop release.

🤖 Generated with Claude Code

@Git-on-my-level
Git-on-my-level force-pushed the feat/sharing-macos-source-tags branch from 6a2b036 to e2c7b47 Compare September 27, 2026 17:04
@Git-on-my-level

Copy link
Copy Markdown
Member Author

Monitor refresh: rebased this PR onto current main (was 34 commits behind; patch-equivalent, no content change) and re-pushed to re-run the required Desktop Swift Build & Tests check.

Why the check was red: the previous run's verify job was cancelled at its 90-minute job ceiling, not a test failure — zero failing test cases in the run log. Every executed Swift suite was green; one 92-suite batch exited 1 (order-dependent flake) and the runner's silent isolation fallback then stalled ~61 min until the job timeout killed it, which the required gate reports as failure.

Verification on the rebased tree:

  • git diff --check clean; desktop changelog fragment present; swiftc -parse clean on all changed Swift files
  • swift test --filter 'ShareLinksEnvironmentTests|ConversationShareLinkActionTests' — all passed
  • Bounded pre-push gate passed, including the product file line-count ratchet against this PR's declared Line-Count-Exception for TasksPage.swift

CI is now running on the fresh head (e2c7b47).

@Git-on-my-level
Git-on-my-level merged commit 86c6902 into main Sep 27, 2026
42 checks passed
@Git-on-my-level
Git-on-my-level deleted the feat/sharing-macos-source-tags branch September 27, 2026 18:50
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