Skip to content

Add Select lookupFn test examples and customer endpoint enhancements#829

Draft
jskupsik wants to merge 1 commit into
developfrom
enhance-select-object-support
Draft

Add Select lookupFn test examples and customer endpoint enhancements#829
jskupsik wants to merge 1 commit into
developfrom
enhance-select-object-support

Conversation

@jskupsik
Copy link
Copy Markdown
Contributor

Add test examples for the new Select lookupFn prop to both the admin SelectTestPanel (desktop) and the mobile FormPage. Examples pre-populate selects with numeric ID values to verify that labels display on mount rather than raw IDs — the core scenario addressed by the enhance-select-object-support hoist-react branch.

Desktop admin panel adds two cases: an options-based select with an ID not in the selectable list (resolved via lookupFn), and a queryFn-based select with lookupFn. Mobile form page adds matching employee and customer select fields with the same patterns.

Extend the CustomerController and CustomerService to support lookup by id param and an activeOnly filter, enabling the lookupFn and filtered query test scenarios.

Add test examples for the new Select `lookupFn` prop to both the admin SelectTestPanel (desktop) and the mobile FormPage. Examples pre-populate selects with numeric ID values to verify that labels display on mount rather than raw IDs — the core scenario addressed by the `enhance-select-object-support` hoist-react branch.

Desktop admin panel adds two cases: an options-based select with an ID not in the selectable list (resolved via `lookupFn`), and a queryFn-based select with `lookupFn`. Mobile form page adds matching employee and customer select fields with the same patterns.

Extend the CustomerController and CustomerService to support lookup by `id` param and an `activeOnly` filter, enabling the `lookupFn` and filtered query test scenarios.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

1 participant