Skip to content

feat: add array format types and ndarray v1.1.0 annotations#36

Merged
maxine-at-forecast merged 1 commit intodevelopfrom
feature/array-format-types-ndarray-annotations
Feb 26, 2026
Merged

feat: add array format types and ndarray v1.1.0 annotations#36
maxine-at-forecast merged 1 commit intodevelopfrom
feature/array-format-types-ndarray-annotations

Conversation

@maxine-at-forecast
Copy link
Copy Markdown
Contributor

Summary

  • Add KNOWN_ARRAY_FORMATS constant and ARRAY_FORMAT_LABELS display-name mapping for all six recognized array format tokens (numpyBytes, parquetBytes, sparseBytes, structuredBytes, arrowTensor, safetensors)
  • Update row_to_schema() to surface arrayFormat, dtype, shape, and dimensionNames from schema_body as top-level convenience fields for templates and API consumers
  • Update frontend templates (schema detail, schemas list, profile, dataset detail) to display array format and ndarray annotation fields when present
  • Update MCP server instructions and get_schema docstring to describe new format types
  • Add 14 new tests covering all format tokens, ndarray annotations, partial annotations, unknown format passthrough, template rendering, and constant completeness

Closes #30

Test plan

  • All 159 tests pass (uv run pytest)
  • Lint clean (uv run ruff check src/ tests/)
  • Verify schema detail page renders array format and annotation rows for a schema with arrayFormat in its body
  • Verify schemas list and profile pages show the new Format column
  • Verify dataset detail page shows inline schema format info when the referenced schema has array format fields
  • Verify plain schemas (no arrayFormat) render unchanged — no extra rows or columns with empty values

🤖 Generated with Claude Code

… display

Add KNOWN_ARRAY_FORMATS constant and ARRAY_FORMAT_LABELS for the six
recognized array format tokens (numpyBytes, parquetBytes, sparseBytes,
structuredBytes, arrowTensor, safetensors). Update row_to_schema() to
surface arrayFormat, dtype, shape, and dimensionNames from the schema
body as top-level fields. Update frontend templates (schema detail,
schemas list, profile, dataset detail) to display format and annotation
info when present. Update MCP server descriptions to mention new formats.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@maxine-at-forecast maxine-at-forecast merged commit e0496be into develop Feb 26, 2026
9 checks passed
@maxine-at-forecast maxine-at-forecast deleted the feature/array-format-types-ndarray-annotations branch February 26, 2026 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add AppView support for new array format types and ndarray v1.1.0 annotations

2 participants