project-b150ff54

byThivyashree

# GALAXY DECOR — Follow-up Prompt: QA Patch + Startup Growth Features Paste this into the **same** AI Studio chat/project that just built the premium rebuild (not a new project) — it references the existing app, not a fresh build. --- ## PROMPT TO PASTE Great work on the rebuild. Before we add new features, please **verify and fix** the following items from the original spec — for each one, tell me clearly whether it's already implemented, was missed, or is partially done, then fix anything missing: 1. **Product images:** confirm the admin can reorder multiple images per product and explicitly mark one as the "main" image shown on the Shop grid/ProductCard. 2. **Category management:** confirm there's an "+ Add new category" option available *inline*, right inside the Add/Edit Product form, not only in a separate Settings tab. 3. **Admin notifications:** confirm there's a visible alert/bell in the admin header surfacing low-stock products and new incoming orders — if missing, add it (simplest version: a small badge count + dropdown list is fine, no push notifications needed). 4. **Draft vs. auto-publish toggle:** confirm there's a settings toggle to switch the Site Builder between "publish instantly" (current default) and "save as draft until I click Publish" — if missing, add it. 5. **Multi-device sync test:** open the site in two browser tabs, make a text or image edit via Edit Mode in one, and confirm the other tab updates within 1–2 seconds via the SSE stream without a manual refresh. Report back whether this works as expected. 6. **CSV import error handling:** confirm that uploading a malformed CSV (missing column, bad price format) fails with a clear on-screen error rather than partially importing bad data — if missing, add validation and a readable error summary. 7. **Role restriction check:** confirm a non-Super-Admin logged-in account genuinely cannot see or reach the Admins tab, security logs, or Razorpay key fields in Settings. 8. **Data integrity on interruption:** confirm the `data.json` write is atomic enough that killing the server mid-save doesn't corrupt the file (e.g. write to a temp file then rename, rather than writing in place) — if it currently writes in place, please switch to the safer write-then-rename pattern. --- Once those are confirmed/fixed, please add the following **lean, low-cost "startup mode" features** — these are meant to be cheap to build and maintain, high-leverage for a small/solo-run brand, not enterprise features: ### Trust-building (near-zero cost) - A **"Founder's Note"** block on the About page — an editable photo + short personal paragraph, managed the same way as other Site Builder content (so it's just another editable text/image field, not a special system). - Support for **admin-added customer photo reviews**: extend the existing review system so the admin can attach a customer-submitted photo (uploaded via the Media Library) to a review when adding it manually. ### Scrappy growth (no ad budget needed) - A **"Reserve Yours" / waitlist button** for products marked as `comingSoon` or out-of-stock-but-announced — captures name + phone/email into a simple admin-visible "Interest List" per product, no payment involved. - A **"Share on WhatsApp" button** on the Product Detail page that opens WhatsApp pre-filled with the product name, price, and a link back to that product page (use the same `wa.me` pattern already used for the customization button). - Wire up **Google Analytics (GA4) and Meta Pixel** — just the standard tracking snippets in `index.html`/root layout, IDs configurable from Settings so the client can paste in their own tracking IDs without touching code. ### Looking bigger than you are (cheap, high perceived value) - A simple **"Our Process" section** on the About page — a 4–5 step visual (Sourcing → Crafting → Quality Check → Packing → Delivery), each step editable (icon/label/short text) the same way as other Site Builder blocks — no real photos required to start, just clean typography and icons. - A **more personal order confirmation message** — replace the generic "Order Confirmed" text with an editable thank-you message field (Settings) that can include the founder's name/signature line, shown on the checkout success screen and reusable in any order-status email/WhatsApp message later. Keep every new piece of content here fully editable through the existing Site Builder / Settings system — nothing new should be hardcoded, and none of this should require a real photo, paid tool, or backend service beyond what's already running. --- ## URGENT — BUG: Product reviews are not displaying, and product/page data is loading with a noticeable delay Please investigate and fix both of these before anything else: 1. **Reviews not showing on the Product Detail page.** Check the following, in order, and tell me which one is the actual cause: - Is `GET /api/products/:id` actually returning the `reviews` array in its response (log/print the raw response), or is it being stripped somewhere on the server before it reaches the client? - Is the frontend `ProductDetail.tsx` correctly reading `product.reviews` from the fetched product object and rendering it, or is it looking for reviews in the wrong place (e.g. a separate endpoint that was never wired up)? - If reviews were added via the admin panel, confirm they were actually saved into that specific product's `reviews` array in `data.json` — open `data.json` directly and check. - If a review has a photo attached (from the customer-photo-review feature just added), confirm the image field being read on the frontend matches the field name being saved from the admin form — a mismatched field name (e.g. `photoUrl` vs `image`) is a common cause of "empty looking" reviews. - Check the browser console for any errors when the Product Detail page loads — report the exact error text if there is one. 2. **Noticeable loading delay** on pages (please specify — do you mean initial page load, product data appearing after a delay, or images loading in late?). Investigate: - Whether product/page data is being fetched fully on every load instead of being cached, causing a visible "blank then populate" flash. - Whether images are loading at full/original resolution instead of being reasonably sized/compressed, which would slow down perceived load especially on the Shop grid and Product Detail gallery. - Whether the SSE connection or the settings/site-content fetch is blocking the initial render — the storefront should show a proper **loading skeleton** immediately, then populate, rather than appearing to hang. - Add or confirm there are loading skeletons (not blank white space) on the Shop grid, Product Detail page, and Home page featured products while data is in flight, so the delay feels intentional rather than broken. Report back exactly what was wrong and what was changed, rather than just confirming "fixed" — I want to understand the actual cause so I know if it's likely to recur elsewhere. ## Notes for you - This prompt is intentionally split into "verify/fix existing" first, then "add new" — that ordering matters, since it's much easier to build new features on top of a Site Builder you've confirmed actually syncs correctly than to debug both at once later. - If AI Studio reports several of the QA items as "already done," ask it to show you exactly where in the admin UI each one lives so you can spot-check them yourself in under a minute each, rather than taking the report at face value. - None of the new "startup mode" features need a paid service or a developer to maintain going forward — that was the point of picking these over the bigger Tier 2/3 ideas from before.

No preview

Comments (0)

No comments yet. Be the first!

System Requirements

System Requirement Document
📝

Requirements Not Generated Yet

The SRD will be automatically generated as you discuss your project with the Tech Lead Agent.

No completed page designs yet.

Completed design pages will appear here when they are ready to preview.

No user flows yet.

The User Flow Agent will generate per-persona navigation diagrams after SRD updates.

No completed page designs yet.

Completed design pages will appear here when they are ready to preview.

No user flows yet.

The User Flow Agent will generate per-persona navigation diagrams after SRD updates.