Skip to content

[Improvement] Overview tab stays filtered to a single project after navigating back from DashboardΒ #348

Description

@MatheusAssisNeves

Thanks @timdegroot1996 , or should I say Tim the G.O.A.T. 🐐, for the quick fix in #328. The project-card β†’ Dashboard filter now works exactly as expected.

There's a follow-up edge case though:

Description

Clicking a project card on the Overview page correctly pre-selects that project's run/tag filter and switches to the Dashboard tab (as fixed in #327 / #328). However, if you then click back to the Overview tab, the same single-project filter is still applied, so the Overview page (project cards, "Latest Runs", "Total Statistics") now only shows the one project you filtered to, instead of all projects.

Steps to reproduce

  1. Open a dashboard with multiple projects (run tags or run names).
  2. On the Overview tab, click a project card (e.g. project_1) β†’ correctly navigates to Dashboard, filtered to project_1.
  3. Click the Overview menu tab again.

Actual behavior

Overview still only shows project_1, the other project cards are gone/filtered out.

Expected behavior

Navigating back to the Overview tab should reset/ignore the project filter and show all projects again, since "show an overview of everything" is the whole point of that tab. The filter should only apply to Dashboard/Compare/Tables until explicitly changed or cleared by the user.

Notes for whoever picks this up

update_menu() in menu.js calls setup_data_and_graphs() β†’ setup_filtered_data_and_filters() on every menu switch, including back to Overview, so the selectedTagSetting/selectedRunSetting pre-filter set by set_filter_show_current_project() (in graph_creation/overview.js) is still in effect when prepare_overview() re-runs. Likely fix: clear the filter (or skip re-applying it) when switching to menuOverview, similar to how clear_all_filters() is called before setting it on the way into Dashboard.

Related

Follow-up to #327 / #328.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions