-
Notifications
You must be signed in to change notification settings - Fork 92
feat(new-webui): Add uncompressed and compressed data size cards (resolves #946). #958
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
3cfb1a5
16ed981
3d3a361
937e724
b35f9ae
b7330ac
1f4ca11
8c262bd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,6 +5,10 @@ | |
| } | ||
|
|
||
| .timeRange { | ||
| display: flex; | ||
| grid-column: span 2; | ||
| } | ||
|
|
||
| .timeRange :global(.ant-card) { | ||
| flex: 1; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| import DetailsCard from "../Details/DetailsCard"; | ||
| import {formatSizeInBytes} from "../Jobs/units"; | ||
|
|
||
|
|
||
| interface CompressedSizeProps { | ||
| compressedSize: number; | ||
| } | ||
|
|
||
| /** | ||
| * Renders the compressed size statistic. | ||
| * | ||
| * @param props | ||
| * @param props.compressedSize | ||
| * @return | ||
| */ | ||
| const CompressedSize = ({compressedSize}: CompressedSizeProps) => { | ||
| return ( | ||
| <DetailsCard | ||
| stat={formatSizeInBytes(compressedSize, false)} | ||
| title={"Compressed Size"}/> | ||
| ); | ||
| }; | ||
|
|
||
| export default CompressedSize; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| import DetailsCard from "../Details/DetailsCard"; | ||
| import {formatSizeInBytes} from "../Jobs/units"; | ||
|
|
||
|
|
||
| interface UncompressedSizeProps { | ||
| uncompressedSize: number; | ||
| } | ||
|
|
||
| /** | ||
| * Renders the uncompressed size statistic. | ||
| * | ||
| * @param props | ||
| * @param props.uncompressedSize | ||
| * @return | ||
| */ | ||
|
Comment on lines
+9
to
+15
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Remove or refine redundant JSDoc 🤖 Prompt for AI Agents |
||
| const UncompressedSize = ({uncompressedSize}: UncompressedSizeProps) => { | ||
| return ( | ||
| <DetailsCard | ||
| stat={formatSizeInBytes(uncompressedSize, false)} | ||
| title={"Uncompressed Size"}/> | ||
| ); | ||
| }; | ||
|
Comment on lines
+16
to
+22
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Wrap component in 🤖 Prompt for AI Agents |
||
|
|
||
| export default UncompressedSize; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| .spaceSavingsGrid { | ||
| display: grid; | ||
| grid-template-columns: repeat(2, minmax(200px, 1fr)); | ||
| gap: 8px; | ||
| align-items: stretch; | ||
| } | ||
|
|
||
| .spaceSavingsCard { | ||
| display: flex; | ||
| grid-column: span 2; | ||
| } | ||
|
|
||
| .spaceSavingsCard :global(.ant-card) { | ||
| flex: 1; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,7 +2,7 @@ | |
| display: grid; | ||
| grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); | ||
| /* Limits dashboard to two columns */ | ||
| max-width: 1200px; | ||
| max-width: 1250px; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why did we increase this by 50px?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Uncompressed Size was wrapping to two lines, so this lets the cards expand a bit more |
||
| padding: 20px; | ||
| gap: 20px; | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧹 Nitpick (assertive)
Ensure consistent import paths
Using relative imports can become brittle as the directory structure evolves. If your project is configured with path aliases (e.g.,
@/pages/...), consider switching to absolute imports for better maintainability.🤖 Prompt for AI Agents