Skip to content
This repository was archived by the owner on Sep 2, 2026. It is now read-only.

test(workspace-name): expect the linked issue number in derived names - #92

Merged
64ix merged 1 commit into
mainfrom
64ix/fix-folder-workspace-linked-name-assertions
Aug 26, 2026
Merged

64ix merged 1 commit into
mainfrom
64ix/fix-folder-workspace-linked-name-assertions

Conversation

@64ix

@64ix 64ix commented Aug 26, 2026 •

Copy link
Copy Markdown
Owner
Files Added Deleted Net
Test 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​4 $\color{#cf222e}{\Huge{\mathbf{−}}}$​4 0
Prod 0 0 0 0

Summary

#88 (issue #83) carried the linked GitHub issue/PR number into derived workspace names. That change reaches two suites neither #88 nor #91 touched, because both resolve names through getLinkedItemDisplayName → getWorkspaceSourceName → getLinkedWorkItemWorkspaceName:

  • folder-workspace-composer-submit.test.ts — folder-workspace creation from a linked item (3 assertions)
  • WorktreeJumpPalette.linear-url.test.tsx — pasting a GitHub issue URL into the jump palette (1 assertion)

The new names are the intended behaviour, so this updates the stale expectations. Both suites were green in isolation before the batch merged and only broke once #88 landed, which is why per-PR CI did not catch them.

Worth noting: the failing case in the linear-url suite is the GitHub one — the Linear-derived assertions in the same file pass untouched, confirming #83's "Linear/Jira-derived names unchanged" criterion held.

Criteria

Criterion Verdict Evidence
Folder-workspace creation from a linked issue/PR carries the number pass folder-workspace-composer-submit.test.ts, 24/24
Jump-palette GitHub URL paste carries the number pass WorktreeJumpPalette.linear-url.test.tsx, 13/13
Linear-derived names unchanged pass same file, Linear cases untouched and passing
No production code changed pass diff is test-only, 4 lines

QA plan

  • Paste a GitHub issue URL into the jump palette → the prefilled workspace name starts with issue-<n>-
  • Create a folder workspace from a linked GitHub issue → its name starts with Issue <n>
  • Create a workspace from a Linear item → name unchanged from before the batch

The #83 change (carrying the linked GitHub issue/PR number into derived
names) reaches folder-workspace creation and the jump-palette URL paste
through getWorkspaceSourceName; neither suite was updated with it.
@64ix
64ix merged commit db02db4 into main Aug 26, 2026
@64ix 64ix mentioned this pull request Aug 27, 2026
14 tasks
64ix added a commit that referenced this pull request Aug 27, 2026
#88 made getWorkspaceSourceName carry the linked issue/PR number into the
derived name, and #92 updated the desktop expectations but missed mobile — these
five assertions have been red on main ever since. Mobile's resolveWorkItemAutoName
is a thin delegate to that same shared function, and desktop now expects exactly
this shape ('Issue 42 …', 'PR 91 …'), so the behaviour is intended and only the
expectations were stale.

Refs #71
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant