Skip to content

Add collection item fields#29

Merged
doneill merged 3 commits intodevelopfrom
28-v2-collection-fields
Dec 9, 2025
Merged

Add collection item fields#29
doneill merged 3 commits intodevelopfrom
28-v2-collection-fields

Conversation

@doneill
Copy link
Collaborator

@doneill doneill commented Nov 26, 2025

Description

Collection item fields now get their full UI properties based on their type definitions in schema.ui.fields

Fixes

#28

Proposed Changes

  • Added optional schema parameter to createControl to access UI field definitions
  • Updated generateCollectionUISchemaInternal
    • Looks up UI field definitions for each collection item field in schema.ui.fields
    • Uses the main createControl function recursively instead of basic helper
  • generateUISchema Passes schema to createControl

Testing

  • Run yarn test
    • Verify all tests pass
  • Build and link library in React Native app
# build
npm run build

# link
yarn link

# In React Native client app, e.g. EarthRanger
yarn remove @earthranger/react-native-jsonforms-formatter@2.0.0-beta.8
yarn link @earthranger/react-native-jsonforms-formatter@2.0.0-beta.8

accepts a schema, looks up UI field definitions for each collectino
updated createControl to accept achema
@doneill doneill requested a review from hugo07E8 November 26, 2025 23:11
@doneill doneill merged commit 35dc236 into develop Dec 9, 2025
2 checks passed
@doneill doneill self-assigned this Dec 10, 2025
@doneill doneill added the B - Ready To Merge PR is ready to be merged label Dec 10, 2025
@doneill doneill deleted the 28-v2-collection-fields branch March 10, 2026 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

B - Ready To Merge PR is ready to be merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant