Page MenuHomePhabricator

💻 Implement custom Wikidata statements component in Wikifunctions (read mode)
Open, MediumPublic

Description

Description

Implement a new frontend component for read-mode display of Wikidata statements based on the final design specifications. The new component will replace the existing verbose ZObject rendering with a compact, structured, and scannable UI that allows users to expand statements for additional details without losing any information.

Scope

  • Build a compact read-mode component to render statements.
  • Implement expand/collapse functionality for qualifiers, references, and rank.
  • Ensure all existing data types are supported and displayed appropriately.
  • Integrate the component into item, property, and lexeme views.
  • Maintain all existing functionality and data availability.
  • Exclude edit-mode functionality and any backend changes.

Acceptance Criteria

✅ Compact read-mode view replaces the current ZObject rendering.
✅ Qualifiers, references, and rank are hidden by default and can be expanded.
✅ All statement data remains visible and accessible.
✅ Component is integrated in item, property, and lexeme read modes.
✅ Verified to work efficiently with large statement sets (e.g., Z22220).
✅ No functionality regressions introduced.