Skip to content

feat: add stacked useTitle hook and dashboard quick refresh - #1616

Open
Raven062 wants to merge 1 commit into
Remitwise-Org:mainfrom
Raven062:feat/use-title-dashboard-refresh
Open

feat: add stacked useTitle hook and dashboard quick refresh#1616
Raven062 wants to merge 1 commit into
Remitwise-Org:mainfrom
Raven062:feat/use-title-dashboard-refresh

Conversation

@Raven062

@Raven062 Raven062 commented Jul 31, 2026

Copy link
Copy Markdown

Summary

Adds a reusable stacked useTitle hook for nested page/section titles and wires the dashboard header refresh affordance into the live dashboard surface.

Changes

  • Introduces useTitle(title, { depth }) to compose document.title from depth-ordered page/section entries.
  • Keeps the public API backwards-compatible and documents the hook in docs/HOOKS.md.
  • Adds regression coverage for the hook behavior in tests/unit/hooks/useTitle.test.tsx.
  • Wires the dashboard header to render the new title stack and adds the quick refresh button to the dashboard header area.
  • Documents component testing conventions in docs/COMPONENT_TESTING.md and links it from the top-level docs.

Notes

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.

Add a "quick refresh" button on the dashboard header Add a docs/COMPONENT_TESTING.md guide Add a useTitle hook that stacks page + section title

1 participant