Skip to content

Shared tab

The Shared tab of the Reports screen shows only the reports that currently have an active public share link.

There is no free-text search box on this screen. Filtering is done by tab: the Shared tab is the same card view as My Reports but shows only reports that have an active share token. Everything else (pinning, downloading, opening, deleting) works identically on both tabs.

When the Shared tab is empty it tells you how to populate it: open a saved report from My Reports and click the Share icon to create a public link.

The Shared tab
  1. On a report card (or in the full view header), click the Share icon.
  2. A share token is minted and a public URL of the form <your-site>/reports/share/<token> is generated.
  3. The absolute URL is copied to your clipboard automatically, and a toast confirms “Share link copied: …”.
  4. The report now shows a green Share icon, a Shared badge, and (on the card) an external-link button that opens the public page.
  5. Move to the Shared tab to see all reports that currently have an active link.

The public page at /reports/share/<token> is a read-only render of the dashboard:

  • A small header strip reads Testver → Shared Report with a “Read-only view · <date>” label.
  • The dashboard renders through the same ReportCard, but in readonly mode: the Save, Share, and Revoke actions are all hidden.
  • The viewer can still Open full view, Download HTML, and Copy link — the Download uses the public render endpoint so it works without an account.
  • A footer reads “Generated by Testver”.
  • If the token is invalid or revoked, the page shows Share link unavailable with the message: “This share link is no longer valid. Ask the report owner for a fresh link.”
  • Access is governed solely by possession of the token — there is no per-person access list, no password, and no expiry beyond manual revocation.
  • To revoke: click the Share icon on a shared card again (it toggles the link off), or in the full view open the share panel and click Revoke (shield-off icon). A toast confirms “Share link revoked”.
  • Once revoked, the old URL stops working immediately and shows the “no longer valid” page. Re-sharing mints a brand-new token; the old URL never comes back.
  • Deleting a report also invalidates its share link — the confirm dialog warns “Any active share link will stop working.”