For QA · Internal
Privateer: Full QA Testing Guide
A practical, click-by-click guide to testing the whole app. You don't need to read the source code. Public name: Privateer · internal codename: TreeView.
Privateer is a privacy-first, encrypted AI chat app (iOS, Android, Web). Think "ChatGPT, but every message is encrypted on your device before it leaves it, and the server only ever stores ciphertext." It also has an image generator, a node-based "graph" conversation canvas, projects, a personal memory system, and a paid subscription + credit system.
1.The 30-second mental model
These cross-cutting concepts affect every test. Understand them first or you'll log false bugs.
| Two login methods | Email+password and Solana crypto wallet. A wallet user has no email. Anything that assumes "every user has an email" is a bug. Test both. |
| Two storage backends | Cloud (data on server, encrypted) and Local (data stays on device only). Many features behave differently per backend, so always note which one you're in (Settings → Storage). |
| Encryption | Messages are encrypted with a key derived from your password / wallet signature. There is no password reset. Forgetting the password = permanent data loss. This is intentional, not a bug. |
| Per-device settings | Language and theme are stored on the device, not your account. Logging in on a second device will NOT carry them over. Expected. |
| Subscription tiers | Deckhand → Sailor → Navigator → Captain → Admiral. These tier names are brand names and are never translated. |
2.Where to test (environments)
| Android (physical) | Sideloaded APK on a Galaxy S21-class device. Primary QA target. |
| Android (emulator) | Android Studio emulator via Expo Go or a dev build. |
| iOS | TestFlight build (or local dev build on a Mac). |
| Web | Browser build. Web is cloud-only: the "Local" storage backend is disabled on web by design. |
3.Running the full stack locally
Only needed when testing against a local server. Three pieces: server, client, and supporting services (MongoDB + Redis).
3.1 Server
Needs server/config.env populated. MongoDB must be reachable. Redis must be reachable; without it, rate-limiting and wallet-nonce checks fail open silently (if wallet login behaves oddly, suspect Redis).
Health check: GET http://localhost:5000/api/chat/health → { "status": "healthy" }.
3.2 Client
Then press a (Android), i (iOS), or w (web).
3.3 Pointing the device at your dev server (the #1 gotcha)
A phone or emulator can't reach localhost on your computer. Set your machine's LAN IP:
- Get your IP:
ifconfig | grep "inet " | grep -v 127.0.0.1 - Edit
client/app.json→expo.extra.devMachineIP(e.g.192.168.1.100). Helper:node update-dev-ip.jsfrom repo root. - Restart Expo with
-c. - Confirm in console:
✅ Using configured dev machine IP: …
If images or chats fail with "Failed to connect to localhost:5000," this IP is almost always the cause. See EXPO_GO_ANDROID_SETUP.md.
4.Test accounts & data
- Create fresh accounts for most testing; registration + email verification is itself a flow worth exercising.
- Keep one email account and one wallet account to test both auth paths.
- Keep one Cloud-backend and one Local-backend account (or switch a single account; see §5.6).
- Write down passwords. There is no reset. A forgotten password is an unrecoverable account, not a bug.
- For payments, always use Stripe test mode and test cards (e.g.
4242 4242 4242 4242, any future expiry/CVC). Never a real card. Seedocs/SUBSCRIPTION_TESTING.md.
5.Core test flows
Each flow is a checklist. For every step note: platform, auth method, storage backend, and language if relevant.
5.1 First launch
- Fresh install opens straight on guest chat (no intro slides, no sign-in wall), with a Sign In button visible in the chat's top bar.
- Language auto-detects from device locale (change device language before first launch to test).
- That button reaches login/signup with no crash; copy reads "Privateer" everywhere (never "TreeView" or "Helix").
5.2 Auth: Email / password
- Register with email + password → prompted to verify email.
- Email verification: open the link (also test the web link
/verify-email#token=…); account activates and the verify result screen is shown. - Resend verification works.
- Login with correct credentials lands in the app.
- Login with wrong password → clear inline error (not a dead-end modal).
- Change password (Settings → Security); old password no longer works; existing encrypted data still decrypts.
- Logout then log back in → chats/images reappear and decrypt correctly.
5.3 Auth: Solana wallet
- Connect wallet and sign the login challenge → logged in with no email required.
- Everything that shows account identity works without an email present.
- Log out and back in via wallet → data decrypts (you may be prompted to re-sign).
5.4 Chat (the core feature)
- Send a text message → streams a response token-by-token.
- Long conversation: scroll; history persists after reload.
- Stop / cancel a generation mid-stream → stops cleanly; partial text preserved sensibly.
- Model picker: change the AI model; selection persists; next responses use it.
- Web search: ask something needing current info → returns sources; a bare "try that again" must NOT trigger a junk web search.
- Error UX: force an error (airplane mode mid-send) → inline error bubble with retry that replays the full request (incl. attached image/options), not a dead end.
- Concurrent chats: start a generation in one chat, switch to another and start a second → both run; side-nav shows spinners. Cap enforced by tier (
maxConcurrentJobs). - Reload the app mid-generation → no corruption.
5.5 Image generation
- "Generate an image of …" → image appears and is readable.
- Revisit the chat / restart the app → image still loads (encrypted + re-fetched). Failing only on revisit/restart is a known bug class; report with repro.
- Cloud backend: image stored to S3 (encrypted). Local backend: stays on device, never uploaded.
- Open an image full-screen; save/share if offered.
- Library → grid of thumbnails loads; tapping opens the full image.
5.6 Storage backend switching (do this deliberately)
- Default backend is Cloud.
- Switch to Local → new chats/images stay on device; local content must NOT appear server-side.
- On web the Local toggle is locked/disabled. That is correct, not a bug.
- Preferences follow the backend: cloud → server; local → device-only encrypted storage.
5.7 Graph view (node canvas)
- Open Graphs → conversation renders as connected nodes (prompt + AI response per node).
- Branch from a node → child node continues from that point.
- Branch from an image node + "generate an image" → parent image is used as an image-to-image reference (not ignored).
- Pending node shows a spinner, morphs to the response; an error morphs to an error node (not a modal).
- Web: tap-to-select lands on the correct node (test after resizing the window / toggling devtools).
5.8 Projects
- Create a project; add files (PDF, audio, docx, csv, code).
- Chat within the project referencing attached files → files used as context.
- Files persist (E2EE to S3 on cloud) and are openable later from Library.
- Delete a project → removed cleanly (no server 500 / "ObjectId" error).
5.9 Memories (personalization)
- App surfaces/saves "memories" about you (Settings → Memories / Personalization).
- Only memories relevant to the current prompt are applied; unrelated ones are silently skipped. An empty/strict result is by design; don't log "it ignored my memory" unless it was clearly relevant.
- Edit/delete a memory → reflected going forward.
5.10 Voice chat
- With the composer empty, the input shows a waveform/voice button.
- Enter voice mode → speak → transcribed (STT), AI responds, response spoken (TTS). Hands-free loop.
- Only the transcript is persisted (not raw audio).
5.11 Public sharing
- Share a chat/graph → link
/s/<token>#<shareKey>. - Open the link in a logged-out browser → read-only view renders and decrypts (key is in the URL fragment after
#). - Revoke the share → link stops working.
- The key fragment is never sent to the server (it's after
#).
5.12 Subscription & credits (billing)
Use Stripe test mode. Full script: docs/SUBSCRIPTION_TESTING.md.
- Subscription screen shows tiers Deckhand/Sailor/Navigator/Captain/Admiral; tier names not translated in any language.
- Subscribe with a Stripe test card → tier upgrades; webhook confirmed (green ticks in
stripe listen). - Credit balance reflects plan; usage decrements it.
- Crypto top-up (Solana / USDC): RPC server-proxied, prices from Jupiter → balance increases after a test top-up.
- Cancel / downgrade → reflected correctly.
- Hitting a limit shows a clear upgrade prompt, not a crash.
5.13 Settings & profile
- Appearance (theme): change; persists on device, not synced to account.
- Language: switch among locales; persists per device; UI updates immediately; a missing translation falls back to English (never a raw key like
chat.send). - Profile edit, About, Help/FAQ, Policy screens open.
- Bug report screen submits.
6.Cross-cutting checks
6.1 E2EE integrity
- After logout/login, app restart, and reinstall+login, all content (messages, AI responses, images, titles) decrypts correctly.
- On the server/network, user content is ciphertext only, never plaintext messages, prompts, AI responses, or titles.
- No API key, secret, or credential ever reaches the client.
6.2 Localization parity
- Spot-check every locale: en, es, fr, de, pt, zh, ja, pl, th.
- No raw keys, no obviously-untranslated UI (long-form help/FAQ and onboarding subtitles may legitimately remain English; they are flagged for human translation, not bugs).
- Dates, numbers, currency render in the locale's format.
6.3 Privacy / ZDR
- Zero-Data-Retention is on by default; the model picker restricts to ZDR-capable models.
- Sending an image to a non-ZDR model shows a one-tap "Enable & retry" card rather than failing silently.
6.4 Both auth methods, both backends
- Re-run chat and image flows under each combination: {email, wallet} × {cloud, local}. This catches the most bugs.
7.What is NOT a bug
- No password / wallet reset; forgetting it = permanent data loss. By design.
- Theme & language not syncing across devices. Per-device by design.
- "Local" storage disabled on web. By design.
- Strict/empty memory application when nothing is relevant. By design.
- Tier names and "Privateer"/"TreeView" appearing untranslated. By design.
- Long-form FAQ/onboarding prose in English in other languages. Flagged for human translation.
8.Reporting bugs
For each report include:
- Platform (Android phone/emulator, iOS, web) + build/version.
- Auth method (email / wallet).
- Storage backend (cloud / local).
- Language if UI-related.
- Server (local dev / staging / prod).
- Exact repro steps, expected vs actual, screen recording if visual.
- Whether it survives an app restart (especially for image/decryption issues).
Use the in-app Bug Report screen and/or file with the team. Crashes are captured by Sentry, but a manual report with repro steps is far more useful.
9.Reference docs
| Encryption / auth internals | docs/E2EE_ARCHITECTURE.md |
| Subscription + Stripe CLI script | docs/SUBSCRIPTION_TESTING.md |
| Payment / credit system | docs/PAYMENT_SYSTEM.md, docs/SUBSCRIPTION_AND_CREDIT_SYSTEM.md |
| Public sharing | docs/PUBLIC_SHARING.md |
| Solana wallet auth | docs/solana-auth.md, docs/IOS_SOLANA_HANDOFF.md |
| Dev/emulator networking | EXPO_GO_ANDROID_SETUP.md |
| Android build | client/BUILD.md |
| Architecture contract | CLAUDE.md |
สำหรับทีม QA · ใช้ภายใน
Privateer: คู่มือการทดสอบ (QA) ฉบับสมบูรณ์
คู่มือเชิงปฏิบัติแบบทีละขั้นตอนสำหรับการทดสอบทั้งแอป คุณไม่จำเป็นต้องอ่านซอร์สโค้ด ชื่อสาธารณะ: Privateer · ชื่อรหัสภายใน: TreeView
Privateer คือแอปแชต AI ที่เน้นความเป็นส่วนตัวและเข้ารหัส (iOS, Android, เว็บ) ลองนึกถึง "ChatGPT แต่ทุกข้อความถูกเข้ารหัสบนเครื่องของคุณก่อนส่งออก และเซิร์ฟเวอร์เก็บได้เพียงข้อมูลที่เข้ารหัสแล้วเท่านั้น" นอกจากนี้ยังมีตัวสร้างภาพ, แคนวาสบทสนทนาแบบโหนด (graph), โปรเจกต์, ระบบความจำส่วนตัว และระบบสมัครสมาชิก + เครดิตแบบชำระเงิน
1.โมเดลความคิดใน 30 วินาที
แนวคิดเหล่านี้ส่งผลต่อทุกการทดสอบ ทำความเข้าใจก่อน มิฉะนั้นคุณจะรายงานบั๊กที่ไม่ใช่บั๊ก
| การเข้าสู่ระบบ 2 วิธี | อีเมล+รหัสผ่าน และ กระเป๋าเงินคริปโต Solana ผู้ใช้กระเป๋าเงินไม่มีอีเมล สิ่งใดที่สมมติว่า "ผู้ใช้ทุกคนมีอีเมล" ถือเป็นบั๊ก ต้องทดสอบทั้งสองแบบ |
| ที่จัดเก็บข้อมูล 2 แบบ | Cloud (ข้อมูลอยู่บนเซิร์ฟเวอร์ เข้ารหัส) และ Local (ข้อมูลอยู่บนเครื่องเท่านั้น) หลายฟีเจอร์ทำงานต่างกันตามแบ็กเอนด์ ให้ระบุเสมอว่าคุณอยู่แบบไหน (การตั้งค่า → Storage) |
| การเข้ารหัส | ข้อความถูกเข้ารหัสด้วยกุญแจที่ได้จากรหัสผ่าน / ลายเซ็นกระเป๋าเงิน ไม่มีการรีเซ็ตรหัสผ่าน ลืมรหัสผ่าน = ข้อมูลสูญหายถาวร นี่เป็นการตั้งใจ ไม่ใช่บั๊ก |
| ตั้งค่าต่อเครื่อง | ภาษาและธีมถูกเก็บบนเครื่อง ไม่ใช่บนบัญชี การเข้าสู่ระบบบนเครื่องที่สองจะไม่นำค่าเหล่านี้ไปด้วย ถือว่าปกติ |
| ระดับสมาชิก | Deckhand → Sailor → Navigator → Captain → Admiral ชื่อระดับเหล่านี้เป็นชื่อแบรนด์และไม่แปลเป็นภาษาอื่น |
2.ทดสอบที่ไหน (สภาพแวดล้อม)
| Android (เครื่องจริง) | ติดตั้ง APK บนเครื่องระดับ Galaxy S21 เป้าหมาย QA หลัก |
| Android (อีมูเลเตอร์) | อีมูเลเตอร์ Android Studio ผ่าน Expo Go หรือ dev build |
| iOS | บิลด์ TestFlight (หรือ dev build บน Mac) |
| เว็บ | บิลด์เบราว์เซอร์ เว็บใช้ได้เฉพาะ Cloud: แบ็กเอนด์ "Local" ถูกปิดบนเว็บโดยตั้งใจ |
3.การรันระบบทั้งหมดบนเครื่อง (สำหรับนักพัฒนา)
จำเป็นเฉพาะเมื่อทดสอบกับเซิร์ฟเวอร์บนเครื่อง มี 3 ส่วน: เซิร์ฟเวอร์, ไคลเอนต์ และบริการสนับสนุน (MongoDB + Redis)
3.1 เซิร์ฟเวอร์
ต้องมี server/config.env ตั้งค่าครบ ต้องเข้าถึง MongoDB ได้ และต้องเข้าถึง Redis ได้ ถ้าไม่มี การจำกัดอัตราและการตรวจ nonce ของกระเป๋าเงินจะ "ผ่านแบบเงียบ ๆ" (ถ้าล็อกอินกระเป๋าเงินทำงานแปลก ๆ ให้สงสัย Redis)
ตรวจสุขภาพระบบ: GET http://localhost:5000/api/chat/health → { "status": "healthy" }
3.2 ไคลเอนต์
จากนั้นกด a (Android), i (iOS) หรือ w (เว็บ)
3.3 ชี้เครื่องให้เจอเซิร์ฟเวอร์ dev (ปัญหาอันดับ 1)
โทรศัพท์หรืออีมูเลเตอร์เข้าถึง localhost บนคอมพิวเตอร์ของคุณไม่ได้ ต้องตั้งค่า IP ในวง LAN ของเครื่อง:
- หา IP:
ifconfig | grep "inet " | grep -v 127.0.0.1 - แก้
client/app.json→expo.extra.devMachineIP(เช่น192.168.1.100) มีตัวช่วย:node update-dev-ip.jsจากรากของ repo - รีสตาร์ต Expo ด้วย
-c - ยืนยันใน console:
✅ Using configured dev machine IP: …
ถ้าภาพหรือแชตล้มเหลวด้วย "Failed to connect to localhost:5000" สาเหตุมักมาจาก IP นี้ ดูเพิ่มที่ EXPO_GO_ANDROID_SETUP.md
4.บัญชีทดสอบและข้อมูล
- สร้างบัญชีใหม่สำหรับการทดสอบส่วนใหญ่ การสมัคร + ยืนยันอีเมลก็เป็นขั้นตอนที่ควรทดสอบ
- เตรียมบัญชีอีเมลหนึ่งและบัญชีกระเป๋าเงินหนึ่งเพื่อทดสอบทั้งสองเส้นทาง
- เตรียมบัญชี Cloud หนึ่งและ Local หนึ่ง (หรือสลับในบัญชีเดียว ดู §5.6)
- จดรหัสผ่านไว้ ไม่มีการรีเซ็ต รหัสผ่านที่ลืม = บัญชีที่กู้คืนไม่ได้ ไม่ใช่บั๊ก
- สำหรับการชำระเงิน ใช้ Stripe test mode และบัตรทดสอบเสมอ (เช่น
4242 4242 4242 4242, วันหมดอายุ/CVC อนาคตใด ๆ) ห้ามใช้บัตรจริง ดูdocs/SUBSCRIPTION_TESTING.md
5.ขั้นตอนการทดสอบหลัก
แต่ละขั้นตอนเป็นเช็กลิสต์ ทุกขั้นให้บันทึก: แพลตฟอร์ม, วิธีล็อกอิน, ที่จัดเก็บข้อมูล และ ภาษา หากเกี่ยวข้อง
5.1 เปิดแอปครั้งแรก
- ติดตั้งใหม่เปิดเข้าหน้าแชตแบบผู้เยี่ยมชมทันที (ไม่มีสไลด์แนะนำ ไม่มีหน้าบังคับล็อกอิน) และมีปุ่ม Sign In ให้เห็นที่แถบด้านบนของแชต
- ภาษาตรวจจับอัตโนมัติจากภาษาเครื่อง (เปลี่ยนภาษาเครื่องก่อนเปิดครั้งแรกเพื่อทดสอบ)
- กดปุ่มนั้นแล้วไปถึงหน้าล็อกอิน/สมัครโดยไม่แครช ข้อความอ่านว่า "Privateer" ทุกที่ (ไม่ใช่ "TreeView" หรือ "Helix")
5.2 การยืนยันตัวตน: อีเมล / รหัสผ่าน
- สมัครด้วยอีเมล + รหัสผ่าน → ระบบให้ยืนยันอีเมล
- ยืนยันอีเมล: เปิดลิงก์ (ทดสอบลิงก์เว็บ
/verify-email#token=…ด้วย) บัญชีถูกเปิดใช้งาน และหน้าผลการยืนยันแสดงขึ้น - ส่งอีเมลยืนยันใหม่ทำงานได้
- ล็อกอินด้วยข้อมูลถูกต้องเข้าสู่แอปได้
- ล็อกอินด้วยรหัสผ่านผิด → ข้อผิดพลาดแบบ inline ชัดเจน (ไม่ใช่ modal ทางตัน)
- เปลี่ยนรหัสผ่าน (การตั้งค่า → Security) รหัสเก่าใช้ไม่ได้ ข้อมูลที่เข้ารหัสเดิมยังถอดรหัสได้
- ออกจากระบบแล้วเข้าใหม่ → แชต/ภาพกลับมาและถอดรหัสถูกต้อง
5.3 การยืนยันตัวตน: กระเป๋าเงิน Solana
- เชื่อมกระเป๋าเงินและเซ็นคำท้าทายล็อกอิน → เข้าสู่ระบบได้โดยไม่ต้องมีอีเมล
- ทุกที่ที่แสดงตัวตนบัญชีทำงานได้แม้ไม่มีอีเมล
- ออกแล้วเข้าใหม่ผ่านกระเป๋าเงิน → ข้อมูลถอดรหัสได้ (อาจให้เซ็นใหม่)
5.4 แชต (ฟีเจอร์หลัก)
- ส่งข้อความ → คำตอบสตรีมทีละคำ
- บทสนทนายาว: เลื่อนดู ประวัติคงอยู่หลังโหลดใหม่
- หยุด / ยกเลิกการสร้างกลางคัน → หยุดเรียบร้อย ข้อความบางส่วนถูกเก็บไว้อย่างเหมาะสม
- ตัวเลือกโมเดล: เปลี่ยนโมเดล AI การเลือกคงอยู่ คำตอบถัดไปใช้โมเดลนั้น
- ค้นเว็บ: ถามสิ่งที่ต้องใช้ข้อมูลปัจจุบัน → คืนแหล่งอ้างอิง คำว่า "ลองอีกครั้ง" เปล่า ๆ ต้องไม่ทำให้ค้นเว็บมั่ว
- UX ข้อผิดพลาด: บังคับให้เกิดข้อผิดพลาด (เปิดโหมดเครื่องบินกลางการส่ง) → ฟองข้อผิดพลาด inline พร้อมปุ่มลองใหม่ที่ส่งคำขอเดิมทั้งหมด (รวมภาพ/ตัวเลือกที่แนบ) ไม่ใช่ทางตัน
- แชตพร้อมกัน: เริ่มสร้างในแชตหนึ่ง สลับไปอีกแชตแล้วเริ่มอีกอัน → ทำงานทั้งคู่ side-nav แสดงสปินเนอร์ เพดานกำหนดตามระดับสมาชิก (
maxConcurrentJobs) - โหลดแอปใหม่กลางการสร้าง → ไม่มีข้อมูลเสียหาย
5.5 การสร้างภาพ
- "สร้างภาพของ …" → ภาพปรากฏและแสดงผลได้
- กลับเข้าแชต / รีสตาร์ตแอป → ภาพยังโหลดได้ (เข้ารหัส + ดึงใหม่) การล้มเหลวเฉพาะตอนกลับเข้า/รีสตาร์ตเป็นบั๊กกลุ่มที่รู้จัก ให้รายงานพร้อมขั้นตอนทำซ้ำ
- Cloud: ภาพเก็บที่ S3 (เข้ารหัส) Local: อยู่บนเครื่อง ไม่อัปโหลด
- เปิดภาพเต็มจอ บันทึก/แชร์หากมี
- Library → ตารางภาพย่อโหลดได้ แตะเปิดภาพเต็ม
5.6 การสลับที่จัดเก็บข้อมูล (ทำอย่างตั้งใจ)
- ค่าเริ่มต้นคือ Cloud
- สลับเป็น Local → แชต/ภาพใหม่อยู่บนเครื่อง เนื้อหา Local ต้องไม่ปรากฏฝั่งเซิร์ฟเวอร์
- บนเว็บ ปุ่ม Local ถูกล็อก/ปิด ซึ่งถูกต้อง ไม่ใช่บั๊ก
- การตั้งค่าต่าง ๆ ตามแบ็กเอนด์: cloud → เซิร์ฟเวอร์; local → ที่เก็บเข้ารหัสบนเครื่องเท่านั้น
5.7 มุมมองกราฟ (แคนวาสโหนด)
- เปิด Graphs → บทสนทนาแสดงเป็นโหนดเชื่อมกัน (prompt + คำตอบ AI ต่อโหนด)
- แตกกิ่งจากโหนด → โหนดลูกสานต่อจากจุดนั้น
- แตกกิ่งจากโหนดภาพ + "สร้างภาพ" → ใช้ภาพต้นทางเป็นภาพอ้างอิงแบบ image-to-image (ไม่ถูกละเลย)
- โหนดที่รอแสดงสปินเนอร์แล้วแปลงเป็นคำตอบ ข้อผิดพลาดแปลงเป็นโหนดข้อผิดพลาด (ไม่ใช่ modal)
- เว็บ: แตะเลือกโหนดตรงเป้า (ทดสอบหลังปรับขนาดหน้าต่าง / สลับ devtools)
5.8 โปรเจกต์
- สร้างโปรเจกต์ เพิ่มไฟล์ (PDF, เสียง, docx, csv, โค้ด)
- แชตในโปรเจกต์โดยอ้างถึงไฟล์ที่แนบ → ไฟล์ถูกใช้เป็นบริบท
- ไฟล์คงอยู่ (E2EE ไปยัง S3 บน cloud) และเปิดได้ภายหลังจาก Library
- ลบโปรเจกต์ → ลบเรียบร้อย (ไม่มี 500 / ข้อผิดพลาด "ObjectId" ฝั่งเซิร์ฟเวอร์)
5.9 ความจำ (Personalization)
- แอปแสดง/บันทึก "ความจำ" เกี่ยวกับคุณ (การตั้งค่า → Memories / Personalization)
- ใช้เฉพาะความจำที่เกี่ยวข้องกับ prompt ปัจจุบัน อันที่ไม่เกี่ยวถูกข้ามเงียบ ๆ ผลลัพธ์ว่าง/เข้มงวดเป็นการตั้งใจ อย่ารายงาน "มันไม่สนใจความจำ" เว้นแต่เกี่ยวข้องชัดเจน
- แก้/ลบความจำ → มีผลต่อไป
5.10 แชตด้วยเสียง
- เมื่อช่องพิมพ์ว่าง อินพุตแสดงปุ่มคลื่นเสียง/เสียง
- เข้าโหมดเสียง → พูด → ถอดเสียงเป็นข้อความ (STT) AI ตอบ และอ่านคำตอบ (TTS) วนแบบแฮนด์ฟรี
- บันทึกเฉพาะ transcript เท่านั้น (ไม่เก็บเสียงดิบ)
5.11 การแชร์สาธารณะ
- แชร์แชต/กราฟ → ลิงก์
/s/<token>#<shareKey> - เปิดลิงก์ในเบราว์เซอร์ที่ออกจากระบบ → แสดงแบบอ่านอย่างเดียวและถอดรหัสได้ (กุญแจอยู่ใน URL fragment หลัง
#) - ยกเลิกการแชร์ → ลิงก์ใช้ไม่ได้
- ส่วน fragment กุญแจไม่เคยถูกส่งไปเซิร์ฟเวอร์ (อยู่หลัง
#)
5.12 สมาชิกและเครดิต (การเรียกเก็บเงิน)
ใช้ Stripe test mode สคริปต์เต็ม: docs/SUBSCRIPTION_TESTING.md
- หน้าสมาชิกแสดงระดับ Deckhand/Sailor/Navigator/Captain/Admiral ชื่อระดับไม่แปลในทุกภาษา
- สมัครด้วยบัตรทดสอบ Stripe → อัปเกรดระดับ webhook ยืนยัน (เครื่องหมายถูกเขียวใน
stripe listen) - ยอดเครดิตสอดคล้องกับแพ็กเกจ การใช้งานหักยอด
- เติมเงินคริปโต (Solana / USDC): RPC ผ่านพร็อกซีเซิร์ฟเวอร์ ราคาจาก Jupiter → ยอดเพิ่มหลังเติมทดสอบ
- ยกเลิก / ดาวน์เกรด → สะท้อนถูกต้อง
- เมื่อถึงขีดจำกัดแสดงข้อความชวนอัปเกรดชัดเจน ไม่แครช
5.13 การตั้งค่าและโปรไฟล์
- ลักษณะหน้าตา (ธีม): เปลี่ยน คงอยู่บนเครื่อง ไม่ซิงก์กับบัญชี
- ภาษา: สลับระหว่างภาษา คงอยู่ต่อเครื่อง UI อัปเดตทันที คีย์ที่แปลขาดจะถอยกลับเป็นอังกฤษ (ไม่แสดงคีย์ดิบเช่น
chat.send) - หน้าแก้โปรไฟล์, About, Help/FAQ, Policy เปิดได้
- หน้ารายงานบั๊กส่งได้
6.การตรวจสอบข้ามฟีเจอร์
6.1 ความสมบูรณ์ของ E2EE
- หลังออก/เข้าระบบ, รีสตาร์ตแอป และติดตั้งใหม่+เข้าระบบ เนื้อหาทั้งหมด (ข้อความ, คำตอบ AI, ภาพ, หัวข้อ) ถอดรหัสถูกต้อง
- บนเซิร์ฟเวอร์/เครือข่าย เนื้อหาผู้ใช้เป็นข้อมูลเข้ารหัสเท่านั้น ไม่มีข้อความ, prompt, คำตอบ AI หรือหัวข้อที่เป็นข้อความธรรมดา
- ไม่มี API key, ความลับ หรือ credential ใดถึงไคลเอนต์
6.2 ความครบถ้วนของการแปลภาษา
- สุ่มตรวจทุกภาษา: en, es, fr, de, pt, zh, ja, pl, th
- ไม่มีคีย์ดิบ ไม่มี UI ที่ยังไม่แปลชัดเจน (เนื้อหายาวอย่าง help/FAQ และคำบรรยาย onboarding อาจยังเป็นอังกฤษโดยชอบธรรม ซึ่งถูกตั้งให้แปลโดยมนุษย์ ไม่ใช่บั๊ก)
- วันที่ ตัวเลข สกุลเงิน แสดงตามรูปแบบของภาษานั้น
6.3 ความเป็นส่วนตัว / ZDR
- Zero-Data-Retention เปิดโดยค่าเริ่มต้น ตัวเลือกโมเดลจำกัดเฉพาะโมเดลที่รองรับ ZDR
- การส่งภาพไปยังโมเดลที่ไม่ใช่ ZDR แสดงการ์ด "เปิดใช้ & ลองใหม่" แบบแตะครั้งเดียว ไม่ล้มเหลวเงียบ ๆ
6.4 ทั้งสองวิธีล็อกอิน ทั้งสองแบ็กเอนด์
- ทำขั้นตอนแชตและภาพซ้ำในทุกชุดผสม: {อีเมล, กระเป๋าเงิน} × {cloud, local} ชุดนี้จับบั๊กได้มากที่สุด
7.สิ่งที่ไม่ใช่บั๊ก
- ไม่มีรีเซ็ตรหัสผ่าน / กระเป๋าเงิน ลืม = ข้อมูลสูญหายถาวร เป็นการตั้งใจ
- ธีมและภาษาไม่ซิงก์ข้ามเครื่อง ตั้งค่าต่อเครื่องโดยตั้งใจ
- ที่จัดเก็บ "Local" ถูกปิดบนเว็บ เป็นการตั้งใจ
- การใช้ความจำแบบเข้มงวด/ว่างเมื่อไม่มีอะไรเกี่ยวข้อง เป็นการตั้งใจ
- ชื่อระดับและ "Privateer"/"TreeView" ไม่ถูกแปล เป็นการตั้งใจ
- เนื้อหายาว FAQ/onboarding เป็นอังกฤษในภาษาอื่น ตั้งให้แปลโดยมนุษย์
8.การรายงานบั๊ก
แต่ละรายงานให้ระบุ:
- แพลตฟอร์ม (Android เครื่อง/อีมูเลเตอร์, iOS, เว็บ) + เวอร์ชันบิลด์
- วิธีล็อกอิน (อีเมล / กระเป๋าเงิน)
- ที่จัดเก็บข้อมูล (cloud / local)
- ภาษา หากเกี่ยวกับ UI
- เซิร์ฟเวอร์ (dev บนเครื่อง / staging / prod)
- ขั้นตอนทำซ้ำที่แน่นอน ผลที่คาดหวังเทียบกับผลจริง และวิดีโอบันทึกหน้าจอหากเป็นเรื่องภาพ
- อาการคงอยู่หลังรีสตาร์ตแอปหรือไม่ (โดยเฉพาะปัญหาภาพ/การถอดรหัส)
ใช้หน้า Bug Report ในแอป และ/หรือแจ้งทีม การแครชถูกเก็บโดย Sentry แต่รายงานพร้อมขั้นตอนทำซ้ำมีประโยชน์กว่ามาก
9.เอกสารอ้างอิง
| กลไกการเข้ารหัส / การยืนยันตัวตน | docs/E2EE_ARCHITECTURE.md |
| สมาชิก + สคริปต์ Stripe CLI | docs/SUBSCRIPTION_TESTING.md |
| ระบบชำระเงิน / เครดิต | docs/PAYMENT_SYSTEM.md, docs/SUBSCRIPTION_AND_CREDIT_SYSTEM.md |
| การแชร์สาธารณะ | docs/PUBLIC_SHARING.md |
| การยืนยันตัวตนกระเป๋าเงิน Solana | docs/solana-auth.md, docs/IOS_SOLANA_HANDOFF.md |
| เครือข่าย dev/อีมูเลเตอร์ | EXPO_GO_ANDROID_SETUP.md |
| การบิลด์ Android | client/BUILD.md |
| สัญญาสถาปัตยกรรม | CLAUDE.md |
Privateer · QA Testing Guide: internal use only. Switch language with the toggle above. สลับภาษาด้วยปุ่มด้านบน