Skip to content

Tag filter: add tag CSS classes to path-tree items and method badges #47

Description

@t1

Part of #10 — see design spec in docs/superpowers/specs/2026-04-12-path-tree-tag-filter-design.md.

Scope: Java generator changes only.

  • Add tag-{sanitized} CSS classes to tree items based on their operations' tags.
  • Add tag-{sanitized} CSS classes to method badges.
  • Tag name sanitization: lowercase, replace non-alphanumeric with hyphens, collapse/trim.
  • Generate per-tag CSS filter rules in openapi-ui.css.
  • Generate filter icon (fa-filter) and pre-rendered pill panel in path-tree HTML header.
  • Only render filter UI when API has 2+ unique tags.
  • Unit tests for generated HTML structure and CSS rules.

Metadata

Metadata

Assignees

No one assigned

    Labels

    approvedReviewed by maintainer — agents may read and act

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions