Skip to content

Commit

Permalink
Blocked repositories page improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
filiptronicek authored and roboquat committed Aug 26, 2022
1 parent 0fc1903 commit 5080e98
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions components/dashboard/src/admin/BlockedRepositories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export function BlockedRepositoriesList(props: Props) {
</div>
<input
type="search"
placeholder="Search by URL Regex"
placeholder="Search by URL RegEx"
onKeyDown={(ke) => ke.key === "Enter" && search()}
onChange={(v) => {
setQueryTerm(v.target.value.trim());
Expand All @@ -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">
<span>
Search entries by their repository URL <abbr title="regular expression">RegEx</abbr>.
</span>
</Alert>
<div className="flex flex-col space-y-2">
<div className="px-6 py-3 flex justify-between text-sm text-gray-400 border-t border-b border-gray-200 dark:border-gray-800 mb-2">
Expand Down Expand Up @@ -211,7 +213,7 @@ function AddBlockedRepositoryModal(p: AddBlockedRepositoryModalProps) {
setError("");
}, [p.blockedRepository]);

let save = (): boolean => {
const save = (): boolean => {
const v = ref.current;
const newError = p.validate(v);
if (!!newError) {
Expand Down

0 comments on commit 5080e98

Please sign in to comment.