280 Commits

Author SHA1 Message Date
Fam Zheng
8c315b1c3f emblemscanner: Add scan guide 2025-10-29 21:27:29 +00:00
Fam Zheng
ff358cf595 add viberation to emblemscanner
Also drop prompt for verify pass.
2025-10-29 21:27:29 +00:00
Fam Zheng
3fddb4711e result_page: Fix rescan navigation 2025-10-29 21:27:29 +00:00
Fam Zheng
615a01ee8f improve emblemscanner scanning 2025-10-29 21:27:29 +00:00
Fam Zheng
5a7688cb80 emblemscanner: various improvements 2025-10-29 21:27:29 +00:00
Fam Zheng
c8be7e4ce4 emblemscanner: add log and fix camera state 2025-10-29 21:27:29 +00:00
Fam Zheng
b87693a717 simplify camera-5.1 2025-10-29 21:27:29 +00:00
Fam Zheng
5093b2b40b delete QR_SCANNER_MODULE_PROGRESS.md
We are now feature complete for the QR scanner module, the rest is testing.
2025-10-29 21:27:29 +00:00
Fam Zheng
7fbc4e2ef9 emblemscanner: verifying ui design 2025-10-29 21:27:29 +00:00
Fam Zheng
7d0e30656e emblemscanner: worker is okay 2025-10-29 21:27:29 +00:00
Fam Zheng
780acc13ce add .claude 2025-10-29 21:27:29 +00:00
Fam Zheng
06921ae869 add alg/stb_image.h 2025-10-29 21:27:29 +00:00
Fam Zheng
bc62698ce1 drop scanner/worker 2025-10-29 21:27:29 +00:00
Fam Zheng
30dabc6f82 qrtool: Slightly lower min size for qr 2025-10-29 21:27:29 +00:00
Fam Zheng
31463f518a emblemscanner: update debug ui 2025-10-29 21:27:29 +00:00
Fam Zheng
4b10ad335a emblemscanner: native upload works 2025-10-29 21:27:29 +00:00
Fam Zheng
55d2ccb8fc upload works 2025-10-29 21:27:29 +00:00
Fam Zheng
450d4f7090 emblemscanner: worker wip 2025-10-29 21:27:29 +00:00
Fam Zheng
adb87f27b5 emblemscanner: native wasm works 2025-10-29 21:27:29 +00:00
Fam Zheng
7c7c94fa7b emblemscanner: native wasm works 2025-10-29 21:27:29 +00:00
Fam Zheng
431f81faad emblemscanner wip 2025-10-29 21:27:29 +00:00
Fam Zheng
78a48c6cb0 emblemscanner: use camera-5.1 2025-10-29 21:27:29 +00:00
Fam Zheng
2df1973773 emblemscanner wip 2025-10-29 21:27:29 +00:00
Fam Zheng
0aacad31f4 emblemscanner: add camera rules, web-view fallback, and loading state
Major enhancements to the emblemscanner module:

**Camera System:**
- Device-specific camera rules from Themblem API
- Web-view fallback for problematic devices in same page
- Loading spinner prevents camera mode jumping
- Debug mode with comprehensive diagnostics

**Self-contained Architecture:**
- Inline utility functions (no external dependencies)
- Camera rule matching and API integration
- Web-view URL generation with proper parameters
- Message handling for web-view QR results

**UI Improvements:**
- Hide overlays during loading state
- Enhanced debug overlay with camera rule info
- Worker/native camera mode detection
- Loading feedback with "初始化相机..." message

Module is now production-ready for camera setup and UI, with framework for QR processing integration.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-29 21:27:29 +00:00
Fam Zheng
cd987a4b82 add emblemscanner: self-contained QR scanner module
Create portable QR scanning page module with:
- WeChat native camera integration with overlay system
- Animated QR targeting arcs and visual feedback
- Torch/flash controls and camera setup
- Inline modal system (verification, guide, service)
- Return page navigation support via query parameter
- Debug overlay and device detection
- Complete asset bundle (arc.png, qrmarkers.png, buttons)

Module can be integrated into other WeChat Mini Programs by copying pages/emblemscanner/ directory.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-29 21:27:29 +00:00
Fam Zheng
dadd5e09cd alg/Makefile: fix emcc path 2025-10-29 21:27:29 +00:00
Fam Zheng
4e149d1369 add doc/alg-cleanup.md 2025-10-29 21:27:29 +00:00
Fam Zheng
4458302fc9 footer: emblem 5.0 2025-10-29 21:27:29 +00:00
Fam Zheng
4f8e3973a8 add emblem5 2025-10-29 21:27:29 +00:00
Fam Zheng
b0585d16a0 simplify ai-chat.md 2025-10-29 21:27:29 +00:00
Fam Zheng
d7cfb68587 models: Add product to chat session 2025-10-29 21:27:29 +00:00
Fam Zheng
2554150b29 add rag for platform_knowledge_base 2025-10-29 21:27:29 +00:00
Fam Zheng
5d93ac5a32 add Article.is_platform_knowledge_base 2025-10-29 21:27:29 +00:00
Fam Zheng
bd2d2eb358 models: Add chat tables 2025-10-29 21:27:29 +00:00
Fam Zheng
65892036c1 add chat type 2025-10-29 21:27:29 +00:00
Fam Zheng
f21da37f51 update doc/ai-chat.md 2025-10-29 21:27:29 +00:00
Fam Zheng
b3fcf3d4e0 Add ./manage.py chat 2025-10-29 21:27:29 +00:00
Fam Zheng
ded583ef22 add doc/ai-chat.md 2025-10-29 21:27:29 +00:00
Fam Zheng
f3ef66818d drop design 2025-10-29 21:27:29 +00:00
Fam Zheng
811cb1715c scanner: support start button customize 2025-10-29 21:27:29 +00:00
Fam Zheng
002e2a9f26 api: recognize id= pattern 2025-09-24 08:28:45 +01:00
Fam Zheng
3e026f30e6 camera-5.1: simplify api 2025-09-15 22:21:26 +01:00
Fam Zheng
36526aa066 add camera-5.1 2025-09-13 10:10:53 +01:00
Fam Zheng
270c3d8ac2 api: Serve v/aF6EKr9xMu.txt for wechat mini program direct scan 2025-08-17 12:47:08 +01:00
Fam Zheng
aa670811e8 web: Allow customize start button 2025-08-17 12:24:08 +01:00
Fam Zheng
69726802bf ci: Make dev-smoke manual 2025-08-16 19:50:00 +01:00
Fam Zheng
6d3b0fe683 views: Fix type of tenant pk 2025-08-16 19:48:11 +01:00
Fam Zheng
e9d32b739d scanner: support q= code in url 2025-08-16 18:36:55 +01:00
Fam Zheng
4b6d6e7afa ci: Move back to i7 2025-08-15 15:18:42 +01:00
Fam Zheng
9a77953709 api: Add mini-prog-entry/aF6EKr9xMu.txt 2025-08-15 15:17:03 +01:00