Skip to content

Commit 23ee30c

Browse files
committed
fix: review fixes
1 parent 4d52cb7 commit 23ee30c

File tree

5 files changed

+27
-51
lines changed

5 files changed

+27
-51
lines changed

src/containers/Operations/Operations.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export function Operations({database}: OperationsProps) {
6363
<ResizeableDataTable
6464
columns={getColumns()}
6565
data={filteredOperations}
66-
emptyDataMessage={i18n('operations.noData')}
66+
emptyDataMessage={i18n('title_empty')}
6767
/>
6868
) : null}
6969
</TableWithControlsLayout.Table>

src/containers/Operations/OperationsControls.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export function OperationsControls({
3434
<Search
3535
value={searchValue}
3636
onChange={handleSearchChange}
37-
placeholder={i18n('controls.searchPlaceholder')}
37+
placeholder={i18n('pleaceholder_search')}
3838
className={b('search')}
3939
/>
4040
<Select
@@ -43,7 +43,7 @@ export function OperationsControls({
4343
onUpdate={(value) => handleKindChange(value[0] as OperationKind)}
4444
/>
4545
<EntitiesCount
46-
label={i18n('label.operations')}
46+
label={i18n('label_operations')}
4747
loading={entitiesLoading}
4848
total={entitiesCountTotal}
4949
current={entitiesCountCurrent}

src/containers/Operations/columns.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export function getColumns(): DataTableColumn<TOperation>[] {
100100

101101
return row.end_time
102102
? durationFormatted
103-
: i18n('duration.ongoing', {value: durationFormatted});
103+
: i18n('label_duration-ongoing', {value: durationFormatted});
104104
},
105105
sortAccessor: (row) => {
106106
if (!row.create_time) {

src/containers/Operations/constants.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ export const COLUMNS_NAMES = {
1414
} as const;
1515

1616
export const COLUMNS_TITLES = {
17-
[COLUMNS_NAMES.ID]: i18n('column.operationId'),
18-
[COLUMNS_NAMES.STATUS]: i18n('column.status'),
19-
[COLUMNS_NAMES.CREATED_BY]: i18n('column.createdBy'),
20-
[COLUMNS_NAMES.CREATE_TIME]: i18n('column.createTime'),
21-
[COLUMNS_NAMES.END_TIME]: i18n('column.endTime'),
22-
[COLUMNS_NAMES.DURATION]: i18n('column.duration'),
17+
[COLUMNS_NAMES.ID]: i18n('column_operationId'),
18+
[COLUMNS_NAMES.STATUS]: i18n('column_status'),
19+
[COLUMNS_NAMES.CREATED_BY]: i18n('column_createdBy'),
20+
[COLUMNS_NAMES.CREATE_TIME]: i18n('column_createTime'),
21+
[COLUMNS_NAMES.END_TIME]: i18n('column_endTime'),
22+
[COLUMNS_NAMES.DURATION]: i18n('column_duration'),
2323
} as const;
2424

2525
export const BASE_COLUMNS = [
@@ -32,7 +32,7 @@ export const BASE_COLUMNS = [
3232
];
3333

3434
export const OPERATION_KINDS: {value: OperationKind; content: string}[] = [
35-
{value: 'export', content: i18n('kind.export')},
36-
{value: 'ss/backgrounds', content: i18n('kind.ssBackgrounds')},
37-
{value: 'buildindex', content: i18n('kind.buildIndex')},
35+
{value: 'export', content: i18n('kind_export')},
36+
{value: 'ss/backgrounds', content: i18n('kind_ssBackgrounds')},
37+
{value: 'buildindex', content: i18n('kind_buildIndex')},
3838
];
Lines changed: 14 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,17 @@
11
{
2-
"label.operations": "Operations",
3-
"operations.noData": "No operations data",
4-
"dialog.cancel.header": "Cancel operation",
5-
"dialog.cancel.text": "The operation will be cancelled. Do you want to proceed?",
6-
"controls.cancelNotAllowed": "You don't have enough rights to cancel this operation",
7-
"controls.searchPlaceholder": "Search operations",
8-
"controls.kindPlaceholder": "Select operation kind",
9-
"page.title": "Operations",
10-
"kind.ssBackgrounds": "SS/Backgrounds",
11-
"kind.export": "Export",
12-
"kind.buildIndex": "Build Index",
13-
"status.success": "Success",
14-
"status.badRequest": "Bad Request",
15-
"status.unauthorized": "Unauthorized",
16-
"status.internalError": "Internal Error",
17-
"status.aborted": "Aborted",
18-
"status.unavailable": "Unavailable",
19-
"status.overloaded": "Overloaded",
20-
"status.schemeError": "Scheme Error",
21-
"status.genericError": "Generic Error",
22-
"status.timeout": "Timeout",
23-
"status.badSession": "Bad Session",
24-
"status.preconditionFailed": "Precondition Failed",
25-
"status.alreadyExists": "Already Exists",
26-
"status.notFound": "Not Found",
27-
"status.sessionExpired": "Session Expired",
28-
"status.cancelled": "Cancelled",
29-
"status.undetermined": "Undetermined",
30-
"status.unsupported": "Unsupported",
31-
"status.sessionBusy": "Session Busy",
32-
"status.externalError": "External Error",
2+
"label_operations": "Operations",
3+
"title_empty": "No operations data",
4+
"pleaceholder_search": "Search operations",
5+
"placeholder_kind": "Select operation kind",
6+
"kind_ssBackgrounds": "SS/Backgrounds",
7+
"kind_export": "Export",
8+
"kind_buildIndex": "Build Index",
339

34-
"column.operationId": "Operation ID",
35-
"column.status": "Status",
36-
"column.createdBy": "Created By",
37-
"column.createTime": "Create Time",
38-
"column.endTime": "End Time",
39-
"column.duration": "Duration",
40-
"duration.ongoing": "{{value}} (ongoing)"
10+
"column_operationId": "Operation ID",
11+
"column_status": "Status",
12+
"column_createdBy": "Created By",
13+
"column_createTime": "Create Time",
14+
"column_endTime": "End Time",
15+
"column_duration": "Duration",
16+
"label_duration-ongoing": "{{value}} (ongoing)"
4117
}

0 commit comments

Comments
 (0)