Repository navigation
refactor(ui): phase 1 — fluidité (leçons de Skwir) - #15
Merged
Merged
Conversation
…yout Lessons from Skwir, another GPUI app, applied to the workstation: - Remove the three animation loops that re-notified from `render` and redrew the whole window every frame: the sidebar width, the drawer height (which also re-laid out the catalogue each frame) and the eased "smooth scroll". Widths and heights change at once; the list scrolls natively. AnimatedScalar is gone. - The scope dial's needle is animated by its element (`with_animation`, keyed by a throw count) instead of a view that re-renders itself. - Stop pushing sizes from one `render` into other entities (`set_assigned_height`, `set_budget`, `set_forced_collapsed`). The station is `flex_1` with a floor, the drawer a flex band with a relative ceiling, the nameplate asks for the user's height and shrinks first between its floor and its share. Views that need a pure decision from the window (overlay, forced collapse) read it themselves. - Delete the bench-measured plate heights (47.5, 29.5, 34.5, 131.5) and the bank's 100.5: a new `elements::adaptive::AdaptiveStack` measures the plate's three variants in `prepaint` and keeps the richest that fits. - The nameplate edge is a gpui drag that reads its band from `DragMoveEvent::bounds`, not from the window. - Every motion duration stays under a 200 ms ceiling; long cascades tighten instead of making the user wait. - AGENTS.md records the rules. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012CfvJFUwgYwz6HYiWrec9T
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Première des six phases du refactor front-end inspiré de Skwir (même toolkit GPUI).
Ce qui change
cx.notify()depuisrender: largeur de la sidebar, hauteur du tiroir et défilement « doux » redessinaient toute la fenêtre à chaque image. Les tailles changent d'un coup ; la liste défile nativement.AnimatedScalarsupprimé.with_animation), sans re-rendre la vue.renderet poussées dans d'autres entités (set_assigned_height,set_budget,set_forced_collapsed) : stationflex_1avec plancher, tiroir en bande flex avec plafond relatif, plaque bornée parmin_h/max_h(relative).elements::adaptive::AdaptiveStackqui mesure les variantes de la plaque dansprepaintet garde la plus riche qui tient.DragMoveEvent::bounds.AGENTS.md.Vérification :
cargo test→ 259 tests OK (266 avant : 10 tests de l'ancienAnimatedScalaret du défilement doux retirés avec le code, 3 ajoutés). Non testé à la main sur un bureau Arch : à vérifier en lançant l'app (redimensionner, ouvrir le tiroir, tirer la plaque).Generated by Claude Code