fix(flows): CSS display conflict, addFlowCard, endpoint CRUD, menu re-send, URL vars
- Fix display:none vs display:flex conflict in PHP flow card rendering (sections were always visible)
- Add addFlowCard() JS function that properly inserts new flow cards into the PHP form
- Fix flowTabChange() to use block vs flex display correctly per section type
- Rewrite endpoints tab as full CRUD table (add/edit/delete) with name, direction, active toggle
- Add companyEndpointDelete() handler and route
- Update companyEndpointSave() to handle ep_id, name, params, is_active fields
- Add company_endpoints columns: name, params
- Add saveEpRow/testEpRow/deleteEpRow/addNewEp JS functions
- NormalBot: set __greeted sentinel after showing greeting menu to prevent re-send on every message
- NormalBot: add substituteUrlVars() to replace {param} tokens in endpoint URLs with collected metadata
- DB: submenu_ciclos_sanidad (4 items) → list; prod_kilos_finca endpoint linked; all >3-button menus → list
- DB: fincas_list endpoint activated
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
eeda883bd9
commit
2c0ac04993
+3
-2
@@ -274,8 +274,9 @@ $routes = [
|
||||
['POST', '/admin/company/phones/sync', fn() => DashboardController::companyPhonesSync()],
|
||||
|
||||
// ─── Endpoints API por empresa ─────────────────────────────────────────
|
||||
['POST', '/admin/company/endpoint/save', fn() => DashboardController::companyEndpointSave()],
|
||||
['POST', '/admin/company/endpoint/test', fn() => DashboardController::companyEndpointTest()],
|
||||
['POST', '/admin/company/endpoint/save', fn() => DashboardController::companyEndpointSave()],
|
||||
['POST', '/admin/company/endpoint/test', fn() => DashboardController::companyEndpointTest()],
|
||||
['POST', '/admin/company/endpoint/delete', fn() => DashboardController::companyEndpointDelete()],
|
||||
|
||||
// ─── Admin: listar pendientes de aprobación ─────────────────────────────
|
||||
['GET', '/admin/pending-list', fn() => DashboardController::pendingList()],
|
||||
|
||||
Reference in New Issue
Block a user