-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Blocked repositories page improvements #12438
Conversation
@@ -135,7 +135,7 @@ export function BlockedRepositoriesList(props: Props) { | |||
</div> | |||
<input | |||
type="search" | |||
placeholder="Search by URL Regex" | |||
placeholder="Search by URL RegEx" |
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.
Made it so that we have the same capitalization everywhere
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.
praise: Nice catch! ⚾
@@ -148,8 +148,10 @@ export function BlockedRepositoriesList(props: Props) { | |||
</div> | |||
</div> | |||
|
|||
<Alert type={"info"} closable={false} showIcon={true} className="flex rounded p-2 w-2/3 mb-2 w-full"> | |||
<span>Search entries by their Repositoriy URL regular expression (RegEx).</span> | |||
<Alert type={"info"} closable={false} showIcon={true} className="flex rounded p-2 mb-2 w-full"> |
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.
Here there was an extra class which was not used because w-full
already changed the width.
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.
praise: Thanks for noticing! 👀
<span>Search entries by their Repositoriy URL regular expression (RegEx).</span> | ||
<Alert type={"info"} closable={false} showIcon={true} className="flex rounded p-2 mb-2 w-full"> | ||
<span> | ||
Search entries by their repository URL <abbr title="regular expression">RegEx</abbr>. |
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.
Here besides fixing a typo, an abbreviation was added so that we both save space and utilize semantic HTML for abbreviations.
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.
thought: Not particularly proud of how this is rendering by default (see screenshots below) or using this controversial abbreviation design pattern[1] as it comes with some accessibility concerns, but let's keep it for now until we have a better way to present this information. 🤝
Chrome | Firefox | Safari |
---|---|---|
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 introducing me to Microformats! It's a really great guide from what I'm seeing.
started the job as gitpod-build-ft-blocked-repos-improvements.1 because the annotations in the pull request description changed |
4a6418e
to
2f4bc9f
Compare
@@ -211,7 +213,7 @@ function AddBlockedRepositoryModal(p: AddBlockedRepositoryModalProps) { | |||
setError(""); | |||
}, [p.blockedRepository]); | |||
|
|||
let save = (): boolean => { | |||
const save = (): boolean => { |
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.
Use const
where possible
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.
thought: Sounds legit and good, especially since @easyCZ from @gitpod-io/engineering-webapp
already approved these changes. 🏓
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.
LGTM. Adding hold in case you want @gtsiolis to review for UI.
/hold
Looking at this now! 👀 |
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 @filiptronicek for making this change, @svenefftinge for the ping[1], and @easyCZ for taking a look[2]! 🏀
LGTM!
Took longer to come back to this after today's tech talk (internal) because of some spaghetti I had to make. 🍝
@@ -135,7 +135,7 @@ export function BlockedRepositoriesList(props: Props) { | |||
</div> | |||
<input | |||
type="search" | |||
placeholder="Search by URL Regex" | |||
placeholder="Search by URL RegEx" |
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.
praise: Nice catch! ⚾
@@ -148,8 +148,10 @@ export function BlockedRepositoriesList(props: Props) { | |||
</div> | |||
</div> | |||
|
|||
<Alert type={"info"} closable={false} showIcon={true} className="flex rounded p-2 w-2/3 mb-2 w-full"> | |||
<span>Search entries by their Repositoriy URL regular expression (RegEx).</span> | |||
<Alert type={"info"} closable={false} showIcon={true} className="flex rounded p-2 mb-2 w-full"> |
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.
praise: Thanks for noticing! 👀
@@ -211,7 +213,7 @@ function AddBlockedRepositoryModal(p: AddBlockedRepositoryModalProps) { | |||
setError(""); | |||
}, [p.blockedRepository]); | |||
|
|||
let save = (): boolean => { | |||
const save = (): boolean => { |
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.
thought: Sounds legit and good, especially since @easyCZ from @gitpod-io/engineering-webapp
already approved these changes. 🏓
<span>Search entries by their Repositoriy URL regular expression (RegEx).</span> | ||
<Alert type={"info"} closable={false} showIcon={true} className="flex rounded p-2 mb-2 w-full"> | ||
<span> | ||
Search entries by their repository URL <abbr title="regular expression">RegEx</abbr>. |
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.
thought: Not particularly proud of how this is rendering by default (see screenshots below) or using this controversial abbreviation design pattern[1] as it comes with some accessibility concerns, but let's keep it for now until we have a better way to present this information. 🤝
Chrome | Firefox | Safari |
---|---|---|
/unhold |
Description
Fixes some issues on inside https://github.com/gitpod-io/gitpod/blob/main/components/dashboard/src/admin/BlockedRepositories.tsx. Details are outlined below this comment.
Related Issue(s)
n/a
How to test
Release Notes
Documentation
Werft options: