Skip to content

Allow editing classless resources - #1245

Draft
joepio wants to merge 2 commits into
developfrom
cursor/edit-classless-resources-e7f6
Draft

Allow editing classless resources#1245
joepio wants to merge 2 commits into
developfrom
cursor/edit-classless-resources-e7f6

Conversation

@joepio

@joepio joepio commented Aug 2, 2026

Copy link
Copy Markdown
Member

Related Issues

closes #1158

Summary

ResourceForm hard-blocked whenever isA was missing or did not resolve to a Class, showing:

… is not a Class. Only resources with valid classes can be created or edited at this moment.

Class was only needed to pick required/recommended fields. Existing properties were already collected in otherProps, and Advanced already supports adding new properties.

This makes Class advisory: when valid, required/recommended fields still render; otherwise the form shows current properties and lets the user add more. A soft warning appears when isA points at a non-Class.

Changes

  • Remove the hard gate in ResourceForm; only wait on Class loading when a class subject is present
  • Soft warning when isA is set but not a Class
  • E2E: create a resource with no isA, open /app/edit, assert the form renders and Save is enabled
  • Changelog + TESTING_COVERAGE.md row
  • Update related comment in @tomic/lib store

Checklist

  • Add changelog entry linking to issue, describe API changes
  • Add or update tests if needed
  • Update docs if needed
Open in Web Open in Cursor 

cursoragent and others added 2 commits August 2, 2026 08:20
ResourceForm no longer hard-blocks when isA is missing or not a Class.
It renders existing properties and keeps Advanced add-property available,
with a soft warning when isA points at a non-Class. Adds an e2e covering
the classless edit path.

Closes #1158

Co-authored-by: Joep Meindertsma <joep@ontola.io>
ResourceField uses data-test, not data-testid, for normal inputs.

Co-authored-by: Joep Meindertsma <joep@ontola.io>
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.

Allow editing classless resources

2 participants