Skip to content

[v5] Group the Dashboard by project, with a project filter - #615

Merged
ldionne merged 4 commits into
users/ldionne/v5-projects-5-admin-projectsfrom
users/ldionne/v5-projects-6-dashboard
Nov 3, 2026
Merged

ldionne merged 4 commits into
users/ldionne/v5-projects-5-admin-projectsfrom
users/ldionne/v5-projects-6-dashboard

Conversation

@ldionne

@ldionne ldionne commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

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.

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.
@ldionne
ldionne added this pull request to stack #607 October 30, 2026 22:13
- 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
ldionne merged commit ac794fa into main Nov 3, 2026
31 checks passed
@ldionne
ldionne deleted the users/ldionne/v5-projects-6-dashboard branch November 3, 2026 23:16
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