- Updated `evofw-firewall.sh` and related scripts to replace `policy_mode` with `default_action`, enhancing clarity and consistency in policy management. - Adjusted agent routes and evaluation logic to accommodate the new default action structure, ensuring backward compatibility with legacy modes. - Enhanced tests to validate the new default action behavior and its integration within the agent policy framework. - Refactored related components in the web interface to align with the updated policy handling, improving user experience and reducing confusion around policy modes.
28 lines
792 B
TypeScript
28 lines
792 B
TypeScript
import { Shield } from 'lucide-react'
|
|
import { cn } from '@evofw/ui/lib/utils'
|
|
import { Item, ItemMedia } from '@evofw/ui/components/item'
|
|
|
|
type PolicySetIconProps = {
|
|
className?: string
|
|
}
|
|
|
|
/**
|
|
* KPI-style tile for policy set rows.
|
|
* Preview DNA: https://reui.io/preview/base/stats-12
|
|
*/
|
|
export function PolicySetIcon({ className }: PolicySetIconProps) {
|
|
return (
|
|
<Item
|
|
className={cn(
|
|
'border-background bg-muted text-muted-foreground flex size-10.5 shrink-0 items-center justify-center border-2 p-0 shadow-[0_1px_3px_0_rgba(0,0,0,0.14)] dark:border [&_svg]:size-4',
|
|
className,
|
|
)}
|
|
aria-label="Набор правил"
|
|
>
|
|
<ItemMedia variant="icon" className="size-auto">
|
|
<Shield aria-hidden />
|
|
</ItemMedia>
|
|
</Item>
|
|
)
|
|
}
|