Skip to content

Feat/imprv UI#39

Merged
maemreyo merged 43 commits intomainfrom
feat/imprv-ui
Jul 21, 2025
Merged

Feat/imprv UI#39
maemreyo merged 43 commits intomainfrom
feat/imprv-ui

Conversation

@maemreyo
Copy link
Owner

No description provided.

…ove default value handling and remove unused code
…dling

- Added a renderSubmitButton prop to DynamicForm for custom submit button rendering.
- Updated ComboBox component to handle label mismatches and added overrideOnMismatchLabel prop for better label management.
- Removed console log statements across various components for cleaner code.
- Commented out unused validation configurations in the ComprehensiveForm for clarity.
- Added support for required validation in the ComboBox component.
- Updated InputLabel to reflect the required status based on fieldConfig validation.
… for custom error handling

- Introduced renderErrorMessage prop in FieldConfig and FormContentProps to allow custom error message rendering.
- Updated InputRenderer to utilize the new renderErrorMessage prop for improved error display.
…endering

- Removed the renderErrorMessage prop from InputRenderer.
- Updated error message handling to utilize fieldConfig.renderErrorMessage for improved customization and consistency in error display.
…ce DynamicForm error handling

- Bumped the version of @matthew.ngo/react-form-kit from 0.0.8 to 0.0.10 in package.json and yarn.lock.
- Integrated InputErrorMessage component from @matthew.ngo/react-form-kit into DynamicForm for improved error message rendering.
- Updated the BasicInputTypes story to utilize a custom input component and enhanced error validation logic.
Enables the combobox to render options as disabled, based on the `disabled` property provided in the item object.
Updates storybook examples to demonstrate the functionality.
Increments package version.
Adds a `draggableListDirection` prop to the ComboBox
component, allowing users to control the direction of
the draggable list (vertical or horizontal).

This improves the flexibility of the ComboBox component.
Updates the `@matthew.ngo/react-form-kit` dependency to the latest version.
Introduces a new `loadInitialItems` prop to the ComboBox component.

This prop allows developers to control whether initial items are loaded
when the component mounts. It provides flexibility in scenarios where
initial data loading is not always required, potentially improving
performance and user experience.

The component now loads initial items based on either the presence of
default values or the new `loadInitialItems` prop.
Ensures the ComboBox component reinitializes its data when certain props change. This resolves an issue where the component would not reflect updated default values or search API configurations after the initial load. It now properly reacts to changes in `searchApi`, `transformResponse`, `loadInitialItems`, `fieldConfig.defaultValue`, and `overrideOnMismatchLabel`.
Improves the ComboBox component by refactoring the data initialization and search functionalities.
The component now uses `useCallback` and `useMemo` hooks to optimize performance and prevent unnecessary re-renders.

It enhances the handling of default values, especially when there are label mismatches between the default values and the values from the search API.

Also improves initial data loading to handle cases where default values require additional data fetching.
@maemreyo maemreyo merged commit b703d63 into main Jul 21, 2025
0 of 5 checks passed
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