Sacar pestaña Test del admin

- Borrado public/components/test-panel.js + su nav button + su rango de
  router + sus rutas /test/products-with-stock y /test/order.
- Borrados handleGetProductsWithStock + handleCreateTestOrder y los
  api wrappers getProductsWithStock + createTestOrder. Ya no se usan en
  ningún flujo: pruebas de bot se hacen vía simulator.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Lucas Tettamanti
2026-05-02 17:29:20 -03:00
parent c93955fa55
commit 3c70eb5ff7
8 changed files with 3 additions and 501 deletions

View File

@@ -234,18 +234,6 @@ export const api = {
return this.listOrders({ page: 1, limit });
},
async getProductsWithStock() {
return fetch("/test/products-with-stock").then(r => r.json());
},
async createTestOrder({ basket, address, wa_chat_id }) {
return fetch("/test/order", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ basket, address, wa_chat_id }),
}).then(r => r.json());
},
// --- Prompts CRUD ---
async prompts() {
return fetch("/prompts").then(r => r.json());

View File

@@ -16,7 +16,6 @@ const ROUTES = [
{ pattern: /^\/cantidades$/, view: "quantities", params: [] },
{ pattern: /^\/pedidos$/, view: "orders", params: [] },
{ pattern: /^\/pedidos\/([^/]+)$/, view: "orders", params: ["id"] },
{ pattern: /^\/test$/, view: "test", params: [] },
{ pattern: /^\/config-prompts$/, view: "prompts", params: [] },
{ pattern: /^\/atencion-humana$/, view: "takeovers", params: [] },
{ pattern: /^\/configuracion$/, view: "settings", params: [] },
@@ -33,7 +32,6 @@ const VIEW_TO_PATH = {
crosssell: "/crosssell",
quantities: "/cantidades",
orders: "/pedidos",
test: "/test",
prompts: "/config-prompts",
takeovers: "/atencion-humana",
settings: "/configuracion",