Skip to content

fix(settings): redesign the Usage page #1903

Closed

Description

@Astro-Han

Problem

usage-settings-page.tsx:3-11 takes EmptyState, SegmentedControl, Tab, TabList and Table from Astryx, and the whole page's styling lives in styles/settings/bot.css:318-410 — shared with the bot-chat page, which is not a naming accident so much as evidence that this page never had an owner. The tab bar and the table header below it share one unbounded region with no separation, so 供应商统计 1 / 模型统计 1 and the 供应商 / 请求 / Token / 费用 header row read as one continuous strip. The four summary tiles above use a different surface treatment from the table, and the range SegmentedControl a third.

Desired outcome

The page owns its own stylesheet. Tabs, summary, and table read as three distinct levels with one surface treatment each. The table uses the Astryx Table geometry it already imports rather than an ad-hoc header strip.

Verification

Storybook for empty, single-provider, multi-model, long-tail and narrow; live-app before/after; the existing usage E2E stays green.

Activity

  1. added
    enhancement
    on Aug 2, 2026
  2. me2seeks commented on Aug 3, 2026

    @me2seeks
    Contributor

    I’m interested in taking the remaining #1903 work. On current main, #1991 has already moved the Usage styles into usage.css, and the tables already delegate their geometry to Astryx Table.

    I believe the remaining slice is the Usage page-kit and visual-hierarchy conversion explicitly deferred in #1997, together with the requested empty, single-provider, multi-model, long-tail, and narrow Storybook states. I would keep the existing behavior unchanged and leave Pricing editing (#2015) and the experimental split layout in #2017 out of scope.

    If that matches the intended remaining acceptance, I can implement it.

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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions