{
        "type": "dashboard",
        "layout": "grid",
        "refreshInterval": 30000,
        "widgets": [
            {
                "id": "stats_overview",
                "type": "stats",
                "title": "Submission Overview",
                "size": "full",
                "dataSource": "/api/taxcore/dashboard-stats/{org_id}",
                "stats": [
                    {
                        "key": "total_submissions",
                        "label": "Total Submissions",
                        "icon": "fa-file-alt",
                        "color": "primary"
                    },
                    {
                        "key": "successful",
                        "label": "Successful",
                        "icon": "fa-check-circle",
                        "color": "success",
                        "percentage": "total_submissions"
                    },
                    {
                        "key": "failed",
                        "label": "Failed",
                        "icon": "fa-times-circle",
                        "color": "error",
                        "percentage": "total_submissions",
                        "alert": {
                            "threshold": 5,
                            "message": "High failure rate"
                        }
                    },
                    {
                        "key": "pending",
                        "label": "Pending",
                        "icon": "fa-clock",
                        "color": "warning"
                    }
                ]
            },
            {
                "id": "success_rate",
                "type": "gauge",
                "title": "Success Rate",
                "size": "half",
                "dataSource": "/api/taxcore/dashboard-stats/{org_id}",
                "calculate": "(successful / total_submissions) * 100",
                "format": "percentage",
                "ranges": [
                    {"min": 0, "max": 70, "color": "error", "label": "Poor"},
                    {"min": 70, "max": 90, "color": "warning", "label": "Fair"},
                    {"min": 90, "max": 100, "color": "success", "label": "Excellent"}
                ]
            },
            {
                "id": "total_amount",
                "type": "metric",
                "title": "Total Amount Submitted",
                "size": "half",
                "dataSource": "/api/taxcore/dashboard-stats/{org_id}",
                "metric": "total_amount_submitted",
                "format": "currency",
                "icon": "fa-dollar-sign",
                "trend": {
                    "enabled": true,
                    "comparison": "previous_period"
                }
            },
            {
                "id": "retry_queue",
                "type": "alert",
                "title": "Retry Queue",
                "size": "full",
                "dataSource": "/api/taxcore/dashboard-stats/{org_id}",
                "alerts": [
                    {
                        "key": "queued_for_retry",
                        "label": "Submissions Queued",
                        "icon": "fa-redo",
                        "severity": "info",
                        "condition": "queued_for_retry > 0"
                    },
                    {
                        "key": "max_retries_exceeded",
                        "label": "Max Retries Exceeded",
                        "icon": "fa-exclamation-triangle",
                        "severity": "error",
                        "condition": "max_retries_exceeded > 0",
                        "action": {
                            "label": "View Submissions",
                            "link": "/taxcore/submissions?status=failed"
                        }
                    }
                ]
            },
            {
                "id": "recent_submissions",
                "type": "list",
                "title": "Recent Submissions",
                "size": "full",
                "dataSource": {
                    "url": "/api/taxcore/submission-history/{org_id}",
                    "params": {"limit": 10, "offset": 0}
                },
                "columns": [
                    {"key": "invoice_number", "label": "Invoice #"},
                    {"key": "status", "label": "Status", "type": "badge"},
                    {"key": "total_amount", "label": "Amount", "type": "currency"},
                    {"key": "created_at", "label": "Time", "type": "datetime"}
                ],
                "actions": [
                    {"label": "View All", "link": "/taxcore/submissions"}
                ]
            },
            {
                "id": "submission_trend",
                "type": "chart",
                "title": "Submission Trend (7 Days)",
                "size": "full",
                "chartType": "line",
                "dataSource": "/api/taxcore/submission-trend/{org_id}?days=7",
                "xAxis": "date",
                "yAxis": [
                    {"key": "success", "label": "Successful", "color": "#10b981"},
                    {"key": "failed", "label": "Failed", "color": "#ef4444"}
                ]
            }
        ],
        "actions": [
            {
                "label": "View All Submissions",
                "icon": "fa-list",
                "link": "/taxcore/submissions"
            },
            {
                "label": "Configuration",
                "icon": "fa-cog",
                "link": "/taxcore/configuration"
            }
        ]
    }