52 Commits

Author SHA1 Message Date
Fam Zheng
c65dc700ad Set display_field for verification_model to show model name
- Add display_field='name' to verification_model field in CodeBatchResource
- RelatedFieldEditor will now display model name instead of raw JSON object
2025-11-25 22:49:32 +00:00
Fam Zheng
719ccd6477 Convert verification_model to ForeignKey with data migration
- Convert CodeBatch.verification_model from TextField to ForeignKey(VerificationModel)
- Add ForeignKey relationship to CodeBatchResource API
- Update QrVerifyView to use verification_model.name instead of string
- Create data migration to:
  - Rename old TextField temporarily
  - Add new ForeignKey field
  - Migrate existing model names to VerificationModel entries
  - Link batches to VerificationModel records
  - Remove old TextField
- GenericManager will now show dropdown/selector UI automatically
2025-11-25 22:38:57 +00:00
Fam Zheng
2c74d59d37 Add admin configuration for verification model per batch
- Add verification_model field to CodeBatch model (TextField)
- Add verification_model field to ScanData model to track model used
- Update QrVerifyView to pass model parameter to v5 QR verify endpoint
- Create VerificationModel table to track available models
- Add VerificationModelResource API endpoint (admin only)
- Add verification-model Vue component with GenericManager
- Add verification-model route and sidebar navigation entry
- Add migrations for all database changes
- Add analysis document for feature design
2025-11-25 22:32:02 +00:00
Fam Zheng
7007f14109 Add phone_model and datetime fields to scan-data-labels API endpoint 2025-11-24 23:01:22 +00:00
Fam Zheng
bd3faf8133 add hf models in docker 2025-11-04 23:06:33 +00:00
Fam Zheng
de6d175f7e fix rag 2025-11-04 22:05:45 +00:00
Fam Zheng
da86e7d670 add knowledge-base-search api 2025-11-04 21:55:53 +00:00
Fam Zheng
afef3a9e11 add ai-chat api 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
b3fcf3d4e0 Add ./manage.py chat 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
270c3d8ac2 api: Serve v/aF6EKr9xMu.txt for wechat mini program direct scan 2025-08-17 12:47:08 +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
9a77953709 api: Add mini-prog-entry/aF6EKr9xMu.txt 2025-08-15 15:17:03 +01:00
Fam Zheng
a7c16716f7 api: add succeeded to scan data labels 2025-05-25 11:52:26 +01:00
Fam Zheng
8615aef2a8 api: fix qr std get/put/stat 2025-05-15 20:11:44 +01:00
Fam Zheng
38ab815ba2 Update code-feature view to use qr std 2025-05-15 20:10:12 +01:00
Fam Zheng
412485b45b api: Fix qr-std-upload 2025-05-15 19:57:42 +01:00
Fam Zheng
3133e81650 api: Add qr-std-upload api 2025-05-14 22:10:38 +01:00
Fam Zheng
9f0a24e4d9 qr-verify: Accept multiple images 2025-05-10 22:18:23 +01:00
Fam Zheng
42652eb221 Drop skip_angle_check 2025-05-10 21:32:27 +01:00
Fam Zheng
73bf4bd58a scan-data-labels: Don't return records with empty label 2025-05-06 21:54:23 +01:00
Fam Zheng
f6fa95e414 api: Fix 'code' in scan-data-labels 2025-05-06 07:33:47 +01:00
Fam Zheng
62cf8259c1 api: Add 'code' to scan-data-labels 2025-05-06 07:24:10 +01:00
Fam Zheng
7be9528ca7 api: Add scan-data-labels API 2025-05-05 21:25:22 +01:00
Fam Zheng
7e81451140 add labeling page 2025-04-25 22:09:24 +01:00
Fam Zheng
10d6b45388 Revert "qr-verify: Push to fam's alert channel"
This reverts commit 2514b557e7294ef71c1ac8561d66052de8bad9df.
2025-04-24 21:28:28 +01:00
Fam Zheng
2514b557e7 qr-verify: Push to fam's alert channel 2025-04-24 21:22:43 +01:00
Fam Zheng
b2343f3cae api: Add message when angle check pass 2025-04-24 21:04:40 +01:00
Fam Zheng
46b7541830 api: Add message if skipped check 2025-04-24 20:44:53 +01:00
Fam Zheng
ef97ed79d4 api: Add skip_angle_check to qr-verify 2025-04-24 20:43:40 +01:00
Fam Zheng
6b0afd286e api: Don't use v5 qr verify if batch feature_comparison_threshold unset 2025-04-24 09:25:07 +01:00
Fam Zheng
4ea0b515be drop detection 2025-04-24 09:06:51 +01:00
Fam Zheng
d711b326bb Use v5 qr_verify api 2025-04-17 13:33:41 +01:00
Fam Zheng
39837cf88b api: Update resnet model 2025-03-26 06:54:11 +08:00
Fam Zheng
e3d10b7a4c Copy roi-verify.py to alg/ 2025-03-25 15:05:46 +08:00
Fam Zheng
008e3839bb api: Fix roi-verify 2025-03-25 13:57:16 +08:00
Fam Zheng
c02b9e342a api: Add use_roi_verify 2025-03-25 13:29:58 +08:00
Fam Zheng
93c93db997 fix test 2025-03-02 14:52:18 +00:00
Fam Zheng
8b6cce101a Makefile: migrate before test 2025-03-02 14:38:22 +00:00
Fam Zheng
a9c0b7c689 Add ab-test 2025-03-02 14:22:03 +00:00
Fam Zheng
2cfb12cc71 api: Fix qrtool_path 2025-03-02 10:16:55 +00:00
Fam Zheng
80cc4242e4 Fix default value of mini_prog_entry_path 2025-03-02 09:54:42 +00:00
Fam Zheng
1b5245bbd7 mplink: Always use redirect 2025-03-01 21:47:16 +00:00
Fam Zheng
16c3547055 fix ip2region.py 2025-03-01 21:23:27 +00:00