Skip to content

Fix Duplicate File Format Labels in Resource Cards #5678

@SueValente

Description

@SueValente

User Story

In order to understand what file formats are available for a dataset, users want to see each format listed once (not repeated multiple times like "html html html html").

Acceptance Criteria

  • GIVEN a dataset has resources in the same file format
    WHEN a user views the resource cards
    THEN each unique format slug appears only once per resource

  • GIVEN multiple resources exist for a dataset
    WHEN viewing the resources section
    THEN the format labels are clear and meaningful to public data users

Background

Source: External beta feedback from Chris Marcum (christopher.steven.marcum@gmail.com) - 1/26/2026

Current problem:

  • File format slugs are being repeated in resource cards (e.g., "html html html html")
  • This repetition doesn't make sense to public data users out of context
  • Format labels should be clear and appear once per resource

Example: A dataset with multiple HTML resources shows "html" repeated multiple times instead of showing it once or providing more context

Security Considerations

None - UI display bug fix with no security implications.

Sketch

  • Identify where file format slugs are being rendered in resource cards
  • Debug why formats are being repeated
  • Fix rendering logic to display each format once per resource
  • Consider whether format labels need additional context (e.g., "HTML - Interactive Map" vs just "html html html")
  • Test with various datasets that have multiple resources of the same type
  • Verify fix works for all file format types (HTML, PDF, CSV, API, etc.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions