Repository navigation
Conversation
Step 2b left the Dashboard flat, a section per suite under its full label. It now follows DA1: a section per project, under a heading with the project's label that links to the project's suites on the Test Suites page, and within it a section per suite under the suite's own label, both in AR22's order. A project without suites says so, and so does the page when there are no projects. Headings go one level down to make room: projects are h2, suites h3 and card titles h4. Each project and suite section is a region named by its heading. A `Project` dropdown beside the commit range narrows the page to one project, offering `All projects`, the default, and every project by label. The URL keeps it as `?project=`, by name. Only the sections shown are rendered, so only they fetch their machines and trends. Both cases render through one list keyed by project, so picking a project from `All projects` keeps its sections, and their charts, as they are. - Until the projects are listed, the dropdown names the URL's project by its name (AR22) and is disabled. A project the list does not hold is dropped from the URL once the list has loaded, and every project is shown meanwhile (AR2). Nothing is dropped while the list loads or after it has failed. - Only the list's first load takes the page's place, with "Loading projects..." or "The projects could not be loaded" and a way to try again. A list fetched again that fails leaves the page, and the filter, as they are, as on the Test Suites page. Before, a failed refetch replaced the whole page with the error. The e2e tests find a suite's section within its project's now, and cover the grouping, a project shown alone without requests for the others, the project and the commit range kept together in the URL, and an unknown project dropped. Part of #594.
- The test that picking a project keeps its sections mounted picks the second project, llvm, rather than the first: picking the first leaves its sections where they were, so sections keyed by position passed it too. - The tests that a project shown alone fetches nothing for the others, unit and end-to-end, check that every request under a project is under libcxx, rather than only that none is under llvm. - The check that drops an unknown project reads the list it is given, as the other pages' checks do, and what the dropdown offers is named `offered`. The project heading's style says what it is for. Part of #594.
…ldionne/v5-projects-6-dashboard
…ldionne/v5-projects-6-dashboard
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.
Group the Dashboard by project, with one section per project and its suites
inside, sorted by label. A Project dropdown filters to one project, kept in
the URL as ?project=.
No server change. Part of #594.