Skip to content

Conversation

@cihad
Copy link
Contributor

@cihad cihad commented Jan 14, 2026

This PR continues the work started by @MohnDoe in #79, which has been inactive for several months despite a thorough review by @slax57.

Changes

This PR implements the ReferenceOneField component and addresses all review feedback from #79:

Original Implementation (by @MohnDoe)

  • ✅ Basic ReferenceOneField component implementation
  • ✅ Storybook stories covering various use cases
  • ✅ Unit tests
  • ✅ Documentation

Review Feedback Addressed (this PR)

  • ✅ Added filter and sort props to documentation
  • ✅ Sorted optional props alphabetically in documentation
  • ✅ Copied Record Representation and Tips sections instead of referencing
  • ✅ Fixed documentation examples to use TextField instead of RecordField with proper label props
  • ✅ Updated InShowLayout story to use SimpleShowLayout as requested
  • ✅ Added loading prop to Loading story to make the loading message visible
  • ✅ Added test case for children prop
  • ✅ Fixed alphabetical ordering of referenceonefield in astro.config.mjs

Closes

Closes #78

Credit

Original implementation by @MohnDoe. This PR only addresses the review feedback to move the feature forward, as the original author has been unresponsive for several months.

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 ReferenceOneField component

2 participants