Skip to content
Snippets Groups Projects
Commit a29795c4 authored by Denis Kharlamov's avatar Denis Kharlamov Committed by Дмитрий Кольцов
Browse files

fix: add capacity info for replecaset progress; side menu hidden by default

parent b4358b2a
No related branches found
No related tags found
1 merge request!1136chore: incorporate webui submodule
......@@ -15,7 +15,7 @@ export const SideMenu = () => {
const [isOpen, setIsOpen] = useLsState({
key: "sideMenuOpenState",
schema: z.boolean(),
defaultValue: true,
defaultValue: false,
});
const containerRef = useRef<HTMLDivElement>(null);
......
......@@ -16,7 +16,11 @@ export type TReplicaset = {
instances: ClientInstanceType[];
version: string;
grade: string;
capacity: number;
capacityUsage: number;
memory: {
usable: number;
used: number;
};
};
export interface ReplicasetCardProps {
replicaset: TReplicaset;
......@@ -45,9 +49,9 @@ export const ReplicasetCard: FC<ReplicasetCardProps> = React.memo(
<div className={cn(styles.infoColumn, styles.capacityColumn)}>
<div className={styles.label}>Capacity</div>
<CapacityProgress
percent={replicaset.capacity}
currentValue={1200000}
limit={1200000}
percent={replicaset.capacityUsage}
currentValue={replicaset.memory.used}
limit={replicaset.memory.usable}
size="small"
theme="secondary"
progressLineWidth={190}
......
......@@ -12,7 +12,11 @@ export interface ReplicasetType {
instances: InstanceType[];
version: string;
grade: string;
capacity: number;
capacityUsage: number;
memory: {
usable: number;
used: number;
};
}
export interface ClusterInfoType {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment