my-durable 0.0.105 → 0.0.107

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/apps/dpi-playground/apps/dpi-playground-fe/dist/assets/index-BdHUFi_P.js +83 -0
  2. package/apps/dpi-playground/apps/dpi-playground-fe/dist/assets/index-BfqOr6Nu.css +1 -0
  3. package/apps/dpi-playground/apps/dpi-playground-fe/dist/index.html +2 -2
  4. package/apps/dpi-playground/apps/dpi-playground-fe/src/components/ArchivePanel.vue +8 -8
  5. package/apps/dpi-playground/apps/dpi-playground-fe/src/components/Composer.vue +7 -7
  6. package/apps/dpi-playground/apps/dpi-playground-fe/src/components/DeviceHandoff.vue +13 -13
  7. package/apps/dpi-playground/apps/dpi-playground-fe/src/components/EnvPanel.vue +15 -15
  8. package/apps/dpi-playground/apps/dpi-playground-fe/src/components/GitChip.vue +1 -1
  9. package/apps/dpi-playground/apps/dpi-playground-fe/src/components/GitPanel.vue +41 -41
  10. package/apps/dpi-playground/apps/dpi-playground-fe/src/components/GraphPanel.vue +17 -17
  11. package/apps/dpi-playground/apps/dpi-playground-fe/src/components/HostPanel.vue +11 -11
  12. package/apps/dpi-playground/apps/dpi-playground-fe/src/components/NetworkSidebar.vue +9 -9
  13. package/apps/dpi-playground/apps/dpi-playground-fe/src/components/NewSessionDialog.vue +2 -2
  14. package/apps/dpi-playground/apps/dpi-playground-fe/src/components/NotifyPanel.vue +15 -15
  15. package/apps/dpi-playground/apps/dpi-playground-fe/src/components/PairDeviceWizard.vue +11 -11
  16. package/apps/dpi-playground/apps/dpi-playground-fe/src/components/ProjectBar.vue +14 -14
  17. package/apps/dpi-playground/apps/dpi-playground-fe/src/components/SchedulesPanel.vue +16 -16
  18. package/apps/dpi-playground/apps/dpi-playground-fe/src/components/TokenManager.vue +2 -2
  19. package/apps/dpi-playground/apps/dpi-playground-fe/src/components/TopBar.vue +9 -9
  20. package/apps/dpi-playground/apps/dpi-playground-fe/src/components/TreeRow.vue +1 -1
  21. package/apps/dpi-playground/apps/dpi-playground-fe/src/components/TunnelStatusBar.vue +1 -1
  22. package/apps/dpi-playground/apps/dpi-playground-fe/src/components/UsagePanel.vue +20 -20
  23. package/apps/dpi-playground/apps/dpi-playground-fe/src/extensions.css +19 -19
  24. package/apps/dpi-playground/apps/dpi-playground-fe/src/jobs.css +108 -108
  25. package/apps/dpi-playground/apps/dpi-playground-fe/src/network.css +109 -109
  26. package/apps/dpi-playground/apps/dpi-playground-fe/src/style.css +682 -680
  27. package/docs/ui-uniform-audit-r29.md +66 -0
  28. package/package.json +1 -1
  29. package/apps/dpi-playground/apps/dpi-playground-fe/dist/assets/index-BficgqEW.js +0 -83
  30. package/apps/dpi-playground/apps/dpi-playground-fe/dist/assets/index-oUmNFKWj.css +0 -1
@@ -0,0 +1,66 @@
1
+ # R29 — Uniform-Scale Audit Plan ("rà tỉ mỉ từng chi tiết")
2
+
3
+ Mục tiêu: "cho nhỏ thì nhỏ đồng bộ toàn bộ web" phải thành **bất biến đo được**, không còn cảm tính.
4
+
5
+ ## 0. Định nghĩa đo được của "đồng bộ"
6
+ Khi root knob đổi 16px → 13.5px (tỉ lệ 0.84375), với **MỌI phần tử nhìn thấy được** trên **MỌI màn hình**:
7
+ - computed `font-size` phải giảm **đúng** tỉ lệ knob (sai số 0% — rem là tuyến tính)
8
+ - chiều cao / padding / gap / radius giảm đúng tỉ lệ (±3% — dành cho line-height làm tròn)
9
+ - Ngoại lệ được duyệt (whitelist): viền 1px, box-shadow blur, điều kiện `@media`, canvas, `--vvh`/`clamp()` chủ ý.
10
+
11
+ ## 1. Phase A — Bằng chứng từ máy người dùng (song song, blocker riêng)
12
+ Người dùng là nguồn chân lý (bài học 0.0.100–0.0.102):
13
+ 1. Screenshot màn hình đang thấy "chỗ nhỏ chỗ không".
14
+ 2. Mở `?debug=1` — ghi lại HUD: UA / viewport / dpr / **root font-size** / visualViewport scale.
15
+ 3. Kiểm tra engine: Samsung Internet → Cài đặt → **Trình duyệt → Trợ năng / Appearance → Text zoom / font size** — nếu >100%, engine phóng **chỉ chữ** trong khung không đổi → đúng triệu chứng. Phương án: `-webkit-text-size-adjust: 100%; text-size-adjust: 100%` + hướng dẫn đặt lại zoom từng trang.
16
+ 4. F5 cứng, xác nhận stamp `ui 0.0.106` trên welcome.
17
+
18
+ ## 2. Phase B — Máy đo tỉ lệ toàn phần (harness)
19
+ Probe Playwright trong `apps/dpi-playground/` (ràng buộc: `.mjs`, không TS syntax, Chrome `/usr/bin/google-chrome`, cấm đụng 4780/4781 + `~/.local/share/durable-pi*` ngoài file token đã biết):
20
+ - Với mỗi cặp (màn hình × trạng thái) × băng (1440 / 1024-chuột / 900-touch / 412-touch / 360-touch):
21
+ - thu MỌI phần tử visible: `computed font-size`, `getBoundingClientRect().height`, tag+class
22
+ - so tỉ lệ với băng chuẩn 1440 → in bảng **offender** (tỉ lệ lệch > 1.5% font, > 3% height)
23
+ - Hai nguồn dữ liệu: (1) dist tĩnh cho màn không cần hub; (2) **prod read-only** (kỹ thuật của `/tmp/userflow.mjs`, `/tmp/git-tab-prod.png`) cho các màn cần session thật.
24
+
25
+ ### Danh sách màn × trạng thái (bắt buộc rà hết, từng cái)
26
+ | # | Màn | Trạng thái phải có |
27
+ |---|---|---|
28
+ | 1 | Welcome | hero, features, topbar đầy đủ |
29
+ | 2 | Network sidebar | tree multi-level, device chip, session row, agent row |
30
+ | 3 | Chat | user msg; markdown: h1–h4, code inline, code block, **bảng**, list, blockquote, hr |
31
+ | 4 | Tool-block | collapse + expand + diff |
32
+ | 5 | Composer | 1 dòng / nhiều dòng; follow-up select, queue-mode, send, stop |
33
+ | 6 | Chat-header | crumbs sâu, branch row (git chip), actions |
34
+ | 7 | Inspector | Details · Usage (3 block + meter) · Files/tree · Graph · Env · State · Archive · Host · Notify · Schedules · Extensions |
35
+ | 8 | GitPanel | status rows, files, commit box, **lanes SVG** (đã biết lỗi), PR panel (GitHub), MR link (GitLab) |
36
+ | 9 | Dialogs | New Session (cả advanced), Pairing wizard từng bước, Device Handoff, Share, Help, Confirm |
37
+ | 10 | Topbar | bell panel mở (Teleported), connection dot, usage |
38
+ | 11 | Mobile | mnav, tree drawer + backdrop |
39
+ | 12 | Toast | success / error / info |
40
+ | 13 | Empty/loading/error | mỗi panel |
41
+
42
+ ## 3. Phase C — Sửa từng offender theo category
43
+ Đã biết trước: GitPanel lane SVG (`:width="lanes[i].width*12+4" height="24"` → tính theo `em`/rem). Mọi offender mới từ Phase B được phân loại: (a) attr px trên SVG không lucide, (b) engine text-inflation (text-size-adjust), (c) sót đơn vị lạ, (d) clamp/min-max floor sai ngữ nghĩa.
44
+
45
+ ## 4. Phase D — Ma trận ảnh cho mắt người dùng
46
+ Mỗi màn (13 nhóm) chụp ở 3 băng đại diện → gửi người dùng duyệt. Ảnh từ máy thật của người dùng vẫn ưu tiên cao hơn.
47
+
48
+ ## 5. Phase E — Khóa bằng contract test + release
49
+ - Mở rộng `fe-mobile-type-r28`: cấm attr px trên SVG (trừ whitelist), cấm inline px trong template, thêm `text-size-adjust` nếu triển khai.
50
+ - Gates: playground full suite, fe-tsc baseline, harness report **0 offender** mọi màn.
51
+ - Release + live verify + dist-tag check (nghi thức).
52
+
53
+ ## Tiến độ
54
+ - [x] Phase 0 inventory nguồn: CSS/SFC sạch trừ whitelist; 0 inline/:style/JS/canvas; 1 lỗi = GitPanel lanes
55
+ - [x] Phase B harness (uniform-audit.tmp.mjs): 8 màn × 3 băng, đọc knob trực tiếp, so tỉ lệ font chính xác ±1.5% / height ±5%
56
+ - [x] Phase C fix (9 restatement bị xóa): brand strong 0.875rem · primary.small 0.75rem · error-banner 0.8125rem · markdown 0.9375rem · message-label 0.8125rem · crumb-name 0.875rem · crumb-main 0.875rem · queue-mode select 0.8125/0.75rem · send/stop 0.75rem (chết, bị 10px phủ) + GitPanel lane svg → viewBox + 1.5rem
57
+ - [x] Phase C xác minh: font offender prod 35→còn lại = danh sách được duyệt (h1 clamp 0.0.99, trio 10px 0.0.105) + pairing-artifact (tab «Git» ẩn trên mobile ghép nhầm); `.chip` 0.875rem ride chuẩn 13.125→11.375
58
+ - [ ] Phase A bằng chứng người dùng (screenshot + ?debug=1 + kiểm tra text-zoom Samsung Internet)
59
+ - [ ] Phase D ma trận ảnh
60
+ - [ ] Phase E release
61
+
62
+ ### Danh sách NGOẠI LỆ được duyệt (không ride tỉ lệ knob, có chủ đích)
63
+ - `h1.welcome` clamp(1.5rem,6vw,1.9rem) — 0.0.99 "text lớn như desktop"
64
+ - Toolbar 10px: `.composer-left .queue-mode select` + `[title*="Stop foreground"]` + `.send` — 0.0.105 user yêu cầu
65
+ - Chiều cao structural: topbar compact 1 bar · chip→dot · primary/icon-button 1.625rem vừa bar · crumbs icon-only 1 dòng · composer 1 dòng · chat-header auto · touch-target icon-button to hơn (a11y)
66
+ - Knob root + iOS focus 16px + mnav 0.75rem (phần tử chỉ tồn tại trên mobile — một giá trị, không phải restatement theo băng)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "my-durable",
3
- "version": "0.0.105",
3
+ "version": "0.0.107",
4
4
  "description": "Durable Pi — the durable agent network: hub web UI, device backend daemon, TUI admin and the shared SDK, packaged as one runnable monorepo install",
5
5
  "license": "MIT",
6
6
  "repository": {