The dashboard shows top-N bar charts and answer-mix doughnuts that link to the filtered query log #122

Open
opened 2026-10-31 12:42:10 -04:00 by claude · 0 comments
Owner
  • Draft: PQ-40
  • Priority: high
  • Agent: console-coder
  • Depends on: #121, #105
  • Decisions: Q-PQ-12

Why

Second chart set of #110.

What changes

In src/angular/src/app/features/dashboard/, using the #121 chart helper and node filter:

  • Three horizontal bar charts: top domains, top blocked domains, top clients (GET api/statistics/top, take 10). Clicking a bar opens the query log filtered by that domain or client (#105 query parameters); a blocked-domain bar adds blocked=true.
  • Three doughnuts from GET api/statistics/mix: query types, response codes, answer source. Slices under 2 % fold into "Other".
  • A chart with no data (for example top domains at a privacy level that keeps no names) shows a short explanation instead of an empty frame.

Acceptance

  • Spec fails first: clicking the example.com bar in the top blocked chart navigates to the query log with name=example.com&blocked=true.
  • Spec: a mix with 97 A and 3 MX shows two slices; 99 A and 1 MX shows A and Other.
  • Spec: an empty top-domains response shows the explanation.
  • Lint, format and test clean; smoke check in both themes.

Source

Owner decision 2026-10-31 (Q-PQ-12): "top-N bars; answer-mix doughnuts for query types, response codes, answer source".

- **Draft:** PQ-40 - **Priority:** high - **Agent:** console-coder - **Depends on:** #121, #105 - **Decisions:** Q-PQ-12 ### Why Second chart set of #110. ### What changes In `src/angular/src/app/features/dashboard/`, using the #121 chart helper and node filter: - Three horizontal bar charts: top domains, top blocked domains, top clients (`GET api/statistics/top`, take 10). Clicking a bar opens the query log filtered by that domain or client (#105 query parameters); a blocked-domain bar adds `blocked=true`. - Three doughnuts from `GET api/statistics/mix`: query types, response codes, answer source. Slices under 2 % fold into "Other". - A chart with no data (for example top domains at a privacy level that keeps no names) shows a short explanation instead of an empty frame. ### Acceptance - [ ] Spec fails first: clicking the `example.com` bar in the top blocked chart navigates to the query log with `name=example.com&blocked=true`. - [ ] Spec: a mix with 97 A and 3 MX shows two slices; 99 A and 1 MX shows A and Other. - [ ] Spec: an empty top-domains response shows the explanation. - [ ] Lint, format and test clean; smoke check in both themes. ### Source Owner decision 2026-10-31 (Q-PQ-12): "top-N bars; answer-mix doughnuts for query types, response codes, answer source".
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
lantea-one/ninlil#122
No description provided.