Skip to content

feat: add RangeInputPicker component with number input and view support#360

Merged
AshotHarutyunyan merged 2 commits into
mainfrom
DATAUI-1561/range-number-input
May 25, 2026
Merged

feat: add RangeInputPicker component with number input and view support#360
AshotHarutyunyan merged 2 commits into
mainfrom
DATAUI-1561/range-number-input

Conversation

@AshotHarutyunyan
Copy link
Copy Markdown
Contributor

No description provided.

@gravity-ui-bot
Copy link
Copy Markdown
Contributor

Preview is ready.

@gravity-ui-bot
Copy link
Copy Markdown
Contributor

Playwright Test Component is ready.

Comment thread src/lib/kit/constants/config.tsx Outdated
multi_oneof_flat: {Component: MultiOneOfFlatView, independent: true},
inline: {Component: ObjectInlineView, independent: true},
time_range_selector: {Component: TimeRangeSelectorView, independent: true},
range_input_picker: {Component: RangeInputPickerView, independent: true},
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same thing about this flag

Comment thread src/lib/kit/constants/config.tsx Outdated
multi_oneof_flat: {Component: MultiOneOfFlat, independent: true},
inline: {Component: ObjectInline, independent: true},
time_range_selector: {Component: TimeRangeSelector, independent: true},
range_input_picker: {Component: RangeInputPicker, independent: true},
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like the independent flag isn’t needed here. If you’re not implementing any special logic or hardcoding the Layout in the code, and if the main purpose of this flag is this code https://github.com/gravity-ui/dynamic-forms/pull/360/changes#diff-776662bd58caae175544f2b0a894fb52bd511afecfe1da02fbf4ccdfcbb5c6afR183, then it will happen automatically in the Controller. You can remove both this code and the independent flag.

}

return fallback;
};
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feels like I’ve seen this somewhere before 👀
DEFAULT_MIN, DEFAULT_MAX -> constants
clamp, resolveBound -> utils

@AshotHarutyunyan AshotHarutyunyan merged commit 0feb76e into main May 25, 2026
4 checks passed
@AshotHarutyunyan AshotHarutyunyan deleted the DATAUI-1561/range-number-input branch May 25, 2026 14:35
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.

3 participants