MissingPage: support multiple action buttons
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 68/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- react, typescript
- 領域
- frontend
調査の方向性
まず MissingPage コンポーネントを読み、すでに customFooter をサポートしている ErrorState とその footer API を比較します。既存の toHomePageUrl アクションがどのようにレンダリングされるかを確認し、現在の動作を維持したまま複数のカスタムアクションをレンダリングできるサポートされた方法を追加します。MissingPage のレイアウトを複製せずに、利用側がホームアクションと戻るアクションの両方を指定できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Description
MissingPage currently supports only a single link/action via the toHomePageUrl prop (rendered as a "Go to home page" link). A common 404 page pattern includes multiple actions — typically both "Go Home" and "Go Back" buttons.
Use Case
In ansible/ansible-ui, our custom PageNotFound component renders two action buttons:
-
"Go to Dashboard" (navigate to home)
-
"Return to previous page" (browser back)
We cannot adopt MissingPage because it only renders one action.
Proposed Solution
Add support for custom footer actions, either via:
-
A
customFooteroractionsprop that acceptsReactNode(most flexible) -
An
additionalActionsarray prop alongside the existingtoHomePageUrl
This would align with how other component-groups components like ErrorState support customFooter.
Current Workaround
We maintain a custom PageNotFound component that duplicates MissingPage's layout but adds a second button.
Jira Issue: PF-4547
- 主要言語
- TypeScript
- スター
- 10
- フォーク
- 40
- 平均マージ
- 3日 22時間
- マージ済み PR(30日)
- 4
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
patternfly/react-component-groups のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
patternfly/react-component-groups#968 · コメント 1 件 ·
-
PF Team
patternfly/react-component-groups#979 · 担当者 1 名 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
patternfly/react-component-groups#942 · コメント 1 件 ·
-
rehor-ai-patternfly
難易度 2/5 1〜3時間 初心者へのやさしさ 58/100
patternfly/react-component-groups#909 · コメント 1 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
patternfly/react-component-groups の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
safetrustcr/dApp-SafeTrust#426 ·
-
area:workflow bug ready-for-agent
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
fil-donadoni/tolaria#4409 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
Fission-AI/OpenSpec#1960 ·
-
Add dependabot オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
corsairdev/corsair#1764 ·