fix(dashboard): keep a projection's tooltip above the cards below it

オープン
#793 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
75/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
nextjs, playwright, react, typescript
領域
frontend, testing

調査の方向性

Read src/components/dashboard/info-tooltip.tsx and the listed dashboard components to trace tooltip stacking, then inspect e2e/projection.spec.ts for the existing keyboard and accessibility checks. Reproduce the overlap in the dashboard and check the other placements named in the issue. Done means the open tooltip is topmost over its last line, the keyboard and axe checks pass, and e2e coverage verifies the overlap.

索引モデルが issue の本文から書いたものです。

説明

area: dashboard bug impact: low priority: P3 size: S

Context

On the dashboard, the "How this projection is worked out" tooltip of a spend total in "Spending this billing period" opens below the total's card, and the provider card below it is drawn over it, so the end of the explanation cannot be read ("...so StackDash assumes it ends with the calendar month. It is never added to the spend shown."). Found while capturing the evidence for #743; it is the same on main (cde5aa3b). Synthetic data:

The spend total's projection tooltip open on the dashboard: its last lines are hidden behind the Fake billing account card below it

Why: the total's card is relative isolate (src/components/dashboard/dashboard-view.tsx:109), so the tooltip's z-10 (src/components/dashboard/info-tooltip.tsx:56, absolute top-full) only orders it inside that card. The provider card (src/components/dashboard/provider-card.tsx:218) is relative isolate too and comes later in the page, so it paints on top. ProjectionNote (src/components/dashboard/value-meta.tsx:108) keeps the tooltip inside the card's width, not its height. e2e/projection.spec.ts asserts the tooltip toBeVisible, which an element drawn on top of it does not fail.

Plan

  1. Let an open InfoTooltip draw above the sections after its card: raise the stacking context of the card whose tooltip is open, or render the tooltip where no later section covers it. Keep its keyboard behavior: focus opens it, Escape closes it, and the button keeps aria-describedby.
  2. Check the other InfoTooltip placements (a provider card's spend and allowance notes, a budget in alert settings) for the same overlap and fix them the same way.

Acceptance criteria

  • With the tooltip of the spend total open, its whole text is visible and nothing covers it: in Playwright, the tooltip is the topmost element at a point on its last line (document.elementFromPoint).
  • The keyboard path in e2e/projection.spec.ts (focus, Escape, Enter) and its axe scans still pass.
  • Playwright e2e coverage added in e2e/projection.spec.ts.

Files and areas

  • src/components/dashboard/info-tooltip.tsx, src/components/dashboard/value-meta.tsx, src/components/dashboard/dashboard-view.tsx, src/components/dashboard/provider-card.tsx, e2e/projection.spec.ts

Non-goals: the tooltip's text, and the projections themselves.

Verification

  • e2e/projection.spec.ts through the guarded Playwright runner
  • npm run typecheck, npm run lint

Branch: <issue-number>-projection-tooltip-stacking
Closes with a Closes #<issue-number> footer on the commit or pull request.

Model: anthropic/claude-opus-5-5 | Reasoning effort: max

主要言語
TypeScript
スター
13
フォーク
2
平均マージ
5時間 20分
マージ済み PR(30日)
287

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

eddiejaoude/StackDash のほかの issue

eddiejaoude/StackDash の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。