diff --git a/openmetadata-ui/src/main/resources/ui/cypress/e2e/Features/DataConsumerRole.spec.js b/openmetadata-ui/src/main/resources/ui/cypress/e2e/Features/DataConsumerRole.spec.js index 83a1db71a1b..9907b71e437 100644 --- a/openmetadata-ui/src/main/resources/ui/cypress/e2e/Features/DataConsumerRole.spec.js +++ b/openmetadata-ui/src/main/resources/ui/cypress/e2e/Features/DataConsumerRole.spec.js @@ -165,14 +165,13 @@ describe('DataConsumer Edit policy should work properly', () => { .should('be.visible') .click({ force: true }); verifyResponseStatusCode('@getUserPage', 200); - cy.get('[data-testid="left-panel"]').should( - 'contain', - `${CREDENTIALS.firstName}${CREDENTIALS.lastName}` - ); + cy.get( + '[data-testid="user-profile"] [data-testid="user-profile-details"]' + ).should('contain', `${CREDENTIALS.firstName}${CREDENTIALS.lastName}`); - cy.get('[data-testid="left-panel"]') - .should('be.visible') - .should('contain', policy); + cy.get( + '[data-testid="user-profile"] [data-testid="user-profile-inherited-roles"]' + ).should('contain', policy); }); it('Check if the new user has only edit access on description and tags', () => { diff --git a/openmetadata-ui/src/main/resources/ui/cypress/e2e/Flow/AddRoleAndAssignToUser.spec.js b/openmetadata-ui/src/main/resources/ui/cypress/e2e/Flow/AddRoleAndAssignToUser.spec.js index 6f48f022705..49de7e8ede8 100644 --- a/openmetadata-ui/src/main/resources/ui/cypress/e2e/Flow/AddRoleAndAssignToUser.spec.js +++ b/openmetadata-ui/src/main/resources/ui/cypress/e2e/Flow/AddRoleAndAssignToUser.spec.js @@ -139,8 +139,8 @@ describe('Test Add role and assign it to the user', () => { cy.get(`[data-testid="${userName}"]`).should('be.visible').click(); verifyResponseStatusCode('@userDetailsPage', 200); - cy.get('[data-testid="left-panel"]') - .should('be.visible') - .should('contain', roleName); + cy.get( + '[data-testid="user-profile"] [data-testid="user-profile-roles"]' + ).should('contain', roleName); }); }); diff --git a/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/Login.spec.js b/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/Login.spec.js index 29eccfc1eae..2c0096aacda 100644 --- a/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/Login.spec.js +++ b/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/Login.spec.js @@ -82,10 +82,9 @@ describe('Login flow should work properly', () => { .should('be.visible') .click({ force: true }); verifyResponseStatusCode('@getUser', 200); - cy.get('[data-testid="left-panel"]').should( - 'contain', - `${CREDENTIALS.firstName}${CREDENTIALS.lastName}` - ); + cy.get( + '[data-testid="user-profile"] [data-testid="user-profile-details"]' + ).should('contain', `${CREDENTIALS.firstName}${CREDENTIALS.lastName}`); }); it('Signin using invalid credentials', () => { 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 deleted file mode 100644 index 7c7e8e15fc5..00000000000 --- a/openmetadata-ui/src/main/resources/ui/src/assets/svg/Task-ic.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/openmetadata-ui/src/main/resources/ui/src/assets/svg/all-activity-v2.svg b/openmetadata-ui/src/main/resources/ui/src/assets/svg/all-activity-v2.svg new file mode 100644 index 00000000000..f20ce8c5437 --- /dev/null +++ b/openmetadata-ui/src/main/resources/ui/src/assets/svg/all-activity-v2.svg @@ -0,0 +1,8 @@ + 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 new file mode 100644 index 00000000000..5dbe5fea422 --- /dev/null +++ b/openmetadata-ui/src/main/resources/ui/src/assets/svg/task-ic.svg @@ -0,0 +1,17 @@ + + diff --git a/openmetadata-ui/src/main/resources/ui/src/assets/svg/teams-grey.svg b/openmetadata-ui/src/main/resources/ui/src/assets/svg/teams-grey.svg index fee559c2cbc..28de11e97e4 100644 --- a/openmetadata-ui/src/main/resources/ui/src/assets/svg/teams-grey.svg +++ b/openmetadata-ui/src/main/resources/ui/src/assets/svg/teams-grey.svg @@ -1 +1,6 @@ - \ No newline at end of file + + diff --git a/openmetadata-ui/src/main/resources/ui/src/assets/svg/user.svg b/openmetadata-ui/src/main/resources/ui/src/assets/svg/user.svg index 1bfbda1eab4..0135eb1ba4e 100644 --- a/openmetadata-ui/src/main/resources/ui/src/assets/svg/user.svg +++ b/openmetadata-ui/src/main/resources/ui/src/assets/svg/user.svg @@ -1 +1,4 @@ - \ No newline at end of file + + diff --git a/openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/ActivityFeedTab/ActivityFeedTab.component.tsx b/openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/ActivityFeedTab/ActivityFeedTab.component.tsx index 1bf2dc1b588..02d9ffa5387 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/ActivityFeedTab/ActivityFeedTab.component.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/ActivityFeedTab/ActivityFeedTab.component.tsx @@ -10,7 +10,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import { Menu, Typography } from 'antd'; +import { Menu, Space, Typography } from 'antd'; import classNames from 'classnames'; import Loader from 'components/Loader/Loader'; import { TaskTab } from 'components/Task/TaskTab/TaskTab.component'; @@ -53,6 +53,11 @@ import { import { ReactComponent as CheckIcon } from '/assets/svg/ic-check.svg'; import { ReactComponent as TaskIcon } from '/assets/svg/ic-task.svg'; +import { ICON_DIMENSION } from 'constants/constants'; +import { ReactComponent as AllActivityIcon } from '/assets/svg/all-activity-v2.svg'; +import { ReactComponent as MentionIcon } from '/assets/svg/ic-mentions.svg'; +import { ReactComponent as TaskListIcon } from '/assets/svg/task-ic.svg'; + export const ActivityFeedTab = ({ fqn, owner, @@ -280,7 +285,11 @@ export const ActivityFeedTab = ({ { label: (
ProfilePicture
); }); +jest.mock( + './UsersProfile/UserProfileDetails/UserProfileDetails.component', + () => { + return jest.fn().mockReturnValue(SearchedData
); }); @@ -132,7 +157,7 @@ const mockProp = { paging: mockPaging, postFeedHandler: postFeed, isAdminUser: false, - isLoggedinUser: false, + isLoggedInUser: false, isAuthDisabled: true, isUserEntitiesLoading: false, updateUserDetails, @@ -166,28 +191,24 @@ describe('Test User Component', () => { } ); - const leftPanel = await findByTestId(container, 'left-panel'); - - expect(leftPanel).toBeInTheDocument(); - }); - - it('Only admin can able to see tab for bot page', async () => { - const { container } = render( -- {getEntityName(userData as unknown as EntityReference)} -
- ); - } - }; - - const getDescriptionComponent = () => { - if (isAdminUser || isLoggedinUser || isAuthDisabled) { - return ( -- {t('message.no-username-available')} - - {username} - -
+