Deploy ProFlo shop, admin, cashier + API (Docker Space)
Browse filesFiles changed (39)
- README.md+6-6
- apps/admin-web/.env.example+1-1
- apps/admin-web/app/admin/dashboard/page.tsx+1-1
- apps/admin-web/app/admin/page.tsx+1-1
- apps/admin-web/app/globals.css+1-1
- apps/admin-web/app/layout.tsx+2-2
- apps/admin-web/app/page.tsx+1-1
- apps/admin-web/lib/apparel.ts+1-1
- apps/admin-web/lib/receipt.ts+3-3
- apps/admin-web/next-env.d.ts+1-1
- apps/cashier-web/app/gate/page.tsx+1-1
- apps/cashier-web/app/layout.tsx+2-2
- apps/cashier-web/app/page.tsx+2-2
- apps/cashier-web/next-env.d.ts+1-1
- apps/customer-web/.env.example+2-2
- apps/customer-web/app/globals.css+1-1
- apps/customer-web/app/layout.tsx+1-1
- apps/customer-web/app/page.tsx+2-2
- apps/customer-web/app/shop/components/ShopShell.tsx+4-4
- apps/customer-web/app/shop/context/ShopContext.tsx+3-3
- apps/customer-web/app/shop/lib/apparel.ts+1-1
- apps/customer-web/app/shop/lib/receiptDownload.ts+3-3
- apps/customer-web/app/shop/page.tsx+3-3
- apps/customer-web/lib/cartBackup.ts+1-1
- apps/customer-web/lib/offlineCartQueue.ts+1-1
- apps/customer-web/next-env.d.ts+1-1
- deploy/huggingface-admin/Dockerfile+1-1
- deploy/huggingface-admin/README.md+3-3
- deploy/huggingface-admin/push.ps1+6-6
- deploy/huggingface-cashier/Dockerfile+1-1
- deploy/huggingface-cashier/README.md+3-3
- deploy/huggingface-cashier/push.ps1+6-6
- deploy/huggingface/README.md+6-6
- deploy/huggingface/push.ps1+5-5
- package.json+1-1
- packages/shared/src/apparel.ts+1-1
- render.yaml+1-1
- services/api/.env.example+2-2
- services/api/src/index.ts+3-3
1223453 unmodified lines91011121213141516171819201819202122234 unmodified lines2829303131323334---title: SeamLinetitle: ProFloemoji: 🛒colorFrom: greencolorTo: blue3 unmodified linespinned: false---
# SeamLine — Full checkout platform# ProFlo — Full checkout platform
All apps run in one Docker Space behind nginx on port **7860**.
| App | URL ||-----|-----|| Customer shop | [/shop](https://adi576-seamline.hf.space/shop) || Admin HQ | [/admin](https://adi576-seamline.hf.space/admin) || Cashier terminal | [/cashier](https://adi576-seamline.hf.space/cashier) || Customer shop | [/shop](https://adi576-proflo.hf.space/shop) || Admin HQ | [/admin](https://adi576-proflo.hf.space/admin) || Cashier terminal | [/cashier](https://adi576-proflo.hf.space/cashier) || API (proxied) | `/checkout-api` |
## Required secrets4 unmodified lines| `JWT_SECRET` | Long random string || `ADMIN_USERNAME` / `ADMIN_PASSWORD` | Staff login || `MANAGER_USERNAME` / `MANAGER_PASSWORD` | Manager login || `PUBLIC_API_URL` | `https://adi576-seamline.hf.space/checkout-api` || `PUBLIC_API_URL` | `https://adi576-proflo.hf.space/checkout-api` |
Optional: `DEFAULT_STORE_CODE`, `CASHIER_API_KEY` (+ same value as `NEXT_PUBLIC_CASHIER_API_KEY` at build if you protect cashier routes).
12334NEXT_PUBLIC_API_BASE_URL=http://localhost:4000
# Vercel: API_PROXY_TARGET=https://seamline.onrender.com# Vercel: API_PROXY_TARGET=https://proflo.onrender.com# Vercel: NEXT_PUBLIC_API_BASE_URL=/checkout-api1240 unmodified lines124112421243124412441245124612471240 unmodified lines
<label className="field"> <span>Brand</span> <input value={brand} onChange={(e) => setBrand(e.target.value)} placeholder="e.g. SeamLine Basics" /> <input value={brand} onChange={(e) => setBrand(e.target.value)} placeholder="e.g. ProFlo Basics" /> </label>
<label className={`field${formErrors.category ? " field--invalid" : ""}`}>48 unmodified lines495051525253545548 unmodified lines return ( <main className="loginPage"> <div className="loginCard"> <h1 className="loginTitle">SeamLine HQ</h1> <h1 className="loginTitle">ProFlo HQ</h1> <p className="loginHint">Sign in to the operations console</p>
<form onSubmit={(e) => void onSubmit(e)} className="loginForm">1525 unmodified lines152615271528152915291530153115321525 unmodified lines}
/* ========================================================================== SeamLine Operations Sidebar & Mobile Responsive Layout Redesign ProFlo Operations Sidebar & Mobile Responsive Layout Redesign ========================================================================== */
/* Layout structure */2 unmodified lines345676789102 unmodified linesimport "./globals.css";
export const metadata: Metadata = { title: "SeamLine HQ", description: "SeamLine operations console" title: "ProFlo HQ", description: "ProFlo operations console"};
export default function RootLayout({ children }: { children: ReactNode }) {2 unmodified lines345667892 unmodified linesexport default function Home() { return ( <main className="adminHome"> <h1 className="adminHome__title">SeamLine HQ</h1> <h1 className="adminHome__title">ProFlo HQ</h1> <p className="adminHome__text">Operations console for catalogue, counter tokens, receipts, and store KPIs.</p> <Link href="/admin" className="adminHome__link"> Open admin sign-in55 unmodified lines565758595955 unmodified lines
export const APPAREL_SEASONS = ["", "SS26", "AW26", "Core", "Clearance"] as const;
export const BRAND_NAME = "SeamLine";export const BRAND_NAME = "ProFlo";40 unmodified lines41424344444546474 unmodified lines525354555556575812 unmodified lines717273747475767740 unmodified lines "<!DOCTYPE html>", '<html lang="en">', '<head><meta charset="utf-8"/>', `<title>SeamLine receipt ${escapeHtml(receipt.receiptNumber)}</title>`, `<title>ProFlo receipt ${escapeHtml(receipt.receiptNumber)}</title>`, "<style>", "body{font-family:system-ui,sans-serif;max-width:420px;margin:24px auto;color:#0f172a}", "h1{font-size:1.25rem;margin:0 0 4px}",4 unmodified lines ".totals div{display:flex;justify-content:space-between;padding:4px 0}", ".grand{font-weight:700;font-size:1.1rem;border-top:2px solid #0f172a;padding-top:8px;margin-top:8px}", "</style></head><body>", "<h1>SeamLine</h1>", "<h1>ProFlo</h1>", `<p class="meta">Receipt ${escapeHtml(receipt.receiptNumber)} · ${escapeHtml(receipt.storeCode)}<br>${when}</p>`, `<table><tbody>${rows}</tbody></table>`, '<div class="totals">',12 unmodified lines const url = URL.createObjectURL(blob); const a = document.createElement("a"); a.href = url; a.download = `seamline-receipt-${receipt.receiptNumber.replace(/[^a-zA-Z0-9_-]/g, "")}.html`; a.download = `proflo-receipt-${receipt.receiptNumber.replace(/[^a-zA-Z0-9_-]/g, "")}.html`; a.click(); URL.revokeObjectURL(url);}1233456/// <reference types="next" />/// <reference types="next/image-types/global" />import "./.next/dev/types/routes.d.ts";import "./.next/types/routes.d.ts";
// NOTE: This file should not be edited// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.48 unmodified lines495051525253545548 unmodified lines return ( <div className="shell"> <header className="header"> <p className="header__eyebrow">SeamLine</p> <p className="header__eyebrow">ProFlo</p> <h1 className="header__title">Exit gate</h1> <p className="header__sub">Scan the customer's exit QR after they have paid. Each code works once.</p> <Link href="/" className="gateBack">2 unmodified lines345676789102 unmodified linesimport "./globals.css";
export const metadata: Metadata = { title: "SeamLine Counter", description: "SeamLine cashier terminal" title: "ProFlo Counter", description: "ProFlo cashier terminal"};
export default function RootLayout({ children }: { children: ReactNode }) {2 unmodified lines34566789183 unmodified lines1931941951961961971981992 unmodified linesimport { useCallback, useEffect, useState } from "react";import Link from "next/link";import { apiBase, cashierHeaders } from "../lib/api";const RECENT_KEY = "seamline-cashier-recent";const RECENT_KEY = "proflo-cashier-recent";const MAX_RECENT = 8;
type OrderLine = {183 unmodified lines return ( <div className="shell"> <header className="header"> <p className="header__eyebrow">SeamLine</p> <p className="header__eyebrow">ProFlo</p> <h1 className="header__title">Counter</h1> <p className="header__sub"> Look up queue tokens or order IDs, verify the basket, then settle cash or card at the till.1233456/// <reference types="next" />/// <reference types="next/image-types/global" />import "./.next/dev/types/routes.d.ts";import "./.next/types/routes.d.ts";
// NOTE: This file should not be edited// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.1 unmodified line23455678891 unmodified line
# --- Vercel production (avoids Brave/ad-block on onrender.com) ---# Set on Vercel (customer-web project):# API_PROXY_TARGET=https://seamline.onrender.com# API_PROXY_TARGET=https://proflo.onrender.com# NEXT_PUBLIC_API_BASE_URL=/checkout-api# On Render API, set PUBLIC_API_URL to:# https://seamline-customer-web.vercel.app/checkout-api# https://proflo-customer-web.vercel.app/checkout-api# (so product image URLs load on the same origin)2398 unmodified lines239924002401240224022403240424052398 unmodified lines}
/* ========================================================================== SeamLine Luxury Boutique Styling & Variant Selection Styles ProFlo Luxury Boutique Styling & Variant Selection Styles ========================================================================== */
/* Modern layout and font adjustments */2 unmodified lines345667892 unmodified linesimport "./globals.css";
export const metadata: Metadata = { title: "SeamLine", title: "ProFlo", description: "Fashion & merchandising at the speed of scan."};
2 unmodified lines34566788910112 unmodified linesexport default function Home() { return ( <main className="landing"> <p className="landing__eyebrow">SeamLine</p> <p className="landing__eyebrow">ProFlo</p> <h1 className="landing__title"> <span className="brandZipp">Seam in.</span> <span className="brandMart">Style out.</span> <span className="brandZipp">Scan in.</span> <span className="brandMart">Style out.</span> </h1> <p className="landing__text">Scan the store QR, grab what you need, and bounce — your bag stays synced while you shop.</p> <Link href="/shop" className="btnPrimary btnPrimary--full landing__cta">40 unmodified lines41424344454644454647484958 unmodified lines10810911011111111211311440 unmodified lines <div className="siteHeader__inner"> {isHome ? ( <> <Link href="/shop" className="siteHeader__brand" aria-label="SeamLine home"> <span className="brandZipp">Seam</span> <span className="brandMart">Line</span> <Link href="/shop" className="siteHeader__brand" aria-label="ProFlo home"> <span className="brandZipp">Pro</span> <span className="brandMart">Flo</span> </Link> <nav className="siteHeader__nav" aria-label="Shop sections"> <Link href="/shop/scan" className="siteHeader__pill">58 unmodified lines </span> <span className="siteFooter__muted">Bag syncs while this visit is active</span> </div> <p className="siteFooter__legal">© {new Date().getFullYear()} SeamLine · Fashion at the speed of scan</p> <p className="siteFooter__legal">© {new Date().getFullYear()} ProFlo · Fashion at the speed of scan</p> </div> </footer>
20 unmodified lines2122232424252627143 unmodified lines171172173174174175176177310 unmodified lines48848949049149149249349420 unmodified linesimport { apiBase, type RecommendationProduct } from "../lib/shopConfig";
export { apiBase, type RecommendationProduct } from "../lib/shopConfig";const SESSION_STORAGE_KEY = "seamline-shop-session-id";const SESSION_STORAGE_KEY = "proflo-shop-session-id";
export type CartLine = { productId?: string;143 unmodified lines try { const fromStorage = typeof window !== "undefined" ? localStorage.getItem("seamline-visit-phone")?.trim() ?? ? localStorage.getItem("proflo-visit-phone")?.trim() ?? localStorage.getItem("zippmart-visit-phone")?.trim() ?? localStorage.getItem("supermart-visit-phone")?.trim() ?? ""310 unmodified lines setMessage(typeof data.message === "string" ? data.message : "No visit found"); return false; } localStorage.setItem("seamline-visit-phone", t); localStorage.setItem("proflo-visit-phone", t); setSessionId(data.sessionId); localStorage.setItem(SESSION_STORAGE_KEY, data.sessionId); setSessionBootstrapDone(true);11export const BRAND_NAME = "SeamLine";export const BRAND_NAME = "ProFlo";32 unmodified lines33343536363738394 unmodified lines444546474748495022 unmodified lines737475767677787932 unmodified lines "<!DOCTYPE html>", '<html lang="en">', '<head><meta charset="utf-8"/>', `<title>SeamLine receipt ${escapeHtml(receipt.receiptNumber)}</title>`, `<title>ProFlo receipt ${escapeHtml(receipt.receiptNumber)}</title>`, "<style>", "body{font-family:system-ui,sans-serif;max-width:420px;margin:24px auto;color:#0f172a}", "h1{font-size:1.25rem;margin:0 0 4px}",4 unmodified lines ".totals div{display:flex;justify-content:space-between;padding:4px 0}", ".grand{font-weight:700;font-size:1.1rem;border-top:2px solid #0f172a;padding-top:8px;margin-top:8px}", "</style></head><body>", "<h1>SeamLine</h1>", "<h1>ProFlo</h1>", `<p class="meta">Receipt ${escapeHtml(receipt.receiptNumber)} · ${escapeHtml(receipt.storeCode)}<br>${when}</p>`, `<table><tbody>${rows}</tbody></table>`, '<div class="totals">',22 unmodified lines const url = URL.createObjectURL(blob); const a = document.createElement("a"); a.href = url; a.download = `seamline-receipt-${receipt.receiptNumber.replace(/[^a-zA-Z0-9_-]/g, "")}.html`; a.download = `proflo-receipt-${receipt.receiptNumber.replace(/[^a-zA-Z0-9_-]/g, "")}.html`; a.click(); URL.revokeObjectURL(url);}38 unmodified lines394041424243444566 unmodified lines11211311411511511611711898 unmodified lines21721821922022022122222338 unmodified lines
useEffect(() => { if (typeof window === "undefined") return; setVisitPhone(localStorage.getItem("seamline-visit-phone") ?? localStorage.getItem("zippmart-visit-phone") ?? localStorage.getItem("supermart-visit-phone") ?? ""); setVisitPhone(localStorage.getItem("proflo-visit-phone") ?? localStorage.getItem("zippmart-visit-phone") ?? localStorage.getItem("supermart-visit-phone") ?? ""); }, []);
const loadCatalog = useCallback(async () => {66 unmodified lines ? new URLSearchParams(window.location.search).get("store")?.trim()?.toUpperCase() : undefined; if (visitPhone.trim().length >= 10) { localStorage.setItem("seamline-visit-phone", visitPhone.trim()); localStorage.setItem("proflo-visit-phone", visitPhone.trim()); } await createSession(store ?? "BLR001", visitPhone.trim().length >= 10 ? visitPhone.trim() : undefined); }98 unmodified lines onChange={(e) => setVisitPhone(e.target.value)} onBlur={() => { if (visitPhone.trim().length >= 10) { localStorage.setItem("seamline-visit-phone", visitPhone.trim()); localStorage.setItem("proflo-visit-phone", visitPhone.trim()); } }} />11234const KEY = "seamline-cart-backup-v1";const KEY = "proflo-cart-backup-v1";
export type CartBackup = { savedAt: string;11234const QUEUE_KEY = "seamline-offline-cart-queue";const QUEUE_KEY = "proflo-offline-cart-queue";const MAX = 25;
export type QueuedCartAdd = { barcode: string; qty: number; enqueuedAt: string };1233456/// <reference types="next" />/// <reference types="next/image-types/global" />import "./.next/dev/types/routes.d.ts";import "./.next/types/routes.d.ts";
// NOTE: This file should not be edited// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.8 unmodified lines9101112121314158 unmodified lines
COPY apps/admin-web ./apps/admin-web
ENV NEXT_PUBLIC_API_BASE_URL=https://adi576-seamline.hf.space/checkout-apiENV NEXT_PUBLIC_API_BASE_URL=https://adi576-proflo.hf.space/checkout-apiRUN npm run build -w admin-web \ && test -f apps/admin-web/.next/BUILD_ID \ && test -d apps/admin-web/.next/standalone1223452 unmodified lines8910111112131415161717181920---title: SeamLine Admintitle: ProFlo Adminemoji: 📊colorFrom: purplecolorTo: red2 unmodified linespinned: false---
# SeamLine Admin HQ# ProFlo Admin HQ
Staff and manager dashboard for catalogue, stock, orders, and store KPIs.
Open **/admin** to sign in.
Uses the API on the main SeamLine Space: `https://adi576-seamline.hf.space/checkout-api`Uses the API on the main ProFlo Space: `https://adi576-proflo.hf.space/checkout-api`
## Default logins
112345656789101112131314151627 unmodified lines4445464747484950515252# Push admin app to Hugging Face Space ADI576/zippmart_admin# Push admin app to Hugging Face Space ADI576/proflo_admin
$ErrorActionPreference = "Stop"$Root = Resolve-Path (Join-Path $PSScriptRoot "..\..")$SpaceDir = Join-Path $env:TEMP "seamline-hf-admin"$SpaceUrl = "https://huggingface.co/spaces/ADI576/zippmart_admin"$SpaceDir = Join-Path $env:TEMP "proflo-hf-admin"$SpaceUrl = "https://huggingface.co/spaces/ADI576/proflo_admin"
$SkipNames = @(".git", "node_modules", ".next", "dist")
$Token = $env:HF_TOKENif (-not $Token) { $Token = $env:HUGGING_FACE_HUB_TOKEN }if ($Token) { $SpaceUrl = "https://user:$Token@huggingface.co/spaces/ADI576/zippmart_admin" $SpaceUrl = "https://user:$Token@huggingface.co/spaces/ADI576/proflo_admin"}
if (Test-Path $SpaceDir) { Remove-Item -Recurse -Force $SpaceDir }27 unmodified linesPush-Location $SpaceDirgit add -Aif (-not (git diff --cached --quiet)) { git commit -m "Deploy SeamLine admin dashboard (Docker Space)" git commit -m "Deploy ProFlo admin dashboard (Docker Space)"}git pushPop-Location
Write-Host "Pushed. Open https://huggingface.co/spaces/ADI576/zippmart_admin"Write-Host "Pushed. Open https://huggingface.co/spaces/ADI576/proflo_admin"8 unmodified lines9101112121314158 unmodified lines
COPY apps/cashier-web ./apps/cashier-web
ENV NEXT_PUBLIC_API_BASE_URL=https://adi576-seamline.hf.space/checkout-apiENV NEXT_PUBLIC_API_BASE_URL=https://adi576-proflo.hf.space/checkout-apiRUN npm run build -w cashier-web \ && test -f apps/cashier-web/.next/BUILD_ID \ && test -d apps/cashier-web/.next/standalone1223452 unmodified lines891011111213141515161718---title: SeamLine Cashiertitle: ProFlo Cashieremoji: 🧾colorFrom: bluecolorTo: green2 unmodified linespinned: false---
# SeamLine Cashier Terminal# ProFlo Cashier Terminal
In-store cashier terminal for order lookup and counter settlement.
Uses the API on the main SeamLine Space: `https://adi576-seamline.hf.space/checkout-api`Uses the API on the main ProFlo Space: `https://adi576-proflo.hf.space/checkout-api`
## Optional secrets
112345656789101112131314151627 unmodified lines4445464747484950515252# Push cashier app to Hugging Face Space ADI576/Zippmart_Cashier# Push cashier app to Hugging Face Space ADI576/proflo_cashier
$ErrorActionPreference = "Stop"$Root = Resolve-Path (Join-Path $PSScriptRoot "..\..")$SpaceDir = Join-Path $env:TEMP "seamline-hf-cashier"$SpaceUrl = "https://huggingface.co/spaces/ADI576/Zippmart_Cashier"$SpaceDir = Join-Path $env:TEMP "proflo-hf-cashier"$SpaceUrl = "https://huggingface.co/spaces/ADI576/proflo_cashier"
$SkipNames = @(".git", "node_modules", ".next", "dist")
$Token = $env:HF_TOKENif (-not $Token) { $Token = $env:HUGGING_FACE_HUB_TOKEN }if ($Token) { $SpaceUrl = "https://user:$Token@huggingface.co/spaces/ADI576/Zippmart_Cashier" $SpaceUrl = "https://user:$Token@huggingface.co/spaces/ADI576/proflo_cashier"}
if (Test-Path $SpaceDir) { Remove-Item -Recurse -Force $SpaceDir }27 unmodified linesPush-Location $SpaceDirgit add -Aif (-not (git diff --cached --quiet)) { git commit -m "Deploy SeamLine cashier terminal (Docker Space)" git commit -m "Deploy ProFlo cashier terminal (Docker Space)"}git pushPop-Location
Write-Host "Pushed. Open https://huggingface.co/spaces/ADI576/Zippmart_Cashier"Write-Host "Pushed. Open https://huggingface.co/spaces/ADI576/proflo_cashier"1223453 unmodified lines91011121213141516171819201819202122234 unmodified lines2829303131323334---title: SeamLinetitle: ProFloemoji: 🛒colorFrom: greencolorTo: blue3 unmodified linespinned: false---
# SeamLine — Full checkout platform# ProFlo — Full checkout platform
All apps run in one Docker Space behind nginx on port **7860**.
| App | URL ||-----|-----|| Customer shop | [/shop](https://adi576-seamline.hf.space/shop) || Admin HQ | [/admin](https://adi576-seamline.hf.space/admin) || Cashier terminal | [/cashier](https://adi576-seamline.hf.space/cashier) || Customer shop | [/shop](https://adi576-proflo.hf.space/shop) || Admin HQ | [/admin](https://adi576-proflo.hf.space/admin) || Cashier terminal | [/cashier](https://adi576-proflo.hf.space/cashier) || API (proxied) | `/checkout-api` |
## Required secrets4 unmodified lines| `JWT_SECRET` | Long random string || `ADMIN_USERNAME` / `ADMIN_PASSWORD` | Staff login || `MANAGER_USERNAME` / `MANAGER_PASSWORD` | Manager login || `PUBLIC_API_URL` | `https://adi576-seamline.hf.space/checkout-api` || `PUBLIC_API_URL` | `https://adi576-proflo.hf.space/checkout-api` |
Optional: `DEFAULT_STORE_CODE`, `CASHIER_API_KEY` (+ same value as `NEXT_PUBLIC_CASHIER_API_KEY` at build if you protect cashier routes).
2 unmodified lines3456767891011111213141516171718192019 unmodified lines40414243434445462 unmodified lines
$ErrorActionPreference = "Stop"$Root = Resolve-Path (Join-Path $PSScriptRoot "..\..")$SpaceDir = Join-Path $env:TEMP "Zippmart-hf-space"$SpaceUrl = "https://huggingface.co/spaces/ADI576/Zippmart"$SpaceDir = Join-Path $env:TEMP "proflo-hf-space"$SpaceUrl = "https://huggingface.co/spaces/ADI576/ProFlo"
$SkipNames = @( ".git", "node_modules", ".next", "dist", "worker" "worker", "docs", "nlp-lab", "infra", "proposals", "supabase")
$Token = $env:HF_TOKENif (-not $Token) { $Token = $env:HUGGING_FACE_HUB_TOKEN }if ($Token) { $SpaceUrl = "https://user:$Token@huggingface.co/spaces/ADI576/Zippmart" $SpaceUrl = "https://user:$Token@huggingface.co/spaces/ADI576/ProFlo"}
if (Test-Path $SpaceDir) { Remove-Item -Recurse -Force $SpaceDir }19 unmodified linesPush-Location $SpaceDirgit add -Aif (-not (git diff --cached --quiet)) { git commit -m "Deploy Zippmart shop, admin, cashier + API (Docker Space)" git commit -m "Deploy ProFlo shop, admin, cashier + API (Docker Space)"}git pushif ($LASTEXITCODE -ne 0) {1 unmodified line234556781 unmodified line "name": "checkout-system", "version": "1.0.0", "private": true, "description": "SeamLine apparel checkout platform monorepo", "description": "ProFlo apparel checkout platform monorepo", "workspaces": [ "apps/*", "services/*",55 unmodified lines565758595960616255 unmodified lines
export const APPAREL_SEASONS = ["", "SS26", "AW26", "Core", "Clearance"] as const;
export const BRAND_NAME = "SeamLine";export const BRAND_NAME = "ProFlo";
export function buildVariantSku(styleCode: string, color: string, size: string, barcode: string): string { const parts = [styleCode, color, size]1 unmodified line234556781 unmodified line# Docs: https://render.com/docs/blueprint-specservices: - type: web name: seamline-api name: proflo-api runtime: node plan: free rootDir: services/api36 unmodified lines373839404041424243444536 unmodified lines# 1. Sign up at resend.com (free tier: ~100 emails/day)# 2. Add and verify your domain, or use onboarding address for testing only# 3. Create an API key → set RESEND_API_KEY# 4. Set EMAIL_FROM to a verified sender, e.g. SeamLine <receipts@yourdomain.com># 4. Set EMAIL_FROM to a verified sender, e.g. ProFlo <receipts@yourdomain.com># RESEND_API_KEY=re_xxxxxxxx# EMAIL_FROM=SeamLine <onboarding@resend.dev># EMAIL_FROM=ProFlo <onboarding@resend.dev>
# Optional — generic webhook if you use Make/Zapier instead of Resend# RECEIPT_NOTIFY_WEBHOOK_URL=https://hooks.example.com/receipt286 unmodified lines28728828929029029129229329429429529629710 unmodified lines308309310311311312313314286 unmodified lines ) .join(""); return `<!DOCTYPE html><html><body style="font-family:sans-serif;color:#111"><h2>SeamLine receipt</h2><h2>ProFlo receipt</h2><p><strong>${receiptNumber}</strong> · ${order.storeCode}</p><table cellpadding="6" cellspacing="0" border="0">${rows}</table><p>Subtotal: ₹${order.subtotal.toFixed(2)}<br>Tax: ₹${order.taxTotal.toFixed(2)}<br><strong>Total: ₹${order.total.toFixed(2)}</strong></p><p>Thank you for shopping with SeamLine.</p><p>Thank you for shopping with ProFlo.</p></body></html>`;}
10 unmodified lines body: JSON.stringify({ from: emailFrom, to: [to], subject: `Your SeamLine receipt ${receiptNumber}`, subject: `Your ProFlo receipt ${receiptNumber}`, html: receiptEmailHtml(order, receiptNumber) }) });README.md+6-6
apps/admin-web/.env.example+1-1
apps/admin-web/app/admin/dashboard/page.tsx+1-1
apps/admin-web/app/admin/page.tsx+1-1
apps/admin-web/app/globals.css+1-1
apps/admin-web/app/layout.tsx+2-2
apps/admin-web/app/page.tsx+1-1
apps/admin-web/lib/apparel.ts+1-1
apps/admin-web/lib/receipt.ts+3-3
apps/admin-web/next-env.d.ts+1-1
apps/cashier-web/app/gate/page.tsx+1-1
apps/cashier-web/app/layout.tsx+2-2
apps/cashier-web/app/page.tsx+2-2
apps/cashier-web/next-env.d.ts+1-1
apps/customer-web/.env.example+2-2
apps/customer-web/app/globals.css+1-1
apps/customer-web/app/layout.tsx+1-1
apps/customer-web/app/page.tsx+2-2
apps/customer-web/app/shop/components/ShopShell.tsx+4-4
apps/customer-web/app/shop/context/ShopContext.tsx+3-3
apps/customer-web/app/shop/lib/apparel.ts+1-1
apps/customer-web/app/shop/lib/receiptDownload.ts+3-3
apps/customer-web/app/shop/page.tsx+3-3
apps/customer-web/lib/cartBackup.ts+1-1
apps/customer-web/lib/offlineCartQueue.ts+1-1
apps/customer-web/next-env.d.ts+1-1
deploy/huggingface-admin/Dockerfile+1-1
deploy/huggingface-admin/README.md+3-3
deploy/huggingface-admin/push.ps1+6-6
deploy/huggingface-cashier/Dockerfile+1-1
deploy/huggingface-cashier/README.md+3-3
deploy/huggingface-cashier/push.ps1+6-6
deploy/huggingface/README.md+6-6
deploy/huggingface/push.ps1+5-5
package.json+1-1
packages/shared/src/apparel.ts+1-1
render.yaml+1-1
services/api/.env.example+2-2
services/api/src/index.ts+3-3