Skip to content

Click through from a chart to the issues behind it #181

Closed

Description

@imshashank

Analytics is a dead end. You can see that one person has 76 issues and that a project has 100, and then there is nothing you can do about it inside the page. To act on what you just read you have to go to the issue list and rebuild the same filter by hand, from memory.

Every chart element on the page corresponds to an exact set of issues. The filter engine that could select that set already exists. They are not connected.

What to build

Make chart elements navigate to the issue list, pre-filtered to the rows behind them.

  • A bar under "By assignee" goes to the issue list filtered to that assignee, in the current scope, measure and date range.
  • A bar under "By project", "By label" or "Estimate distribution" does the same for its dimension.
  • A cell in the assignee breakdown table goes to that assignee crossed with that state group.
  • A point on a distribution keeps whatever page level scope is selected. Drilling into "By assignee" while scoped to one sprint should land you in that sprint's issues for that person, not the whole workspace's.

How the pieces fit

The filter engine is packages/shared/src/filters. Saved views already serialise a filter set and the issue list already reads one, so there is a serialised form to target. Look at how apps/web/src/features/views/ builds a view URL and reuse that rather than inventing a second encoding for the same thing. Two ways to express "issues assigned to X" is exactly the kind of duplication the roadmap says we do not want.

ChartDatum in packages/core/src/analytics/distribution.ts already carries key alongside name, and key is the entity id, or the literal string none for the unassigned and no project buckets. So the id you need is already in the payload and you do not have to look anything up by display name. Handle none deliberately: it maps to "assignee is empty", not to an assignee whose id is the string none.

Accessibility

Bars are currently <span> elements inside an <li>, marked aria-hidden, with the real content in the adjacent text. If a bar becomes clickable it has to become a real link or button with an accessible name that says what it does, not just the category name. "Growth, 100 issues" is a label. "Growth" is not.

Keyboard reachable, visible focus ring, and it should work from the data table rows as well as from the bars, because that is how somebody using a screen reader will be reading the numbers in the first place.

Files

  • apps/web/src/features/charts/bar-chart.tsx
  • apps/web/src/features/analytics/distribution-section.tsx
  • apps/web/src/features/analytics/breakdown-section.tsx
  • packages/shared/src/filters/
  • apps/web/src/features/views/ for the existing URL shape

Worth agreeing first

Whether drilling through navigates away or opens the list in a panel over the dashboard. Navigating away is much simpler and is a fine first version. Say which one you are building in your first comment.

Activity

  1. added
    enhancement
    help wanted
    p2 medium
    area: analytics
    area: search
    on Aug 8, 2026
  2. moved this to Backlog in Orbit roadmapon Aug 8, 2026
  3. added
    size: large
    points: 5
    on Aug 8, 2026
  4. imshashank commented on Aug 15, 2026

    @imshashank
    ContributorAuthor

    Done, closing. Landed with the planning cockpit in #309.

    Chart elements are now activatable and drill through to the issues behind them:

    • Every plotted point carries an AnalyticsDrilldownCohort (packages/shared/src/validators/analytics.ts), so the cohort travels with the datum rather than being reconstructed from a display name. That is the concern this issue raised about ChartDatum.key and the none bucket.
    • BarPlot and LinePlot in apps/web/src/features/analytics/charts/ call onActivate(cohort) from a click, from Enter, and from the data table row, and GET /api/analytics/drilldown resolves it.
    • The result opens in a panel over the dashboard rather than navigating away, in analytics-drilldown-dialog.tsx. That answers the "worth agreeing first" question at the bottom of this issue.
    • The cohort is resolved against the current query, so drilling into a person while the range is scoped to one sprint lands on that sprint's issues for that person, which was the specific requirement.

    The accessibility requirements are met too: the plot is a single focusable surface with arrow key navigation, Home/End, Escape, an aria-live announcement of the active point in plot-frame.tsx, and the same activation available from the data table rows, which was called out as the path a screen reader user would actually take.

    Covered by apps/web/tests/features/analytics/analytics-drilldown-dialog.test.tsx, bar-plot.test.tsx and line-plot.test.tsx.

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

    area: analyticsarea: searchenhancementhelp wantedp2 mediumpoints: 5size: large

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions