backend.ai-webui
backend.ai-webui copied to clipboard
fix: refactor vfolder storage proxy components
Description
This PR resolves four minor problems:
- column width of storage-proxy list
- font size of text in lablup-piechart
- move utilizable functions (
_markIfUnlimited()
) tobackendai-common-utils
component. - use proper unit conversion
- MB, GB, TB,... are only used when converting bytes to decimal, not binary.
@lizable Let's reduce confusion here.
- For memory: byte to MB → 1048576 (actually it is MiB but is widely used MB for memory)
- For storage: byte to MB → 1000000 (MiB)
I suggest to make both byteToMiB and byteToMB and apply to storage / memory view differently :).
Closing this issue since it's been obsolete. We don't use piechart in storage-proxy component.