Revoke key and unpublish everything dialogs report failures without the shared dialog error

オープン 初心者向け
#325 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
リファクタリング
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
nextjs, react, typescript

調査の方向性

まず src/components/dialog-error.tsx(#323 でマージ済み)と、それがすでに移行したダイアログの 1 つを読み、assertive な live region とフォーカス移動のパターンを確認します。次に、RevokeConfirmation(src/app/w/[workspace]/settings/api-keys.tsx)での ErrorSummary の使用と、UnpublishEverythingConfirmation(src/components/public-metrics/publication-controls.tsx)での Failure の使用を DialogError に置き換え、ダイアログ以外の呼び出し元はそのままにします。完了の状態は、e2e/fixtures/dialogs.ts の expectFailureInDialog を介して検証する両方の e2e spec が通り、成功パスは変更されておらず、両方のダイアログでクリーンな axe スキャンとキーボード操作の確認が済んでいることです。

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

説明

accessibility area: web bug impact: low priority: P3 size: XS

Summary

Two more confirmation dialogs report a failure inside the dialog, but each in its own way and neither meets the Accessibility rule for errors (assertive live region plus focus moved to the error):

  • Revoke API key (src/app/w/[workspace]/settings/api-keys.tsx, RevokeConfirmation uses ErrorSummary): focuses the error but has no live region.
  • Unpublish everything (src/components/public-metrics/publication-controls.tsx, UnpublishEverythingConfirmation uses Failure): assertive region, but focus stays on the confirm button.

#323 adds DialogError (src/components/dialog-error.tsx) as the one pattern for a failed confirmation inside a <dialog> and moves the Disconnect and Delete dialogs onto it. These two were left out of #323 because they are neither Disconnect nor Delete and their errors are not hidden behind the modal.

Scope

  • Render the failure of both dialogs with DialogError. ErrorSummary and Failure stay for the non-dialog forms that use them.

Acceptance criteria

  • A failed revoke and a failed unpublish everything show the error inside the open dialog, in the assertive region, with focus on it (e2e with the failure forced, using expectFailureInDialog from e2e/fixtures/dialogs.ts).
  • Success paths unchanged.
  • axe scan and a keyboard pass on both dialogs.

Found while working on #323.

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

主要言語
TypeScript
スター
1
フォーク
1
平均マージ
6時間 56分
マージ済み PR(30日)
136

環境構築

はじめの一歩

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

eddiejaoude/StackDash のほかの issue

eddiejaoude/StackDash の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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