-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Display aggregation builder in widget focus mode instead of modal. (#…
…10212) * Transforming `WidgetGrid` to function component. * Creating separate component for `WidgetContainer` and using it in `WidgetComponent` instead of `WidgetGrid`. * Add `className` prop for `ReactGridContainer` to be able to style the component with styled-components `styled()`. * Removing `WidgetContainer` from `WidgetComponent` because `WidgetContainer` needs to be a direct child of the `ReactGridLayout`. * Do not replace `WidgetGrid` with widget on widget focus. Instead only render focused widget in widget grid to avoid unmoiunting the widget. This way the focused widget keeps its state on focus. * Implementing `useMemo` for `WidgetGrid`. * Preventing widget resize when widget is focused. * Disabling `WidgetGrid` animation. * Do not unmount any widget on widget focus. Previously on widget focus we unmounted every other widget. With this change we are only changing the style of the focused widget, to ensure we do not loose the state and e.g. the scroll position of other widgets. * Maintaining widget edit status in `WidgetFocusContext`. * Displaying widget edit component inside `Widget` component instead of a modal. * Removing console.logs * Fixing widget toggle edit. * Unifying `WidgetFrame` container paddings with `SearchBar` container paddings. * Removing remaining modal component from `EditWidgetFrame`. * Removing no longer needed widget edit code in `Widget`. * Fixing relation between widget edit and focus mode. * Replacing `EditWidgetFrame.css` with styled components. * Creating separate component for widget actions menu. * Simplifying `WIdgetFocusProvider` logic by creating state based on query params. * Cleanup url if focus query params are not current. * Adding padding for `QueryControls`. * Fixing `WidgetFocusProvider` state query params sync. * Fixing copy to dashboard and move to page widget action. * Fixing and simplifying `WidgetFocusProvider` updates. * Updating and extending `WidgetFocusProvider.test`. * Creating test for `WidgetActionsMenu`. * Removing no longer needed `Widget` tests. * Updating `Widget.test`. * Updating `WidgetActionsMenu`. * Crating wigdet focus tests for `Widget`. * Creating widget focus test for `WidgetActionsMenu`. * Fixing `ExtraWidgetActions.test`. * Fixing naming. * Removing no longer needed `Widget` editing state. * Hiding `WidgetActionsMenu` on widget edit. * Updating type definition in `Widget.test`. * Removing not needed `jest.clearAllMocks` in `WidgetFocusProvider.test`. * Refactoring redundant code in `WidgetFocusProvider`. * Creating more explicit types for `WidgetFocusContext` and `WidgetFocusProvider`. * Removing no longer needed test setup code in `WidgetActionsMenu.test`. * Simplifying `_updateDashboardWithNewSearch` usage in `WidgetActionsMenu`. * Implement separate functions for `WidgetFocusContext` to unset widget focussing and widget editing. * Fixing failing `Widget.test`.
- Loading branch information
Showing
22 changed files
with
1,060 additions
and
893 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.