GLS Registry

Label Requests List

Filtered list of label requests with pending actions and an automatic-source note popover.

Últimas Solicitudes

  • Solicitud #S6765

    Creada el 7 may 2026

  • Solicitud #S6766

    Cancelada el 7 may 2026

    Cancelada
  • Solicitud #S6767

    Recibida el 6 may 2026

    Recibida
  • Solicitud #S6768

    Creada manualmente el 8 may 2026

  • Solicitud #S6769

    Recibida el 4 may 2026

    Recibida
  • Solicitud #S6770

    Cancelada el 3 may 2026

    Cancelada
  • Solicitud #S6771

    Creada el 8 may 2026

  • Solicitud #S6772

    Recibida el 30 abr 2026

    Recibida

Installation

pnpm dlx shadcn@latest add @ecodeliver/label-requests-list

Usage

Pass the full requests array. Status filtering is owned inside the component (all or a LabelRequestStatus). Pending rows expose cancel / mark-received actions. Automatic pending requests underline “automáticamente” to open the Nota popover (auto-send below 20% remaining).

import { LabelRequestsList } from "@/components/registry/label-requests-list";
import { labelRequests } from "@/mocks";

export function Example() {
  return (
    <LabelRequestsList
      requests={labelRequests}
      onCancel={(id) => {}}
      onMarkReceived={(id) => {}}
    />
  );
}

Display

  • Title: Solicitud #{id}
  • Pending automatic: “Creada automáticamente el …” with Nota popover
  • Pending manual: “Creada manualmente el …”
  • Cancelled / received: status badge + status subtitle (updatedAt via PP + es)

Filters (UI labels in Spanish): Todas, Pendientes, Canceladas, Recibidas. Every request requires a reason (few_labels | damaged | not_received).

API Reference

LabelRequestsList

PropTypeDefault
requestsLabelRequest[]-
onCancel(id: string) => void-
onMarkReceived(id: string) => void-

LabelRequest

PropTypeDefault
idstring-
status"pending" | "cancelled" | "received"-
source"automatic" | "manual"-
updatedAtstring-
reason"few_labels" | "damaged" | "not_received"-

On this page