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: execution plan diff table #4065

Merged
merged 1 commit into from
Jun 22, 2023
Merged

feat: execution plan diff table #4065

merged 1 commit into from
Jun 22, 2023

Conversation

kwasniew
Copy link
Contributor

@kwasniew kwasniew commented Jun 22, 2023

About the changes

Each environment in the diff table has info icon with the execution plan
Screenshot 2023-06-22 at 13 25 11

This component is already tested and since we're not adding any if statements I am not adding new tests.

Important files

Discussion points

@vercel
Copy link

vercel bot commented Jun 22, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 22, 2023 11:34am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Jun 22, 2023 11:34am

},
sortType: 'playgroundResultState',
maxWidth: 120,
maxWidth: 140,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

more space for the info icon to avoid horizontal scroll

@@ -54,10 +55,21 @@ export const PlaygroundEnvironmentDiffTable = ({
? 'unknown'
: 'false',
Cell: ({ row }: { row: { original: RowType } }) => {
return <FeatureStatusCell feature={row.original[environment]} />;
return (
<Box sx={{ display: 'flex' }}>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

flex to inline two elements into one cell

@@ -10,7 +10,7 @@ interface IFeatureStatusCellProps {
const StyledCellBox = styled(Box)(({ theme }) => ({
display: 'flex',
alignItems: 'center',
padding: theme.spacing(1, 2),
padding: theme.spacing(1, 0, 1, 2),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

spacing between status chip and info was too big. I tested and this change doesn't affect the old playground.

Copy link
Contributor

@andreas-unleash andreas-unleash left a comment

Choose a reason for hiding this comment

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

LGTM!

@kwasniew kwasniew merged commit f0fe236 into main Jun 22, 2023
19 checks passed
@kwasniew kwasniew deleted the execution-plan-diff-table branch June 22, 2023 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants