Skip to content

Commit 5a417b9

Browse files
jcchrMarkRedeman
andauthored
display a proper number of users assigned to a workspace (#1585)
Co-authored-by: Mark Redeman <[email protected]>
1 parent 7ac7300 commit 5a417b9

File tree

4 files changed

+4
-12
lines changed

4 files changed

+4
-12
lines changed

web_ui/packages/smart-tools/src/opencv/interfaces/index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Copyright (C) 2022-2025 Intel Corporation
22
// LIMITED EDGE SOFTWARE DISTRIBUTION LICENSE
33

4+
import * as OpenCVTypes from 'OpenCVTypes';
5+
46
/// <reference lib="webworker" />
57
/// <reference path="scalars.d.ts" />
68
/// <reference path="constants.d.ts" />

web_ui/src/pages/user-management/users/users-header.component.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import { RolePicker } from './old-project-users/role-picker.component';
1212
import { UsersCount } from './workspace-users/users-count.component';
1313

1414
interface WorkspaceUsersHeaderProps {
15-
totalCount: number;
1615
totalMatchedCount: number;
1716
hasFilterOptions: boolean;
1817
setUsersQueryParams: Dispatch<SetStateAction<UsersQueryParams>>;
@@ -22,7 +21,6 @@ interface WorkspaceUsersHeaderProps {
2221

2322
export const UsersHeader = ({
2423
totalMatchedCount,
25-
totalCount,
2624
hasFilterOptions,
2725
setUsersQueryParams,
2826
usersTableType = RESOURCE_TYPE.ORGANIZATION,
@@ -96,7 +94,7 @@ export const UsersHeader = ({
9694
{actionsSlot}
9795
<UsersCount
9896
totalMatchedCount={totalMatchedCount}
99-
totalCount={totalCount}
97+
totalCount={totalMatchedCount}
10098
hasFilters={hasFilterOptions}
10199
id={'users-header-users-count'}
102100
/>

web_ui/src/pages/user-management/users/users-header.test.tsx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,7 @@ import { UsersHeader } from './users-header.component';
88

99
describe('UsersHeader', () => {
1010
it('Check all users header elements', async () => {
11-
render(
12-
<UsersHeader
13-
totalMatchedCount={2}
14-
totalCount={3}
15-
hasFilterOptions={false}
16-
setUsersQueryParams={jest.fn()}
17-
/>
18-
);
11+
render(<UsersHeader totalMatchedCount={2} hasFilterOptions={false} setUsersQueryParams={jest.fn()} />);
1912

2013
expect(screen.getByTestId('users-header-search-field')).toBeInTheDocument();
2114
expect(screen.getByTestId('users-header-role-picker')).toBeInTheDocument();

web_ui/src/pages/user-management/users/users.component.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ export const Users = ({
9595
<Flex direction={'column'}>
9696
<UsersHeader
9797
totalMatchedCount={totalMatchedCount}
98-
totalCount={totalCount}
9998
hasFilterOptions={hasFilters}
10099
setUsersQueryParams={setUsersQueryParams}
101100
usersTableType={usersTableType}

0 commit comments

Comments
 (0)