From cbd816592b83114faf7df7a41cf84cfcff80e466 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 18 Oct 2026 09:48:54 +0700 Subject: [PATCH] docs: label tenant examples and LLM prompt guides --- PRODUCT_JSON_IMPORT_SCHEMA.md | 2 +- docs/DOCUMENTATION_MIGRATION.md | 16 ++++++++++++++++ tools/gitea.ts | 12 ++++++++++++ 3 files changed, 29 insertions(+), 1 deletion(-) diff --git a/PRODUCT_JSON_IMPORT_SCHEMA.md b/PRODUCT_JSON_IMPORT_SCHEMA.md index e28de11..a13b2e9 100644 --- a/PRODUCT_JSON_IMPORT_SCHEMA.md +++ b/PRODUCT_JSON_IMPORT_SCHEMA.md @@ -2,7 +2,7 @@ > **DBK Platform tenant example:** Schema fields are shared platform contracts. The HomAroma brand, aroma products, categories, and copy below are reference-tenant sample data only. -ระบบนำเข้าสินค้าของ HomAroma รองรับการ Import ผ่านไฟล์ `.json` หรือวาง Payload JSON Array ได้โดยตรงผ่าน: +ระบบนำเข้าสินค้าของ DBK Platform (ตัวอย่างข้อมูลแคตตาล็อกสินค้าอ้างอิงจาก Reference Tenant: HomAroma) รองรับการ Import ผ่านไฟล์ `.json` หรือวาง Payload JSON Array ได้โดยตรงผ่าน: 1. **หน้าจอ Admin:** เมนู `/products` -> กดปุ่ม **"Import JSON"** 2. **API Endpoint:** `POST /api/products/bulk` หรือ `POST /api/products` diff --git a/docs/DOCUMENTATION_MIGRATION.md b/docs/DOCUMENTATION_MIGRATION.md index e830eb0..8ce18fb 100644 --- a/docs/DOCUMENTATION_MIGRATION.md +++ b/docs/DOCUMENTATION_MIGRATION.md @@ -27,6 +27,22 @@ See [Platform Overview](PLATFORM_OVERVIEW.md) for terminology. - `HUAHIN_DEPLOYMENT_RUNBOOK.md` - `KITTISAK_DEPLOYMENT_RUNBOOK.md` - `TENANT_PROVISIONING_POSTMORTEM_CHECKLIST.md` +- `PRODUCT_JSON_IMPORT_SCHEMA.md` +- `LLM_PRODUCT_JSON_GENERATOR_GUIDE.md` +- `LLM_PROMPT_1_WELLNESS_LUXURY.md` +- `LLM_PROMPT_2_BEAUTY_MULTIBRAND.md` +- `LLM_PROMPT_3_FASHION_LIFESTYLE.md` +- `LLM_PROMPT_4_MOTO_PARTS.md` +- `TEST_INFRA.md` +- `docs/notifications/order-confirmation.md` +- `docs/notifications/shipping-tracking.md` +- `docs/policies/privacy-policy.md` +- `docs/policies/return-policy.md` +- `docs/policies/shipping-policy.md` +- `docs/tenants/kittisak.com/README.md` +- `docs/tenants/kittisak.com/brand-identity.md` +- `docs/tenants/kittisak.com/integrations.md` +- `docs/tenants/kittisak.com/user-flows.md` These documents now introduce DBK Platform before mentioning HomAroma and explain the platform/tenant boundary. diff --git a/tools/gitea.ts b/tools/gitea.ts index 59b41a6..3784cd3 100644 --- a/tools/gitea.ts +++ b/tools/gitea.ts @@ -116,6 +116,18 @@ async function main() { }); console.log(`Created Pull Request #${pr.number}: ${pr.title}`); console.log(`URL: ${pr.html_url}`); + } else if (sub === 'merge') { + const index = args[1]; + const method = args[2] || 'merge'; // merge, rebase, rebase-merge, squash + if (!index) { + console.error('Usage: bun tools/gitea.ts prs merge [method]'); + process.exit(1); + } + await api(`/repos/${OWNER}/${REPO}/pulls/${index}/merge`, { + method: 'POST', + body: JSON.stringify({ Do: method }), + }); + console.log(`Merged Pull Request #${index} using method: ${method}`); } break; } -- 2.43.0