Ingot.Components.DefaultComponent (Ingot v0.1.0)

View Source

Default fallback component for sample and label rendering.

This component provides generic rendering functionality that works with any sample type and label schema. It's used when:

  1. No custom component is configured for a queue
  2. A custom component fails to load
  3. Testing and development

Sample Rendering

  • Displays sample ID
  • Renders artifacts (images displayed inline, other files as links)
  • Pretty-prints JSON payload

Label Form Rendering

  • Generates form inputs based on schema field types
  • Supports: scale (range), text (textarea), boolean (checkbox), generic (text input)
  • No custom validation (uses standard schema validation)