Skip to content

Add a hide-padding option for the Fields display, defaulting to on #129

Description

@philpax

Problem

The docs viewer's Fields display shows explicit layout-padding regions alongside real fields. It should gain an option to hide padding fields, and this option should default to on.

Notes

  • The JSON backend emits padding regions today, but marks them only heuristically: padding regions have name: null and source: null (see the schema comment at src/backends/json/schema.rs:375).
  • Add an explicit is_padding flag to JsonRegion so the viewer can filter reliably. Bump CURRENT_SCHEMA_VERSION and update the version history in docs/json_backend.md.
  • The viewer's Fields display lives in viewer/src/components/NestedFieldView.tsx (with FieldTable.tsx); the hide option should apply there. types/json.ts is regenerated via cargo run -p pyxis-driver -- gen-types.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions