-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[dashboard] Unify and standardize InfoBox and AlertBox components #4020
Conversation
14d1c86
to
887b145
Compare
IO previewhttps://jx-cancel-downgrade.staging.gitpod-io-dev.com/workspaces Unified InfoBoxesAlso unified (no screenshots): |
6df5fb7
to
169b7e1
Compare
@gtsiolis Could you please take a look when you have time? Priority: 🔅 Low. |
/werft run 👍 started the job as gitpod-build-jx-info-alert-box.6 |
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 componetizing this element @jankeromnes! 💯
Added a few more unrelated comments to colors. Feel free to leave these out of the scope of changes here. We're still missing some color correction in modals but I think we can tackle these separately once we componetize the modals.
</div> | ||
<InfoBox className="w-2/3 mt-14 mx-auto"> | ||
If you are interested in purchasing a plan for a team, purchase a Team plan with one centralized billing. <a className="underline" href="https://www.gitpod.io/docs/teams/">Learn more</a> | ||
</InfoBox> | ||
{!!confirmUpgradeToPlan && <Modal visible={true} onClose={() => setConfirmUpgradeToPlan(undefined)}> | ||
<h3>Upgrade to {confirmUpgradeToPlan.name}</h3> | ||
<div className="border-t border-b border-gray-200 dark:border-gray-800 mt-4 -mx-6 px-6 py-2"> | ||
<p className="mt-1 mb-4 text-base">You are about to upgrade to {confirmUpgradeToPlan.name}.</p> |
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.
issue: We're going to need dark:text-gray-500
for all paragraph text within modals. 🌙
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! Many other modals already have text-gray-500
for both light and dark. Will align here, but leave additional componentization of Modals as follow-up.
Also, thank you for adding all these screenshots! These are really helpful during reviewing visual changes. Tip: I usually find the table element in markdown extremely useful to represent such information. For example, using for BEFORE / AFTER screenshots or adding some structure to unrelated screenshots. Feel free to try this or keep adding your awesome contributions without any table!💡
|
Many thanks for the great review! 💯
Sure! Glad they're helpful. ✨
Haha, great tip! I agree, although I typically go old-school with a bunch of: <table><tr><td>
<img/>
</td><td>
<img/>
</td></tr></table> (😅) |
169b7e1
to
449f796
Compare
Also, what should we do about the "Not yet unified AlertBoxes" in #4020 (comment) ? They currently have a different visual style, which is why I haven't unified them yet. Should they stay different for now? |
Go
Yes, the ones within the modals should eventually use the same visual style. The garbage collection alert could use a larger component variant. |
Fixes #3996
TODO: