Repository navigation
Conversation
This branch has not been deployed
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.
Summary
The option cards on Models and Generative moved after their first paint. There were three causes: the menu painted 3 columns before a ResizeObserver switched to 1 or 2, each card measured its own height in JavaScript after paint, and on Models the no datasets alert showed while datasets were still loading. Columns now come from CSS container queries, card heights from grid rows, and the alert waits until datasets have loaded.
On top of the performance branch, Generative mobile goes from 0.121 to 0.0009. The CLS that remains comes from the app bar logo.
Type of Change
Changes (by file)
DashAI/front/src/components/threeSectionLayout/SelectOptionMenu.jsx: CSS grid with container query columns and equal height rows, instead of a ResizeObserver and measured heightsDashAI/front/src/components/threeSectionLayout/OptionBox.jsx: removes the self measuring codeDashAI/front/src/hooks/datasets/useDatasets.js: addsdatasetsLoaded, set once the first fetch settlesDashAI/front/src/contexts/DatasetsContext.jsx: passesdatasetsLoadedthroughDashAI/front/src/components/models/ModelsContext.jsx: passesdatasetsLoadedthroughDashAI/front/src/components/models/ModelCenterContent.jsx: shows the no datasets alert only after datasets loadTesting (optional)
Notes (optional)
Every card now matches the tallest one exactly; before, the others were about 2.6 px shorter because the old measurement ignored the card border.