Skip to content

[front] feat: wire Sources tab of the usage filter panel to real, period-scoped data - #30177

Open
avervaet wants to merge 1 commit into
avervaet/wiring-usage-filter-component-skills-tabfrom
avervaet/wiring-usage-filter-component-sources-tab
Open

[front] feat: wire Sources tab of the usage filter panel to real, period-scoped data#30177
avervaet wants to merge 1 commit into
avervaet/wiring-usage-filter-component-skills-tabfrom
avervaet/wiring-usage-filter-component-sources-tab

Conversation

@avervaet

@avervaet avervaet commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Sources now come from the same period-ranked consumption data the
Attribution table uses (useConsumptionTop), instead of the mock
connector list. The "source" dimension is the message's origin
channel (Slack, API, Web, CLI, ...), not a data-source connector, so
the connector-logo concept from the mock is dropped along with it —
the source entity icon now falls back to none, like tool and skill.

Wires the page's UsageFilter state into the actual consumption
queries for the "source" dimension, which it never did before. This
was the last mock category, so usageFilterMockData.ts and the
categoryEntities prop are removed entirely.

Description

Tests

Risk

Deploy Plan

@vercel

vercel Bot commented Aug 7, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

2 Skipped Deployments
Project Deployment Actions Updated (UTC)
playground Ignored Ignored Preview Aug 7, 2026 5:10pm
storybook Ignored Ignored Preview Aug 7, 2026 5:10pm

Request Review

@dust-agent dust-agent Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coding Rules LGTM \o/

@avervaet
avervaet force-pushed the avervaet/wiring-usage-filter-component-skills-tab branch from 29bb1bd to 0d816bc Compare August 7, 2026 11:03
@avervaet
avervaet force-pushed the avervaet/wiring-usage-filter-component-sources-tab branch from d48a735 to b5849e2 Compare August 7, 2026 11:03
@avervaet
avervaet force-pushed the avervaet/wiring-usage-filter-component-skills-tab branch from 0d816bc to dbe1a6d Compare August 7, 2026 13:56
@avervaet
avervaet force-pushed the avervaet/wiring-usage-filter-component-sources-tab branch from b5849e2 to 04d9774 Compare August 7, 2026 13:56
@avervaet
avervaet force-pushed the avervaet/wiring-usage-filter-component-skills-tab branch from dbe1a6d to 859e89f Compare August 7, 2026 15:22
@avervaet
avervaet force-pushed the avervaet/wiring-usage-filter-component-sources-tab branch from 04d9774 to 2e50141 Compare August 7, 2026 15:22
@avervaet
avervaet force-pushed the avervaet/wiring-usage-filter-component-skills-tab branch from 859e89f to e0e3e5f Compare August 7, 2026 15:39
@avervaet
avervaet force-pushed the avervaet/wiring-usage-filter-component-sources-tab branch from 2e50141 to b415e36 Compare August 7, 2026 15:39
@avervaet
avervaet force-pushed the avervaet/wiring-usage-filter-component-skills-tab branch from e0e3e5f to 3c9f7ce Compare August 7, 2026 16:02
@avervaet
avervaet force-pushed the avervaet/wiring-usage-filter-component-sources-tab branch from b415e36 to 6c5f164 Compare August 7, 2026 16:02
…iod-scoped data

Sources now come from the same period-ranked consumption data the
Attribution table uses (useConsumptionTop), instead of the mock
connector list. The "source" dimension is the message's origin
channel (Slack, API, Web, CLI, ...), not a data-source connector, so
the connector-logo concept from the mock is dropped along with it —
the source entity icon now falls back to none, like tool and skill.

Wires the page's UsageFilter state into the actual consumption
queries for the "source" dimension, which it never did before. This
was the last mock category, so usageFilterMockData.ts and the
categoryEntities prop are removed entirely.
@avervaet
avervaet force-pushed the avervaet/wiring-usage-filter-component-skills-tab branch from 3c9f7ce to caa798d Compare August 7, 2026 16:44
@avervaet
avervaet force-pushed the avervaet/wiring-usage-filter-component-sources-tab branch from 6c5f164 to ba4e8c8 Compare August 7, 2026 16:44
[topSourceRows]
);

const resolvedCategoryOptions = useMemo<{

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

React Doctor · react-doctor/no-usememo-simple-expression (warning)

This useMemo rebuilds a tiny literal whose reference is never relied on, so remove the useMemo and build the value inline

Fix → Remove the useMemo. Property reads, math, and ternaries are already fast, so wrapping them doesn't help

Docs

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