Skip to content

fix(web): hide non-functional comment button on Files-changed tab#24

Merged
dastratakos merged 1 commit into
mainfrom
dastratakos/remove-file-comment-button
May 4, 2026
Merged

fix(web): hide non-functional comment button on Files-changed tab#24
dastratakos merged 1 commit into
mainfrom
dastratakos/remove-file-comment-button

Conversation

@dastratakos

@dastratakos dastratakos commented May 4, 2026

Copy link
Copy Markdown
Contributor

Summary

The Files-changed tab was rendering a "Comment on this file" button in every file header, but clicking it did nothing because the handler was a noop. Drop the noop so the button stops appearing until the comment feature is actually wired up.

Changes

  • Remove onComment={noop} (and the noop const) from FileDiffSection in packages/web/src/components/files/file-diff-list.tsx. FileHeader only renders the comment button when onComment is supplied, so the button now stays hidden. The onComment scaffolding on FileHeader is preserved for an upcoming follow-up.

Testing

  • pnpm typecheck
  • pnpm lint

Open in Stage

Drop the noop onComment handler that was making FileHeader render an
inert "Comment on this file" button. Comment scaffolding stays in place
for a future wiring.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request removes the unused noop function and the onComment property from the FileDiffSection component within file-diff-list.tsx. I have no feedback to provide as there are no review comments to evaluate.

@dastratakos dastratakos force-pushed the dastratakos/remove-file-comment-button branch from bffaf0f to 943e7fd Compare May 4, 2026 07:36
@dastratakos dastratakos marked this pull request as ready for review May 4, 2026 07:37
@dastratakos dastratakos merged commit f5d23d8 into main May 4, 2026
5 checks passed
@dastratakos dastratakos deleted the dastratakos/remove-file-comment-button branch May 4, 2026 07:42
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.

1 participant