Skip to content

fix(settings): redesign the Daily review surfaces #1902

Closed

Description

@Astro-Han

Problem

Two surfaces, one feature, both currently misbehaving.

Settings › Daily review (daily-review-settings-page.tsx) renders every row as an Astryx Item with an endContent control. Two of those controls break out of the row: the 执行时间 TextInput (:190) overflows the card's right edge instead of sitting inside it, and the 分析模型 Selector (:246, width={320}) opens a popover that extends past the card's left edge and covers the row that opened it. Nine switch rows, one text input and one selector also read as a flat undifferentiated list — 深度分析 (costs more) and 生成后发送外部通知 (not wired up yet) carry the same weight as an ordinary section toggle.

Module hub › Daily review (daily-review-panel.tsx) mixes range controls, date navigation, four metric blocks, report navigation and a large empty-state card carrying a second copy of the header's generation action.

Desired outcome

Settings: every control stays inside its row's bounds; popovers open within the card and never cover their own trigger; rows that cost money or are not yet wired are visually distinguishable from ordinary toggles.

Module: the report is the dominant structure; range and date navigation converge into one compact pattern; zero-value metrics do not need four separate blocks; each generation mode has exactly one entry point.

Verification

Storybook for both surfaces including the open-selector state and narrow width; a computed-style contract that the time input and the selector popover stay within their container; live-app before/after.

Note

Supersedes the Daily review section of #1452 and adds the settings page, which #1452 never covered.

Activity

  1. added
    enhancement
    on Aug 2, 2026
  2. Astro-Han commented on Aug 2, 2026

    @Astro-Han
    ContributorAuthor

    I’m taking this. I’ll rebuild both Daily Review surfaces from the Astryx templates rather than patch the current overflow.

    The implementation boundary is:

    • make the module page a minimal activity analysis surface: range navigation, one inline totals row, and the active-conversation list;
    • move each generated analysis into its own route and use the selected time range as the report-history index;
    • reduce Settings to the real policy controls: scheduled generation, execution time, and analysis model;
    • replace the parallel daily / deep modes with one range-based generation contract for 1 / 7 / 30 days;
    • remove the unused section toggles, Claude Code inclusion flag, unconnected notification row, duplicate generation controls, model/tool rankings, metric cards, and stacked report accordion;
    • preserve legacy archives through a read-boundary migration, while keeping one write path for the new range format;
    • verify the main states in Storybook, lock the range/archive behavior with focused tests, and keep the representative desktop journeys green.

    I’ll work in one draft PR and keep the runtime changes limited to what the simplified UI contract requires.

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