|
|
@@ -4,8 +4,8 @@ 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
|
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
|
|
|
7
|
+**Current step:** Step 10: Stripe Connect built on branch `feature/stripe-connect` (not committed yet) and tested for real in Stripe test mode: Luna Skin is connected, and a card payment and an FPX payment both landed in its own account. EasyParcel courier booking is done on branch `feature/easyparcel` (not committed yet). Step 9 part 8 on hold
|
|
|
8
|
+**Next action:** Commit, then merge `feature/easyparcel` and `feature/stripe-connect` into `main` (run `php artisan migrate`). 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
|
|
|
|
@@ -128,7 +128,10 @@ Changing from Claude to another AI model (or back) must be a settings change, no
|
|
128
|
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
|
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
|
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.
|
|
|
131
|
+- Stripe only accepts its newer accounts API for this ("Accounts v2": `$stripe->v2->core->accounts` and `accountLinks`; our `stripe/stripe-php` 23 has it). The older one was refused on 2026-11-30. The account is made with `dashboard: full`, country `my`, currency `myr`, the `merchant` configuration with card payments, and Stripe collecting fees and covering losses. FPX cannot be asked for when the account is made (Stripe first needs the business type), so it is asked for after the merchant finishes Stripe's sign-up. Found in the real test: the v2 update refuses Malaysian sole proprietors, so FPX is asked for with the older capability call; and an approved FPX still starts switched off in the merchant's payment method settings, so we switch it on there too (otherwise shoppers only see cards).
|
|
|
132
|
+- Stripe's test sign-up asks for a password and two-step sign-in (the merchant does these), then business, person, bank ("Use test account") and public details. Its page went blank once; our `resume` link opened a fresh one.
|
|
|
133
|
+- One Stripe account per store, like EasyParcel. Code: `app/Commerce/Payments/` (`StripeConnect`, `MerchantAccounts`, `StripeMerchantAccounts`), `StripeConnectController`, `StripeConnectWebhookController`.
|
|
|
134
|
+- Orders paid before Stripe Connect (into our own account) have no `payment_account` and are still checked in our own account.
|
|
132
|
135
|
- 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
|
136
|
- 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
|
137
|
- Discount coupons are made on the merchant's Stripe account, because the payment page lives there.
|
|
|
@@ -152,6 +155,14 @@ Changing from Claude to another AI model (or back) must be a settings change, no
|
|
152
|
155
|
- WhatsApp numbers are saved as digits with country code (`60123456789`). Only Malaysian numbers are accepted. `MalaysianPhone` does the cleaning.
|
|
153
|
156
|
- Messages the server shows to shoppers live in `App\Storefront\StorefrontText`; words drawn in the browser live in `resources/js/storefront/text.ts`.
|
|
154
|
157
|
|
|
|
158
|
+### Shopper emails (restyled 2026-11-30)
|
|
|
159
|
+
|
|
|
160
|
+- The "order paid" and "order shipped" emails are in the store's own look, not ours: its name (from its header), colours, heading and body fonts (with a safe fallback of the same kind, since email apps rarely load web fonts) and corner rounding, from the design shoppers see. Our app's name is not shown.
|
|
|
161
|
+- Built with `App\Mail\StoreBrand` and the Blade components `x-mail.store` (frame) and `x-mail.store-button`, tables and inline styles only. Each email also has a plain-text version.
|
|
|
162
|
+- Buttons: "View your order" (the live store's order page, or the merchant's preview when the store is not live), "Ask on WhatsApp" when the store has a number (a text link in the shipped email), and "Track your parcel" when the courier gave a tracking link. Buttons stack on phones.
|
|
|
163
|
+- Links are built from `APP_URL`, because the paid email can be sent from the webhook, where there is no shopper visit.
|
|
|
164
|
+- Sender and replies (added 2026-11-30): the emails come from our address (so they are delivered) but under the store's name, such as "Luna Skin <hello@…>". Replies go to the store's "Email for shoppers" (`stores.contact_email`), set in Settings under "How shoppers reach you" next to WhatsApp, with a one-click "Use <account email>". It is also shown at the bottom of the emails. When empty, there is no reply address. The account email is never used unless the merchant saves it.
|
|
|
165
|
+
|
|
155
|
166
|
### How discount codes work (added in Step 8)
|
|
156
|
167
|
|
|
157
|
168
|
- Codes live in the `discount_codes` table, per store, saved in capital letters. Shoppers may type them in any case.
|
|
|
@@ -502,16 +513,17 @@ Notes:
|
|
502
|
513
|
|
|
503
|
514
|
- [x] Overview dashboard with stats, store tree in the sidebar and daily AI note (done 2026-11-22, branch `feature/dashboard`)
|
|
504
|
515
|
- [ ] 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
|
|
|
516
|
+ - [x] You: switch on Connect in the Stripe dashboard in **test mode** (done 2026-11-30). "Activate products" and "Create your Stripe profile" in Stripe's setup guide are for live mode only, so they wait until launch
|
|
|
517
|
+ - [x] Checked 2026-11-30 with the test key: Stripe made a Malaysian merchant account, gave a Stripe sign-up link for it, and made a payment page on it. Plan B is not needed
|
|
|
518
|
+ - [x] Branch `feature/stripe-connect` (made from `feature/easyparcel`, because EasyParcel is not merged into `main` yet): table `stripe_accounts` for each store's Stripe account (account id, can take payments, payouts on, form finished, FPX asked), and `payment_account` on each order
|
|
|
519
|
+ - [x] Settings: a "Get paid" card at the top with what to have ready, "Connect Stripe", "Finish setup" if they stopped halfway, "Stripe is checking your details", and a connected view (payouts on or paused, link to their Stripe Dashboard)
|
|
|
520
|
+ - [x] Checkout: the payment page is made on the store's Stripe account (coupons too). Checkout is closed until the store can take payments ("This store is not taking orders yet", in English and Malay)
|
|
|
521
|
+ - [x] Return page checks the payment in the merchant's account; a second webhook `/stripe/connect-webhook` (secret `STRIPE_CONNECT_WEBHOOK_SECRET`) only marks an order paid when the payment is in that order's merchant account. `account.updated` was left out: the account is re-checked when the merchant comes back from Stripe, and at most once a minute from Settings or checkout
|
|
|
522
|
+ - [x] Overview: "Connect Stripe to get paid" is a getting-started step, and a live store that cannot take payments shows in "Needs attention"
|
|
|
523
|
+ - [x] Terms page says how merchants are paid (straight to their own Stripe account, Stripe's Connected Account Agreement, no cut); privacy page says shoppers' payments go to the merchant's Stripe account; "last changed" is now 2026-11-30
|
|
|
524
|
+ - [x] Tests with a pretend Stripe (`FakeMerchantAccounts`): 15 new tests, 341 in all pass
|
|
|
525
|
+ - [x] Real test on 2026-11-30: Luna Skin signed up on Stripe's test form (sole proprietorship, Stripe's test values and test bank), came back "Connected", then order #1008 (Gentle Gel Cleanser RM 42 + RM 8 shipping) was paid with Stripe's test card. Stripe's page said "Pay Luna Skin Enterprise"; RM 50.00 landed in Luna Skin's own test account (RM 47.00 after Stripe's fee), nothing in ours, no cut. Order marked paid, email sent. Payouts turned on a minute later
|
|
|
526
|
+ - [x] FPX test on 2026-11-30: order #1009 (Light Water-Gel Moisturiser 50ml RM 39 + RM 8 shipping) paid with FPX (Maybank2E, Stripe's test bank page). RM 47.00 landed in Luna Skin's own account (RM 44.59 after Stripe's fee), nothing in ours. Order marked paid on the return page
|
|
515
|
527
|
- [ ] Before going live: switch on Connect in live mode, add our name, logo and colour for Stripe's sign-up page
|
|
516
|
528
|
- [ ] Choose hosting and deploy
|
|
517
|
529
|
- [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)
|
|
|
@@ -647,47 +659,52 @@ Moved into **Step 9 — Modern store design** on 2026-11-17.
|
|
647
|
659
|
|
|
648
|
660
|
Add one line per work session: date, what was done, what is next.
|
|
649
|
661
|
|
|
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` |
|
|
|
662
|
+| Date | Done | Next |
|
|
|
663
|
+| ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------- |
|
|
|
664
|
+| 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) |
|
|
|
665
|
+| 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 |
|
|
|
666
|
+| 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 |
|
|
|
667
|
+| 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 |
|
|
|
668
|
+| 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 |
|
|
|
669
|
+| 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 |
|
|
|
670
|
+| 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 |
|
|
|
671
|
+| 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 |
|
|
|
672
|
+| 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 |
|
|
|
673
|
+| 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 |
|
|
|
674
|
+| 2026-11-15 | Merged Steps 3 and 4 into `main` and pushed. | Step 5: publishing |
|
|
|
675
|
+| 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 |
|
|
|
676
|
+| 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 |
|
|
|
677
|
+| 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 |
|
|
|
678
|
+| 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 |
|
|
|
679
|
+| 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 |
|
|
|
680
|
+| 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 |
|
|
|
681
|
+| 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 |
|
|
|
682
|
+| 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 |
|
|
|
683
|
+| 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 |
|
|
|
684
|
+| 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 |
|
|
|
685
|
+| 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 |
|
|
|
686
|
+| 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 |
|
|
|
687
|
+| 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 |
|
|
|
688
|
+| 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 |
|
|
|
689
|
+| 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 |
|
|
|
690
|
+| 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 |
|
|
|
691
|
+| 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 |
|
|
|
692
|
+| 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 |
|
|
|
693
|
+| 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 |
|
|
|
694
|
+| 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 |
|
|
|
695
|
+| 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 |
|
|
|
696
|
+| 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 |
|
|
|
697
|
+| 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 |
|
|
|
698
|
+| 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 |
|
|
|
699
|
+| 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 |
|
|
|
700
|
+| 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 |
|
|
|
701
|
+| 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 |
|
|
|
702
|
+| 2026-11-26 | Decided to use the new design: merged `feature/dashboard` into `main`, old design kept as tag `old-design`. | EasyParcel demo key |
|
|
|
703
|
+| 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 |
|
|
|
704
|
+| 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 |
|
|
|
705
|
+| 2026-11-30 | Planned how merchants get paid: Stripe Connect with each merchant's own Stripe account, direct charges, no cut for us. Connect switched on in Stripe test mode; a test made a Malaysian merchant account, its sign-up link and a payment page on it (newer Accounts v2 needed). Plan and tasks written in Step 10. | Commit EasyParcel; build `feature/stripe-connect` |
|
|
|
706
|
+| 2026-11-30 | Built Stripe Connect on branch `feature/stripe-connect`: "Get paid" card in Settings, merchant Stripe accounts (Accounts v2), payment pages and coupons in the merchant's account, checkout closed until Stripe approves, second webhook, overview step and warning, terms and privacy wording. 341 tests pass; Stripe's test sign-up page opened from Settings. | Test sign-up and test payment, then commit and merge |
|
|
|
707
|
+| 2026-11-30 | Stripe Connect tested for real (test mode): Luna Skin signed up and connected; order #1008 (RM 50) paid into Luna Skin's own Stripe account, none in ours. Fixed FPX: asked for with the older capability call and switched on in the merchant's payment settings, so FPX now shows to shoppers. 341 tests pass. | Commit and merge |
|
|
|
708
|
+| 2026-11-30 | FPX test passed: order #1009 (RM 47) paid with FPX (Maybank2E test bank) into Luna Skin's own Stripe account. | Commit and merge |
|
|
|
709
|
+| 2026-11-30 | Restyled the shopper emails (order paid, order shipped) in each store's own colours, fonts and corners, with View order, WhatsApp and Track parcel buttons and plain-text versions. Checked on desktop and phone width for Luna Skin, Sambal Nenek (Malay, serif) and Crunch & Co. 349 tests pass. | Commit and merge |
|
|
|
710
|
+| 2026-11-30 | Store contact email: "How shoppers reach you" card in Settings (WhatsApp + email for shoppers); order emails are sent under the store's name with replies to that email, shown in the footer. 352 tests pass; saved and checked for Luna Skin. | Commit and merge |
|