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

Update dotfiles input help text design #7493

Merged
merged 1 commit into from
Jan 7, 2022
Merged

Conversation

gtsiolis
Copy link
Contributor

@gtsiolis gtsiolis commented Jan 7, 2022

Description

Following the changes in #7337, this will update dotfiles input help text design to match the design of other help text instances accross the product.

How to test

  1. Go to /preferences
  2. Notice how the dotfiles input help text matches the design of other help text instances accross the product. For example, check the help text when adding a new environment variable in /variables.
BEFORE AFTER
dotfiles-before dotfiles-after

Release Notes

NONE

@gtsiolis
Copy link
Contributor Author

gtsiolis commented Jan 7, 2022

@jankeromnes could you take a look at this minor change when you're free?

Copy link
Contributor

@jankeromnes jankeromnes left a comment

Choose a reason for hiding this comment

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

Nice! 🎯 Very subtle yet remarkable improvement ✨

@@ -190,7 +190,9 @@ export default function Preferences() {
<div className="mt-4 max-w-md">
<h4>Repository URL</h4>
<input type="text" value={dotfileRepo} className="w-full" placeholder="e.g. https://github.com/username/dotfiles" onChange={(e) => setDotfileRepo(e.target.value)} />
<p className="text-base text-gray-500 dark:text-gray-400">Add a repository URL that includes dotfiles. Gitpod will clone and install your dotfiles for every new workspace.</p>
<div className="mt-1">
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: You could add the mt-1 class to the <p/> element below, in order to avoid extra nesting. Not very important though.

Copy link
Contributor Author

@gtsiolis gtsiolis Jan 10, 2022

Choose a reason for hiding this comment

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

FWIW, Tried to replicate the semantics structure we already use elsewhere:

<div className="mt-1">
<p className="text-gray-500">You can pass a variable for a specific project or use wildcard character (<CodeText>*/*</CodeText>) to make it available in more projects.</p>
</div>

Also, agree we could make this could be improved. Creating a reusable component for this form element could help. 💡

@roboquat
Copy link
Contributor

roboquat commented Jan 7, 2022

LGTM label has been added.

Git tree hash: b1364a7b456d86e1a4ccdc4b498d641ea2edeac3

@jankeromnes
Copy link
Contributor

jankeromnes commented Jan 7, 2022

Okay fine @roboquat 🙄

/approve no-issue

@roboquat
Copy link
Contributor

roboquat commented Jan 7, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jankeromnes

Associated issue requirement bypassed by: jankeromnes

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@roboquat roboquat merged commit 9e69e6e into main Jan 7, 2022
@roboquat roboquat deleted the gt/update-dotfiles-design branch January 7, 2022 08:55
@gtsiolis
Copy link
Contributor Author

gtsiolis commented Jan 10, 2022

Thanks, @jankeromnes! 🏀

@roboquat roboquat added deployed: webapp Meta team change is running in production deployed Change is completely running in production labels Jan 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved component: dashboard deployed: webapp Meta team change is running in production deployed Change is completely running in production release-note-none size/XS team: webapp Issue belongs to the WebApp team type: improvement Improves an existing feature or existing code user experience
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants