Apps ›  IA Analytics Pro
tiendamg.myshopify.com
MG
IA Analytics Pro
Dashboard
En vivo · Actualizado hace 2 min
Resumen de hoy
Ventas
€ 1.284
↑ +12% vs ayer
Pedidos
47
↑ +8% vs ayer
Conversión
3,2%
↑ +0,4 pts
Ticket medio
€ 27,32
↓ -1,2% vs ayer
Top productos del día
Producto Unidades Revenue
1 Bolso Piel Napa Camel
14 uds. € 686,00
2 Sneakers Blancas Classic
11 uds. € 549,00
3 Cinturón Cuero Negro
9 uds. € 179,91
Acciones
Código generado con skill shopify-polaris-app-home
IAAnalyticsDashboard.tsx
import { useAppBridge } from "@shopify/app-bridge-react";

export default function IAAnalyticsDashboard() {
  return (
    <s-page heading="IA Analytics Pro" inlineSize="base">

      {"// Alertas IA — s-banner con tone warning/info"}
      <s-banner heading="Stock bajo detectado" tone="warning" dismissible>
        3 productos con stock crítico — revisa inventario.
      </s-banner>

      {"// Métricas — s-section + s-grid + s-box"}
      <s-section heading="Resumen de hoy">
        <s-grid gridTemplateColumns="1fr 1fr 1fr 1fr" gap="base">
          <s-box padding="base" background="subdued" borderRadius="base">
            <s-heading>€ 1.284</s-heading>
            <s-badge tone="success">+12% vs ayer</s-badge>
          </s-box>
          {"// ... más métricas"}
        </s-grid>
      </s-section>

      {"// Tabla — s-table + s-table-header-row + s-table-body"}
      <s-section heading="Top productos del día">
        <s-table variant="auto">
          <s-table-header-row>
            <s-table-header listSlot="primary">Producto</s-table-header>
            <s-table-header listSlot="labeled">Unidades</s-table-header>
            <s-table-header listSlot="labeled" format="currency">Revenue</s-table-header>
          </s-table-header-row>
        </s-table>
      </s-section>

      {"// Acciones — s-button-group"}
      <s-button-group gap="base">
        <s-button variant="primary">Ver informe completo</s-button>
        <s-button variant="secondary">Configurar IA</s-button>
      </s-button-group>

    </s-page>
  );
}
C

CULTIVA IA — Desarrollo Shopify Apps

Interfaces embebidas en el admin de Shopify usando Polaris App Home (s-* web components)

shopify-polaris-app-home