[BUG]: "Delete" PAT button is gated on the input field, so a saved token can't be removed when the field is empty
Los mantenedores suelen responder en 3 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 88/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- javascript, react
- Área
- authentication, frontend
Línea de trabajo
Empieza por la lógica del botón Delete en src/pages/SettingsPage.jsx alrededor de la línea 205 y en src/components/PATModal.jsx alrededor de la línea 227. Comprueba cómo se representan el PAT guardado y el borrador de entrada, y luego actualiza la condición de deshabilitado para que se pueda eliminar un token guardado aunque el campo de entrada esté vacío. Verifica en ambas vistas que, al eliminarlo, se borre el token almacenado y se restablezca el estado de autenticación.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- JavaScript
- Estrellas
- 45
- Forks
- 148
- Merge medio
- 5 d 20 h
- PR fusionados (30 d)
- 27
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de AOSSIE-Org/OrgExplorer
-
[BUG]: Overview "Language Distribution" percentages are relative to the top-7 languages, not all reposPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
AOSSIE-Org/OrgExplorer#402 ·
Los mantenedores suelen responder en 3 días
-
[BUG]: Overview wrongly lists a successfully-loaded org as "could not be loaded" (case / duplicate)Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
AOSSIE-Org/OrgExplorer#400 ·
Los mantenedores suelen responder en 3 días
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
AOSSIE-Org/OrgExplorer#399 ·
Los mantenedores suelen responder en 3 días
-
bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 86/100
AOSSIE-Org/OrgExplorer#398 ·
Los mantenedores suelen responder en 3 días
-
[BUG]: Eliminate render-blocking CDN stylesheet for SocialShareButton in index.htmlPosiblemente ocupada @garv3143 la tomó hace 1 día. Abiertobug enhancement
Dificultad 1/5 1-3 horas Aptitud para principiantes 72/100
AOSSIE-Org/OrgExplorer#395 · 1 comentario ·
Los mantenedores suelen responder en 3 días
Todos los issues de AOSSIE-Org/OrgExplorer
Issues similares
-
type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 66/100
Los mantenedores suelen responder en 1 día
-
Update to mocha 12.xAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
rescript-lang/rescript#8996 ·
Los mantenedores suelen responder en 1 día
-
Add: Ministerstvoidey.ruAbiertocheck:passed logos:add
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100