Replace BPS Excel stub with multi-client calendar template.

Official download now generates a blank workbook with catalog autofill, notas_internas ignored on import, and the same template for every tenant.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
4Ventures
2026-10-08 17:38:38 +02:00
parent 025fc85175
commit 501f8203e8
8 changed files with 2999 additions and 34 deletions

View File

@@ -56,23 +56,26 @@ export default function CalendarUpload({
Subir calendario (CSV, Excel o JSON)
</h3>
<p className="text-xs text-gray-500 mt-1">
Plantilla oficial: Excel por mes con filas SEMANA / Story / POST
(como Brava Octubre). También CSV con columnas fecha + título. Si
el mes ya existía, se reemplaza.
Plantilla oficial multi-cliente: escribe{' '}
<strong>fecha + nombre_publicacion</strong> y se rellenan
plataforma, formato, pilar, hora y CTA. Usa{' '}
<strong>notas_internas</strong> para WhatsApp / PENDIENTE (nunca van
al caption). Misma plantilla para todos los clientes
{tenantLabel ? ` · ahora: ${tenantLabel}` : ''}.
</p>
</div>
<div className="flex flex-wrap items-center gap-2">
<a
href="/plantillas/calendario-rrss-oficial.xlsx"
href="/api/calendar/template?format=xlsx"
className="rounded-xl border border-gray-200 bg-white px-3 py-2 text-xs font-semibold text-gray-700 hover:border-brand-300"
>
Plantilla Excel (oficial)
</a>
<a
href="/api/calendar/upload"
href="/api/calendar/template?format=csv"
className="rounded-xl border border-gray-200 bg-white px-3 py-2 text-xs font-semibold text-gray-500 hover:border-brand-300"
>
CSV alternativo
CSV / Google Sheets
</a>
<button
type="button"