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

Austenem/CAT-767 update workspace toast #3514

Merged
merged 7 commits into from
Aug 26, 2024

Conversation

austenem
Copy link
Collaborator

Summary

Update language and add an action button to toasts for successful workspace creation. This also takes care of notifying users that workspaces are launched in a new tab and to watch out for their pop-up settings.

Design Documentation/Original Tickets

CAT-767 Jira ticket

Figma mockup

Testing

Visual comparison to mockups, ensured that button links to the correct workspace detail page.

Screenshots/Video

Screenshot 2024-08-21 at 3 07 13 PM

Checklist

  • Code follows the project's coding standards
    • Lint checks pass locally
    • New CHANGELOG-your-feature-name-here.md is present in the root directory, describing the change(s) in full sentences.
  • Unit tests covering the new feature have been added
  • All existing tests pass
  • Any relevant documentation in JIRA/Confluence has been updated to reflect the new feature
  • Any new functionalities have appropriate analytics functionalities added

NickAkhmetov
NickAkhmetov previously approved these changes Aug 22, 2024

function WorkspaceToastSuccessMessage(id: number) {
return (
<Stack sx={{ maxWidth: '22rem' }}>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why this maxWidth in particular?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This was from the designs - without a maxWidth, the toast stretches across the bottom of the screen and is hard to read. Is there a better method for setting width options like these?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That's a bit better than the 100% width - it still stretches out further than the designs, because I think the max-content is higher than 20rem. The <length-percentage> parameter doesn't seem to change anything, which is a bit odd:

Screenshot 2024-08-23 at 2 05 08 PM

Copy link
Collaborator

@NickAkhmetov NickAkhmetov left a comment

Choose a reason for hiding this comment

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

Looks good to me! Thanks for experimenting with the other max width options. We can keep the current approach (with one minor adjustment).

Copy link
Collaborator

@john-conroy john-conroy left a comment

Choose a reason for hiding this comment

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

Thanks for the fixes!

@austenem austenem merged commit eec870c into main Aug 26, 2024
8 checks passed
@austenem austenem deleted the austenem/cat-767-update-workspace-toast branch August 26, 2024 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants