-
Notifications
You must be signed in to change notification settings - Fork 367
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: [M3-8775] - Make the Support Ticket UI look slightly less broken #11144
refactor: [M3-8775] - Make the Support Ticket UI look slightly less broken #11144
Conversation
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.
Improvements look great - I completely missed the Formatting Tips dropdown in #10979, so thank you for the follow up. Can we also track this in an internal ticket by copying the PR description over and getting this PR title updated?
Left a few comments after looking through this in light and dark mode. The one real minor regression is with the top padding in Preview mode.
packages/manager/src/features/Support/SupportTicketDetail/TabbedReply/PreviewReply.tsx
Outdated
Show resolved
Hide resolved
packages/manager/src/features/Support/SupportTickets/SupportTicketDialog.tsx
Outdated
Show resolved
Hide resolved
<Typography> | ||
You can use Markdown to format your{' '} | ||
{props.isReply ? 'reply' : 'question'}. For more examples see this{' '} | ||
<Link external to="https://commonmark.org/help/"> | ||
Markdown cheatsheet | ||
</Link> | ||
</Typography> | ||
<Typography className={classes.header}> | ||
<strong>Examples</strong> | ||
<Typography fontFamily={(theme) => theme.font.bold} variant="h3"> |
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 would have used h4 if it was properly implemented 😭
Any recommendations on what to do here?
We could implement h4 in the theme relatively easily. I will just use bold text for now in abb4f5d
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.
h4
is ginormous, ha. I see now that we've only got h1
-h3
and subtitle1
in our theme. It doesn't look like subtitle1
is what we want here, either. My preference would be to implement h4
in theme, since that's really the way to avoid running into this again in the future. Seems like it would be a small lift?
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.
The changes look good and it improves the previous iteration. In the future, if you run into something similar and want to explore another workaround consider the following.
The <Typography>
component can actually take a component
prop and styling can be accomplished with the variant
and sx
props like this:
<Typography
component="span"
sx={(theme) => padding: theme.spacing(1)}
variant="body1"
>
packages/manager/src/features/Support/SupportTicketDetail/TabbedReply/MarkdownReference.tsx
Outdated
Show resolved
Hide resolved
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.
🎨 🫧 Looking slightly less broken!
Cloud Manager E2E Run #6729
Run Properties:
|
Project |
Cloud Manager E2E
|
Branch Review |
develop
|
Run status |
Failed #6729
|
Run duration | 28m 24s |
Commit |
427b55c44e: refactor: [M3-8775] - Make the Support Ticket UI look slightly less broken (#111...
|
Committer | Banks Nussman |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
1
|
Flaky |
1
|
Pending |
2
|
Skipped |
0
|
Passing |
444
|
View all changes introduced in this branch ↗︎ |
Tests for review
cypress/e2e/core/linodes/clone-linode.spec.ts • 1 failed test
Test | Artifacts | |
---|---|---|
clone linode > can clone a Linode from Linode details page |
Screenshots
Video
|
cypress/e2e/core/account/service-transfer.spec.ts • 1 flaky test
Test | Artifacts | |
---|---|---|
Account service transfers > can initiate and cancel a service transfer |
Screenshots
Video
|
Description 📝
Preview 📷
How to test 🧪
As an Author I have considered 🤔