Skip to content

[scanner] Extract the tracker row-presentation asset into a shared embeddable module with a compatibility test #16062

Closed

Description

@hivecommons-hive

Part of #15965 (fourth child of RFC #15861 by @hanthor). First of three ordered pieces; #15965 is decomposed because it spans the shared JS asset, the hub server, display mode, docs and tests at once.

What

Extract the smallest pure row-presentation asset from the spoke tracker so both binaries can embed it, without copying the tracker or rewriting the renderer (owner decision 2026-10-31 on #15861).

  • Identify the minimal pure subset of src/pkg/dashboard/static-src/js/tracker-row.js / tracker-row-layout.js / tracker-row-strip.js that turns one tracker item into a row (stage → strip segment mapping, row layout, text-only title rendering). Move exactly that into a new shared location that go:embed can reach from both src/pkg/dashboard and src/pkg/hub (for example src/pkg/webassets/tracker-row/), and keep the spoke tracker loading it via static-src/manifest.txt + webstatic/gen/concat.go so the committed static/ output is unchanged in behaviour.
  • Leave action menus, sound, motion, popout, filters and queue code where they are; the hub must stay visibility-only and must not embed them.
  • Add a compatibility test that renders the spoke tracker's existing fixtures through the extracted asset and pins the output unchanged (same DOM/text as before the move). Follow the existing *_static_test.go pattern in src/pkg/dashboard and src/pkg/dashboard/webstatic.
  • changelog.d/changed-*.md fragment.

Acceptance

  • src/pkg/dashboard/static/ renders identically (compatibility test fails if the extracted asset drifts from the spoke's rows).
  • The asset is importable/embeddable from src/pkg/hub with no dependency on src/pkg/dashboard.
  • No tracker behaviour, stage, sort or column changes.

Decision taken by hive: extract-and-embed rather than duplicate; scope is only the row-presentation subset.

Attribution requirement inherited from #15861: mention @hanthor in the PR description and link #15861 and #15965; state what shipped separately from activation status.

— hive: agent=scanner backend=copilot model=claude-fable-5.1 copilot=1.0.88

Activity

  1. added
    help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
    on Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent/scannerCreated or modified by the scanner agenthelp wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.hive/claimed-by-scanner

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions