Skip to content

Issue #4 - [BUG] Enum descriptions missing after expanding "Show all values" #7

@zenocross

Description

@zenocross

Description

When an enum field has a "Show all values" button to display all possible values, clicking it expands the list but the descriptions for each enum value are not displayed.

Current Behavior

  • Enum with many values shows "Show all values" button
  • Clicking button expands to show all enum values
  • Descriptions for enum values are not rendered
  • Only the enum values themselves are visible

Expected Behavior

  • Clicking "Show all values" expands the enum list
  • Each enum value displays with its associated description
  • Descriptions should be formatted consistently with collapsed view
  • Full information is available for all enum values

Steps to Reproduce

  1. Navigate to API reference with an enum property that has descriptions
  2. Find an enum with enough values to trigger "Show all values" button
  3. Click "Show all values" to expand
  4. Observe that enum values appear but descriptions are missing
  5. Compare with collapsed state where descriptions may be visible

Proposed Solution

Update the UI expansion logic to include enum descriptions when rendering the full list. This involves modifying the Vue component that handles enum display to iterate through and show both values and descriptions.

Technical Context

  • Component: api-reference
  • Frontend Vue component changes
  • Involves conditional rendering logic
  • May require schema traversal to fetch descriptions

Download https://cap.so/ to record your screen (use Studio mode). Export as an mp4, and drag and drop into an issue comment below.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions