Skip to content

feat(admin usage): configurable token views and data tables - #1721

Merged
ctkm-aelf merged 1 commit into
rollup-2026-10-01-ctkm-1from
admin-usage-tokens-preload-cache
Oct 1, 2026
Merged

ctkm-aelf merged 1 commit into
rollup-2026-10-01-ctkm-1from
admin-usage-tokens-preload-cache

Conversation

@ctkm-aelf

Copy link
Copy Markdown
Collaborator

Summary

  • Add multi-select token views to the dashboard summary and usage list. Total tokens do not add Input or Output again; selected cache counts still add, with an inline explanation for overlapping selections.
  • Add a per-panel Data table setting with Always open as the default and Accordion as an alternative. Persist and validate the choice in the usage workspace API.
  • Load Services, Billing accounts, and Acting users options when Usage opens. Preload visible user detail in the background and cache these queries with five-minute freshness and ten-minute retention.

Validation

  • 27 focused frontend tests passed.
  • All 18 Admin Usage Playwright tests passed.
  • TypeScript, targeted ESLint, cargo check -p nyxid, and cargo fmt --all -- --check passed.

Rollout

Deploy the backend workspace schema change before the frontend. The current production backend rejects table_display until that change is deployed.

@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown

📊 Code coverage

Component Lines Threshold Status Δ vs base
Backend (nyxid) 87.69% 73% ✅ — 0.00
Frontend (vitest) 71.60% 15% ✅ 🔺 +0.14

Gate: line coverage must stay at or above the threshold. Ratchet plan (W21): Backend → 55%, CLI → 50%, Frontend → 30% by quarter end.

@ctkm-aelf
ctkm-aelf changed the base branch from main to rollup-2026-10-01-ctkm-1 October 1, 2026 05:17
@ctkm-aelf
ctkm-aelf force-pushed the admin-usage-tokens-preload-cache branch from 816dba7 to 0e24c05 Compare October 1, 2026 05:17
@ctkm-aelf
ctkm-aelf merged commit 5983b66 into rollup-2026-10-01-ctkm-1 Oct 1, 2026
34 checks passed
ctkm-aelf added a commit that referenced this pull request Oct 1, 2026
…sent (#1723)

* feat(admin usage): configurable token views, data tables, and preloading (#1721)

Admin Usage needed a selectable token total without double counting, immediately available filters and user details, and a visible data table that each panel can show directly or as an accordion.

- Add a multi-select token picker to the dashboard and list. Total already includes Input and Output, so those selections are displayed but not added twice; selected cache-read and cache-write counts still add. An inline tooltip explains the overlap.
- Add a per-panel Data table setting, defaulting to Always open with Accordion as the alternate mode. Persist and validate the field in the backend workspace contract.
- Load Services, Billing accounts, and Acting users options when Usage opens. Preload visible user details in the background and cache usage and option queries for five minutes of freshness and ten minutes of retention.

Source PR: #1721. Its rebased head 0e24c05 passed 24 CI checks with no failures, including the full backend, frontend, coverage, Rust feature, and CodeQL jobs. All 18 Admin Usage browser tests and 27 focused frontend tests passed locally. Deploy the backend workspace schema before the frontend because older backends reject the new table_display field.

* docs(rollup): record 2026-10-01 admin usage integration

* docs(rollup): record latest main sync

* feat(mcp): serve OpenAI apps domain verification challenge (#1725)

OpenAI's plugin portal verifies control of the MCP host by fetching
/.well-known/openai-apps-challenge and expecting the plugin's token as
bare plain text. The path returned 404, so submission showed
"Domain not verified".

Serve the token from the optional OPENAI_APPS_CHALLENGE_TOKEN env var on
the public /.well-known router; return 404 when unset, which matches
today's behavior. Existing discovery documents are unchanged.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* docs(rollup): record #1725 in 2026-10-01 ctkm-1 rollup

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(oauth): show exact scopes and lock app defaults

* docs(rollup): record OAuth consent update

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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