Skip to content

feat(MissingPage): add customFooter prop - #972

Open
platex-rehor-bot wants to merge 1 commit into
patternfly:mainfrom
platex-rehor-bot:bot/PF-4547
Open

feat(MissingPage): add customFooter prop#972
platex-rehor-bot wants to merge 1 commit into
patternfly:mainfrom
platex-rehor-bot:bot/PF-4547

Conversation

@platex-rehor-bot

Copy link
Copy Markdown
Collaborator

Summary

  • Adds a customFooter prop to the MissingPage component, allowing consumers to render custom footer content (e.g. multiple action buttons) instead of the default homepage link.
  • Follows the same pattern already used by the ErrorState component's customFooter prop.
  • Includes unit tests, a documentation example, and updated PatternFly docs page.

Resolves: #969
Jira: https://redhat.atlassian.net/browse/PF-4547

Changes

  • MissingPage.tsx: Added optional customFooter?: React.ReactNode prop. When provided, it replaces the default "Return to homepage" link in the EmptyStateFooter.
  • MissingPage.test.tsx: Added tests for custom footer rendering, default link rendering, and EmptyState prop spreading.
  • MissingPageFooterExample.tsx: New documentation example showing two action buttons ("Go to home page" + "Return to previous page").
  • MissingPage.md: Added "Custom footer" example section to the docs page.

Test plan

  • Existing snapshot test still passes (default rendering unchanged)
  • New test verifies custom footer replaces default link
  • New test verifies default link renders when no customFooter given
  • New test verifies EmptyState prop spreading works
  • ESLint passes with zero new warnings
  • Visual verification in PatternFly docs dev server

🤖 Generated with Claude Code

PF-4547
Add a customFooter prop to MissingPage, matching the existing pattern
used by ErrorState. When provided, customFooter replaces the default
homepage link, allowing consumers to render multiple actions (e.g.
"Go Home" and "Go Back" buttons).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MissingPage: support multiple action buttons

1 participant