diff --git a/uberleben_custom/fixtures/custom_html_block.json b/uberleben_custom/fixtures/custom_html_block.json new file mode 100644 index 0000000..4198f16 --- /dev/null +++ b/uberleben_custom/fixtures/custom_html_block.json @@ -0,0 +1,13 @@ +[ + { + "docstatus": 0, + "doctype": "Custom HTML Block", + "html": "
\n \n
", + "modified": "2025-10-27 10:06:13.157675", + "name": "Inventory Status Workspace", + "private": 0, + "roles": [], + "script": "let container = root_element.querySelector('#inv-workspace');\n\ncontainer.textContent = \"Hello, World!\";", + "style": null + } +] \ No newline at end of file diff --git a/uberleben_custom/hooks.py b/uberleben_custom/hooks.py index 6297265..7f7223f 100644 --- a/uberleben_custom/hooks.py +++ b/uberleben_custom/hooks.py @@ -25,7 +25,8 @@ add_to_apps_screen = [ # ------------------ fixtures = [ - {"doctype": "Client Script", "filters": [["module", "=", "Uberleben Customizations"]]} + {"doctype": "Client Script", "filters": [["module", "=", "Uberleben Customizations"]]}, + "Custom HTML Block" ] # Includes in diff --git a/uberleben_custom/uberleben_customizations/workspace/inventory_status/inventory_status.json b/uberleben_custom/uberleben_customizations/workspace/inventory_status/inventory_status.json new file mode 100644 index 0000000..0edd2bc --- /dev/null +++ b/uberleben_custom/uberleben_customizations/workspace/inventory_status/inventory_status.json @@ -0,0 +1,34 @@ +{ + "charts": [], + "content": "[{\"id\":\"c_aCnjNdI7\",\"type\":\"header\",\"data\":{\"text\":\"Inventory Status\",\"col\":12}},{\"id\":\"5Fb6hSw9u0\",\"type\":\"custom_block\",\"data\":{\"custom_block_name\":\"Inventory Status Workspace\",\"col\":12}}]", + "creation": "2025-10-27 10:03:13.402465", + "custom_blocks": [ + { + "custom_block_name": "Inventory Status Workspace", + "label": "Inventory Status Workspace" + } + ], + "docstatus": 0, + "doctype": "Workspace", + "for_user": "", + "hide_custom": 0, + "icon": "stock", + "idx": 0, + "indicator_color": "", + "is_hidden": 0, + "label": "Inventory Status", + "links": [], + "modified": "2025-10-27 10:46:51.991963", + "modified_by": "Administrator", + "module": "Uberleben Customizations", + "name": "Inventory Status", + "number_cards": [], + "owner": "Administrator", + "parent_page": "", + "public": 1, + "quick_lists": [], + "roles": [], + "sequence_id": 2.0, + "shortcuts": [], + "title": "Inventory Status" +} \ No newline at end of file