diff --git a/openmetadata-ui/src/main/resources/ui/src/components/dropdown/AnchorDropDownList.style.less b/openmetadata-ui/src/main/resources/ui/src/components/dropdown/AnchorDropDownList.style.less
new file mode 100644
index 00000000000..52fd914f07b
--- /dev/null
+++ b/openmetadata-ui/src/main/resources/ui/src/components/dropdown/AnchorDropDownList.style.less
@@ -0,0 +1,29 @@
+/*
+ * Copyright 2021 Collate
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+.anchor-drop-down {
+ --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
+ 0 4px 6px -2px rgba(0, 0, 0, 0.05);
+ position: absolute;
+ transform-origin: top right;
+ z-index: 9999;
+ right: 0px;
+ margin-top: 0.5rem;
+ min-width: max-content;
+ border-radius: 0.375rem;
+ width: 10rem;
+ padding: 0.3rem;
+ background-color: #ffffff;
+ box-shadow: 0 0 #0000, 0 0 #0000, 0 0 #0000, 0 0 #0000, var(--shadow);
+ outline: 0.09rem solid #0000000d;
+}
diff --git a/openmetadata-ui/src/main/resources/ui/src/components/dropdown/AnchorDropDownList.tsx b/openmetadata-ui/src/main/resources/ui/src/components/dropdown/AnchorDropDownList.tsx
index b8db62a30c8..798024604cc 100644
--- a/openmetadata-ui/src/main/resources/ui/src/components/dropdown/AnchorDropDownList.tsx
+++ b/openmetadata-ui/src/main/resources/ui/src/components/dropdown/AnchorDropDownList.tsx
@@ -17,6 +17,7 @@ import { Link } from 'react-router-dom';
import { useAuthContext } from '../../authentication/auth-provider/AuthProvider';
import { useAuth } from '../../hooks/authHooks';
import SVGIcons from '../../utils/SvgUtils';
+import './AnchorDropDownList.style.less';
import { DropDownListItem, DropDownListProp } from './types';
const AnchorDropDownList = ({ dropDownList, setIsOpen }: DropDownListProp) => {
@@ -33,9 +34,7 @@ const AnchorDropDownList = ({ dropDownList, setIsOpen }: DropDownListProp) => {
{dropDownList.map((item: DropDownListItem, index: number) =>
diff --git a/openmetadata-ui/src/main/resources/ui/src/constants/Feeds.constants.ts b/openmetadata-ui/src/main/resources/ui/src/constants/Feeds.constants.ts
index 779a2929c2d..f24a40f22dd 100644
--- a/openmetadata-ui/src/main/resources/ui/src/constants/Feeds.constants.ts
+++ b/openmetadata-ui/src/main/resources/ui/src/constants/Feeds.constants.ts
@@ -62,6 +62,6 @@ export enum EntityField {
TASKS = 'tasks',
}
-export const ANNOUNCEMENT_BG = '#FCF6FC';
-export const ANNOUNCEMENT_BORDER = 'rgba(176, 42, 172, 0.6)';
+export const ANNOUNCEMENT_BG = '#FFFDF8';
+export const ANNOUNCEMENT_BORDER = '#FFC143';
export const TASK_BORDER = '#C6B5F6';
diff --git a/openmetadata-ui/src/main/resources/ui/src/constants/constants.ts b/openmetadata-ui/src/main/resources/ui/src/constants/constants.ts
index e72f1153b8c..a2159116d09 100644
--- a/openmetadata-ui/src/main/resources/ui/src/constants/constants.ts
+++ b/openmetadata-ui/src/main/resources/ui/src/constants/constants.ts
@@ -41,6 +41,7 @@ export const JSON_TAB_SIZE = 2;
export const PAGE_SIZE = 10;
export const PAGE_SIZE_BASE = 12;
export const PAGE_SIZE_MEDIUM = 15;
+export const SERVICE_VIEW_CAP = 20;
export const PAGE_SIZE_LARGE = 100;
export const API_RES_MAX_SIZE = 100000;
export const LIST_SIZE = 5;
diff --git a/openmetadata-ui/src/main/resources/ui/src/pages/UserPage/UserPage.component.tsx b/openmetadata-ui/src/main/resources/ui/src/pages/UserPage/UserPage.component.tsx
index f7fd6097619..a93e5cc40f2 100644
--- a/openmetadata-ui/src/main/resources/ui/src/pages/UserPage/UserPage.component.tsx
+++ b/openmetadata-ui/src/main/resources/ui/src/pages/UserPage/UserPage.component.tsx
@@ -35,7 +35,7 @@ import PageContainerV1 from '../../components/containers/PageContainerV1';
import Loader from '../../components/Loader/Loader';
import Users from '../../components/Users/Users.component';
import { UserDetails } from '../../components/Users/Users.interface';
-import { LIST_SIZE } from '../../constants/constants';
+import { PAGE_SIZE } from '../../constants/constants';
import { myDataSearchIndex } from '../../constants/Mydata.constants';
import { getUserCurrentTab } from '../../constants/usersprofile.constants';
import { FeedFilter } from '../../enums/mydata.enum';
@@ -123,7 +123,7 @@ const UserPage = () => {
? `owner.id:${userData.id}`
: `followers:${userData.id}`,
entity.currPage,
- LIST_SIZE,
+ PAGE_SIZE,
``,
'',
'',
diff --git a/openmetadata-ui/src/main/resources/ui/src/pages/forgot-password/forgot-password.component.tsx b/openmetadata-ui/src/main/resources/ui/src/pages/forgot-password/forgot-password.component.tsx
index dbc3ec7add0..4128541df40 100644
--- a/openmetadata-ui/src/main/resources/ui/src/pages/forgot-password/forgot-password.component.tsx
+++ b/openmetadata-ui/src/main/resources/ui/src/pages/forgot-password/forgot-password.component.tsx
@@ -45,7 +45,7 @@ const ForgotPassword = () => {
-
+
Enter your registered email to receive password reset link
diff --git a/openmetadata-ui/src/main/resources/ui/src/pages/login/index.tsx b/openmetadata-ui/src/main/resources/ui/src/pages/login/index.tsx
index 84345ad8811..836cb283703 100644
--- a/openmetadata-ui/src/main/resources/ui/src/pages/login/index.tsx
+++ b/openmetadata-ui/src/main/resources/ui/src/pages/login/index.tsx
@@ -189,7 +189,7 @@ const SigninPage = () => {
'sso-container': !isAuthProviderBasic,
})}>
-
+
{t('label.om-description')}{' '}
diff --git a/openmetadata-ui/src/main/resources/ui/src/pages/reset-password/reset-password.component.tsx b/openmetadata-ui/src/main/resources/ui/src/pages/reset-password/reset-password.component.tsx
index 968ce0b3193..a923fbb3ee0 100644
--- a/openmetadata-ui/src/main/resources/ui/src/pages/reset-password/reset-password.component.tsx
+++ b/openmetadata-ui/src/main/resources/ui/src/pages/reset-password/reset-password.component.tsx
@@ -104,7 +104,7 @@ const ResetPassword = () => {
-
+
Reset your Password
diff --git a/openmetadata-ui/src/main/resources/ui/src/pages/services/ServicesPage.tsx b/openmetadata-ui/src/main/resources/ui/src/pages/services/ServicesPage.tsx
index 647d69cbe88..446a11cb243 100644
--- a/openmetadata-ui/src/main/resources/ui/src/pages/services/ServicesPage.tsx
+++ b/openmetadata-ui/src/main/resources/ui/src/pages/services/ServicesPage.tsx
@@ -22,7 +22,7 @@ import ErrorPlaceHolder from '../../components/common/error-with-placeholder/Err
import Loader from '../../components/Loader/Loader';
import { usePermissionProvider } from '../../components/PermissionProvider/PermissionProvider';
import Services from '../../components/Services/Services';
-import { pagingObject } from '../../constants/constants';
+import { pagingObject, SERVICE_VIEW_CAP } from '../../constants/constants';
import { NO_PERMISSION_TO_VIEW } from '../../constants/HelperTextUtil';
import { SERVICE_CATEGORY } from '../../constants/Services.constant';
import { ServiceCategory as Category } from '../../enums/service.enum';
@@ -59,7 +59,7 @@ const ServicesPage = () => {
const getServiceDetails = async (type: string) => {
setIsLoading(true);
try {
- const { data, paging } = await getServices(type);
+ const { data, paging } = await getServices(type, SERVICE_VIEW_CAP);
setServiceDetails(data);
setPaging(paging);
} catch (error) {
diff --git a/openmetadata-ui/src/main/resources/ui/src/pages/signup/basic-signup.component.tsx b/openmetadata-ui/src/main/resources/ui/src/pages/signup/basic-signup.component.tsx
index ea1b4992dec..6a018097c47 100644
--- a/openmetadata-ui/src/main/resources/ui/src/pages/signup/basic-signup.component.tsx
+++ b/openmetadata-ui/src/main/resources/ui/src/pages/signup/basic-signup.component.tsx
@@ -76,7 +76,7 @@ const BasicSignUp = () => {
-
+
Centralized Metadata Store, Discover, Collaborate and get your
Data Right
diff --git a/openmetadata-ui/src/main/resources/ui/src/styles/app.less b/openmetadata-ui/src/main/resources/ui/src/styles/app.less
index 75f75fc646e..4ade70369e3 100644
--- a/openmetadata-ui/src/main/resources/ui/src/styles/app.less
+++ b/openmetadata-ui/src/main/resources/ui/src/styles/app.less
@@ -177,9 +177,6 @@
margin-right: auto;
margin-left: auto;
}
-.text-semi-bold {
- font-weight: 500;
-}
.bg-body-main {
background: @body-bg-color;
}
diff --git a/openmetadata-ui/src/main/resources/ui/src/styles/fonts.less b/openmetadata-ui/src/main/resources/ui/src/styles/fonts.less
new file mode 100644
index 00000000000..cfc448ed455
--- /dev/null
+++ b/openmetadata-ui/src/main/resources/ui/src/styles/fonts.less
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2022 Collate
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+//font weight
+.font-normal {
+ font-weight: 400;
+}
+.font-medium {
+ font-weight: 500;
+}
+.font-semibold {
+ font-weight: 600;
+}
+.font-bold {
+ font-weight: 700;
+}
+
+// font size
+.text-xs {
+ font-size: 12px;
+}
+.text-lg {
+ font-size: 18px;
+}
+.text-sm {
+ font-size: 14px;
+}
+.text-base {
+ font-size: 1rem /* 16px */;
+ line-height: 1.5rem /* 24px */;
+}
+.text-xl {
+ font-size: 1.25rem /* 20px */;
+ line-height: 1.75rem /* 28px */;
+}
+
+.text-2xl {
+ font-size: 1.5rem /* 24px */;
+ line-height: 2rem /* 32px */;
+}
diff --git a/openmetadata-ui/src/main/resources/ui/src/styles/index.js b/openmetadata-ui/src/main/resources/ui/src/styles/index.js
index 4a2693a0e4c..bb1d35c7b36 100644
--- a/openmetadata-ui/src/main/resources/ui/src/styles/index.js
+++ b/openmetadata-ui/src/main/resources/ui/src/styles/index.js
@@ -26,6 +26,7 @@ import './components/react-awesome-query.less';
import './components/size.less';
import './components/step.less';
import './fonts.css';
+import './fonts.less';
import './modal.less';
import './myDataDetailsTemp.css';
import './slick-carousel.scss';
diff --git a/openmetadata-ui/src/main/resources/ui/src/utils/ManageUtils.ts b/openmetadata-ui/src/main/resources/ui/src/utils/ManageUtils.ts
index 35aa34903c3..95fda1cad67 100644
--- a/openmetadata-ui/src/main/resources/ui/src/utils/ManageUtils.ts
+++ b/openmetadata-ui/src/main/resources/ui/src/utils/ManageUtils.ts
@@ -11,7 +11,9 @@
* limitations under the License.
*/
+import { toString } from 'lodash';
import AppState from '../AppState';
+import { WILD_CARD_CHAR } from '../constants/char.constants';
import { Team } from '../generated/entity/teams/team';
import { User } from '../generated/entity/teams/user';
import { EntityReference } from '../generated/type/entityUsage';
@@ -21,15 +23,23 @@ import { getEntityName } from './CommonUtils';
* @param listUsers - List of users
* @param listTeams - List of teams
* @param excludeCurrentUser - Wether to exclude current user to be on list. Needed when calls from searching
+ * @param searchQuery - search query for user or team
* @returns List of user or team
*/
export const getOwnerList = (
listUsers?: User[],
listTeams?: Team[],
- excludeCurrentUser?: boolean
+ excludeCurrentUser?: boolean,
+ searchQuery?: string
) => {
const userDetails = AppState.getCurrentUserDetails();
+ const isAdminIncludeInQuery =
+ getEntityName(userDetails).includes(toString(searchQuery)) ||
+ searchQuery === WILD_CARD_CHAR
+ ? true
+ : false;
+
if (userDetails?.isAdmin) {
const users = (listUsers || [])
.map((user) => ({
@@ -47,7 +57,7 @@ export const getOwnerList = (
}));
return [
- ...(!excludeCurrentUser
+ ...(!excludeCurrentUser && isAdminIncludeInQuery
? [
{
name: getEntityName(userDetails),
diff --git a/openmetadata-ui/src/main/resources/ui/src/utils/SvgUtils.tsx b/openmetadata-ui/src/main/resources/ui/src/utils/SvgUtils.tsx
index abd3f273ff1..7ff1e4a8cfe 100644
--- a/openmetadata-ui/src/main/resources/ui/src/utils/SvgUtils.tsx
+++ b/openmetadata-ui/src/main/resources/ui/src/utils/SvgUtils.tsx
@@ -30,6 +30,7 @@ import IconAnnouncementsBasicPrimary from '../assets/svg/announcements-basic-pri
import IconAnnouncementsBlack from '../assets/svg/announcements-black.svg';
import IconAnnouncementsPrimary from '../assets/svg/announcements-primary.svg';
import IconAnnouncementsPurple from '../assets/svg/announcements-purple.svg';
+import IconAnnouncementsYellow from '../assets/svg/announcements-yellow.svg';
import IconAnnouncements from '../assets/svg/announcements.svg';
import IconAPI from '../assets/svg/api.svg';
import IconArrowDownLight from '../assets/svg/arrow-down-light.svg';
@@ -340,6 +341,7 @@ export const Icons = {
ANNOUNCEMENT_BLACK: 'icon-announcement-black',
ANNOUNCEMENT_PURPLE: 'icon-announcement-purple',
ANNOUNCEMENT_PRIMARY: 'icon-announcement-primary',
+ ANNOUNCEMENT_YELLOW: 'icon-announcement-yellow',
ANNOUNCEMENT_BASIC_PRIMARY: 'icon-announcement-basic-primary',
CHEVRON_DOWN: 'icon-chevron-down',
ICON_UP: 'icon-up',
@@ -910,6 +912,10 @@ const SVGIcons: FunctionComponent = ({ icon, ...props }: Props) => {
case Icons.ANNOUNCEMENT_PURPLE:
IconComponent = IconAnnouncementsPurple;
+ break;
+ case Icons.ANNOUNCEMENT_YELLOW:
+ IconComponent = IconAnnouncementsYellow;
+
break;
case Icons.ANNOUNCEMENT_BLACK:
IconComponent = IconAnnouncementsBlack;