Dynamic Range Slider for Data Filtering
Many Atlassian products involve filtering large datasets (e.g., Jira issues by story points, Confluence pages by last modified date, Trello cards by estimated time). A robust and intuitive range slider is crucial for users to quickly narrow down results without complex input fields. This problem focuses on building a reusable range slider component that allows users to select a continuous range from a predefined minimum and maximum value, with visual feedback and dynamic value display.
RangeSlider component: This component should accept min, max, initialMin, initialMax, and an onChange callback as props.onChange: The onChange callback should be triggered with the new [min, max] values whenever the selected range changes.min and max values of the selected range should be displayed clearly above the slider track.min/max bounds of the slider.onChange callback is invoked with the correct [min, max] values on range change.Constraints
useState, useRef, useEffect, useCallback). No external UI libraries (e.g., Ant Design, Material UI) are allowed for the slider itself.RangeSlider component is structured, its props, and internal state management.Loading editor...