saintsystems/nova-linkable-metrics
Laravel Nova package that makes metric cards linkable, letting you turn dashboard metrics into clickable cards that open filtered resource index views.
Adopt when:
Validate before committing:
src/, which is the actual documentation.authorizedToSee for viewers who lack access to the destination, and that the linked index has its own authorizedToViewAny policy.Look elsewhere when:
To executives: Our admin dashboards currently answer "how many" but not "which ones" — a manager who sees 47 overdue accounts has to rebuild that list by hand. This package makes those numbers clickable so the list appears in one click. It's MIT-licensed, adds no infrastructure, no database changes, and no new vendor relationship, and it's small enough that we can own the code outright if we ever need to. Frame it as a quick win: it converts dashboards we've already paid for into a tool people actually use, and it's a cheap hedge against someone commissioning bespoke dashboard tooling later. The honest boundary up front: "click the number to see the list" is in scope; "let me pivot on that list" is a separate analytics decision.
To engineering: A presentation-layer dependency for Nova 4.x that lets metric cards carry a link target — typically into a Nova resource index pre-filtered by query string. No migrations, no service provider doing anything clever, no request-path cost beyond rendering an anchor. It's a few hundred lines, MIT, and additive: annotations in, composer remove plus a published-asset clear to revert, so rollback is a five-minute operation. Three asks before we ship it: pin the exact version (no floating across Nova minors), mirror the repo internally at adoption time so a fork is always available, and add a unit test asserting the generated URL for a representative metric — because the two realistic failures (link disappears after a Nova patch, route target 404s after a filter key change) are both silent at render time.
How can I help you explore Laravel packages today?