Skip to content

feat: support document edit URL in documentUnfurler#3

Open
lollipop-onl wants to merge 1 commit intomainfrom
feat/document-edit-url-unfurler
Open

feat: support document edit URL in documentUnfurler#3
lollipop-onl wants to merge 1 commit intomainfrom
feat/document-edit-url-unfurler

Conversation

@lollipop-onl
Copy link
Member

Summary

  • Extend documentUnfurler regex to match /document/{projectKey}/e/{documentId} edit URLs
  • Prefix title with "Edit" for edit URLs: [PROJ] Edit Document Title | Document
  • Add documentUnfurler test suite (view URL + edit URL)
  • Refactor test helpers (createAnchor, mockClient) to top-level shared utilities

Closes #1

Test plan

  • All 24 tests pass (vitest run)
  • Verify document view URL still works on actual Backlog pages
  • Verify document edit URL shows "Edit" prefix on actual Backlog pages
  • Verify cross-space prefix works for document edit URLs

🤖 Generated with Claude Code

Extend documentUnfurler to match /document/{projectKey}/e/{documentId}
edit URLs, prefixing the title with "Edit" to indicate editing state.
Also add documentUnfurler tests and refactor test helpers.

Closes #1

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

ドキュメントの編集URLのプレビュー

1 participant