Skip to content

Commit 135c330

Browse files
committed
rename workspace to team
Signed-off-by: Joshua Li <joshuali925@gmail.com>
1 parent a2b795f commit 135c330

File tree

50 files changed

+156
-160
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+156
-160
lines changed

src/plugins/workspace/public/components/data_source_association/association_data_source_modal.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ describe('AssociationDataSourceModal', () => {
154154
expect(screen.getByText('Associate OpenSearch data sources')).toBeInTheDocument();
155155
expect(
156156
screen.getByText(
157-
'Add data sources that will be available in the workspace. If a selected data source has related Direct Query data sources, they will also be available in the workspace.'
157+
'Add data sources that will be available in the team. If a selected data source has related Direct Query data sources, they will also be available in the team.'
158158
)
159159
).toBeInTheDocument();
160160
await waitFor(() => {
@@ -204,7 +204,7 @@ describe('AssociationDataSourceModal', () => {
204204
});
205205
expect(
206206
screen.getByText(
207-
'Add data sources that will be available in the workspace. If a selected data source has related Direct Query data sources, they will also be available in the workspace.'
207+
'Add data sources that will be available in the team. If a selected data source has related Direct Query data sources, they will also be available in the team.'
208208
)
209209
).toBeInTheDocument();
210210
await waitFor(() => {

src/plugins/workspace/public/components/data_source_association/association_data_source_modal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ export const AssociationDataSourceModalContent = ({
325325
<EuiText size="xs" color="subdued">
326326
<FormattedMessage
327327
id="workspace.detail.dataSources.associateModal.message"
328-
defaultMessage="Add data sources that will be available in the workspace. If a selected data source has related Direct Query data sources, they will also be available in the workspace."
328+
defaultMessage="Add data sources that will be available in the team. If a selected data source has related Direct Query data sources, they will also be available in the team."
329329
/>
330330
</EuiText>
331331
<EuiSpacer size="s" />

src/plugins/workspace/public/components/data_source_association/data_source_association.test.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ describe('<DataSourceAssociation />', () => {
9797
await waitFor(() => {
9898
expect(associateMock).toHaveBeenCalled();
9999
expect(servicesMock.notifications.toasts.addSuccess).toHaveBeenCalledWith(
100-
expect.objectContaining({ title: '2 data sources been associated to the workspace' })
100+
expect.objectContaining({ title: '2 data sources been associated to the team' })
101101
);
102102
});
103103
});
@@ -132,7 +132,7 @@ describe('<DataSourceAssociation />', () => {
132132
await waitFor(() => {
133133
expect(associateMock).toHaveBeenCalled();
134134
expect(servicesMock.notifications.toasts.addSuccess).toHaveBeenCalledWith(
135-
expect.objectContaining({ title: '2 data sources been associated to the workspace' })
135+
expect.objectContaining({ title: '2 data sources been associated to the team' })
136136
);
137137
});
138138
});
@@ -165,7 +165,7 @@ describe('<DataSourceAssociation />', () => {
165165
await waitFor(() => {
166166
expect(associateMock).toHaveBeenCalled();
167167
expect(servicesMock.notifications.toasts.addDanger).toHaveBeenCalledWith(
168-
expect.objectContaining({ title: 'Failed to associate 2 data sources to the workspace' })
168+
expect.objectContaining({ title: 'Failed to associate 2 data sources to the team' })
169169
);
170170
});
171171
});
@@ -202,10 +202,10 @@ describe('<DataSourceAssociation />', () => {
202202
await waitFor(() => {
203203
expect(associateMock).toHaveBeenCalled();
204204
expect(servicesMock.notifications.toasts.addDanger).toHaveBeenCalledWith(
205-
expect.objectContaining({ title: 'Failed to associate 1 data source to the workspace' })
205+
expect.objectContaining({ title: 'Failed to associate 1 data source to the team' })
206206
);
207207
expect(servicesMock.notifications.toasts.addSuccess).toHaveBeenCalledWith(
208-
expect.objectContaining({ title: '1 data source been associated to the workspace' })
208+
expect.objectContaining({ title: '1 data source been associated to the team' })
209209
);
210210
});
211211
});

src/plugins/workspace/public/components/data_source_association/data_source_association.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export const DataSourceAssociation = ({ excludedDataSourceIds, onComplete, onErr
8888
id: 'workspace_data_source_association_failed',
8989
title: i18n.translate('workspace.dataSource.association.failedTitle', {
9090
defaultMessage:
91-
'Failed to associate {failedCount, plural, one {# data source} other {# data sources}} to the workspace',
91+
'Failed to associate {failedCount, plural, one {# data source} other {# data sources}} to the team',
9292
values: { failedCount },
9393
}),
9494
});
@@ -98,7 +98,7 @@ export const DataSourceAssociation = ({ excludedDataSourceIds, onComplete, onErr
9898
id: 'workspace_data_source_association_succeed',
9999
title: i18n.translate('workspace.dataSource.association.succeedTitle', {
100100
defaultMessage:
101-
'{succeedCount, plural, one {# data source} other {# data sources}} been associated to the workspace',
101+
'{succeedCount, plural, one {# data source} other {# data sources}} been associated to the team',
102102
values: { succeedCount: objects.length - failedCount },
103103
}),
104104
});

src/plugins/workspace/public/components/delete_workspace_modal/delete_workspace_modal.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export function DeleteWorkspaceModal(props: DeleteWorkspaceModalProps) {
6464
} catch (error) {
6565
notifications?.toasts.addDanger({
6666
title: i18n.translate('workspace.delete.failed', {
67-
defaultMessage: 'Failed to delete workspace',
67+
defaultMessage: 'Failed to delete team',
6868
}),
6969
text: error instanceof Error ? error.message : JSON.stringify(error),
7070
});
@@ -75,7 +75,7 @@ export function DeleteWorkspaceModal(props: DeleteWorkspaceModalProps) {
7575
if (result?.fail === 0) {
7676
notifications?.toasts.addSuccess({
7777
title: i18n.translate('workspace.delete.success', {
78-
defaultMessage: '{successCount} workspaces deleted successfully',
78+
defaultMessage: '{successCount} teams deleted successfully',
7979
values: {
8080
successCount: result.success,
8181
},
@@ -108,14 +108,14 @@ export function DeleteWorkspaceModal(props: DeleteWorkspaceModalProps) {
108108
notifications?.toasts[isAllFailed ? 'addDanger' : 'addWarning']({
109109
title: isAllFailed
110110
? i18n.translate('workspace.delete.allFailed', {
111-
defaultMessage: '{failCount} workspaces failed to delete',
111+
defaultMessage: '{failCount} teams failed to delete',
112112
values: {
113113
failCount: result.fail,
114114
},
115115
})
116116
: i18n.translate('workspace.delete.warning', {
117117
defaultMessage:
118-
'{successCount} workspaces deleted successfully, {failCount} failed to delete',
118+
'{successCount} teams deleted successfully, {failCount} failed to delete',
119119
values: {
120120
failCount: result.fail,
121121
successCount: result.success,
@@ -125,7 +125,7 @@ export function DeleteWorkspaceModal(props: DeleteWorkspaceModalProps) {
125125
<>
126126
<div>
127127
{i18n.translate('workspace.delete.failed.name', {
128-
defaultMessage: 'Failed workspace name ',
128+
defaultMessage: 'Failed team name ',
129129
})}
130130
{failedWorksapces.map((selectedWorkspace) => selectedWorkspace.name).join(', ')}{' '}
131131
</div>
@@ -158,7 +158,7 @@ export function DeleteWorkspaceModal(props: DeleteWorkspaceModalProps) {
158158
<EuiModalHeader data-test-subj="delete-workspace-modal-header">
159159
<EuiModalHeaderTitle>
160160
{i18n.translate('workspace.delete.title', {
161-
defaultMessage: 'Delete workspace',
161+
defaultMessage: 'Delete team',
162162
})}
163163
</EuiModalHeaderTitle>
164164
</EuiModalHeader>

src/plugins/workspace/public/components/delete_workspace_modal/show_delete_details_modal.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ describe('showDeleteDetailsModal', () => {
4747
expect(screen.getByTestId('delete-details-modal-title')).toBeInTheDocument();
4848
expect(screen.getByTestId('delete-details-modal-body')).toBeInTheDocument();
4949
expect(screen.getByTestId('delete-details-modal-list')).toBeInTheDocument();
50-
expect(screen.getByText('Delete workspace details')).toBeInTheDocument();
50+
expect(screen.getByText('Delete team details')).toBeInTheDocument();
5151
expect(screen.getByText('started to delete workspaces')).toBeInTheDocument();
5252
expect(screen.getAllByTestId('delete-details-modal-name')).toHaveLength(2);
5353

@@ -80,7 +80,7 @@ describe('showDeleteDetailsModal', () => {
8080
expect(screen.getByTestId('delete-details-modal-header')).toBeInTheDocument();
8181
expect(screen.getByTestId('delete-details-modal-body')).toBeInTheDocument();
8282
expect(screen.getByTestId('delete-details-modal-list')).toBeInTheDocument();
83-
expect(screen.getByText('Delete workspace details')).toBeInTheDocument();
83+
expect(screen.getByText('Delete team details')).toBeInTheDocument();
8484
expect(screen.getByText('started to delete workspaces')).toBeInTheDocument();
8585
expect(screen.getAllByTestId('delete-details-modal-name')).toHaveLength(3);
8686

@@ -117,7 +117,7 @@ describe('showDeleteDetailsModal', () => {
117117
expect(screen.getByTestId('delete-details-modal-header')).toBeInTheDocument();
118118
expect(screen.getByTestId('delete-details-modal-body')).toBeInTheDocument();
119119
expect(screen.getByTestId('delete-details-modal-list')).toBeInTheDocument();
120-
expect(screen.getByText('Delete workspace details')).toBeInTheDocument();
120+
expect(screen.getByText('Delete team details')).toBeInTheDocument();
121121
expect(screen.getByText('started to delete workspaces')).toBeInTheDocument();
122122
expect(screen.getAllByTestId('delete-details-modal-name')).toHaveLength(2);
123123

src/plugins/workspace/public/components/delete_workspace_modal/show_delete_details_modal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const showDeleteDetailsModal = (
3232
let updateMessages: EuiCommentProps[] = [
3333
{
3434
username: 'Delete Process',
35-
event: 'started to delete workspaces',
35+
event: 'started to delete teams',
3636
type: 'update',
3737
timelineIcon: 'trash',
3838
},
@@ -78,7 +78,7 @@ export const showDeleteDetailsModal = (
7878
<EuiModalHeader data-test-subj="delete-details-modal-header">
7979
<EuiModalHeaderTitle data-test-subj="delete-details-modal-title">
8080
{i18n.translate('workspace.deleteDetails.title', {
81-
defaultMessage: 'Delete workspace details',
81+
defaultMessage: 'Delete team details',
8282
})}
8383
</EuiModalHeaderTitle>
8484
</EuiModalHeader>

src/plugins/workspace/public/components/service_card/workspace_list_card.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export const WorkspaceListCard = (props: WorkspaceListCardProps) => {
9393
const isDashboardAdmin = application.capabilities.dashboards?.isDashboardAdmin;
9494

9595
const createWorkspace = i18n.translate('workspace.list.card.createWorkspace', {
96-
defaultMessage: 'Create workspace',
96+
defaultMessage: 'Create team',
9797
});
9898

9999
const workspaceAvailable = workspaceList && workspaceList.length > 0;
@@ -117,7 +117,7 @@ export const WorkspaceListCard = (props: WorkspaceListCardProps) => {
117117
<EuiText color="subdued" size="s">
118118
{i18n.translate('workspace.list.card.empty.readOnly', {
119119
defaultMessage:
120-
'Contact your administrator to create a workspace or to be added to an existing one.',
120+
'Contact your administrator to create a team or to be added to an existing one.',
121121
})}
122122
</EuiText>
123123
);
@@ -127,7 +127,7 @@ export const WorkspaceListCard = (props: WorkspaceListCardProps) => {
127127
<>
128128
<EuiText color="subdued" size="s">
129129
{i18n.translate('workspace.list.card.empty', {
130-
defaultMessage: 'Create a workspace to get started.',
130+
defaultMessage: 'Create a team to get started.',
131131
})}
132132
</EuiText>
133133
<EuiSpacer size="s" />
@@ -140,7 +140,7 @@ export const WorkspaceListCard = (props: WorkspaceListCardProps) => {
140140
>
141141
<EuiText size="s">
142142
{i18n.translate('workspace.list.card.manageWorkspaces', {
143-
defaultMessage: 'Manage workspaces',
143+
defaultMessage: 'Manage teams',
144144
})}
145145
</EuiText>
146146
</EuiLink>

src/plugins/workspace/public/components/workspace_collaborators/workspace_collaborators.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export const WorkspaceCollaborators = () => {
6363
const showErrorNotification = (errorText?: string) => {
6464
notifications?.toasts.addDanger({
6565
title: i18n.translate('workspace.collaborators.update.failed.message', {
66-
defaultMessage: 'Failed to update workspace collaborators',
66+
defaultMessage: 'Failed to update team collaborators',
6767
}),
6868
...(errorText ? { text: errorText } : {}),
6969
});
@@ -104,7 +104,7 @@ export const WorkspaceCollaborators = () => {
104104
controls={[
105105
{
106106
description: i18n.translate('workspace.collaborators.description', {
107-
defaultMessage: 'Manage workspace access and permissions.',
107+
defaultMessage: 'Manage team access and permissions.',
108108
}),
109109
links: {
110110
label: i18n.translate('workspace.form.panels.collaborator.learnMore', {

src/plugins/workspace/public/components/workspace_column/workspace_column.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ export function WorkspaceColumn({ coreSetup, workspaces }: WorkspaceColumnProps)
4747
iconSide="right"
4848
onClick={toggleBadgePopover}
4949
iconOnClick={toggleBadgePopover}
50-
iconOnClickAriaLabel="Open workspaces popover"
51-
onClickAriaLabel="Open workspaces popover"
50+
iconOnClickAriaLabel="Open teams popover"
51+
onClickAriaLabel="Open teams popover"
5252
data-test-subj="workspace-column-more-workspaces-badge"
5353
>
5454
+ {remainingWorkspacesCount} more
@@ -85,7 +85,7 @@ export function getWorkspaceColumn(
8585
align: 'left',
8686
field: 'workspaces',
8787
name: i18n.translate('workspace.objectsTable.table.columnWorkspacesName', {
88-
defaultMessage: 'Workspace',
88+
defaultMessage: 'Team',
8989
}),
9090
render: (workspaces: string[]) => {
9191
return <WorkspaceColumn coreSetup={coreSetup} workspaces={workspaces} />;

0 commit comments

Comments
 (0)