{
        "title": "Products",
        "modulePath": "inventory/products",
        "header": [
            {
                "type": "button",
                "label": "New Product",
                "icon": "fa-plus",
                "class": "btn btn-primary",
                "action": {
                    "handler": "openProductForm"
                },
                "ariaLabel": "Create new product"
            },
            {
                "type": "filter-select",
                "options": {
                    "data_column": "is_active",
                    "label": "Status",
                    "options": [
                        {"label": "All", "value": ""},
                        {"label": "Active", "value": "true"},
                        {"label": "Inactive", "value": "false"}
                    ]
                }
            }
        ],
        "body": [
            {
                "type": "table",
                "id": "productsTable",
                "options": {
                    "tableName": "products",
                    "showGlobalSearch": true,
                    "columnsToShow": ["name", "sku", "price", "tax_rate", "is_active"],
                    "columnLabels": {
                        "name": "Name",
                        "sku": "SKU",
                        "price": "Price",
                        "tax_rate": "Tax Rate",
                        "is_active": "Active"
                    },
                    "rowActions": [
                        {
                            "label": "Edit",
                            "icon": "fa-edit",
                            "class": "btn btn-info btn-xs",
                            "action": {
                                "handler": "openProductForm"
                            }
                        },
                        {
                            "label": "Activate",
                            "icon": "fa-check",
                            "class": "btn btn-success btn-xs",
                            "action": "products:activate",
                            "condition": "is_active == false"
                        },
                        {
                            "label": "Deactivate",
                            "icon": "fa-ban",
                            "class": "btn btn-warning btn-xs",
                            "action": "products:deactivate",
                            "condition": "is_active == true"
                        },
                        {
                            "label": "Delete",
                            "icon": "fa-trash",
                            "class": "btn btn-error btn-xs",
                            "action": "records:delete",
                            "confirm": "Delete this product?"
                        }
                    ]
                }
            }
        ],
        "footer": [
            {
                "type": "button",
                "label": "Close",
                "class": "btn btn-ghost",
                "action": "close"
            }
        ],
        "dataSources": {
            "products": {
                "table": "products",
                "syncPolicy": "default",
                "autoRefresh": true
            }
        }
    }