import { useState } from 'react'; import { Bot, Activity, Check, Clock, Plus, Sparkles } from "lucide-react"; import Button from "@/components/common/button"; import StatCard from "@/components/common/dashStatCard"; import InfoBanner from '@/components/common/infoBanner'; import Table from '@/components/common/dataTable'; import { auditheaders, auditrows } from '@/constants/tabledata'; export default function WorkFlowAutomationPortal() { return (
{/* --- HEADER SECTION --- */}
APPLE ONE — HQ TOWER CONFIGURE AUTOMATION

Workflow automation

Build if-this-then-that rules for approvals, dispatch and escalation without code — the same engine competitors gate behind IT change requests.

{/* --- HEADER BUTTONS --- */}
{/* --- STAT CARDS --- */}
{/* Card 1: Active automations */} {/* Card 2: Runs this month */} {/* Card 3: Tasks auto-handled */} {/* Card 4: Time saved */}
{/* --- RULE BUILDER HEADER SECTION --- */}

Rule builder

trigger → condition → action
{/* WHEN Step */}
WHEN
{/* IF Step */}
IF
{/* THEN Step */}
THEN
{/* Add Step Button */}
{/* --- AUTOMATION RULE CARDS LIST --- */}
{/* Rule 1 */}

Auto-dispatch critical breakdowns

WHEN Request raised IF Criticality = Critical THEN Assign to on-call M&E + notify supervisor

Active

12 runs

{/* Rule 2 */}

SLA breach escalation

WHEN SLA timer > 90% IF Status ≠ Completed THEN Escalate to L2 + email FM lead

Active

5 runs

{/* Rule 3 */}

PPM from health alert

WHEN Asset health < 58 IF No open PM THEN Raise condition-based PM work order

Active

8 runs

{/* Rule 4 */}

Low-stock reorder

WHEN Stock ≤ minimum IF Item is consumable THEN Draft purchase request to store

Paused

0 runs

{/* Rule 5 */}

Visitor pre-approval

WHEN Visitor invited IF Host confirmed THEN Issue QR pass + notify security

Active

23 runs

); }