-
-
+
+
+
+
+
diff --git a/ui/src/containers/Header/index.tsx b/ui/src/containers/Header/index.tsx
index 20980de65a..763eb38ac0 100644
--- a/ui/src/containers/Header/index.tsx
+++ b/ui/src/containers/Header/index.tsx
@@ -14,7 +14,8 @@ import {
ModalVariant,
TextContent,
TextList,
- TextListItem
+ TextListItem,
+ TextListVariants
} from '@patternfly/react-core';
import logo from '../../assets/logo/logo.png';
import { IconSize } from '@patternfly/react-icons';
@@ -30,26 +31,51 @@ const Header: React.FC = observer(() => {
const { user } = useMst();
const history = useHistory();
const [isModalOpen, setIsModalOpen] = React.useState(false);
+ const [isInstructionModallOpen, setInstructionModalOpen] = React.useState(false);
const headerTools = (
-
-
+
+
+
+
+
+ setIsModalOpen(true)} className="header-search-hint">
+
+
+
- setIsModalOpen(true)} className="header-search-hint">
-
+ setInstructionModalOpen(true)}
+ className="header-add-resource"
+ >
+
+
+
+ Contribute
+
+
+
+
+
+
+
+ {user.isAuthenticated &&
+ user.refreshTokenInfo.expiresAt * 1000 > global.Date.now() ? (
+
+ ) : (
+
+
+ Login
+
+
+ )}
+
+
- {user.isAuthenticated && user.refreshTokenInfo.expiresAt * 1000 > global.Date.now() ? (
-
- ) : (
-
-
- Login
-
-
- )}
);
@@ -82,6 +108,81 @@ const Header: React.FC = observer(() => {
+
+ setInstructionModalOpen(false)}
+ width={'50%'}
+ >
+
+
+
+ There are two ways to add Tasks or Pipelines to Hub
+
+
+
+ Add your own catalog
+
+
+
+ This{' '}
+
+ docs
+ {' '}
+ defines the requirement and steps to add your catalog to Hub
+
+
+
+
+
+
+ Add your task or pipeline through{' '}
+
+ Tekton Catalog{' '}
+
+ and needs to follow these steps
+
+
+
+
+ Create a pull request to
+
+ Tekton Catalog{' '}
+
+ with with your Task or Pipeline which must be following the guidelines
+ mentioned{' '}
+
+ here
+
+
+
+
+
+
+
+ Note: Added tasks or pipelines would be available on the Hub within 30 minutes once
+ the PR gets merged.
+
+
+
+
);
});
diff --git a/ui/src/containers/UserProfile/UserProfile.css b/ui/src/containers/UserProfile/UserProfile.css
index 1d911172af..981f6c27d3 100644
--- a/ui/src/containers/UserProfile/UserProfile.css
+++ b/ui/src/containers/UserProfile/UserProfile.css
@@ -5,6 +5,7 @@
.hub-userProfile {
margin-right: -1em;
+ margin-top: 0.6em;
outline: none;
}
-
-
-
-
-
-
-
+
+
-
-
-
-
-
-
@@ -65,6 +104,11 @@ exports[`Header should render the header component and find Search component 1`]
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+ + + Contribute + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+