wip: receiving dashboard, customer records, archive old 2-level paths, various fixes

This commit is contained in:
vagrant
2026-05-28 03:30:45 +00:00
parent d4ed4b1d89
commit 6fe6d61779
141 changed files with 4247 additions and 1175 deletions
@@ -0,0 +1,30 @@
frappe.pages["wes-ai"].on_page_load = function(wrapper) {
var page = frappe.ui.make_app_page({
parent: wrapper,
title: "Wes AI Assistant",
single_column: true
});
// Create iframe that embeds Wes AI
var $container = $(wrapper).find(".layout-main-section");
$container.css({
"position": "relative",
"overflow": "hidden"
});
// Determine Wes URL based on environment
var wes_url = "https://wes.advante.ch";
// On production VM, Wes runs locally
if (window.location.hostname === "erpnext.local" || window.location.hostname === "localhost") {
wes_url = "http://localhost:8082";
}
var $iframe = $('<iframe>', {
src: wes_url,
style: "width: 100%; height: calc(100vh - 120px); border: none; border-radius: 4px;",
id: "wes-ai-iframe"
});
$container.empty().append($iframe);
};