|
|
@@ -3,9 +3,9 @@
|
|
3
|
3
|
This file is the single source of truth for the project plan and status.
|
|
4
|
4
|
Update it at the end of every work session.
|
|
5
|
5
|
|
|
6
|
|
-**Last updated:** 2026-11-26
|
|
7
|
|
-**Current step:** Step 10 (before launch): the new design (Step 9 parts 1–7), home page, legal pages, dashboard and Select to edit are merged into `main` (2026-11-26); Step 9 part 8 on hold
|
|
8
|
|
-**Next action:** EasyParcel demo key. Also: have a lawyer read the privacy and terms pages, fill the `LEGAL_` lines, and choose: backup AI provider, hosting, Stripe Connect (who receives the money), Step 7 part 2, or part 8. New work branches from `main`
|
|
|
6
|
+**Last updated:** 2026-11-30
|
|
|
7
|
+**Current step:** Step 10: Stripe Connect (merchants get paid into their own Stripe account) is planned, not built. EasyParcel courier booking is done on branch `feature/easyparcel` (not committed yet). Step 9 part 8 on hold
|
|
|
8
|
+**Next action:** Commit `feature/easyparcel` and merge into `main`. Then you switch on Connect in the Stripe dashboard (test mode), and we build Stripe Connect on a new branch `feature/stripe-connect` from `main` (task list in Step 10). Later: live courier rate at checkout, tracking updates, a lawyer reads the legal pages, backup AI provider, hosting
|
|
9
|
9
|
|
|
10
|
10
|
Status marks: `[ ]` not started · `[~]` in progress · `[x]` done
|
|
11
|
11
|
|
|
|
@@ -121,12 +121,34 @@ Changing from Claude to another AI model (or back) must be a settings change, no
|
|
121
|
121
|
- Switching plans changes the existing subscription; Stripe charges or credits the difference on the next bill.
|
|
122
|
122
|
- Subscriptions go through one interface (`SubscriptionGateway`), like payments and AI.
|
|
123
|
123
|
|
|
|
124
|
+### How merchants get paid (planned 2026-11-30, not built yet)
|
|
|
125
|
+
|
|
|
126
|
+- Today every shopper payment lands in **our** Stripe account. Before real merchants sell, this changes to **Stripe Connect**: each store connects the merchant's own Stripe account, and shopper payments go straight there. Stripe pays it into the merchant's bank. We never hold shop money (holding other businesses' money can need a Bank Negara licence, and would make refunds and tax our problem).
|
|
|
127
|
+- Payments are "direct charges": the Stripe payment page is made on the merchant's account, so the merchant is the seller on the shopper's bank statement and receipt.
|
|
|
128
|
+- The merchant gets their own full Stripe Dashboard. They pay Stripe's fees, and handle refunds and disputes (bank chargebacks), because they are the seller.
|
|
|
129
|
+- **No cut for us** (decided 2026-11-30): we earn from the monthly plan only. A cut per sale (Stripe's "application fee") can be added later without merchants connecting again.
|
|
|
130
|
+- Setup: in Settings, the merchant clicks "Connect Stripe". We create a Stripe account for the store and send them to Stripe's own sign-up page, where Stripe checks their identity, SSM number and bank account. They come back to Settings. This is what Stripe recommends now, instead of the older "Connect with Stripe" sign-in.
|
|
|
131
|
+- One Stripe account per store, like EasyParcel.
|
|
|
132
|
+- A store cannot take orders until Stripe says it can accept payments. Shoppers see "This store is not taking orders yet" at checkout. The merchant sees a reminder in Settings and on the overview.
|
|
|
133
|
+- Each order saves which Stripe account it was paid into, so checks and refunds go to the right account even if the merchant reconnects later.
|
|
|
134
|
+- Discount coupons are made on the merchant's Stripe account, because the payment page lives there.
|
|
|
135
|
+- Stripe tells us about payments on merchants' accounts through a second webhook ("Connected accounts" events), and tells us when a merchant's setup is finished (`account.updated`).
|
|
|
136
|
+- FPX needs the merchant's SSM number (Stripe's rule). Merchants without a registered business may only be able to take cards.
|
|
|
137
|
+- Our own monthly plans (Billing) stay on our own Stripe account. Nothing changes there.
|
|
|
138
|
+- Plan B, if Stripe will not run Connect for a Malaysian platform: each merchant connects their own Malaysian payment gateway (such as CHIP or Billplz) instead, in the same "connect" way. The `PaymentGateway` interface already allows a second provider.
|
|
|
139
|
+
|
|
124
|
140
|
### How shipping and WhatsApp work (added in Step 7)
|
|
125
|
141
|
|
|
126
|
142
|
- Shipping fees are stored on the store in sen (`shipping_west`, `shipping_east`, `free_shipping_over`). Sabah, Sarawak and Labuan use the east fee; every other state uses the west fee.
|
|
127
|
143
|
- The fee goes through one interface (`ShippingProvider`). `FlatRateShipping` is the first provider; EasyParcel live rates can replace it in one place.
|
|
128
|
144
|
- The order saves `shipping_total`, and Stripe must collect subtotal plus shipping before the order counts as paid.
|
|
129
|
145
|
- `shipped_at`, `shipping_courier` and `tracking_number` on the order record the delivery. Only paid orders can be shipped.
|
|
|
146
|
+- **EasyParcel (decided 2026-11-26):** each merchant connects **their own** EasyParcel account (they sign up, top up credit, then click "Connect EasyParcel" and Allow). Parcels are paid from their credit, so we never hold shipping money. We cannot open EasyParcel accounts for merchants (EasyParcel checks identity and has no sign-up API), so Settings shows a 4-step guide instead. One account of ours for everyone (EasyParcel "Marketplace") was turned down: we would have to charge merchants back.
|
|
|
147
|
+- EasyParcel uses its new Open API (version 2026-09, `api.easyparcel.com`) with OAuth (PKCE). The app's client ID and secret come from developer.easyparcel.com and live in `.env.local`; the redirect address is `<APP_URL>/easyparcel/callback`. Sandbox or live is decided by which EasyParcel account the merchant signs in with. Tokens are stored encrypted in `easyparcel_accounts` and renewed by themselves. Code: `app/Commerce/Shipping/EasyParcel/`.
|
|
|
148
|
+- First version (2026-11-26): **book a courier on a paid order**. The merchant types the parcel (weight and size, filled from "Your usual parcel" in Settings), sees every courier's price cheapest first, picks one and a collection day, and books. EasyParcel takes the price from their credit. The order saves the shipment number, price, courier, tracking number, label and tracking link. The order counts as shipped, and the shopper gets the "on its way" email, once the tracking number is known (some couriers give it a minute later: "Check for the label"). Services that deliver to a collection point are left out. Paid EasyParcel extras (SMS, WhatsApp tracking) stay off.
|
|
|
149
|
+- Checkout prices: shoppers still pay the flat fees. Later, the merchant will be able to choose "live rate" (the real courier price) instead.
|
|
|
150
|
+- What the real EasyParcel sends (found in the sandbox test): courier names are company names ("J&T Express (Malaysia) Sdn. Bhd."), so we show the service name without brackets ("J&T Express") and keep "Pickup needs at least N parcels" as a note; the delivery time is `{"type":"days","value":"3"}`, shown as "About 3 days"; errors are wrapped one level deeper than the docs show. A changed `.env.local` needs the app server restarted.
|
|
|
151
|
+- Pickup address on the store (`pickup_address`, all or nothing), usual parcel `parcel_weight` (grams) and `parcel_size` (cm).
|
|
130
|
152
|
- WhatsApp numbers are saved as digits with country code (`60123456789`). Only Malaysian numbers are accepted. `MalaysianPhone` does the cleaning.
|
|
131
|
153
|
- Messages the server shows to shoppers live in `App\Storefront\StorefrontText`; words drawn in the browser live in `resources/js/storefront/text.ts`.
|
|
132
|
154
|
|
|
|
@@ -421,7 +443,14 @@ Part 1 (done 2026-11-16, no new accounts needed):
|
|
421
|
443
|
Part 2 (needs outside accounts):
|
|
422
|
444
|
|
|
423
|
445
|
- [ ] Switch on FPX and GrabPay in the Stripe dashboard (your action), then test an FPX payment
|
|
424
|
|
-- [ ] EasyParcel live shipping rates and labels (needs an EasyParcel demo account and API key; plugs in behind `ShippingProvider`)
|
|
|
446
|
+- [~] EasyParcel (branch `feature/easyparcel`):
|
|
|
447
|
+ - [x] Connect the merchant's own EasyParcel account with a guided setup in Settings, pickup address, usual parcel size
|
|
|
448
|
+ - [x] Book a courier on a paid order: compare prices, book, print the label, tracking number and "on its way" email
|
|
|
449
|
+ - [x] App "AI Commerce" made in the EasyParcel Developer Hub (redirect `http://localhost:8000/easyparcel/callback`), keys in `.env.local`, sandbox account made. Tested for real on 2026-11-26: Luna Skin connected to the sandbox account, real courier prices came back (22 services, Pos MELPlus RM 7.63 cheapest), booking with no credit showed "this parcel needs RM 7.03"
|
|
|
450
|
+ - [x] Booked a sandbox parcel on 2026-11-26 (Luna Skin order #1001, Pos MELPlus pickup, EasyParcel ES-2611-TK58P, RM 7.03): tracking number and link saved, label opens as a PDF, "on its way" email sent. Found that EasyParcel's quoted total includes tracking extras we do not book (RM 0.60), so prices shown are now shipment + its tax, matching what is charged
|
|
|
451
|
+ - [ ] Live courier rate at checkout, as a choice next to the flat fees (plugs in behind `ShippingProvider`)
|
|
|
452
|
+ - [ ] Tracking updates by themselves (collected, in transit, delivered)
|
|
|
453
|
+ - [ ] Product weights, for a more exact parcel weight
|
|
425
|
454
|
- [ ] Automatic WhatsApp order notifications (needs a WhatsApp Business Platform account from Meta, with approved message templates)
|
|
426
|
455
|
- [ ] DuitNow QR and Malaysian e-wallets: only through a second payment provider (for example Billplz, ToyyibPay, HitPay or Fiuu). Decide whether it is worth it
|
|
427
|
456
|
|
|
|
@@ -472,6 +501,18 @@ Notes:
|
|
472
|
501
|
- [x] Our own home page at `/` (done 2026-11-22, branch `feature/homepage`, made from the part 7 branch)
|
|
473
|
502
|
|
|
474
|
503
|
- [x] Overview dashboard with stats, store tree in the sidebar and daily AI note (done 2026-11-22, branch `feature/dashboard`)
|
|
|
504
|
+- [ ] Merchants get paid into their own Stripe account (Stripe Connect, planned 2026-11-30, see "How merchants get paid"):
|
|
|
505
|
+ - [ ] You: switch on Connect in the Stripe dashboard in **test mode** (dashboard.stripe.com/connect). On 2026-11-30 our test key was refused: "You can only create new accounts if you've signed up for Connect"
|
|
|
506
|
+ - [ ] Check that Stripe lets our Malaysian account create a Malaysian merchant account (a quick test with the test key). If not, ask Stripe support, or switch to plan B
|
|
|
507
|
+ - [ ] Branch `feature/stripe-connect` from `main`: a table for each store's Stripe account (account id, can take payments, payouts on, setup finished), and the Stripe account on each order
|
|
|
508
|
+ - [ ] Settings: a "Get paid" card with a guided setup, "Connect Stripe", "Finish setup" if they stopped halfway, and a connected view (payouts on, link to their Stripe Dashboard)
|
|
|
509
|
+ - [ ] Checkout: the payment page is made on the store's Stripe account (coupons too). Checkout is closed until the store can take payments
|
|
|
510
|
+ - [ ] Return page check and webhook for merchants' accounts, plus `account.updated`
|
|
|
511
|
+ - [ ] Overview reminder "Connect Stripe to take orders"
|
|
|
512
|
+ - [ ] Terms page: say how merchants are paid (straight to their own Stripe account, Stripe's terms apply, no cut), and change its "last changed" date
|
|
|
513
|
+ - [ ] Tests with a pretend Stripe
|
|
|
514
|
+ - [ ] Real test: set up a test merchant with Stripe's test details, pay with a test card, see the money in the merchant's test account; then an FPX test
|
|
|
515
|
+ - [ ] Before going live: switch on Connect in live mode, add our name, logo and colour for Stripe's sign-up page
|
|
475
|
516
|
- [ ] Choose hosting and deploy
|
|
476
|
517
|
- [x] Privacy policy and terms of service, naming the AI providers (done 2026-11-22, `/privacy` and `/terms`; a lawyer should read them before launch)
|
|
477
|
518
|
- [ ] Backup AI provider in case one is down
|
|
|
@@ -582,7 +623,7 @@ Then, from the project folder:
|
|
582
|
623
|
|
|
583
|
624
|
## 5. Open questions
|
|
584
|
625
|
|
|
585
|
|
-- **Who receives the money?** Today every payment goes to our own Stripe account (the keys in `.env.local`). Before real merchants sell, each merchant must be paid into their own account. The usual way is Stripe Connect. Decide before launch; it changes the checkout a little and adds an onboarding step for merchants.
|
|
|
626
|
+- **Who receives the money?** Decided 2026-11-30: Stripe Connect, each merchant's own Stripe account, no cut for us (see "How merchants get paid"). Still open: whether Stripe runs Connect for our Malaysian account (we find out once Connect is switched on).
|
|
586
|
627
|
- **DuitNow QR and e-wallets:** Stripe does not offer them. Adding them means a second payment provider. Decide later, based on what merchants ask for.
|
|
587
|
628
|
- Hosting provider (decide at Step 10)
|
|
588
|
629
|
|
|
|
@@ -606,44 +647,47 @@ Moved into **Step 9 — Modern store design** on 2026-11-17.
|
|
606
|
647
|
|
|
607
|
648
|
Add one line per work session: date, what was done, what is next.
|
|
608
|
649
|
|
|
609
|
|
-| Date | Done | Next |
|
|
610
|
|
-| ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------- |
|
|
611
|
|
-| 2026-11-14 | Planning. Chose stack, market, payments, AI models, plan prices. Checked local tools. Created this file. All proposed decisions confirmed. Added the rule that the AI model must be easy to change. | Install PHP 8.4, create the Laravel project (Step 0 and Step 1) |
|
|
612
|
|
-| 2026-11-14 | Installed PHP 8.4. Created the Laravel 13 + React project, MySQL database and git repo. Built create-a-store flow and dashboard. 51 tests pass; login and store creation checked in the browser. Step 0 and Step 1 done. | Step 2: store plan format, sections, renderer |
|
|
613
|
|
-| 2026-11-14 | Step 2 done on branch `feature/store-sections-renderer`: store plan format and validator, 10 sections with 2 variants each, renderer, dashboard preview, sample design. 69 tests pass; storefront checked in the browser on desktop and mobile. | Step 3: swappable AI layer and store generation |
|
|
614
|
|
-| 2026-11-14 | First commit made and pushed to the private repository on git.mirfalah.my (branch `feature/store-sections-renderer`). | Step 3: swappable AI layer and store generation |
|
|
615
|
|
-| 2026-11-14 | Step 3 built on branch `feature/ai-generation`: swappable AI layer (Claude, DeepSeek, fake), full store generation, chat edits, background job with progress screen, plan limits. 92 tests pass; whole flow checked in the browser with the fake provider. Not yet run against real Claude or DeepSeek. | Add API keys, run the real test, then Step 4 |
|
|
616
|
|
-| 2026-11-14 | Split settings into `.env` (uploaded, no secrets, AI settings blank) and `.env.local` (private, complete). Removed `.env.example`. | Real AI test, then Step 4 |
|
|
617
|
|
-| 2026-11-14 | Real AI test passed: Claude Sonnet 5.5 generated two stores, DeepSeek made two chat edits. Tuned the prompt for more varied layouts. Step 3 done. | Merge into `main`, then Step 4: products |
|
|
618
|
|
-| 2026-11-14 | Step 4 part 1 on branch `feature/commerce`: store plan version 2 with pages, products with photos, Shop page, product page, real products on the home page. 108 tests pass; checked in the browser; real Claude and DeepSeek re-tested with the new format. | Step 4 part 2: cart, Stripe checkout, orders, email |
|
|
619
|
|
-| 2026-11-14 | Cart built on branch `feature/commerce`: add to cart, quantity, remove, subtotal, header count, stock limits. 118 tests pass; checked in the browser. | Stripe checkout (needs test keys), orders, email |
|
|
620
|
|
-| 2026-11-15 | Step 4 finished on branch `feature/commerce`: checkout with Stripe (test mode), orders for the merchant, order confirmation email. 133 tests pass. A real Stripe test payment worked end to end: order paid, stock lowered, email written to the log. | Merge into `main`, then Step 5: publishing |
|
|
621
|
|
-| 2026-11-15 | Merged Steps 3 and 4 into `main` and pushed. | Step 5: publishing |
|
|
622
|
|
-| 2026-11-15 | Content pages by chat on branch `feature/content-pages`: add, rename and remove pages, each page at its own address, menu links guaranteed by the app. 139 tests pass; tested with real DeepSeek and in the browser. Step 4 is now complete except the known gaps. | Step 5: publishing |
|
|
623
|
|
-| 2026-11-15 | Planning only. Added Step 8 (discount codes, product variants, bundles with linked stock, chat commands with a confirm step), placed after Malaysia features. "Before launch" is now Step 9. Cart items redesigned as cards. | Step 5: publishing |
|
|
624
|
|
-| 2026-11-15 | Step 5 on branch `feature/publishing`: publish and take offline, live stores on their own address, design changes private until published again, dashboard blocked on store addresses. 150 tests pass; Luna Skin published and checked in the browser at `luna-skin.localhost:8000`. | Step 6: subscription billing |
|
|
625
|
|
-| 2026-11-16 | Step 6 on branch `feature/billing`: plans table, 14-day trial, Stripe subscriptions (subscribe, switch, cancel, undo), Billing page, limits enforced, live stores offline when there is no plan. 164 tests pass; real Stripe test subscription to Growth, cancel and undo all worked. Switched the session model from Fable 5.2 to Opus 5.5. | Merge into `main`, then Step 7 |
|
|
626
|
|
-| 2026-11-16 | Step 7 part 1 on branch `feature/malaysia-shipping`: store settings, flat shipping fees (west, east, free over), mark as shipped with tracking and email, WhatsApp buttons, Malay checkout messages, Malaysian phone check. Fixed live-store menu links on pages other than home (bug from Step 5). 178 tests pass; real Stripe test payment with shipping to Sabah worked. | Merge, then Step 7 part 2 or Step 8 |
|
|
627
|
|
-| 2026-11-16 | Featured product fix on branch `feature/featured-product-link` (built on `feature/malaysia-shipping`): the section links to a real product (Design tab picker or chat), shows its real name, price, photo and page, and hides the made-up price otherwise. Added a check that marks chat edits that changed nothing. 191 tests pass; checked in the browser and with real DeepSeek. | Merge both branches, then Step 7 part 2 or Step 8 |
|
|
628
|
|
-| 2026-11-16 | Planning only. Added "more design styles" to later improvements: style options (effects, backgrounds, buttons, spacing, motion), more fonts, more layouts per section, more section types. | Merge branches, then Step 7 part 2 or Step 8 |
|
|
629
|
|
-| 2026-11-16 | Step 8 part 1 on branch `feature/discount-codes`: discount codes (merchant Discounts tab, cart code box, order record, Stripe coupon, use counted when paid). 207 tests pass; real Stripe test payment with a 20% code worked. | Merge, then product variants |
|
|
630
|
|
-| 2026-11-16 | Step 8 part 2 on branch `feature/product-variants` (built on `feature/discount-codes`): product options and variants, option buttons on the product page, variant cart lines, orders and stock. 217 tests pass; real Stripe test payment for a 100ml variant with a discount code worked. | Merge both branches, then bundles |
|
|
631
|
|
-| 2026-11-16 | Step 8 part 3 on branch `feature/bundles`: bundles with linked stock (bundle editor in the product form, "What's inside" on the product page, shared stock check at checkout, order shows what to pack). 223 tests pass; real Stripe test payment for "Glow Starter Set" (cleanser + 50ml moisturiser, RM 69 + RM 8 shipping) lowered both items' stock. | Merge, then chat commands |
|
|
632
|
|
-| 2026-11-17 | Step 8 part 4 on branch `feature/chat-commands`: chat commands for products, discount codes and bundles, with Confirm and Cancel in the chat. Shared discount rules. Fixed a test that failed by chance (random stock). 233 tests pass; with real DeepSeek, "GLOW15 until end of month + 100ml to RM 52" was proposed, confirmed and saved; a product + bundle request was proposed correctly and cancelled. | Merge; then automatic discounts, Step 7 part 2 or Step 9 |
|
|
633
|
|
-| 2026-11-17 | Step 8 part 5 on branch `feature/automatic-discounts`: automatic discounts (Discounts tab form, best-of-one rule with codes, cart nudge, product page note, order/Stripe/email name, chat command). Step 8 is done. 243 tests pass; real Stripe test payment with "Glow Week" (2 cleansers, −RM 8.40, total RM 83.60) worked, GLOW15 correctly won when typed; real DeepSeek proposed a sunscreen-only sale correctly (cancelled). | Merge; then Step 7 part 2 or Step 9 |
|
|
634
|
|
-| 2026-11-17 | Chat commands can write product descriptions from the product name (same branch, `feature/automatic-discounts`). Real DeepSeek test found the AI guessing bundle contents, so bundle contents are now listed for it; second try was accurate. 244 tests pass. | Merge; then Step 7 part 2 or Step 9 |
|
|
635
|
|
-| 2026-11-17 | Researched 2026 store design trends and published a comparison page. Added Step 9 — Modern store design (6 parts) and the category guides decision; "Before launch" is now Step 10. | Step 9 part 1: photos first |
|
|
636
|
|
-| 2026-11-18 | Step 9 part 1 on branch `redesign/part-1-photo-hero`: full-width and split photo heroes, hero photo upload and picker in the Design tab, automatic product photo, second photo on hover, letter placeholders, AI told about photos. 251 tests pass; checked in the browser at desktop and phone width with a test banner on Luna Skin. | Merge, then part 2 |
|
|
637
|
|
-| 2026-11-18 | Step 9 part 2 on branch `redesign/part-2-announcement-bar` (from part 1): announcement bar (automatic lines + merchant lines, Settings card) and trust row section with live facts. Plan checker now supports "required if" rules. 257 tests pass; real DeepSeek added a trust row to Luna Skin correctly; checked in the browser. | Commit; part 3 branches from part 2 |
|
|
638
|
|
-| 2026-11-18 | Step 9 part 3 on branch `redesign/part-3-product-page` (from part 2): folding sections (form, chat with merge by title), trust points, sticky phone add-to-cart bar, pairs well with, phone menu, sticky photos. Found and fixed the sticky bar hiding under the header. 261 tests pass; real DeepSeek wrote a sensible "How to use" for the sunscreen (confirmed); checked at phone width. | Commit; part 4 branches from part 3 |
|
|
639
|
|
-| 2026-11-19 | Step 9 part 4 on branch `redesign/part-4-style-options` (from part 3): style options, six ready-made looks with a Style box, 12 more fonts, gentle motion, AI style rules. Fixed fade-in hiding a section that was already partly on screen. "More layouts per section" moved to a new part 5; category guides are now part 6 and collections part 7. 266 tests pass; Bold look and a real DeepSeek "more premium and elegant" change both checked in the browser. | Commit; part 5 branches from part 4 |
|
|
640
|
|
-| 2026-11-19 | Step 9 part 5 on branch `redesign/part-5-section-layouts` (from part 4): 7 new section layouts (products carousel and large, featured stacked, about statement, reviews wall, FAQ cards, newsletter split, footer columns) and a Layouts box. 270 tests pass; every layout checked in the browser on Luna Skin; long About statements now shown a step smaller. | Commit; part 6 branches from part 5 |
|
|
641
|
|
-| 2026-11-21 | Step 9 part 6 on branch `redesign/part-6-category-guides` (from part 5): category design guides and "looks to avoid" for the AI. 275 tests pass; generated two real test stores with Claude Sonnet (Dapur Mak Teh, food; Seri Anggun, fashion) and they came out clearly different. | Commit; then part 7 or merge |
|
|
642
|
|
-| 2026-11-21 | Decided to keep `main` and the redesign apart for comparison. Split reviews out as part 8. Step 9 part 7 on branch `redesign/part-7-collections-bento-video` (from part 6): collections (Products tab, chat, pages, links), shop by, bento and video sections, with AI checks for collection names and video addresses. 282 tests pass; real DeepSeek created two collections for Luna Skin (confirmed) and added shop by and bento correctly; checked in the browser. | Commit; part 8 branches from part 7 |
|
|
643
|
|
-| 2026-11-22 | Added Video and Bento boxes to the Design tab (same branch, part 7), so both can be added and edited without chat. The merchant added a real YouTube video to Luna Skin by chat; it plays in the preview. 286 tests pass. | Commit part 7; then part 8 |
|
|
644
|
|
-| 2026-11-22 | Part 7 committed on `redesign/part-7-collections-bento-video`. Part 8 (real reviews) put on hold by the merchant. | Choose next step |
|
|
645
|
|
-| 2026-11-22 | Built our own home page on branch `feature/homepage`: content outline like afilink.app with our own look, real plan prices, store-name box that fills the Create store form. 288 tests pass; checked on desktop and phone. Then made the hero picture move like afilink's (pinned scroll on wide screens, plays once on phones, floating tags), fixed tags covering text, added hover lift on the hero pieces and pricing cards, made the store and bubble float, and added six more animations (fade-up, typing bubble, playing chat, changing styles, steps line, shop-types strip). | Commit; choose next step |
|
|
646
|
|
-| 2026-11-22 | Home page committed. Added the privacy policy (`/privacy`) and terms of service (`/terms`) for Malaysian law, naming the AI companies from the AI settings, linked from the home footer and sign-up. 293 tests pass; checked on desktop and phone. | Commit; lawyer check; choose next |
|
|
647
|
|
-| 2026-11-22 | Redesigned the dashboard on branch `feature/dashboard` (picked from three trend designs: AI note on top of colourful boxes). Stats with filters, needs attention, sales chart, store tree in the sidebar, daily Store pulse from DeepSeek saved per day with 3 "Write again" a day, first-sale steps for new merchants. 303 tests pass; checked on desktop, phone and dark mode. | Commit; choose next step |
|
|
648
|
|
-| 2026-11-25 | On `feature/dashboard` (not committed): store letter tiles in the sidebar; researched courier prices and APIs (J&T, Pos Laju, GDEX, DHL eCommerce): only GDEX has a public developer site, the others need a sales contract, so EasyParcel stays the plan; "Show in the preview": clicking a section name in the Design tab scrolls the preview to it and outlines it; banner photos now accepted from 300×200 and got ready in the background (enlarged, shrunk, upright, WebP); "Ask the AI" is now a floating button that opens a chat panel; Light/Dark switch above the user in the sidebar; Select to edit (click or drag in the preview, Ask the AI changes only that part). 310 tests pass; checked in the browser on desktop and phone preview. | Commit, then EasyParcel demo key |
|
|
649
|
|
-| 2026-11-26 | Decided to use the new design: merged `feature/dashboard` into `main`, old design kept as tag `old-design`. | EasyParcel demo key |
|
|
|
650
|
+| Date | Done | Next |
|
|
|
651
|
+| ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------ |
|
|
|
652
|
+| 2026-11-14 | Planning. Chose stack, market, payments, AI models, plan prices. Checked local tools. Created this file. All proposed decisions confirmed. Added the rule that the AI model must be easy to change. | Install PHP 8.4, create the Laravel project (Step 0 and Step 1) |
|
|
|
653
|
+| 2026-11-14 | Installed PHP 8.4. Created the Laravel 13 + React project, MySQL database and git repo. Built create-a-store flow and dashboard. 51 tests pass; login and store creation checked in the browser. Step 0 and Step 1 done. | Step 2: store plan format, sections, renderer |
|
|
|
654
|
+| 2026-11-14 | Step 2 done on branch `feature/store-sections-renderer`: store plan format and validator, 10 sections with 2 variants each, renderer, dashboard preview, sample design. 69 tests pass; storefront checked in the browser on desktop and mobile. | Step 3: swappable AI layer and store generation |
|
|
|
655
|
+| 2026-11-14 | First commit made and pushed to the private repository on git.mirfalah.my (branch `feature/store-sections-renderer`). | Step 3: swappable AI layer and store generation |
|
|
|
656
|
+| 2026-11-14 | Step 3 built on branch `feature/ai-generation`: swappable AI layer (Claude, DeepSeek, fake), full store generation, chat edits, background job with progress screen, plan limits. 92 tests pass; whole flow checked in the browser with the fake provider. Not yet run against real Claude or DeepSeek. | Add API keys, run the real test, then Step 4 |
|
|
|
657
|
+| 2026-11-14 | Split settings into `.env` (uploaded, no secrets, AI settings blank) and `.env.local` (private, complete). Removed `.env.example`. | Real AI test, then Step 4 |
|
|
|
658
|
+| 2026-11-14 | Real AI test passed: Claude Sonnet 5.5 generated two stores, DeepSeek made two chat edits. Tuned the prompt for more varied layouts. Step 3 done. | Merge into `main`, then Step 4: products |
|
|
|
659
|
+| 2026-11-14 | Step 4 part 1 on branch `feature/commerce`: store plan version 2 with pages, products with photos, Shop page, product page, real products on the home page. 108 tests pass; checked in the browser; real Claude and DeepSeek re-tested with the new format. | Step 4 part 2: cart, Stripe checkout, orders, email |
|
|
|
660
|
+| 2026-11-14 | Cart built on branch `feature/commerce`: add to cart, quantity, remove, subtotal, header count, stock limits. 118 tests pass; checked in the browser. | Stripe checkout (needs test keys), orders, email |
|
|
|
661
|
+| 2026-11-15 | Step 4 finished on branch `feature/commerce`: checkout with Stripe (test mode), orders for the merchant, order confirmation email. 133 tests pass. A real Stripe test payment worked end to end: order paid, stock lowered, email written to the log. | Merge into `main`, then Step 5: publishing |
|
|
|
662
|
+| 2026-11-15 | Merged Steps 3 and 4 into `main` and pushed. | Step 5: publishing |
|
|
|
663
|
+| 2026-11-15 | Content pages by chat on branch `feature/content-pages`: add, rename and remove pages, each page at its own address, menu links guaranteed by the app. 139 tests pass; tested with real DeepSeek and in the browser. Step 4 is now complete except the known gaps. | Step 5: publishing |
|
|
|
664
|
+| 2026-11-15 | Planning only. Added Step 8 (discount codes, product variants, bundles with linked stock, chat commands with a confirm step), placed after Malaysia features. "Before launch" is now Step 9. Cart items redesigned as cards. | Step 5: publishing |
|
|
|
665
|
+| 2026-11-15 | Step 5 on branch `feature/publishing`: publish and take offline, live stores on their own address, design changes private until published again, dashboard blocked on store addresses. 150 tests pass; Luna Skin published and checked in the browser at `luna-skin.localhost:8000`. | Step 6: subscription billing |
|
|
|
666
|
+| 2026-11-16 | Step 6 on branch `feature/billing`: plans table, 14-day trial, Stripe subscriptions (subscribe, switch, cancel, undo), Billing page, limits enforced, live stores offline when there is no plan. 164 tests pass; real Stripe test subscription to Growth, cancel and undo all worked. Switched the session model from Fable 5.2 to Opus 5.5. | Merge into `main`, then Step 7 |
|
|
|
667
|
+| 2026-11-16 | Step 7 part 1 on branch `feature/malaysia-shipping`: store settings, flat shipping fees (west, east, free over), mark as shipped with tracking and email, WhatsApp buttons, Malay checkout messages, Malaysian phone check. Fixed live-store menu links on pages other than home (bug from Step 5). 178 tests pass; real Stripe test payment with shipping to Sabah worked. | Merge, then Step 7 part 2 or Step 8 |
|
|
|
668
|
+| 2026-11-16 | Featured product fix on branch `feature/featured-product-link` (built on `feature/malaysia-shipping`): the section links to a real product (Design tab picker or chat), shows its real name, price, photo and page, and hides the made-up price otherwise. Added a check that marks chat edits that changed nothing. 191 tests pass; checked in the browser and with real DeepSeek. | Merge both branches, then Step 7 part 2 or Step 8 |
|
|
|
669
|
+| 2026-11-16 | Planning only. Added "more design styles" to later improvements: style options (effects, backgrounds, buttons, spacing, motion), more fonts, more layouts per section, more section types. | Merge branches, then Step 7 part 2 or Step 8 |
|
|
|
670
|
+| 2026-11-16 | Step 8 part 1 on branch `feature/discount-codes`: discount codes (merchant Discounts tab, cart code box, order record, Stripe coupon, use counted when paid). 207 tests pass; real Stripe test payment with a 20% code worked. | Merge, then product variants |
|
|
|
671
|
+| 2026-11-16 | Step 8 part 2 on branch `feature/product-variants` (built on `feature/discount-codes`): product options and variants, option buttons on the product page, variant cart lines, orders and stock. 217 tests pass; real Stripe test payment for a 100ml variant with a discount code worked. | Merge both branches, then bundles |
|
|
|
672
|
+| 2026-11-16 | Step 8 part 3 on branch `feature/bundles`: bundles with linked stock (bundle editor in the product form, "What's inside" on the product page, shared stock check at checkout, order shows what to pack). 223 tests pass; real Stripe test payment for "Glow Starter Set" (cleanser + 50ml moisturiser, RM 69 + RM 8 shipping) lowered both items' stock. | Merge, then chat commands |
|
|
|
673
|
+| 2026-11-17 | Step 8 part 4 on branch `feature/chat-commands`: chat commands for products, discount codes and bundles, with Confirm and Cancel in the chat. Shared discount rules. Fixed a test that failed by chance (random stock). 233 tests pass; with real DeepSeek, "GLOW15 until end of month + 100ml to RM 52" was proposed, confirmed and saved; a product + bundle request was proposed correctly and cancelled. | Merge; then automatic discounts, Step 7 part 2 or Step 9 |
|
|
|
674
|
+| 2026-11-17 | Step 8 part 5 on branch `feature/automatic-discounts`: automatic discounts (Discounts tab form, best-of-one rule with codes, cart nudge, product page note, order/Stripe/email name, chat command). Step 8 is done. 243 tests pass; real Stripe test payment with "Glow Week" (2 cleansers, −RM 8.40, total RM 83.60) worked, GLOW15 correctly won when typed; real DeepSeek proposed a sunscreen-only sale correctly (cancelled). | Merge; then Step 7 part 2 or Step 9 |
|
|
|
675
|
+| 2026-11-17 | Chat commands can write product descriptions from the product name (same branch, `feature/automatic-discounts`). Real DeepSeek test found the AI guessing bundle contents, so bundle contents are now listed for it; second try was accurate. 244 tests pass. | Merge; then Step 7 part 2 or Step 9 |
|
|
|
676
|
+| 2026-11-17 | Researched 2026 store design trends and published a comparison page. Added Step 9 — Modern store design (6 parts) and the category guides decision; "Before launch" is now Step 10. | Step 9 part 1: photos first |
|
|
|
677
|
+| 2026-11-18 | Step 9 part 1 on branch `redesign/part-1-photo-hero`: full-width and split photo heroes, hero photo upload and picker in the Design tab, automatic product photo, second photo on hover, letter placeholders, AI told about photos. 251 tests pass; checked in the browser at desktop and phone width with a test banner on Luna Skin. | Merge, then part 2 |
|
|
|
678
|
+| 2026-11-18 | Step 9 part 2 on branch `redesign/part-2-announcement-bar` (from part 1): announcement bar (automatic lines + merchant lines, Settings card) and trust row section with live facts. Plan checker now supports "required if" rules. 257 tests pass; real DeepSeek added a trust row to Luna Skin correctly; checked in the browser. | Commit; part 3 branches from part 2 |
|
|
|
679
|
+| 2026-11-18 | Step 9 part 3 on branch `redesign/part-3-product-page` (from part 2): folding sections (form, chat with merge by title), trust points, sticky phone add-to-cart bar, pairs well with, phone menu, sticky photos. Found and fixed the sticky bar hiding under the header. 261 tests pass; real DeepSeek wrote a sensible "How to use" for the sunscreen (confirmed); checked at phone width. | Commit; part 4 branches from part 3 |
|
|
|
680
|
+| 2026-11-19 | Step 9 part 4 on branch `redesign/part-4-style-options` (from part 3): style options, six ready-made looks with a Style box, 12 more fonts, gentle motion, AI style rules. Fixed fade-in hiding a section that was already partly on screen. "More layouts per section" moved to a new part 5; category guides are now part 6 and collections part 7. 266 tests pass; Bold look and a real DeepSeek "more premium and elegant" change both checked in the browser. | Commit; part 5 branches from part 4 |
|
|
|
681
|
+| 2026-11-19 | Step 9 part 5 on branch `redesign/part-5-section-layouts` (from part 4): 7 new section layouts (products carousel and large, featured stacked, about statement, reviews wall, FAQ cards, newsletter split, footer columns) and a Layouts box. 270 tests pass; every layout checked in the browser on Luna Skin; long About statements now shown a step smaller. | Commit; part 6 branches from part 5 |
|
|
|
682
|
+| 2026-11-21 | Step 9 part 6 on branch `redesign/part-6-category-guides` (from part 5): category design guides and "looks to avoid" for the AI. 275 tests pass; generated two real test stores with Claude Sonnet (Dapur Mak Teh, food; Seri Anggun, fashion) and they came out clearly different. | Commit; then part 7 or merge |
|
|
|
683
|
+| 2026-11-21 | Decided to keep `main` and the redesign apart for comparison. Split reviews out as part 8. Step 9 part 7 on branch `redesign/part-7-collections-bento-video` (from part 6): collections (Products tab, chat, pages, links), shop by, bento and video sections, with AI checks for collection names and video addresses. 282 tests pass; real DeepSeek created two collections for Luna Skin (confirmed) and added shop by and bento correctly; checked in the browser. | Commit; part 8 branches from part 7 |
|
|
|
684
|
+| 2026-11-22 | Added Video and Bento boxes to the Design tab (same branch, part 7), so both can be added and edited without chat. The merchant added a real YouTube video to Luna Skin by chat; it plays in the preview. 286 tests pass. | Commit part 7; then part 8 |
|
|
|
685
|
+| 2026-11-22 | Part 7 committed on `redesign/part-7-collections-bento-video`. Part 8 (real reviews) put on hold by the merchant. | Choose next step |
|
|
|
686
|
+| 2026-11-22 | Built our own home page on branch `feature/homepage`: content outline like afilink.app with our own look, real plan prices, store-name box that fills the Create store form. 288 tests pass; checked on desktop and phone. Then made the hero picture move like afilink's (pinned scroll on wide screens, plays once on phones, floating tags), fixed tags covering text, added hover lift on the hero pieces and pricing cards, made the store and bubble float, and added six more animations (fade-up, typing bubble, playing chat, changing styles, steps line, shop-types strip). | Commit; choose next step |
|
|
|
687
|
+| 2026-11-22 | Home page committed. Added the privacy policy (`/privacy`) and terms of service (`/terms`) for Malaysian law, naming the AI companies from the AI settings, linked from the home footer and sign-up. 293 tests pass; checked on desktop and phone. | Commit; lawyer check; choose next |
|
|
|
688
|
+| 2026-11-22 | Redesigned the dashboard on branch `feature/dashboard` (picked from three trend designs: AI note on top of colourful boxes). Stats with filters, needs attention, sales chart, store tree in the sidebar, daily Store pulse from DeepSeek saved per day with 3 "Write again" a day, first-sale steps for new merchants. 303 tests pass; checked on desktop, phone and dark mode. | Commit; choose next step |
|
|
|
689
|
+| 2026-11-25 | On `feature/dashboard` (not committed): store letter tiles in the sidebar; researched courier prices and APIs (J&T, Pos Laju, GDEX, DHL eCommerce): only GDEX has a public developer site, the others need a sales contract, so EasyParcel stays the plan; "Show in the preview": clicking a section name in the Design tab scrolls the preview to it and outlines it; banner photos now accepted from 300×200 and got ready in the background (enlarged, shrunk, upright, WebP); "Ask the AI" is now a floating button that opens a chat panel; Light/Dark switch above the user in the sidebar; Select to edit (click or drag in the preview, Ask the AI changes only that part). 310 tests pass; checked in the browser on desktop and phone preview. | Commit, then EasyParcel demo key |
|
|
|
690
|
+| 2026-11-26 | Decided to use the new design: merged `feature/dashboard` into `main`, old design kept as tag `old-design`. | EasyParcel demo key |
|
|
|
691
|
+| 2026-11-26 | EasyParcel on branch `feature/easyparcel` (later the same day: real sandbox test passed for connect, prices and the low-credit message; fixed courier names, delivery times and error messages from what the real API sends): merchants connect their own EasyParcel account (guided setup in Settings, OAuth with EasyParcel's new Open API), add a pickup address and usual parcel, and book a courier on a paid order (prices cheapest first, label, tracking number, shopper emailed). 324 tests pass with a pretend EasyParcel; checked Settings and the order page in the browser. | App keys in `.env.local`, then sandbox test |
|
|
|
692
|
+| 2026-11-26 | EasyParcel sandbox booking passed: Pos MELPlus parcel booked for Luna Skin #1001 (RM 7.03), label PDF, tracking and email all worked. Prices shown now leave out tracking extras we do not book. 326 tests pass. | Commit and merge |
|
|
|
693
|
+| 2026-11-30 | Planned how merchants get paid: Stripe Connect with each merchant's own Stripe account, direct charges, no cut for us. A test with our Stripe test key showed Connect is not switched on yet. Plan and tasks written in Step 10. | Commit EasyParcel; switch on Connect in Stripe (test mode); build `feature/stripe-connect` |
|