Skip to content

refactor(ui): use generic Breadcrumb in install key history page - #6864

Merged
otavio merged 1 commit into
masterfrom
refactor/ui/install-key-history-breadcrumb
Aug 7, 2026
Merged

refactor(ui): use generic Breadcrumb in install key history page#6864
otavio merged 1 commit into
masterfrom
refactor/ui/install-key-history-breadcrumb

Conversation

@luizhf42

@luizhf42 luizhf42 commented Aug 6, 2026

Copy link
Copy Markdown
Member

What

The install key history page had a hand-rolled back-link (<Link> + ArrowLeftIcon). Replaced it with the shared Breadcrumb component so the page gets a proper <nav> landmark, aria-current="page" on the leaf, and chevron separators — matching every other detail page that already uses Breadcrumb.

Changes

  • InstallKeyHistoryPage: swapped the ad-hoc <Link> for a two-segment Breadcrumb ("Install Keys" → key display name) and dropped the now-unused Link and ArrowLeftIcon imports

Replace the ad-hoc back-link with the shared `Breadcrumb` component,
gaining proper `nav` landmark, `aria-current="page"`, and chevron
separators for free.
@luizhf42 luizhf42 self-assigned this Aug 6, 2026
@luizhf42
luizhf42 requested a review from a team as a code owner August 6, 2026 12:36
@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown

Claude finished @luizhf42's task in 49s —— View job


Code Review Complete

Reviewed 1 file across code quality, security, testing, language patterns, and architecture — no new issues found. The code looks good as-is.

The swap from the hand-rolled <Link> + ArrowLeftIcon to the shared Breadcrumb is correct: the items shape matches the component's interface, the leaf segment omits to (so it renders as the aria-current="page" span), the name || "Install Key" fallback mirrors the <h1>, and both removed imports have no lingering references. Usage is consistent with the other detail pages (e.g. DeviceDetails.tsx).

If you push additional changes and want a new review, tag @shellhub-io/admin and a team member can trigger it.

@otavio
otavio merged commit f7c5787 into master Aug 7, 2026
49 of 69 checks passed
@otavio
otavio deleted the refactor/ui/install-key-history-breadcrumb branch August 7, 2026 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants