Skip to content

Replace previewImage with hasControls field in experiment schema#13

Merged
justkahdri merged 2 commits intomainfrom
claude/update-experiments-schema-SDQZm
Mar 16, 2026
Merged

Replace previewImage with hasControls field in experiment schema#13
justkahdri merged 2 commits intomainfrom
claude/update-experiments-schema-SDQZm

Conversation

@justkahdri
Copy link
Collaborator

Summary

This PR replaces the previewImage field with a new hasControls boolean field in the experiment registry schema and updates all existing experiment entries accordingly.

Key Changes

  • Schema update: Removed previewImage (string URI) field and added hasControls (boolean) field to schema.json
  • Data migration: Updated all 5 experiment entries in experiments.json with the new hasControls field:
    • Shader Experiments: true
    • Typography & WebGL: false
    • Creative Tools: true
    • Three.js Experiment: false
    • WebGL Project: true
  • Documentation: Updated README.md to reflect the schema change in the field reference table
  • CLI command: Fixed the publish command in README from joyco lab to joyco lab create

Implementation Details

The hasControls field is a boolean that indicates whether an experiment exposes interactive controls to users. This is a more actionable metadata property than a preview image URL for filtering and categorizing experiments.

https://claude.ai/code/session_015D3FFtovc6pNwm2DfhW7cN

claude added 2 commits March 16, 2026 15:32
Previews are now auto-generated in the lab, so previewImage is removed.
Added hasControls boolean flag to indicate whether experiments expose
interactive controls. MSDF and Joyco Miami are marked as having no controls.

https://claude.ai/code/session_015D3FFtovc6pNwm2DfhW7cN
@justkahdri justkahdri self-assigned this Mar 16, 2026
@justkahdri justkahdri merged commit ad8b260 into main Mar 16, 2026
1 check passed
@justkahdri justkahdri deleted the claude/update-experiments-schema-SDQZm branch March 16, 2026 15:36
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.

2 participants