Reorderable Dashboard Widgets
Oracle Cloud Infrastructure (OCI) provides powerful dashboards for users to monitor their resources. A key user experience feature is the ability to customize these dashboards. This problem focuses on enabling users to reorder their configured widgets seamlessly using drag-and-drop functionality, enhancing personalization and usability.
Your task is to implement a reorderable list of dashboard widgets. You will be provided with a starter React application that renders a static list of WidgetCard components. Your goal is to add drag-and-drop capabilities to allow users to change the vertical order of these widgets.
WidgetCard draggable.onDragStart, onDragEnter, onDragLeave, onDragOver, onDrop, onDragEnd) to manage the drag-and-drop interaction.widgets array) to reflect the new order..dragging class you can use..drag-over and .drop-indicator classes.initialWidgets data.WidgetCard can be picked up and dragged by the user.Constraints
draggable attribute, drag events). Avoid external drag-and-drop libraries unless absolutely necessary and justified.draggable, ondragstart, ondragover, ondrop, ondragend).Loading editor...