Skip to content
This repository was archived by the owner on Apr 2, 2026. It is now read-only.
This repository was archived by the owner on Apr 2, 2026. It is now read-only.

Empty chart panel on hub pages with no distribution data #18

@jonathanpopham

Description

@jonathanpopham

Bug

Hub/taxonomy pages (e.g. Node Types → Directory, Node Types → Class) show an empty rectangle where the distribution chart should be.

Screenshot

Root Cause

The hub chart data has typeDistribution: null and distributions: {} on single-type taxonomy pages. The JS tries to render a donut chart but finds no data, leaving the .chart-panel container visible but empty.

Example from the page source:

{"entryName":"Class","totalEntities":59,"typeDistribution":null}

Expected Behavior

Either:

  1. Populate the distribution data (e.g. breakdown by language, domain, or directory within that node type)
  2. Or hide the chart panel when there's no data to display

Where to Look

  • internal/pssg/ — hub page data generation (what populates hub-chart-data)
  • templates/hub.html — the chart panel markup
  • templates/_main.js — hub chart rendering (line ~430)

Affected Pages

Every hub page where there's only one dimension to show — typically Node Types → {specific type}, Languages → {specific language}, etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions