Skip to content

Commit a7d356c

Browse files
Copilotadameat
andcommitted
Fix replication UI issues: remove "/ 100%" format and improve tooltip alignment
Co-authored-by: adameat <[email protected]>
1 parent 763bb57 commit a7d356c

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/components/VDiskInfo/VDiskInfo.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,14 +145,12 @@ export function VDiskInfo<T extends PreparedVDisk>({
145145
<ProgressViewer
146146
value={ReplicationProgress}
147147
capacity={1}
148-
formatValues={(value, capacity) => [
149-
`${Math.round((value || 0) * 100)}%`,
150-
`${Math.round((capacity || 1) * 100)}%`,
151-
]}
148+
formatValues={(value) => [`${Math.round((value || 0) * 100)}%`]}
152149
colorizeProgress={true}
153150
inverseColorize={true}
154151
dangerThreshold={0}
155152
warningThreshold={0}
153+
hideCapacity={true}
156154
/>
157155
),
158156
});

src/components/VDiskPopup/VDiskPopup.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ const prepareVDiskData = (data: PreparedVDisk, withDeveloperUILink?: boolean) =>
136136
if (valueIsDefined(ReplicationProgress)) {
137137
const progressPercent = Math.round(ReplicationProgress * 100);
138138
vdiskData.push({
139-
label: 'Replication Progress',
139+
label: 'Progress',
140140
value: `${progressPercent}%`,
141141
});
142142
}
@@ -145,7 +145,7 @@ const prepareVDiskData = (data: PreparedVDisk, withDeveloperUILink?: boolean) =>
145145
const timeRemaining = formatUptimeInSeconds(ReplicationSecondsRemaining);
146146
if (timeRemaining) {
147147
vdiskData.push({
148-
label: 'Time Remaining',
148+
label: 'Remaining',
149149
value: timeRemaining,
150150
});
151151
}

0 commit comments

Comments
 (0)