[BUG]: Allow Backspace in Organisation Search Chip
Les mainteneurs répondent en général sous 1 jour
Évaluation
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Accessibilité débutants
- 35/100
- Type d'issue
- Bug
- Clarté
- Clairement spécifiée
- Activité
- Active
- Stack technique
- javascript, react
- Domaine
- frontend
Piste de recherche
The chip logic lives in src/pages/HomePage.jsx: the Backspace handler around lines 45-47 deletes the last chip with slice, and the chip render around lines 85-94 has no click handler. Start by reading those two spots and the removeChip helper. Done means Backspace on an empty input moves the last chip's text back into the input, and clicking a chip does the same. Note that PR #459 is already open against this issue, so check it before starting.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Bug Description
Bug Description :
- If the user makes a typo (e.g.
AOSSIE-Orgg), there is no way to edit the text in place. The user must click thexdelete button, which removes the chip entirely, requiring them to retype the full name from scratch. - When the text input is empty and the user presses
Backspace, the previous chip is permanently deleted instead of restoring its text into the input field for easy correction.
Proposed Solution :
- When 'Backspace
is pressed, pop the last chip and load its string value directly into theinput` field so the user can immediately edit it without retyping. - Clicking on an existing chip should remove it from the chips list and populate the input field with its value, focusing the input for quick modification.
Steps to Reproduce
- Navigate to the HomePage (
/). - In the search bar, type an organization name with a typo (e.g.
AOSSIE-Orgg) and press Enter to create a chip. - Try to click or double-click the chip to edit it — observe that it is non-editable.
- Click the
xicon on the chip — observe that the chip is deleted completely, and the user must re-enter the entire name. - Alternatively, add a chip, ensure the text input is empty, and press
Backspace— observe that the chip is permanently deleted rather than populated back into the input for correction.
Logs and Screenshots
In src/pages/HomePage.jsx:
Lines 45–47 handle Backspace:
if (e.key === 'Backspace' && !input && chips.length) {
setChips(prev => prev.slice(0, -1)) // Permanently deletes the chip
}
Lines 85–94 render chips as static non-interactive elements:
{chips.map(c => (
<span key={c} style={{ ... }}>
{c}
<FiX size={12} style={{ cursor: 'pointer', opacity: .7 }} onClick={() => removeChip(c)} />
</span>
))}
Expected Behavior:
- Pressing
Backspacewheninputis empty should pop the last chip and place its text back intoinputfor editing. - Clicking on a chip should remove it from the chips list and load its string into the input field for instant editing.
Environment Details
- Browser: Any (Chrome / Firefox / Safari / Edge)
- OS: Any (macOS / Linux / Windows)
- Branch:
main - Component:
src/pages/HomePage.jsx
Impact
Medium - Feature works but has issues
Code of Conduct
- I have joined the Discord server and will post updates there
- I have searched existing issues to avoid duplicates
- Langage dominant
- JavaScript
- Étoiles
- 53
- Forks
- 187
- Merge moyen
- 18 min
- PR mergées (30 j)
- 2
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de AOSSIE-Org/OrgExplorer
-
[BUG]: Organization filter dropdown in AnalyticsPage renders empty list due to truthy evaluation of empty issuesDataPeut-être pris @havyasreekuppam l’a pris il y a 5 jours. Ouvertebug
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
AOSSIE-Org/OrgExplorer#476 · 5 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
Add Pat for 5000 req/hr button not visible when pat expiresPeut-être pris @Rajvardhan-Singh-Rathore l’a pris il y a 6 jours. Ouvertebug
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
AOSSIE-Org/OrgExplorer#473 · 6 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
[BUG]: PAT popup input lacks label association and visibility button lacks an accessible namePeut-être pris @prasanm1423 l’a pris il y a 10 jours. Ouvertebug enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
AOSSIE-Org/OrgExplorer#466 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
[FEATURE]: Set dynamic document.title based on active page routePeut-être pris @23241a6749 l’a pris il y a 8 jours. Ouverteenhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
AOSSIE-Org/OrgExplorer#462 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
[BUG]: SocialShareButton logs unconditional console.warn when script is not loadedPeut-être pris @vivekrajputofficial29-afk l’a pris il y a 8 jours. Ouvertebug enhancement
Difficulté 1/5 Moins d'une heure Accessibilité débutants 89/100
AOSSIE-Org/OrgExplorer#461 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de AOSSIE-Org/OrgExplorer
Issues similaires
-
marketing
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
Kanevry/session-orchestrator#108 ·
-
PHP 8.6: "Returning a value from a constructor is deprecated" in app/Common/Models/Model.phpOuverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 88/100
awesomemotive/all-in-one-seo-pack#3238 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
andromarces/agent-loops#2055 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 2 jours