Repository navigation
fix(jsonforms-renderers): show search labels after a cancelled resolve - #96
Conversation
…mplate handling and new test case This update introduces a new test case to verify the displayTemplate functionality for stored IDs, ensuring that the correct label is shown after a resolve is cancelled and retried. Additionally, the SearchSelectControl implementation has been refined to improve label persistence and handling of optimistic UI updates during asynchronous resolution. The changes enhance the robustness and clarity of the dropdown behavior in the component.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthrough
ChangesSearchSelect resolution
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to Search-select fields should now show the templated label instead of a raw stored ID after a cancelled lookup. No merge-blocking risk was identified. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Search-select fields kept the raw stored id when the lookup was cancelled before it finished. The id is marked resolved only after the lookup settles, so a refetched form can show the
displayTemplate.Type of Change
Changes Made
SearchSelectControlrecords a stored id as resolved only afterresolvefinishes, so a cancelled attempt is retried and the display template is applied{name} ({id})after the first lookup is cancelledTesting
Checklist
Related Issues
N/A
Screenshots/Demo
N/A
Deployment Notes
No change to a running deployment. Portals keep the published package until a new
@opennsw/jsonforms-renderersversion is released and the dependency is bumped.Additional Notes
N/A
Summary by CodeRabbit