Skip to content

refactor(web): move FileLinkPathLabel out of shared FileTagChipContent - #839

Merged
orbitingflea merged 1 commit into
mainfrom
refactor/file-tag-chip-label-242
Dec 6, 2026
Merged

orbitingflea merged 1 commit into
mainfrom
refactor/file-tag-chip-label-242

Conversation

@orbitingflea

Copy link
Copy Markdown
Owner

Why

Keep the shared FileTagChipContent renderer decoupled from the fork's folder-prefix label component so composer chips (which never carry a folder prefix) render plain labels directly without invoking FileLinkPathLabel.

Closes #242.

What changed

  • Removed labelPrefix and the FileLinkPathLabel import from apps/web/src/components/chat/FileTagChip.tsx, widening label to ReactNode (upstream diff vs dfba2c3b056: 5+/1- -> 1+/1-).
  • Moved FileLinkPathLabel rendering to apps/web/src/components/chat/MarkdownFileLink.tsx, invoking it only when labelPrefix !== undefined.

Scope

  • apps/web/src/components/chat/FileTagChip.tsx
  • apps/web/src/components/chat/MarkdownFileLink.tsx

Blast Radius

Behavior is unchanged for both composer mention chips and Markdown file link chips.

Verification

  • vp test run apps/web/src/fork/fileLinkPathDepth.test.ts apps/web/src/fork/fileLinkPathDepth.browser.test.tsx apps/web/src/reactCompilerCoverage.test.ts (1,705 passed)
  • vp fmt --check, vp lint, vp run typecheck (43/43), vp run knip:check

@orbitingflea
orbitingflea merged commit fb9e073 into main Dec 6, 2026
20 checks passed
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.

PR #239 review-leftover: The shared file tag renderer now invokes the fork-specific label component for c [5312769aa841]

1 participant