Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[Bug]: Compact PR header merge button gives no visible cue that it needs a second click

クローズ 初心者向け
#17,944 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
82/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
react, typescript
領域
frontend

調査の方向性

apps/webを読み、PullRequestDetailPanel.tsxを調べます。特に、mergeボタンとauto-mergeボタン、およびヘッダーのコンパクトなスタイルに注目します。幅の狭いPR詳細パネルで問題を再現し、最初のクリック後に各ボタンがどう変化するかを確認します。両方のボタンで、アイコンのみの表示でも armed 状態が視覚的に区別できれば完了です。このissueではテストファイルは指定されていません。

索引モデルが issue の本文から書いたものです。

説明

Before submitting
  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.
Area

apps/web

Steps to reproduce
  1. Open a mergeable pull request in the PR detail panel.
  2. Make the panel narrow enough that the header buttons collapse to icon only (@max-[30rem]/pr-header).
  3. Click the header Merge button (or Enable auto-merge) once.
Expected behavior

The button visibly shows that it is armed and a second click will merge, even in its icon-only form.

Actual behavior

Since #17710, the first click arms the button and the only visible change is the label switching to "Confirm merge?" / "Confirm auto-merge?". In the compact header that label is hidden (@max-[30rem]/pr-header:hidden in PullRequestDetailPanel.tsx), so the button looks unchanged. Apart from the hover tooltip, nothing tells you a second click is needed, and the armed state expires after 3 seconds. The first click looks like it did nothing.

Approve workflows and the menu items are not affected because their labels never hide.

Impact

Minor bug or occasional failure

Version or commit

main @ 1f093d119b (#17710) and later

Proposed fix

Show the armed state in a way that survives the icon-only form. For example, swap the merge glyph for a confirm icon (e.g. CheckIcon) while armed, alongside the existing label change. Revert already switches to the destructive variant when armed, which would be another option. The change is limited to those two buttons in PullRequestDetailPanel.tsx. I'm happy to open a PR once the direction is approved.

主要言語
TypeScript
スター
24.8k
フォーク
6.4k
平均マージ
5時間 30分
マージ済み PR(30日)
215

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

pingdotgg/t3code のほかの issue

pingdotgg/t3code の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。