Skip to content

explorer: #248 described-by — add a removable concept chip + hide stale 'Click a cluster' placeholder #255

@rdhyee

Description

@rdhyee

Why

described-by=<uri> has no UI surface (URL-only) and its results render below the fold. Two small fixes:

  1. A pinned 'Described by: ✕' chip at the top of the side panel — visible concept identity + one-click clear. (This is the UI element users will look for; also helps because the concept filter is currently fragile — any search-box entry silently replaces it.)
  2. Hide the '#clusterSection "Click a cluster or sample" placeholder' while a search/concept is active — it's meaningless then and eats the vertical space the results want.

Scope

  • explorer.qmd: doDescribedBy() already sets window.__searchFilter = {kind:'concept', uri, term:<label>, ...} — render the chip from that; clear = call the existing clear path + remove described-by from the URL.
  • The chip should also show for a future paste-a-URI input (Flavor B). Escape the label with escapeHtml (see XSS fix in explorer: support described-by=<concept-uri> search (#248 Flavor A) #252).
  • Hide #clusterSection when searchIsActive().

Acceptance

  • With a concept active, a chip shows the label + ✕ that clears it; placeholder hidden during search; Codex-reviewed; staging-verified.

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