[BUG]: "Delete" PAT button is gated on the input field, so a saved token can't be removed when the field is empty
メンテナーはふだん 3 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 88/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- javascript, react
調査の方向性
src/pages/SettingsPage.jsx の205行目付近と src/components/PATModal.jsx の227行目付近にある Delete ボタンのロジックから確認します。保存済みの PAT と入力中の下書きがどのように表現されているかを確認し、入力欄が空でも保存済みトークンを削除できるよう、無効化条件を更新します。両方のビューで、削除によって保存済みトークンが取り除かれ、認証状態がクリアされることを確認します。
索引モデルが issue の本文から書いたものです。
説明
Bug Description
In Settings (src/pages/SettingsPage.jsx line 205) and the PAT modal
(src/components/PATModal.jsx line 227), the Delete button is disabled={!draft.trim()} —
gated on the text currently in the input, not on whether a token is actually saved (pat).
So a signed-in user (green AUTHENTICATED pill, token in localStorage) who clears the input
box can no longer revoke their stored token: Delete is disabled. The button also has no
disabled styling, so it still looks clickable but does nothing.
Verified in the running app after clearing the field:
{ inputValue:"", deleteDisabled:true, authenticatedPillShown:true, patStillInStorage:"ghp_..." }
then clicking Delete is a no-op:
{ patStillInStorage:"ghp_...", stillAuthenticated:true }
Steps to Reproduce
- Settings: save a PAT (the AUTHENTICATED pill appears).
- Select all in the token field and delete the text.
- The Delete button is now disabled — you can't remove the stored token without retyping.
Logs and Screenshots
After clearing the input field (token still saved):
inputValue : ""
deleteDisabled : true
authenticatedPillShown : true
patStillInStorage : "ghp_..."
After clicking Delete (no-op — button is disabled):
patStillInStorage : "ghp_..."
stillAuthenticated : true
📎 Image file:
Environment Details
- OS: macOS - Browser: Chrome
- Repo: main @ d91d2b8
- Files: src/pages/SettingsPage.jsx (line 205), src/components/PATModal.jsx (line 227)
- Suggested fix: gate Delete on
pat(token exists), e.g. disabled={!pat || isValidating};
same change in PATModal.jsx. Related but closed: #321, #138, #257.
Impact
Low - Minor inconvenience
Code of Conduct
- I have joined the Discord server and will post updates there
- I have searched existing issues to avoid duplicates
- 主要言語
- JavaScript
- スター
- 45
- フォーク
- 148
- 平均マージ
- 5日 20時間
- マージ済み PR(30日)
- 27
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
AOSSIE-Org/OrgExplorer のほかの issue
-
[BUG]: Overview "Language Distribution" percentages are relative to the top-7 languages, not all repos対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
AOSSIE-Org/OrgExplorer#402 ·
メンテナーはふだん 3 日以内に返信
-
[BUG]: Overview wrongly lists a successfully-loaded org as "could not be loaded" (case / duplicate)オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
AOSSIE-Org/OrgExplorer#400 ·
メンテナーはふだん 3 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
AOSSIE-Org/OrgExplorer#399 ·
メンテナーはふだん 3 日以内に返信
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
AOSSIE-Org/OrgExplorer#398 ·
メンテナーはふだん 3 日以内に返信
-
[BUG]: Eliminate render-blocking CDN stylesheet for SocialShareButton in index.html対応中かも @garv3143 が 2 日前に担当しました。 オープンbug enhancement
難易度 1/5 1〜3時間 初心者へのやさしさ 72/100
AOSSIE-Org/OrgExplorer#395 · コメント 1 件 ·
メンテナーはふだん 3 日以内に返信
AOSSIE-Org/OrgExplorer の issue をすべて見る
似ている issue
-
accessibility bug html websites
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
quarto-dev/quarto-cli#15187 ·
メンテナーはふだん 1 日以内に返信
-
bug needs triage P3
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
pbakaus/impeccable#1143 ·
メンテナーはふだん 1 日以内に返信
-
status: waiting for maintainer
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
mui/material-ui#49547 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
capricorn86/happy-dom#2544 ·
メンテナーはふだん 1 日以内に返信
-
next() is called twice when the request closes after busboy fails to start対応中かも @NgoQuocViet2001 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100