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

feat(widget-builder): Widget builder slideout #81444

Merged
merged 4 commits into from
Nov 29, 2024

Conversation

nikkikapadia
Copy link
Member

Just the bare bones of the widget builder UI. This adds the slide-out functionality and a placeholder widget. You can see it on any dashboard page with the url parameter devBuilderUI=true. It looks like this so far:

image

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Nov 28, 2024
Copy link

codecov bot commented Nov 28, 2024

Codecov Report

Attention: Patch coverage is 66.66667% with 11 lines in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
static/app/views/dashboards/detail.tsx 0.00% 8 Missing ⚠️
...ards/widgetBuilder/components/newWidgetBuilder.tsx 83.33% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #81444      +/-   ##
==========================================
- Coverage   80.37%   80.36%   -0.01%     
==========================================
  Files        7226     7228       +2     
  Lines      319469   319530      +61     
  Branches    20762    20769       +7     
==========================================
+ Hits       256775   256804      +29     
- Misses      62304    62323      +19     
- Partials      390      403      +13     

Copy link
Member

@narsaynorath narsaynorath left a comment

Choose a reason for hiding this comment

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

Small comments but lgtm 👍


export default WidgetBuilderSlideout;

function WidgetBuilderSlideout({isOpen, onClose}: WidgetBuilderSlideoutProps) {
Copy link
Member

Choose a reason for hiding this comment

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

Can we rename this file to widgetBuilderSlideout.tsx? The new isn't really necessary

&:hover {
color: ${p => p.theme.gray400};
}
z-index: 100;
Copy link
Member

Choose a reason for hiding this comment

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

I was able to take this out and it worked fine, is it necessary?

Copy link
Member Author

Choose a reason for hiding this comment

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

whoops no not really. This was a copy-paste mistake lolz

const SlideoutHeaderWrapper = styled('div')`
padding: ${space(4)};
display: flex;
justify-content: space-between;
Copy link
Member

Choose a reason for hiding this comment

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

If you lower the padding, add align-items: center, and a bottom border, and remove the margin from the SlideoutTitle, I think it ends up a bit closer to what the mockup is

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah yes I've already added this in my code for my next PR so it will be in there 👍

Copy link

codecov bot commented Nov 29, 2024

Bundle Report

Changes will increase total bundle size by 13.61kB (0.04%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
app-webpack-bundle-array-push 31.94MB 13.61kB (0.04%) ⬆️

@nikkikapadia nikkikapadia merged commit 16c4591 into master Nov 29, 2024
44 checks passed
@nikkikapadia nikkikapadia deleted the nikki/feat/widget-builder-slideout branch November 29, 2024 15:08
andrewshie-sentry pushed a commit that referenced this pull request Dec 2, 2024
Just the bare bones of the widget builder UI. This adds the slide-out
functionality and a placeholder widget. You can see it on any dashboard
page with the url parameter `devBuilderUI=true`. It looks like this so
far:


![image](https://github.com/user-attachments/assets/ae4d5792-3ed5-4c0a-ad81-f87af80be9c6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants