chore: wire Carplace into dev and production stacks
Build & Deploy / Build & Push Docker Image (push) Successful in 2m55s
Test / Type Check (all packages) (push) Successful in 54s
Build & Deploy / Deploy to VPS (push) Successful in 4s
Test / API Unit Tests (push) Failing after 48s
Test / Homepage Unit Tests (push) Successful in 43s
Test / Storefront Unit Tests (push) Failing after 40s
Test / Admin Unit Tests (push) Successful in 40s
Test / Dashboard Unit Tests (push) Failing after 42s
Test / API Integration Tests (push) Successful in 1m0s

This commit is contained in:
root
2026-07-02 18:15:42 -04:00
parent ad5f5ebab7
commit 7ff2dbb139
214 changed files with 5258 additions and 5906 deletions
@@ -113,7 +113,7 @@ function offerToForm(o: Offer): FormState {
const copy = {
en: {
title: 'Offers',
subtitle: 'Promotions shown on your site and optionally on the storefront.',
subtitle: 'Promotions shown on your site and optionally on Carplace.',
createOffer: 'Create Offer',
editOffer: 'Edit Offer',
deleteOffer: 'Delete Offer',
@@ -126,7 +126,7 @@ const copy = {
ends: 'ends',
active: 'Active',
inactive: 'Inactive',
storefront: 'Storefront',
carplace: 'Carplace',
featured: 'Featured',
empty: 'No offers yet. Create your first offer to attract customers.',
labelTitle: 'Title *',
@@ -146,7 +146,7 @@ const copy = {
labelValidFrom: 'Valid From *',
labelValidUntil: 'Valid Until *',
labelIsActive: 'Active',
labelIsPublic: 'Show on storefront',
labelIsPublic: 'Show on Carplace',
labelIsFeatured: 'Featured',
typePERCENTAGE: 'Percentage (%)',
typeFIXED_AMOUNT: 'Fixed Amount (MAD)',
@@ -174,7 +174,7 @@ const copy = {
},
fr: {
title: 'Offres',
subtitle: 'Promotions affichées sur votre site et éventuellement sur la storefront.',
subtitle: 'Promotions affichées sur votre site et éventuellement sur Carplace.',
createOffer: 'Créer une offre',
editOffer: "Modifier l'offre",
deleteOffer: "Supprimer l'offre",
@@ -187,7 +187,7 @@ const copy = {
ends: 'expire le',
active: 'Actif',
inactive: 'Inactif',
storefront: 'Storefront',
carplace: 'Carplace',
featured: 'Mise en avant',
empty: 'Aucune offre. Créez votre première offre pour attirer des clients.',
labelTitle: 'Titre *',
@@ -207,7 +207,7 @@ const copy = {
labelValidFrom: 'Valable du *',
labelValidUntil: "Valable jusqu'au *",
labelIsActive: 'Actif',
labelIsPublic: 'Afficher sur la storefront',
labelIsPublic: 'Afficher sur Carplace',
labelIsFeatured: 'Mise en avant',
typePERCENTAGE: 'Pourcentage (%)',
typeFIXED_AMOUNT: 'Montant fixe (MAD)',
@@ -248,7 +248,7 @@ const copy = {
ends: 'تنتهي في',
active: 'نشط',
inactive: 'غير نشط',
storefront: 'السوق',
carplace: 'Carplace',
featured: 'مميز',
empty: 'لا توجد عروض بعد. أنشئ أول عرض لجذب العملاء.',
labelTitle: 'العنوان *',
@@ -514,7 +514,7 @@ export default function OffersPage() {
)}
<div className="flex flex-wrap gap-2">
{offer.isPublic && <span className="badge-blue">{t.storefront}</span>}
{offer.isPublic && <span className="badge-blue">{t.carplace}</span>}
{offer.isFeatured && <span className="badge-purple">{t.featured}</span>}
{offer.promoCode && <span className="badge-amber">{offer.promoCode}</span>}
{typeof offer.redemptionCount === 'number' && (