Repository navigation
fix(console): « Add a source » waits for the list of the sources, so its buttons do not move under a press (FRU-271) - #295
Conversation
…its buttons do not move under a press (FRU-271) The list « Connected » arrives above « Add a source », whose buttons went down by the height of the list: 45 px for one source, 110 for two, 175 for three (measured). A press that started before and ended after was lost. And before the read, « Connect Linear » did not know whether this worker has a Linear application: it opened the form of a key where the consent at Linear was meant. « Add a source » now shows with the first answer of the list, or with the alert of a read that failed. The new case of console-connectors.spec.ts holds the read: nothing to press while it is held, then a press on « Connect REST API » finds the button where it stays and opens its form. It failed before the change. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
Score de confiance : 4/5 ·
Niveau lite · anthropic/claude-haiku-5.5 · 0,005 $ · Le résumé, le diagramme et la liste des constats sont à la fin de la description de la PR.
|
@sakuga-review review balanced |
There was a problem hiding this comment.
Score de confiance : 3/5 ·
Niveau balanced · anthropic/claude-sonnet-5.5 · 0,068 $ · Le résumé, le diagramme et la liste des constats sont à la fin de la description de la PR.
…e list is read (FRU-271) « Add a source » showed with the alert of a read that failed, when the screen does not know whether this worker has a Linear application: « Connect Linear » then opened the form of a key where the consent at Linear was meant. The section now waits for a list that was read. The case of a read that failed holds it, with its control after « Try again ». Answers the reviews of 8f1a0ab. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
On the reviews of 8f1a0ab: Balanced P1 and lite P2, a read that failed leaves « Connect Linear » on a default. Right, fixed in d441f3d. The section now waits for a list that was read ( Lite P2, « the test does not press before the list ». The test takes the second way the finding proposes: with the read held, it asserts that the button is not drawn ( |
There was a problem hiding this comment.
Score de confiance : 4/5 ·
Niveau lite · anthropic/claude-haiku-5.5 · 0,004 $ · Le résumé, le diagramme et la liste des constats sont à la fin de la description de la PR.
There was a problem hiding this comment.
Score de confiance : 4/5 ·
Niveau balanced · anthropic/claude-sonnet-5.5 · 0,066 $ · Le résumé, le diagramme et la liste des constats sont à la fin de la description de la PR.
|
On the two P2 of the reviews of d441f3d, both with no change: Balanced, « the form to add a source is lost if a read made again fails ». It is not lost. Lite, « the test does not cover the arrival of the list ». The arrival is covered by the assertion before the press. With the read held, the test asserts that no source to add is drawn and that « Connect REST API » is not there ( |
Not critical: one screen of the console, no route, no safeguard. Part of FRU-271 (parent FRU-230): the Connectors screen. Members is the next pull request. Same defect as My account (#293, #294).
The defect, measured
« Add a source » is under the list « Connected », which says « Loading… » and then takes its rows. On
main, withGET …/connectorsheld, « Connect REST API » goes down by the height of the list:A press that starts before the list and ends after it is lost. A second defect is in the same window: before the read, the screen does not know whether this worker has a Linear application, so « Connect Linear » opens the form of a key where the consent at Linear was meant.
The fix
« Add a source » shows once the list is read (
answeredinroutes/connectors.tsx). After a read that failed, the screen has the alert and « Try again », and no source to add: it does not know how this worker connects Linear. The number of sources is not known before the read, so no room can be kept for them; the buttons come with the list, at the place where they stay. Most of the diff ofconnectors.tsxis the indentation of the section, now inside one condition: read it with whitespace hidden.Proof
e2e/console-connectors.spec.ts, one new case, on stubs: with the read held, « Loading… » is there and « Add a source » lists nothing. Once released, the eight rows are there. The pointer goes down on « Connect REST API », the page comes to rest, the box of the button is the same, the pointer goes up, and the form of an address opens. It failed before the change (eight rows where none is expected). The case of a read that failed now also holds that nothing is offered until « Try again » succeeded, then eight rows and « Use an API key » (this worker has a Linear application); with the first condition planted back, it fails. Locally:console-connectors12,console-source-panel7,console-destinations2,console-narrow5,console-frame17. The measures of the mockup are read with the list there, and that state is unchanged.Not verified
Firefox, Safari, a touch screen, a screen reader. The press was made with a mouse in Chromium.
🤖 Generated with Claude Code
Sakuga Review · Score de confiance : 4/5
Merge possible : le changement est localisé, il masque « Add a source » tant que la liste n'est pas lue ; un seul point mineur (adding/problem non rendus après échec de lecture).
Constats
apps/console/app/routes/connectors.tsx:1Une personne a ouvert le formulaire AddRest et tape une adresse. Si un rechargement (load) échoue alors que
connectorsétait déjà défini, il reste défini : pas de souci. Mais au premier échec,connectorsreste undefined et la section disparaît, ce qui est voulu ; le risque est faible. Correction : Aucune action requise ; éventuellement vérifier queconnectorsn'est jamais remis à undefined après une lecture réussie.Résumé
La PR conditionne l'affichage de la section « Add a source » à
connectors !== undefined, pour éviter le déplacement des boutons et l'ambiguïté OAuth/clé. Les tests e2e et la doc sont mis à jour. J'ai vérifié la logique deload, les chemins d'échec et le rendu ; rien de bloquant.Revues (2) · Dernier commit relu : fix(console): after a read that failed, no sour... · Niveau
balanced·anthropic/claude-sonnet-5.5· 0,066 $