Show a visible notice when a dashboard snapshot read is cut at the row cap
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 54/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- next.js, playwright, react, supabase, typescript
Hướng nghiên cứu
Start in src/lib/supabase/paging.ts: readAllPages already stops at SNAPSHOT_MAX_ROWS, so the first question is how it can also report whether it was cut. Carry that complete value through loadSnapshots and loadMonthlySnapshots in src/lib/data/dashboard.ts and getHeadlineSnapshots in src/lib/data/headline.ts, then render one page-level notice following the withStaleNotice pattern from #267, naming the affected part and the first complete date. Done means boundary tests just under, at and over the cap for each read, plus one Playwright case with an accessibility scan.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
The dashboard's snapshot reads stop at SNAPSHOT_MAX_ROWS = 10_000 rows, newest first (readAllPages in src/lib/supabase/paging.ts), and when a read is cut the only signal is a dashboard.snapshots_truncated warning in the log (loadSnapshots and loadMonthlySnapshots in src/lib/data/dashboard.ts). The user sees missing history as unavailable values with no explanation.
Where each read is cut, from the review of PR #334 (#317):
| Read | Rows per account and metric | Cut at about |
|---|---|---|
Cards and daily trend: loadDashboardSnapshots (45 days, every daily row) |
45 | 222 account and metric pairs |
Headline strip: getHeadlineSnapshots in src/lib/data/headline.ts (money kinds and declared signup totals) |
days in the windows | depends on the window |
Monthly trend: loadMonthlySnapshots (one row per month since #317) |
13 | 770 account and metric pairs |
The cards' read is now the weakest: past about 222 pairs with a daily row each, the oldest days of the 45 day window are dropped, so an account that stopped reporting in that range falls out of the current values silently.
Scope
- Carry
completefromreadAllPagesup through these reads and show one visible notice on the dashboard when any of them was cut, saying which part (cards, headline, monthly trend) is incomplete and from which date the data is complete. - One notice for the page, following the stale notice pattern (
withStaleNotice, #267), not one per card.
Acceptance criteria
- A workspace past the cap of any of the three reads sees a visible notice naming the affected part and the date from which it is complete.
- Happy-path and boundary tests: just under, at, and over the cap for each read.
- Playwright covers the notice on one cut read, with an accessibility scan.
Source: Fable review round 1 of PR #334, comment https://github.com/eddiejaoude/DevMacro/pull/334#discussion_r4543797670.
Model: anthropic/claude-opus-5-5 | Reasoning effort: low
- Ngôn ngữ chính
- TypeScript
- Star
- 1
- Fork
- 1
- Merge trung bình
- 6 giờ 56 phút
- Pull request đã merge (30 ngày)
- 136
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của eddiejaoude/StackDash
-
area: docs documentation priority: P3 size: S
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
eddiejaoude/StackDash#462 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: web bug priority: P3 size: XS
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 85/100
eddiejaoude/StackDash#432 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: database bug priority: P3 size: S
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
eddiejaoude/StackDash#419 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: docs bug priority: P2 size: XS
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
eddiejaoude/StackDash#418 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
accessibility area: timeline bug priority: P3 size: XS
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
eddiejaoude/StackDash#389 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của eddiejaoude/StackDash
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
open-webui/tether#52 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
`void platform install --app-access public` fails when Cloudflare reports Access is disabledĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
voidzero-dev/void#835 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
AykutSarac/jsoncrack.com#616 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
melgarafael/DeskcommCRM#4679 ·
Maintainer thường phản hồi trong vòng 1 ngày