Overview
Operations managers at Delhivery frequently need to examine individual shipment details while simultaneously reviewing the complete historical lifecycle of that shipment. A fixed layout for these two crucial information blocks can hinder efficient analysis and comparison. This problem requires you to build a dynamic interface that allows users to resize the detail and history sections, significantly enhancing their analytical workflow and productivity.
What you need to do / Task
- Layout Construction: Build a React component that displays two distinct content panes: "Shipment Details" on the left and "Shipment History" on the right.
- Resizable Divider: Implement a draggable divider element positioned between the two panes.
- Dynamic Resizing: Ensure that dragging the divider horizontally dynamically adjusts the widths of both "Shipment Details" and "Shipment History" panes.
- Minimum Pane Sizes: Enforce a minimum width (e.g., 200px) for each pane, preventing them from becoming too small during resizing.
- Data Display: Populate both panes with the provided mock data, ensuring it renders responsively within the resized containers.
UI/UX expectations
- Initial State: The application should render with the "Shipment Details" pane occupying 60% of the width and the "Shipment History" pane occupying 40% of the width, separated by a visible divider.
- Divider Interaction: Hovering over the divider should visually indicate resizability by changing the cursor to
ew-resize.
- Smooth Resizing: Dragging the divider should provide a smooth, real-time resizing experience for both panes.
- Content Adaptation: Content within each pane (mock data) should reflow and adapt correctly to the new dimensions without overflow or layout issues.
Acceptance criteria
- The application renders two distinct sections: "Shipment Details" and "Shipment History", with a visible divider between them.
- The initial split ratio is approximately 60% for details and 40% for history.
- Dragging the divider horizontally successfully resizes both sections, maintaining their relative positions.
- The cursor changes to
ew-resize when hovering over the divider.
- Both the "Shipment Details" and "Shipment History" panes enforce a minimum width (e.g., 200px) during resizing.
- The provided mock data is rendered clearly and correctly within its respective pane.