fix(cloud): design-squad — W-number chip copies the workspace link only; ungrouped rows read 'Other workspaces'

This commit is contained in:
Neil
2026-11-10 20:40:29 -08:00
parent 8a2603a68e
commit abfc2c2808
4 changed files with 9 additions and 10 deletions
@@ -85,7 +85,7 @@ export function CloudWorkspaceGroupView({
const label =
group.kind === 'pinned'
? t('auto.components.cloudWorkspaces.pinned', 'Pinned')
: (group.section ?? t('auto.components.cloudWorkspaces.noSection', 'No section'))
: (group.section ?? t('auto.components.cloudWorkspaces.otherWorkspaces', 'Other workspaces'))
const count = (
<>
{/* The bare number is visual; screen readers get the counted phrase. */}
@@ -9,7 +9,6 @@ import { cn } from '@/lib/utils'
import { useAppStore } from '@/store'
import { formatWorkspaceNumber } from '../../../../shared/cloud-workspaces/cloud-workspaces-wire'
import { sandboxIdForWorktree, useCloudWorkspaceIdentities } from './cloud-workspace-identity'
import { frontCloudChat } from './cloud-workspace-links'
import { copyCloudWorkspaceLink } from './open-cloud-workspace'
const COPIED_MS = 1_500
@@ -46,12 +45,10 @@ export function CloudWorkspaceNumberChip({
<button
type="button"
onClick={() => {
const front = frontCloudChat()
void copyCloudWorkspaceLink(
sandboxId,
front?.sandboxId === sandboxId ? front.chatId : null,
{ quiet: true }
).then((ok) => ok && setCopied(true))
// The workspace only: a teammate opening it shouldn't land on your terminal or chat.
void copyCloudWorkspaceLink(sandboxId, null, { quiet: true }).then(
(ok) => ok && setCopied(true)
)
}}
aria-label={t('auto.components.cloudWorkspaces.copyLinkTo', 'Copy link to {{number}}', {
number: label
@@ -35,7 +35,8 @@ function spoken(w: CloudWorkspace | undefined): string {
function groupName(group: CloudWorkspaceGroup<CloudWorkspace>): string {
return group.kind === 'pinned'
? translate('auto.components.cloudWorkspaces.pinned', 'Pinned')
: (group.section ?? translate('auto.components.cloudWorkspaces.noSection', 'No section'))
: (group.section ??
translate('auto.components.cloudWorkspaces.otherWorkspaces', 'Other workspaces'))
}
export function useCloudWorkspaceArrangement(visible: readonly CloudWorkspace[]) {
+2 -1
View File
@@ -21059,7 +21059,8 @@
"movedTo": "Moved {{name}} to position {{position}} in {{group}}",
"pinLimit": "You can pin up to {{count}} workspaces. Unpin one first.",
"pinnedName": "Pinned {{name}}",
"unpinnedName": "Unpinned {{name}}"
"unpinnedName": "Unpinned {{name}}",
"otherWorkspaces": "Other workspaces"
},
"orcaCloud": {
"QueuedPrompt": {