-
Notifications
You must be signed in to change notification settings - Fork 370
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
upcoming: [M3-7928] - Linode Create Refactor - Summary - Part 8 #10334
upcoming: [M3-7928] - Linode Create Refactor - Summary - Part 8 #10334
Conversation
<Stack | ||
alignItems="center" | ||
direction="row" | ||
key={item.title} | ||
spacing={1} | ||
> | ||
<Typography fontFamily={(theme) => theme.font.bold}> | ||
{item.title} | ||
</Typography> | ||
{item.details && <Typography>{item.details}</Typography>} | ||
</Stack> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was in the fence about making this stuff into components. I think this file is simple enough to leave it like this, but I'm open to feedback
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fine by me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file handles the entire summary. I'm pretty happy with it but if anyone has better ideas for how to clean it up or improve it let me know
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clean! 🧼
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for these thorough tests!
{ | ||
item: { | ||
details: `$${backupsPrice}/month`, | ||
title: 'Backups', | ||
}, | ||
show: backupsEnabled, | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if this is an intentional change or not: in the old flow, backups pricing is show only after the user selects a region. Now, it displays as "$--.--/month"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. I'll adjust to match the existing behavior.
Coverage Report: ✅ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bnussman-akamai we're missing the placement group summary item
}, | ||
show: Boolean(firewallId), | ||
}, | ||
]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: i could see this in a Summary.data.ts
file
flexItem | ||
orientation="vertical" | ||
sx={{ borderWidth: 1, margin: 0 }} | ||
/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't go the grid route, but I improved wrapping so that is is as good as the existing behavior - c2161ab
<Stack | ||
alignItems="center" | ||
direction="row" | ||
key={item.title} | ||
spacing={1} | ||
> | ||
<Typography fontFamily={(theme) => theme.font.bold}> | ||
{item.title} | ||
</Typography> | ||
{item.details && <Typography>{item.details}</Typography>} | ||
</Stack> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fine by me
…de#10334) * inital summary * more work and unit tests * Added changeset: Linode Create Refactor - Summary - Part 8 * only show backups if a type is selected * add placement group to summary * fix summary wrapping --------- Co-authored-by: Banks Nussman <[email protected]>
Description 📝
Preview 📷
How to test 🧪
Prerequisites
Linode Create v2
flag 🎏Verification steps
As an Author I have considered 🤔