my-durable 0.0.106 → 0.0.108
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.
- package/apps/dpi-playground/apps/dpi-playground-fe/dist/assets/index-BlS1TRtp.js +83 -0
- package/apps/dpi-playground/apps/dpi-playground-fe/dist/assets/{index-1JDRe-J0.css → index-DCAlYVlU.css} +1 -1
- package/apps/dpi-playground/apps/dpi-playground-fe/dist/index.html +2 -2
- package/apps/dpi-playground/apps/dpi-playground-fe/src/components/GitPanel.vue +1 -1
- package/apps/dpi-playground/apps/dpi-playground-fe/src/style.css +21 -39
- package/docs/ui-uniform-audit-r29.md +66 -0
- package/package.json +1 -1
- package/apps/dpi-playground/apps/dpi-playground-fe/dist/assets/index-Dkjq-Zbn.js +0 -83
|
@@ -5,6 +5,12 @@
|
|
|
5
5
|
background: var(--bg);
|
|
6
6
|
font-synthesis: none;
|
|
7
7
|
font-size: 16px;
|
|
8
|
+
/* r29: engine text-inflation defense — Android/WebView/Samsung Internet
|
|
9
|
+
accessibility "text zoom" scales ONLY text (boxes/padding stay), which
|
|
10
|
+
reads as "some parts small, some not" regardless of our rem scale.
|
|
11
|
+
100% = never inflate beyond our own knob. */
|
|
12
|
+
-webkit-text-size-adjust: 100%;
|
|
13
|
+
text-size-adjust: 100%;
|
|
8
14
|
/* Desktop base. Every other font-size in the codebase is rem, so the
|
|
9
15
|
mobile knob below retunes the whole type scale from this one value.
|
|
10
16
|
100% stops mobile Safari's automatic text inflation, which fights a
|
|
@@ -2017,11 +2023,8 @@ textarea.app-state-json {
|
|
|
2017
2023
|
font-size: clamp(1.5rem, 6vw, 1.9rem);
|
|
2018
2024
|
line-height: 1.15;
|
|
2019
2025
|
}
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
height: 2.9375rem;
|
|
2023
|
-
margin-bottom: 1.125rem;
|
|
2024
|
-
}
|
|
2026
|
+
/* r29: welcome-symbol rides the knob — the compact override shrank it
|
|
2027
|
+
0.67× on top of the knob (logo visibly "chỗ nhỏ" on the first screen) */
|
|
2025
2028
|
}
|
|
2026
2029
|
.welcome p {
|
|
2027
2030
|
font-size: 1rem;
|
|
@@ -2069,15 +2072,8 @@ textarea.app-state-json {
|
|
|
2069
2072
|
.workspace {
|
|
2070
2073
|
grid-template-columns: 20.625rem minmax(0, 1fr);
|
|
2071
2074
|
}
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
padding-left: 1.25rem;
|
|
2075
|
-
padding-right: 1.25rem;
|
|
2076
|
-
}
|
|
2077
|
-
.inspector-body {
|
|
2078
|
-
padding-left: 1.25rem;
|
|
2079
|
-
padding-right: 1.25rem;
|
|
2080
|
-
}
|
|
2075
|
+
/* r29: side paddings ride the knob — the ≤1050 tweak double-shrank the
|
|
2076
|
+
inspector/heading rhythm on fold-class touch devices (900–1000px) */
|
|
2081
2077
|
.chat-empty h2 {
|
|
2082
2078
|
font-size: 1.4375rem;
|
|
2083
2079
|
}
|
|
@@ -2143,7 +2139,6 @@ textarea.app-state-json {
|
|
|
2143
2139
|
flex-shrink: 0;
|
|
2144
2140
|
}
|
|
2145
2141
|
.brand strong {
|
|
2146
|
-
font-size: 0.875rem;
|
|
2147
2142
|
white-space: nowrap;
|
|
2148
2143
|
flex-shrink: 0;
|
|
2149
2144
|
}
|
|
@@ -2200,13 +2195,11 @@ textarea.app-state-json {
|
|
|
2200
2195
|
padding: 0 0.4375rem;
|
|
2201
2196
|
min-height: 1.625rem;
|
|
2202
2197
|
gap: 0.125rem;
|
|
2203
|
-
font-size: 0.75rem;
|
|
2204
2198
|
flex-shrink: 0;
|
|
2205
2199
|
}
|
|
2206
2200
|
.error-banner {
|
|
2207
2201
|
padding: 0.375rem 0.625rem;
|
|
2208
2202
|
gap: 0.375rem;
|
|
2209
|
-
font-size: 0.8125rem;
|
|
2210
2203
|
}
|
|
2211
2204
|
.workspace {
|
|
2212
2205
|
display: flex;
|
|
@@ -2222,7 +2215,6 @@ textarea.app-state-json {
|
|
|
2222
2215
|
padding: 0.625rem 0.875rem 0.5rem;
|
|
2223
2216
|
}
|
|
2224
2217
|
.session-heading h1 {
|
|
2225
|
-
font-size: 1rem;
|
|
2226
2218
|
margin: 0.1875rem 0;
|
|
2227
2219
|
}
|
|
2228
2220
|
.session-heading > .eyebrow,
|
|
@@ -2264,7 +2256,6 @@ textarea.app-state-json {
|
|
|
2264
2256
|
height: 1.625rem;
|
|
2265
2257
|
}
|
|
2266
2258
|
.conversation-select select {
|
|
2267
|
-
font-size: 0.875rem;
|
|
2268
2259
|
padding: 0.25rem 0.125rem;
|
|
2269
2260
|
max-width: 9.375rem;
|
|
2270
2261
|
}
|
|
@@ -2276,7 +2267,7 @@ textarea.app-state-json {
|
|
|
2276
2267
|
padding: 1.5rem 1.375rem;
|
|
2277
2268
|
}
|
|
2278
2269
|
.chat-empty h2 {
|
|
2279
|
-
|
|
2270
|
+
/* r29: no band font — the heading rides the knob */
|
|
2280
2271
|
}
|
|
2281
2272
|
.composer-region {
|
|
2282
2273
|
padding: 0.75rem;
|
|
@@ -2291,16 +2282,14 @@ textarea.app-state-json {
|
|
|
2291
2282
|
gap: 0.5rem;
|
|
2292
2283
|
}
|
|
2293
2284
|
.modal {
|
|
2294
|
-
|
|
2285
|
+
/* r29: padding rides the knob */
|
|
2295
2286
|
}
|
|
2296
2287
|
.welcome {
|
|
2297
2288
|
min-height: 90dvh;
|
|
2298
2289
|
}
|
|
2299
2290
|
.welcome-features {
|
|
2300
2291
|
flex-direction: column;
|
|
2301
|
-
gap: 1.25rem;
|
|
2302
2292
|
align-items: center;
|
|
2303
|
-
margin-top: 2.5rem;
|
|
2304
2293
|
}
|
|
2305
2294
|
.drawer-backdrop {
|
|
2306
2295
|
top: 3.625rem;
|
|
@@ -2309,7 +2298,6 @@ textarea.app-state-json {
|
|
|
2309
2298
|
bottom: 0.9375rem;
|
|
2310
2299
|
width: max-content;
|
|
2311
2300
|
max-width: 90%;
|
|
2312
|
-
font-size: 1rem;
|
|
2313
2301
|
}
|
|
2314
2302
|
.fork-label {
|
|
2315
2303
|
display: none;
|
|
@@ -3525,28 +3513,25 @@ select:focus {
|
|
|
3525
3513
|
.net-workspace > .inspector.overlay {
|
|
3526
3514
|
display: flex;
|
|
3527
3515
|
}
|
|
3528
|
-
/* 2. the chat header crumbs: same optical size as the bar
|
|
3516
|
+
/* 2. the chat header crumbs: same optical size as the bar
|
|
3517
|
+
(r29: font-size restatement deleted — one value per element, the knob
|
|
3518
|
+
does the shrinking; gap is layout, stays) */
|
|
3529
3519
|
.crumb-main {
|
|
3530
|
-
font-size: 0.875rem;
|
|
3531
3520
|
gap: 0.3125rem;
|
|
3532
3521
|
}
|
|
3533
3522
|
.crumb .device-chip,
|
|
3534
3523
|
.crumb-name {
|
|
3535
|
-
font-size
|
|
3524
|
+
/* r29 uniform: no band-dependent font-size — rides the knob */
|
|
3536
3525
|
}
|
|
3537
|
-
/* 3. the chat body reads as text, not a document
|
|
3526
|
+
/* 3. the chat body reads as text, not a document
|
|
3527
|
+
(r29: font-size restatements deleted — one value per element on every
|
|
3528
|
+
band; the knob does the shrinking. Only the ratio survives here.) */
|
|
3538
3529
|
.markdown {
|
|
3539
|
-
font-size: 0.9375rem;
|
|
3540
3530
|
line-height: 1.6;
|
|
3541
3531
|
}
|
|
3542
|
-
|
|
3543
|
-
.markdown ol {
|
|
3544
|
-
padding-left: 1.125rem;
|
|
3545
|
-
margin: 0.5rem 0;
|
|
3546
|
-
}
|
|
3532
|
+
/* r29: list rhythm rides the knob */
|
|
3547
3533
|
.message-label {
|
|
3548
|
-
|
|
3549
|
-
margin-bottom: 0.375rem;
|
|
3534
|
+
/* r29: margin rides the knob */
|
|
3550
3535
|
}
|
|
3551
3536
|
}
|
|
3552
3537
|
|
|
@@ -3639,7 +3624,6 @@ select:focus {
|
|
|
3639
3624
|
.queue-mode select {
|
|
3640
3625
|
min-height: 1.875rem;
|
|
3641
3626
|
padding: 0.25rem 1.625rem 0.25rem 0.5rem;
|
|
3642
|
-
font-size: 0.8125rem;
|
|
3643
3627
|
}
|
|
3644
3628
|
.composer-footnote {
|
|
3645
3629
|
display: none;
|
|
@@ -3656,7 +3640,6 @@ select:focus {
|
|
|
3656
3640
|
.composer-left .queue-mode select {
|
|
3657
3641
|
min-height: 1.625rem;
|
|
3658
3642
|
padding: 0.1875rem 1.375rem 0.1875rem 0.4375rem;
|
|
3659
|
-
font-size: 0.75rem;
|
|
3660
3643
|
}
|
|
3661
3644
|
.queue-mode > svg {
|
|
3662
3645
|
width: 0.8125rem;
|
|
@@ -3676,7 +3659,6 @@ select:focus {
|
|
|
3676
3659
|
min-height: 1.625rem;
|
|
3677
3660
|
min-width: 1.625rem;
|
|
3678
3661
|
padding: 0 0.5rem;
|
|
3679
|
-
font-size: 0.75rem;
|
|
3680
3662
|
gap: 0.1875rem;
|
|
3681
3663
|
}
|
|
3682
3664
|
.composer-toolbar .stop-sign {
|
|
@@ -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.
|
|
3
|
+
"version": "0.0.108",
|
|
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": {
|