docs: add concise project context summary
Some checks failed
CI - Production Readiness / Verify (push) Has been cancelled
Some checks failed
CI - Production Readiness / Verify (push) Has been cancelled
This commit is contained in:
58
context.txt
Normal file
58
context.txt
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
# Ringkasan Pekerjaan (WhatsApp Inbox Platform)
|
||||||
|
|
||||||
|
Periode: 2026-04-20 s.d. 2026-04-21
|
||||||
|
|
||||||
|
## 1) Inisialisasi proyek
|
||||||
|
- Rename folder kerja jadi `whatsapp-inbox-platform`.
|
||||||
|
- Inisiasi Git lokal dan set remote:
|
||||||
|
- `https://git.iptek.co/wirabasalamah/whatsapp-inbox-platform.git`
|
||||||
|
- Membuat commit awal proyek:
|
||||||
|
- `adde003` — `chore: initial project import`
|
||||||
|
|
||||||
|
## 2) Fitur inti yang sudah dibangun (singkat)
|
||||||
|
- Pembuatan struktur screen & UI mengikuti `screen_design` sesuai logo `logo_zappcare.png`.
|
||||||
|
- Implementasi tema strict mode.
|
||||||
|
- Realisasi koneksi data nyata dengan Prisma/DB, migration, seed, dan koneksi halaman inti.
|
||||||
|
- Integrasi multi-bahasa (ID/EN) via i18n.
|
||||||
|
- Validasi role/action dan role-permission.
|
||||||
|
- Implementasi retry campaign (manual + background daemon), audit trail terstruktur, dan event sync (webhook + send adapter).
|
||||||
|
- Retry/backoff + sinkronisasi event + alerting.
|
||||||
|
- Peningkatan kesiapan production (safety/ops readiness, smoke, runbook).
|
||||||
|
|
||||||
|
## 3) Deployment & operasi
|
||||||
|
- Menyiapkan panduan deployment lengkap Ubuntu:
|
||||||
|
- `INSTALL-UBUNTU-APP-ZAPPCARE-FROM-GITEA.md`
|
||||||
|
- `INSTALL-UBUNTU-APP-ZAPPCARE.md`
|
||||||
|
- Deployment dirancang port `3002` (menghindari konflik dengan `3000` dan `3001`).
|
||||||
|
- Tambah systemd service:
|
||||||
|
- `whatsapp-inbox` (app)
|
||||||
|
- `whatsapp-inbox-retry` (daemon retry campaign)
|
||||||
|
- Konfigurasi Nginx + SSL LetsEncrypt untuk `app.zappcare.id`.
|
||||||
|
- Menyiapkan instruksi pull/rollback/update rutin.
|
||||||
|
|
||||||
|
## 4) Repo hygiene
|
||||||
|
- Menambahkan aturan `.gitignore` agar aman dari file lokal:
|
||||||
|
- `.env`
|
||||||
|
- `prisma/*.db`, `prisma/*.db-journal`
|
||||||
|
- `.DS_Store`
|
||||||
|
- (sudah ada sebelumnya untuk `.next`, `node_modules`, `dev.db`, `dev.db-journal`)
|
||||||
|
- Commit housekeeping:
|
||||||
|
- `1abd899` — `chore: ignore local env/db artifacts`
|
||||||
|
- Membersihkan working tree dari artifact lokal yang tidak di-track.
|
||||||
|
|
||||||
|
## 5) State saat ini
|
||||||
|
- Branch: `main`
|
||||||
|
- Commit terakhir:
|
||||||
|
- `1abd899`
|
||||||
|
- Untracked sensitive file sudah dibersihkan di workspace, dan pattern sudah di-ignore agar tidak masuk repo.
|
||||||
|
- File yang sudah menjadi acuan utama di repo:
|
||||||
|
- `context.txt` (ringkasan ini)
|
||||||
|
- `INSTALL-UBUNTU-APP-ZAPPCARE-FROM-GIT.md` (sumber Git deployment)
|
||||||
|
- `INSTALL-UBUNTU-APP-ZAPPCARE.md` dan `ops-runbook.md` (ops guide)
|
||||||
|
|
||||||
|
## 6) Langkah berikutnya (opsional)
|
||||||
|
- Verifikasi akhir:
|
||||||
|
- `git status`
|
||||||
|
- `git push -u origin main`
|
||||||
|
- Atur akses token Gitea (PAT) untuk push otomatis agar tidak pakai password.
|
||||||
|
- Jalankan smoke/readiness di server staging/production.
|
||||||
Reference in New Issue
Block a user