Skip to content

refactor(ui): phase 6 — texte coupé, identité des rangées, états vides - #20

Merged
tension-atoi merged 2 commits into
refactor/phase-5-scroll-and-pressfrom
refactor/phase-6-clip-identity
Oct 24, 2026
Merged

tension-atoi merged 2 commits into
refactor/phase-5-scroll-and-pressfrom
refactor/phase-6-clip-identity

Conversation

@tension-atoi

@tension-atoi tension-atoi commented Oct 24, 2026 •

Copy link
Copy Markdown
Collaborator

Phase 6 (dernière) du refactor front-end inspiré de Skwir. Empilée sur #19.

Ce qui change

  • Texte coupé → infobulle : port de clip de Skwir (Apache-2.0) dans elements::clip. Un texte coupé par son ellipse ou son line_clamp se montre en entier au survol, seulement tant qu'il est coupé ; on le lit dans la mise en page dessinée au moment où l'infobulle est demandée, jamais dans render. Appliqué aux noms, versions et sources du tableau, aux noms et descriptions des cartes, au nom dans l'inspecteur.
  • Identité des éléments (known_by) : une rangée et une carte du catalogue prennent leur id de leur paquet. Toutes les rangées s'appelaient package_row : une infobulle ou un appui pouvait passer d'une rangée à l'autre au défilement.
  • Une seule vue d'infobulle (components::tooltip) pour toute la fenêtre ; la copie de la barre latérale disparaît.
  • Le vide est un état : le catalogue vide dit pourquoi : le texte tapé (« Nothing here matches “vim”. », Échap l'efface), les filtres qui cachent tout (et où les retirer), ou « Everything is up to date. ».
  • Règles ajoutées à AGENTS.md.

Correctifs trouvés en lançant la vraie fenêtre (Xvfb, touches synthétiques) :

  • La fenêtre s'ouvrait sans focus : Ctrl+K, Ctrl+F et les flèches ne faisaient rien tant qu'on n'avait pas cliqué. La racine prend le focus à l'ouverture.
  • Le champ de la palette affichait l'indice « / » de la recherche.
  • La fiche des raccourcis (F1) était coupée en bas sans moyen de voir la suite : bornée à 85 % de la fenêtre, avec sa barre.
  • « Focus the search » apparaissait deux fois : une ligne, deux touches (Ctrl+F /).

Vérification : cargo test → 276 OK (un nom qui tient ne dit rien de plus, un nom coupé se dit en entier, les ids suivent ce qu'ils montrent, les textes des états vides). Clippy : aucun nouvel avertissement.

https://claude.ai/code/session_012CfvJFUwgYwz6HYiWrec9T


Generated by Claude Code

gnu6dotlive and others added 2 commits October 23, 2026 21:15
…kage, empty says why

- Port Skwir's clip (Apache-2.0) into `elements::clip`: a text cut by its
  ellipsis or its line clamp shows whole in a tooltip, only while cut;
  whether it was is read from the drawn layout when the tooltip is asked
  for. The catalogue's names, versions and sources, the cards' names and
  descriptions, and the inspector's name use it.
- `known_by`: a catalogue row and a card take their id from their
  package. Every row was "package_row", so a tooltip or a press kept as
  one row's could pass to the next as the list scrolled.
- One tooltip view (`components::tooltip`) for the whole window; the
  sidebar's own copy goes.
- The empty catalogue says why: the text typed ("Nothing here matches
  “vim”." — Escape clears it), the filters hiding everything (and where
  to clear them), or "Everything is up to date."
- Tests: a name that fits says nothing more; one cut short says itself
  whole; ids follow what they show; the empty states' words.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012CfvJFUwgYwz6HYiWrec9T
…ays each thing once

Found by driving the built window under a virtual display:

- The window opened with nothing focused, so its actions (Ctrl+K,
  Ctrl+F, the arrows) were on no dispatch path until something was
  clicked. The workspace's root takes the focus as the window opens.
- The palette's field showed the search's `/` keycap, a key that does
  not reach it (`SearchInputView::without_slash_hint`).
- The shortcut sheet was cut at the bottom with no way to see the rest:
  it is bounded by the window (85 %) and has its scrollbar.
- "Focus the search" was listed twice; one line now carries both keys
  (Ctrl+F  /).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012CfvJFUwgYwz6HYiWrec9T
@tension-atoi
tension-atoi merged commit 97c10e7 into refactor/phase-5-scroll-and-press Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant