Skip to content

Add Select generateOptionFn test examples and customer endpoint enhancements#829

Merged
jskupsik merged 3 commits into
developfrom
enhance-select-object-support
Jun 26, 2026
Merged

Add Select generateOptionFn test examples and customer endpoint enhancements#829
jskupsik merged 3 commits into
developfrom
enhance-select-object-support

Conversation

@jskupsik

@jskupsik jskupsik commented Mar 16, 2026

Copy link
Copy Markdown
Contributor

Add test examples for the new Select generateOptionFn 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 generateOptionFn), and a queryFn-based select with generateOptionFn. 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 generateOptionFn 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>
…ect-support

# Conflicts:
#	client-app/src/mobile/form/FormPage.ts
#	client-app/src/mobile/form/FormPageModel.ts
@jskupsik jskupsik marked this pull request as ready for review June 25, 2026 14:39
@jskupsik jskupsik changed the title Add Select lookupFn test examples and customer endpoint enhancements Add Select generateOptionFn test examples and customer endpoint enhancements Jun 26, 2026
@jskupsik jskupsik closed this Jun 26, 2026
@jskupsik jskupsik reopened this Jun 26, 2026
@jskupsik jskupsik merged commit 072dbc6 into develop Jun 26, 2026
8 of 10 checks passed
@jskupsik jskupsik deleted the enhance-select-object-support branch June 26, 2026 20:21
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.

2 participants