Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REFACTOR] Move TimeRangeControls/ToolbarIconButton respectively to plugin-system/components #1869

Merged

Conversation

celian-garcia
Copy link
Member

@celian-garcia celian-garcia commented Mar 28, 2024

Description

Now that the TimeRangeControls component has been isolated, we can move it into plugin-system, alongside with TimeRangeProvider. This allows us to remove one of the @persesdev/dashboard imports from the explore. Step by step!

linked with #1870

Screenshots

Checklist

  • Pull request has a descriptive title and context useful to a reviewer.
  • Pull request title follows the [<catalog_entry>] <commit message> naming convention using one of the
    following catalog_entry values: FEATURE, ENHANCEMENT, BUGFIX, BREAKINGCHANGE, DOC,IGNORE.
  • All commits have DCO signoffs.

UI Changes

  • Changes that impact the UI include screenshots and/or screencasts of the relevant changes.
  • Code follows the UI guidelines.
  • Visual tests are stable and unlikely to be flaky.
    See Storybook
    and e2e docs for more details. Common issues
    include:
    • Is the data inconsistent? You need to mock API requests.
    • Does the time change? You need to use consistent time values or mock time utilities.
    • Does it have loading states? You need to wait for loading to complete.

…lugin-system/components

Signed-off-by: Celian GARCIA <celian.garcia@amadeus.com>
@celian-garcia celian-garcia force-pushed the refactor/time-range-controls-move branch from 6b8f738 to 496e1d4 Compare March 28, 2024 17:41
@celian-garcia celian-garcia self-assigned this Mar 28, 2024
@celian-garcia celian-garcia added the ui something related to the Frontend label Mar 28, 2024
@@ -12,7 +12,7 @@
// limitations under the License.

import { Stack, Box, useTheme, useMediaQuery } from '@mui/material';
import { TimeRangeControls } from '@perses-dev/dashboards';
Copy link
Member Author

Choose a reason for hiding this comment

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

All of it just to remove that single line 😄

@celian-garcia celian-garcia marked this pull request as ready for review March 28, 2024 17:48
@celian-garcia celian-garcia added this pull request to the merge queue Mar 29, 2024
Merged via the queue into perses:main with commit 331ec97 Mar 29, 2024
19 checks passed
@celian-garcia celian-garcia deleted the refactor/time-range-controls-move branch March 29, 2024 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ui something related to the Frontend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants