Go to file
mihir 21b328e141
continuous-integration/drone/push Build is passing Details
feat: cash on delivery and manual UPI checkout
Checkout asks for a payment method. UPI orders show the payable total, UPI ID, QR image and a UTR form. Order pages show status history with tracking notes; staff can confirm UPI payment, record shipment and mark delivery. Confirmed orders can still be cancelled.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 15:32:19 +05:30
.vscode fix drone 2026-05-29 06:54:18 +00:00
.yarn/sdks fix drone 2026-05-29 06:54:18 +00:00
deploy feat: show product photos and let staff upload them 2026-11-26 12:42:50 +05:30
docs feat: cash on delivery and manual UPI checkout 2026-11-26 15:32:19 +05:30
public Initial commit 2026-05-25 16:10:05 +05:30
scripts fix: require backend JSON readiness before activating a release 2026-11-20 18:07:55 +05:30
src feat: cash on delivery and manual UPI checkout 2026-11-26 15:32:19 +05:30
test feat: cash on delivery and manual UPI checkout 2026-11-26 15:32:19 +05:30
.dockerignore feat: connect existing storefront to Mani Candles backend 2026-10-11 22:45:47 +05:30
.drone.yml Update .drone.yml 2026-11-20 00:11:59 +05:30
.env.example feat: cash on delivery and manual UPI checkout 2026-11-26 15:32:19 +05:30
.gitattributes ci: deploy static frontend over SSH with rollback 2026-11-19 20:50:01 +05:30
.gitignore feat: connect existing storefront to Mani Candles backend 2026-10-11 22:45:47 +05:30
AGENTS.md feat: add commerce and access administration workflows 2026-10-13 14:28:29 +05:30
CHANGELOG.md feat: add commerce and access administration workflows 2026-10-13 14:28:29 +05:30
CONSTRAINTS.md feat: add commerce and access administration workflows 2026-10-13 14:28:29 +05:30
Dockerfile feat: add commerce and access administration workflows 2026-10-13 14:28:29 +05:30
README.md feat: cash on delivery and manual UPI checkout 2026-11-26 15:32:19 +05:30
components.json Initial commit 2026-05-25 16:10:05 +05:30
eslint.config.js feat: add commerce and access administration workflows 2026-10-13 14:28:29 +05:30
index.html fix: forward client IPs to the API and patch dependency advisories 2026-11-24 15:30:22 +05:30
nginx.conf feat: show product photos and let staff upload them 2026-11-26 12:42:50 +05:30
package-lock.json fix: forward client IPs to the API and patch dependency advisories 2026-11-24 15:30:22 +05:30
package.json fix: clear Phase 2 dependency audit and build gates 2026-11-12 00:35:24 +05:30
tsconfig.json feat: add commerce and access administration workflows 2026-10-13 14:28:29 +05:30
vite.config.ts fix: clear Phase 2 dependency audit and build gates 2026-11-12 00:35:24 +05:30
vitest.config.ts test: allow slow CI runners 20s for multi-step UI workflows 2026-11-24 15:46:42 +05:30

README.md

Mani Candles frontend

The existing ManiCandles site upgraded against the deployed Nest API. Its purple/gold design, branding, and marketing pages are retained. Phase 2 adds customer commerce, permission-gated administration, account recovery and enforced release checks.

Development

Use Node 24 and npm 11. The canonical lockfile is package-lock.json, matching the Docker npm workflow; the outdated Yarn lock/config were removed.

npm ci
npm run dev
npm run typecheck
npm test
npm run build

Open the printed local URL. Set your organization UUID on /connection, or set VITE_ORGANIZATION_ID in .env.local. Only the UUID is persisted; passwords and session tokens remain in memory. Existing approved staff sign in at /workspace. Navigation preserves the session; reloads discard it. Logout revokes the backend session.

Deployment

Development proxies /api to https://manicandles-backend.midastix.com. Docker Nginx provides the same HTTPS upstream with certificate verification, Authorization forwarding, and SPA deep-link fallback. HTTPS must terminate at the deployment ingress. vite preview is static preview only and does not provide the development API proxy.

docker build -t manicandles-frontend:uat .
docker run --rm -p 8080:80 manicandles-frontend:uat

After the one-time server setup, main-branch Drone pushes upload the checked static build over SSH and activate it through the existing Nginx HTTPS site. Readiness failure restores the previous release. Drone requires the manicandles_deploy_key secret. Feature branches run validation without uploading or activating a release.

Storefront list returns id/name/slug and the main photo; details return prices/attributes/groups and all photos. Staff upload up to 8 JPEG/PNG/WebP photos per product (2 MiB each) under Admin catalog; products without photos show a branded placeholder. Existing marketing imagery remains intact.

Addresses, cart/checkout, orders, catalog, access, stock, coupons and pricing tools are available after sign-in. Customers can create their own account at /workspace (requires the backend /auth/register endpoint). There is no contact-message endpoint; simulated success was replaced with an availability notice. Newsletter signup awaits consent/messaging flows.

See delivery phases and UAT evidence.

Phase 2 commands: npm run check runs lint, strict types, contract/component/workflow tests and the measured production build. Dependency security is checked with npm audit --audit-level=high in CI. See Phase 2 evidence and release checklist.

Set the backend RECOVERY_URL to your HTTPS frontend /reset-password route. Pending checkout and stock commands survive navigation within an active session; reload discards local credentials and intents. If interrupted, check orders/ledger before starting a new command.

Cash on delivery and UPI

Checkout requires a payment method. Cash on delivery confirms the order at once. UPI orders wait up to 48 hours: the order page shows the exact payable total, the UPI ID and QR code, and a form for the customer's UTR. Staff confirm the payment, then record shipment (courier and tracking note, shown to the customer) and delivery under Admin orders.

Set these at build time (for example in .env.production.local, which is not committed):

VITE_UPI_ID=yourname@bank
VITE_UPI_NAME=Mani Candles

Put the QR image for that UPI ID at public/upi-qr.png before building. Without VITE_UPI_ID the order page asks the customer to contact you instead. Tax and shipping must be configured as an active pricing policy, or paid checkout is refused.