feat(integrations): keep stripe fees and revenue past 1,000 balance transactions in the window
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 48/100
調査の方向性
Start with src/lib/adapters/stripe/index.ts, especially the page limits and month-window handling around lines 570–598; then read the Stripe provider documentation and inspect its schemas and fixtures. Run npx vitest run src/lib/adapters/stripe to understand the existing coverage. Done means totals survive 1,001 and 5,000 transactions, truncated reads preserve prior month figures, the provider card reports incomplete figures with an axe-scanned Playwright test, and the docs explain the read.
索引モデルが issue の本文から書いたものです。
説明
Context
Found by the Fable pre-production review on 2026-12-02 (main at cedc1914; every line reference below re-checked on main at cde5aa3b). Source: product triage report, new issue 4.
Each Stripe sync re-reads every balance transaction in its window, at most 10 pages of 100 (PAGE_LIMIT, MAX_PAGES, src/lib/adapters/stripe/index.ts:73-74). When the read stops at that cap, totals are reported only for the days after the oldest transaction read, and the month windows that began earlier are dropped (index.ts:570-598, comment at :589-590; docs/providers/stripe.md:260, :269).
Impact: an account with roughly 1,000 or more balance transactions since the earlier of the month's start and 30 days ago (about 33 a day) gets no month fee or revenue figures. Headline revenue and spend alerts go silent, and a figure reported earlier in the month disappears once the month passes the cap.
Plan
- Keep a cursor: after the first full read, read only balance transactions newer than the last one stored and add them to stored per-day totals, instead of re-reading the whole window.
- Where a full re-read is still needed (first sync, a gap), page past 1,000 within the sync's time budget and continue on the next sync rather than dropping the month.
- Never remove a month figure reported earlier because a later read was truncated; say on the provider card when figures are incomplete.
- Update
docs/providers/stripe.md.
Acceptance criteria
- A month total survives 1,001 and 5,000 transactions in fixture tests.
- A truncated read never removes a month figure reported earlier.
- The provider card says when figures are incomplete (Playwright e2e with an axe scan).
-
docs/providers/stripe.mddescribes the read.
Files and areas
src/lib/adapters/stripe/index.ts, its schemas and fixtures, docs/providers/stripe.md, the provider card component if copy changes.
Non-goals: the Stripe install link (#754), Stripe events.
Verification
npm run typecheck, npm run lint, npx vitest run src/lib/adapters/stripe.
Branch: <issue-number>-stripe-balance-cursor
Model: anthropic/claude-opus-5-5 | Reasoning effort: unknown
- 主要言語
- TypeScript
- スター
- 13
- フォーク
- 2
- 平均マージ
- 5時間 20分
- マージ済み PR(30日)
- 287
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
eddiejaoude/StackDash のほかの issue
-
area: integrations documentation priority: P2 size: XS
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
eddiejaoude/StackDash#798 ·
メンテナーはふだん 1 日以内に返信
-
area: ops documentation priority: P3 size: XS
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
eddiejaoude/StackDash#796 ·
メンテナーはふだん 1 日以内に返信
-
area: docs documentation impact: low priority: P3 size: XS
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
eddiejaoude/StackDash#790 ·
メンテナーはふだん 1 日以内に返信
-
area: ops bug impact: low priority: P3 size: XS
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
eddiejaoude/StackDash#785 ·
メンテナーはふだん 1 日以内に返信
-
area: connections enhancement impact: low priority: P3 size: XS
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
eddiejaoude/StackDash#768 ·
メンテナーはふだん 1 日以内に返信
eddiejaoude/StackDash の issue をすべて見る
似ている issue
-
bot:ai-assisted component:midnight-js status:untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
midnightntwrk/midnight-js#1790 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
area:vscode bug has repro platform:macos platform:vscode regression
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
anthropics/claude-code#113502 ·
-
Add: Rajdhani TV HDオープンcheck:passed streams:add
難易度 1/5 1時間未満 初心者へのやさしさ 77/100
メンテナーはふだん 1 日以内に返信
-
effort/l priority/p1 risk/high triage/core
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
iflytek/skillhub#1188 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信