Feat/reports v2/standardize block design (#32936)

* Standardize block designs

* Clean up

* Add warning threshold colors for infra-monitoring stats

* Address all other comments

* Swap create custom report to use PUT
This commit is contained in:
Joshen Lim
2025-01-21 20:56:13 +08:00
committed by GitHub
parent fb569f9a13
commit 3440dc9c95
21 changed files with 439 additions and 128 deletions

View File

@@ -49,7 +49,14 @@ export const BlockViewConfiguration = ({
</PopoverTrigger_Shadcn_>
<PopoverContent_Shadcn_ side="bottom" align="center" className="w-[240px] p-3">
<form className="grid gap-2">
<ToggleGroup type="single" value={view} className="w-full" onValueChange={changeView}>
<ToggleGroup
type="single"
value={view}
className="w-full"
onValueChange={(view: 'chart' | 'table') => {
if (view) changeView(view)
}}
>
<ToggleGroupItem className="w-full" value="table" aria-label="Show as table">
<Table className="h-4 w-4" />
<p className="text-xs ml-2">As table</p>