[BUG]: "Delete" PAT button is gated on the input field, so a saved token can't be removed when the field is empty
Maintainer thường phản hồi trong vòng 4 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 88/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript, react
- Lĩnh vực
- authentication, frontend
Hướng nghiên cứu
Bắt đầu với logic của nút Delete trong src/pages/SettingsPage.jsx quanh dòng 205 và src/components/PATModal.jsx quanh dòng 227. Kiểm tra cách PAT đã lưu và bản nháp nhập liệu được biểu diễn, sau đó cập nhật điều kiện vô hiệu hóa để có thể xóa token đã lưu ngay cả khi ô nhập liệu trống. Xác minh ở cả hai chế độ xem rằng thao tác xóa loại bỏ token đã lưu và xóa trạng thái xác thực.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- JavaScript
- Star
- 45
- Fork
- 148
- Merge trung bình
- 5 ngày 14 giờ
- Pull request đã merge (30 ngày)
- 31
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của AOSSIE-Org/OrgExplorer
-
[BUG]: Overview "Language Distribution" percentages are relative to the top-7 languages, not all reposCó thể đã có người làm @Rohit270406 đã nhận hôm nay. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
AOSSIE-Org/OrgExplorer#402 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
-
[BUG]: Overview wrongly lists a successfully-loaded org as "could not be loaded" (case / duplicate)Có thể đã có người làm @dhruvbit đã nhận hôm nay. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
AOSSIE-Org/OrgExplorer#400 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
AOSSIE-Org/OrgExplorer#399 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
AOSSIE-Org/OrgExplorer#398 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
[BUG]: Eliminate render-blocking CDN stylesheet for SocialShareButton in index.htmlCó thể đã có người làm @garv3143 đã nhận 2 ngày trước. Đang mởbug enhancement
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 72/100
AOSSIE-Org/OrgExplorer#395 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
Tất cả issue của AOSSIE-Org/OrgExplorer
Issue tương tự
-
[Feature]: 建议导入源后,自动切换到新导入的源Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
lyswhut/lx-music-desktop#3026 ·
-
good first issue server
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
openstreetmap/iD#13054 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
community marketing priority: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
TMHSDigital/Free-Game-Dev-Assets#151 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Read a vector index's quantization back on Neo4j 2026.10, which reports vector.quantization.typeĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
liberation-data/drivine#231 ·
Maintainer thường phản hồi trong vòng 1 ngày