Skip to content

Admin: journey sparkline in entries list #2

Description

@nipun-arora

Every entry can carry a server-recomputed journey (ServerJourneyStep[], see packages/astro-forms/src/types.ts), but the entries list at packages/astro-forms/src/server/admin/entries.astro doesn't show it. You have to click into the entry detail to see how someone moved through the site.

Idea: a tiny inline sparkline per row. Steps on the x axis, dwell time as bar height (or just a dot-per-step strip). Enough to tell "bounced straight to the form" from "read five pages first" at a glance.

Constraints:

  • Server-rendered inline SVG, generated at render time in the .astro template. No client framework, no chart library.
  • Entries without a journey render nothing (no placeholder box).
  • Keep it small. This is a table row accent, not a chart.

The entry detail view (entry-detail.astro) already renders the full journey as a list, so the data shape and access pattern are both visible there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions