diff --git a/openmetadata-ui/src/main/resources/ui/src/assets/svg/Task-ic.svg b/openmetadata-ui/src/main/resources/ui/src/assets/svg/Task-ic.svg index c2fb26d08c3..99d229af2e3 100644 --- a/openmetadata-ui/src/main/resources/ui/src/assets/svg/Task-ic.svg +++ b/openmetadata-ui/src/main/resources/ui/src/assets/svg/Task-ic.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/openmetadata-ui/src/main/resources/ui/src/components/common/description/Description.tsx b/openmetadata-ui/src/main/resources/ui/src/components/common/description/Description.tsx index 660f83f85c2..6abff58fe04 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/common/description/Description.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/common/description/Description.tsx @@ -11,13 +11,14 @@ * limitations under the License. */ -import { Popover } from 'antd'; +import { Button, Popover, Space, Typography } from 'antd'; import { AxiosError } from 'axios'; import classNames from 'classnames'; import { t } from 'i18next'; import { isFunction, isUndefined } from 'lodash'; import React, { FC, Fragment } from 'react'; import { useHistory } from 'react-router-dom'; +import { ReactComponent as IconTaskColor } from '../../../assets/svg/Task-ic.svg'; import { EntityField } from '../../../constants/Feeds.constants'; import { EntityType } from '../../../enums/entity.enum'; import { ThreadType } from '../../../generated/entity/feed/thread'; @@ -157,18 +158,18 @@ const Description: FC = ({ const getDescriptionTaskElement = () => { return !isUndefined(tasks) ? ( - + + + ) : null; }; diff --git a/openmetadata-ui/src/main/resources/ui/src/components/common/entityPageInfo/ManageButton/ManageButton.less b/openmetadata-ui/src/main/resources/ui/src/components/common/entityPageInfo/ManageButton/ManageButton.less index c39baa0ab21..138c6ab74d3 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/common/entityPageInfo/ManageButton/ManageButton.less +++ b/openmetadata-ui/src/main/resources/ui/src/components/common/entityPageInfo/ManageButton/ManageButton.less @@ -36,6 +36,7 @@ .manage-dropdown-button:focus { .manage-dropdown-icon { color: @white; + font-weight: 600; } background-color: @manage-button-bg-primary; } diff --git a/openmetadata-ui/src/main/resources/ui/src/locale/languages/en-us.json b/openmetadata-ui/src/main/resources/ui/src/locale/languages/en-us.json index 66547bf0347..c2660b87bd5 100644 --- a/openmetadata-ui/src/main/resources/ui/src/locale/languages/en-us.json +++ b/openmetadata-ui/src/main/resources/ui/src/locale/languages/en-us.json @@ -121,6 +121,7 @@ "configure-dbt-model": "Configure dbt Model", "configure-entity": "Configure {{entity}}", "configure-glossary-term": "Configure Glossary Term", + "configure-test-case": "Configure test case", "confirm": "Confirm", "confirm-lowercase": "confirm", "confirm-new-password": "Confirm New Password", @@ -243,6 +244,7 @@ "elastic-search-re-index": "ElasticsearchReindex", "elasticsearch": "Elasticsearch", "email": "Email", + "email-lowercase": "email", "email-plural": "Emails", "enable-debug-log": "Enable Debug Log", "enable-partition": "Enable Partition", @@ -254,7 +256,9 @@ "endpoint-url-for-aws": "EndPoint URL for the AWS", "enter": "Enter", "enter-entity": "Enter {{entity}}", + "enter-entity-name": "Enter {{entity}} name", "enter-field-description": "Enter {{field}} description", + "enter-last-name": "Enter last name", "enter-name": "Enter Name", "enter-property-description": "Enter Property Description", "enter-property-value": "Enter Property Value", @@ -263,6 +267,7 @@ "entity-does-not-have-followers": "{{entityName}} doesn't have any followers yet", "entity-index": "{{entity}} index", "entity-ingestion-added-successfully": "{{entity}} Ingestion Added Successfully", + "entity-name": "{{entity}} Name", "entity-plural": "Entities", "entity-proportion": "{{entity}} Proportion", "entity-service": "{{entity}} Service", @@ -292,6 +297,8 @@ "field-required": "{{field}} is required", "field-required-plural": "{{field}} are required", "filter-plural": "Filters", + "first": "First", + "first-lowercase": "first", "flush-interval-secs": "Flush Interval (secs)", "follow": "Follow", "followed-lowercase": "followed", @@ -371,8 +378,10 @@ "kpi-name": "KPI Name", "kpi-title": "Key Performance Indicators (KPI)", "kpi-uppercase": "KPI", + "last": "Last", "last-error": "Last error", "last-failed-at": "Last Failed At", + "last-lowercase": "last", "last-no-of-day-plural": "Last {{day}} Days", "last-number-of-days": "Last {{numberOfDays}} days", "last-run": "Last Run", @@ -481,6 +490,7 @@ "partitions": "Partitions", "passed": "Passed", "password": "Password", + "password-lowercase": "password", "password-not-match": "Password Doesn't Match", "password-type": "{{type}} Password", "pause": "Pause", @@ -497,6 +507,7 @@ "pipeline-plural": "Pipelines", "pipeline-state": "Pipeline State", "please-enter-value": "Please enter {{name}} value", + "please-password-type-first": "Please type password first", "please-select": "Please Select", "plus-symbol": "+", "policy": "Policy", @@ -613,6 +624,7 @@ "select-column-plural-to-exclude": "Select Columns to Exclude", "select-column-plural-to-include": "Select Columns to Include", "select-field": "Select {{field}}", + "select-team-plural": "Select teams", "select-teams": "Select teams", "select-to-search": "Search to Select", "select-type": "Select type", @@ -711,6 +723,7 @@ "to-lowercase": "to", "token-end-point": "TokenEndpoint", "token-expiration": "Token Expiration", + "token-expired": "Token Expired", "token-security": "Token Security", "token-uri": "Token URI", "topic": "Topic", @@ -806,6 +819,7 @@ "announcement-created-successfully": "Announcement created successfully!", "announcement-invalid-start-time": "Announcement start time must be earlier than the end time.", "are-you-sure": "Are you sure?", + "are-you-sure-delete-entity": "Are you sure you want to delete the property {{entity}}", "are-you-sure-delete-property": "Are you sure you want to delete the property {{propertyName}}?", "are-you-sure-delete-tag": "Are you sure you want to delete the {{type}} \"{{tagName}}\"?", "are-you-sure-to-revoke-access": "Are you sure you want to revoke access for JWT token?", @@ -872,10 +886,13 @@ "enter-test-suite-name": "Enter test suite name", "enter-your-registered-email": "Enter your registered email to receive password reset link", "entity-already-exists": "{{entity}} already exists.", + "entity-delimiters-not-allowed": "Name with delimiters are not allowed", "entity-is-not-valid": "{{entity}} is not valid", + "entity-not-contain-whitespace": "{{entity}} should not contain white space", "entity-owned-by-name": "This entity is owned by {{entityOwner}}", "entity-restored-error": "Error while restoring {{entity}}", "entity-restored-success": "{{entity}} restored successfully", + "entity-size-in-between": "{{entity}} size must be between {{min}} and {{max}}", "error-while-fetching-access-token": "Error while fetching access token.", "failed-status-for-entity-deploy": "<0>{{entity}} has been {{entityStatus}}, but failed to deploy", "fetch-dbt-files": "These are the available sources to fetch dbt catalog and manifest files.", @@ -1052,6 +1069,7 @@ "unable-to-connect-to-your-dbt-cloud-instance": "URL to connect to your dbt cloud instance. E.g., \n https://cloud.getdbt.com or https://emea.dbt.com/", "usage-ingestion-description": "Usage ingestion can be configured and deployed after a metadata ingestion has been set up. The usage ingestion workflow obtains the query log and table creation details from the underlying database and feeds it to OpenMetadata. Metadata and usage can have only one pipeline for a database service. Define the Query Log Duration (in days), Stage File Location, and Result Limit to start.", "use-fqn-for-filtering-message": "Regex will be applied on fully qualified name (e.g service_name.db_name.schema_name.table_name) instead of raw name (e.g. table_name).", + "user-verified-successfully": "User Verified Successfully", "valid-url-endpoint": "Endpoints should be valid URL", "view-deleted-teams": "View All the Deleted Teams, which come under this Team.", "view-sample-data": "To view Sample Data, run the Profiler Ingestion. Please refer to this doc to schedule the", diff --git a/openmetadata-ui/src/main/resources/ui/src/pages/PoliciesPage/PoliciesDetailPage/AddRulePage.tsx b/openmetadata-ui/src/main/resources/ui/src/pages/PoliciesPage/PoliciesDetailPage/AddRulePage.tsx index 2848e222139..f1f878f50fa 100644 --- a/openmetadata-ui/src/main/resources/ui/src/pages/PoliciesPage/PoliciesDetailPage/AddRulePage.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/pages/PoliciesPage/PoliciesDetailPage/AddRulePage.tsx @@ -53,11 +53,11 @@ const AddRulePage = () => { const breadcrumb = useMemo( () => [ { - name: 'Settings', + name: t('label.setting-plural'), url: getSettingPath(), }, { - name: 'Policies', + name: t('label.policy-plural'), url: policiesPath, }, { @@ -66,7 +66,9 @@ const AddRulePage = () => { }, { - name: 'Add New Rule', + name: t('label.add-new-entity', { + entity: t('label.rule'), + }), url: '', }, ], diff --git a/openmetadata-ui/src/main/resources/ui/src/pages/PoliciesPage/PoliciesListPage/PoliciesList.test.tsx b/openmetadata-ui/src/main/resources/ui/src/pages/PoliciesPage/PoliciesListPage/PoliciesList.test.tsx index c36f03a43df..5f5fa752030 100644 --- a/openmetadata-ui/src/main/resources/ui/src/pages/PoliciesPage/PoliciesListPage/PoliciesList.test.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/pages/PoliciesPage/PoliciesListPage/PoliciesList.test.tsx @@ -99,10 +99,10 @@ describe('Test Roles List Component', () => { const container = await screen.findByTestId('policies-list-table'); - const nameCol = await screen.findByText('Name'); - const descriptionCol = await screen.findByText('Description'); - const rolesCol = await screen.findByText('Roles'); - const actionsCol = await screen.findByText('Actions'); + const nameCol = await screen.findByText('label.name'); + const descriptionCol = await screen.findByText('label.description'); + const rolesCol = await screen.findByText('label.role-plural'); + const actionsCol = await screen.findByText('label.action-plural'); expect(container).toBeInTheDocument(); expect(nameCol).toBeInTheDocument(); diff --git a/openmetadata-ui/src/main/resources/ui/src/pages/PoliciesPage/PoliciesListPage/PoliciesList.tsx b/openmetadata-ui/src/main/resources/ui/src/pages/PoliciesPage/PoliciesListPage/PoliciesList.tsx index faf4b8741dc..2e5d06bc32b 100644 --- a/openmetadata-ui/src/main/resources/ui/src/pages/PoliciesPage/PoliciesListPage/PoliciesList.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/pages/PoliciesPage/PoliciesListPage/PoliciesList.tsx @@ -19,6 +19,7 @@ import { usePermissionProvider } from 'components/PermissionProvider/PermissionP import { ResourceEntity } from 'components/PermissionProvider/PermissionProvider.interface'; import { isEmpty, isUndefined, uniqueId } from 'lodash'; import React, { FC, useMemo, useState } from 'react'; +import { useTranslation } from 'react-i18next'; import { Link } from 'react-router-dom'; import { NO_PERMISSION_FOR_ACTION, @@ -45,6 +46,7 @@ interface PolicyListProps { } const PoliciesList: FC = ({ policies, fetchPolicies }) => { + const { t } = useTranslation(); const [selectedPolicy, setSelectedPolicy] = useState(); const { permissions } = usePermissionProvider(); @@ -66,7 +68,7 @@ const PoliciesList: FC = ({ policies, fetchPolicies }) => { const columns: ColumnsType = useMemo(() => { return [ { - title: 'Name', + title: t('label.name'), dataIndex: 'name', width: '200px', key: 'name', @@ -80,7 +82,7 @@ const PoliciesList: FC = ({ policies, fetchPolicies }) => { ), }, { - title: 'Description', + title: t('label.description'), dataIndex: 'description', key: 'description', render: (_, record) => ( @@ -88,7 +90,7 @@ const PoliciesList: FC = ({ policies, fetchPolicies }) => { ), }, { - title: 'Roles', + title: t('label.role-plural'), dataIndex: 'roles', width: '250px', key: 'roles', @@ -149,7 +151,7 @@ const PoliciesList: FC = ({ policies, fetchPolicies }) => { }, }, { - title: 'Actions', + title: t('label.action-plural'), dataIndex: 'actions', width: '80px', key: 'actions', @@ -158,7 +160,9 @@ const PoliciesList: FC = ({ policies, fetchPolicies }) => {