feat(swift-ios): copy thread metadata from row menus #8622
Mergedsaphid(GitHub profile, opens in a new tab)merged 7 commits into
t3code/rebuild-mobile-app-swift fromrefs/pull/8622/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:L
- apps/swift-ios/Features/Workspace/ThreadCopyActions.swift line 85Resolvedby saphid(GitHub profile, opens in a new tab)@@ -0,0 +50,21 @@50+ var announcement: String {51+ isAvailable ? kind.copyAnnouncement : "\(kind.title) unavailable"52+ }53+}54+55+enum ThreadCopyModel {56+ static func actions(57+ for thread: FeatureThread,58+ context: ThreadCopyContext59+ ) -> [ThreadCopyAction] {60+ var actions: [ThreadCopyAction] = []61+62+ let path = nonBlank(thread.worktreePath) ?? nonBlank(context.projectWorkspaceRoot)63+ actions.append(ThreadCopyAction(kind: .path, value: path))64+ if let branch = nonBlank(thread.branch) {65+ actions.append(ThreadCopyAction(kind: .branch, value: branch))66+ }67+ if let threadID = nonBlank(thread.wireID) ?? nonBlank(thread.id) {68+ actions.append(ThreadCopyAction(kind: .threadID, value: threadID))69+ }70+ if let project = nonBlank(context.projectName) {
- apps/swift-ios/Features/Workspace/WorkspaceView.swift line 851Resolvedby cursor[bot](GitHub profile, opens in a new tab)@@ -840,3 +840,11 @@840840 connectionState: nil841841 )842842843+ var copyContext: ThreadCopyContext {844+ ThreadCopyContext(845+ projectName: projectName,846+ projectWorkspaceRoot: projectWorkspaceRoot,847+ environmentName: environmentLabel,848+ environmentID: projectEnvironmentID849+ )850+ }
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:L
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XL
saphid(GitHub profile, opens in a new tab) changed the title
t3dotgg(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.


















Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID:
ef903f05-804e-4bd3-af8b-4392e9cc1eb9You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
Comment `@coderabbitai help` to get the list of available commands.