@onekeyfe/react-native-native-list 6.7.0-alpha.466 → 6.8.0-10

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 (46) hide show
  1. package/README.md +312 -379
  2. package/android/src/main/java/com/onekey/nativelist/NativeListActivityDetailsView.kt +15 -6
  3. package/android/src/main/java/com/onekey/nativelist/NativeListMediaPlaceholderView.kt +244 -0
  4. package/android/src/main/java/com/onekey/nativelist/NativeListMediaPreviewSlot.kt +66 -31
  5. package/android/src/main/java/com/onekey/nativelist/NativeListMediaTileRenderer.kt +32 -11
  6. package/android/src/main/java/com/onekey/nativelist/NativeListModels.kt +60 -0
  7. package/android/src/main/java/com/onekey/nativelist/NativeListResolvedText.kt +5 -1
  8. package/android/src/main/java/com/onekey/nativelist/NativeListTextView.kt +75 -0
  9. package/android/src/main/java/com/onekey/nativelist/NativeListView.kt +25 -19
  10. package/android/src/test/java/com/margelo/nitro/nativelist/NativeListDescriptionTouchPolicyTest.kt +153 -0
  11. package/docs/ROW_TEMPLATES.md +11 -4
  12. package/docs/SPEC.md +296 -20
  13. package/docs/STYLE_SPEC.md +12 -0
  14. package/ios/NativeListActivityDetailsView.swift +13 -5
  15. package/ios/NativeListMediaPlaceholderView.swift +189 -0
  16. package/ios/NativeListMediaPreviewSlot.swift +122 -61
  17. package/ios/NativeListMediaTileRenderer.swift +13 -13
  18. package/ios/NativeListResolvedText.swift +15 -4
  19. package/ios/NativeListTextLabel.swift +106 -0
  20. package/ios/RNCNativeListView.swift +129 -32
  21. package/ios/tests/NativeListActivityPresentationTests.swift +270 -0
  22. package/ios/tests/NativeListLifecycleTests.swift +369 -40
  23. package/ios/tests/NativeListMediaVisibilityTests.swift +41 -7
  24. package/lib/module/NativeList.js +17 -4
  25. package/lib/module/NativeList.web.js +3 -1
  26. package/lib/module/validation.js +53 -4
  27. package/lib/module/web/NativeListGeneratedIcons.js +1 -0
  28. package/lib/module/web/NativeListWebEngine.js +13 -11
  29. package/lib/module/web/templates/ActivityRowRenderer.js +29 -23
  30. package/lib/module/web/templates/DataRowRenderer.js +54 -1
  31. package/lib/module/web/templates/IdentityRowRenderer.js +3 -1
  32. package/lib/module/web/templates/MediaTileRowRenderer.js +84 -15
  33. package/lib/typescript/src/models.d.ts +18 -1
  34. package/package.json +1 -1
  35. package/scripts/generate-icons.test.mjs +1 -0
  36. package/scripts/native-list-icons.json +1 -1
  37. package/src/NativeList.tsx +25 -4
  38. package/src/NativeList.web.tsx +1 -1
  39. package/src/models.ts +18 -0
  40. package/src/validation.ts +96 -1
  41. package/src/web/NativeListGeneratedIcons.ts +1 -0
  42. package/src/web/NativeListWebEngine.ts +16 -11
  43. package/src/web/templates/ActivityRowRenderer.ts +42 -32
  44. package/src/web/templates/DataRowRenderer.ts +76 -1
  45. package/src/web/templates/IdentityRowRenderer.ts +3 -3
  46. package/src/web/templates/MediaTileRowRenderer.ts +90 -15
package/docs/SPEC.md CHANGED
@@ -71,15 +71,44 @@ prevention; there is no automatic fitting or shrinking pass.
71
71
 
72
72
  ## Public API and defaults
73
73
 
74
- ### Media failure placeholder — Implemented
75
-
76
- Native media-tile failures use the current theme's `disabledText` color for the
77
- existing local `ImageSquareWavesOutline` icon, including explicit `imageState:
78
- 'error'` and exhausted media probes. A theme rebind updates that tint. Image
79
- content and SVG decoding remain owned by OneKeyImage; no per-cell WebView or
80
- fallback network source is added.
81
- Full-wallet dark/light placeholder acceptance remains a runtime check; source
82
- completion does not establish that visual result.
74
+ ### Media loading and failure placeholders — Implemented
75
+
76
+ Gallery media tiles draw one placeholder layer over the media slot on iOS
77
+ (`NativeListMediaPlaceholderView.swift`), Android
78
+ (`NativeListMediaPlaceholderView.kt`) and Web (`MediaTileRowRenderer.ts`). All
79
+ three share one geometry so the states read the same everywhere:
80
+
81
+ - **Loading** — from bind until the first candidate loads or every candidate
82
+ fails. Fill: `strongBackground`. A sheen band 60% of the tile wide, skewed
83
+ -12°, sweeps left to right over 1.6s (70% travel with `cubic-bezier(0.4, 0,
84
+ 0.2, 1)`, 30% rest). Every tile derives its phase from one shared clock
85
+ (`CACurrentMediaTime` / `SystemClock.uptimeMillis` / `performance.now`), so a
86
+ grid sweeps in step, recycled cells included. The sheen is white at 75% on a
87
+ light `rowBackground` (Web: `background`) and 7% on a dark one. Reduced
88
+ motion (iOS Reduce Motion, Android animator scale 0, Web
89
+ `prefers-reduced-motion`) holds the band still at 60% strength.
90
+ - **Failed** — explicit `imageState: 'error'` or exhausted probes. Fill:
91
+ `strongBackground`, plus 1pt `primaryText` lines at 4.5% alpha along 135°,
92
+ 7pt apart, masked by a radial gradient that is clear inside 22% of the
93
+ half-diagonal and opaque from 70%. No text is shown, so there is no copy to
94
+ localize.
95
+ - **Loaded / empty** — the placeholder is hidden; `imageState: 'empty'`
96
+ without a source keeps the slot transparent as before.
97
+
98
+ Both visible states draw a 24-unit glyph at 28% of the tile width, capped at
99
+ 44pt, stroked 1.5 units in `disabledText` at 70% of its alpha: a rounded frame
100
+ (3,3,18,18, r4), a sun (9,9 r1.6) and a ridge (5,20.5 → 14.5,11 → 21,17.5).
101
+ The failed glyph adds a slash (3,3 → 21,21) and cuts a 1.6-unit gap into the
102
+ frame on both sides of it. A 1px `separator` hairline at 60% of its alpha
103
+ outlines the slot in both states.
104
+
105
+ The placeholder owns the slot fill while visible. On Android the media view
106
+ is made invisible in the failed state, because OneKeyImage may paint its own
107
+ terminal state symbol after a probe advances. Image content and SVG decoding
108
+ remain owned by OneKeyImage; no per-cell WebView or fallback network source is
109
+ added. A theme rebind updates every color. Runtime acceptance (2026-11-10):
110
+ iOS dark and Android light on a watch-only wallet NFT grid, Web light/dark in
111
+ the standalone engine harness.
83
112
 
84
113
  ### Recipient identity and inline warning rows
85
114
 
@@ -152,10 +181,12 @@ ambiguous sources, invalid metadata and stale output. Stable sorting emits no
152
181
  machine paths or timestamps. Frozen tests compare exact registry key sets;
153
182
  this does not prove that every application-computed name is registered.
154
183
 
155
- The closed manifest contains 43 names with iOS 42, Android 41 and Web 25
184
+ The closed manifest contains 43 names with iOS 42, Android 41 and Web 26
156
185
  registry entries (including DotVerSolid). Document2Outline, WalletOutline and
157
186
  PlusLargeOutline are registered on all three platforms; TicketOutline also
158
- retains Web and adds native coverage. These main-line names use image-owned
187
+ retains Web and adds native coverage. InfoCircleOutline is registered on Web as
188
+ well as native, so a Web data-column `titleIcon` draws the host artwork rather
189
+ than the text glyph. These main-line names use image-owned
159
190
  canonical SVGs, not duplicate NativeList paths or asset catalogs.
160
191
  Existing Activity ten-name and Market/Media private call sites resolve canonical
161
192
  names through the same DOM helper; their previous coverage does not expand.
@@ -522,6 +553,38 @@ image that already loaded. Common container styling clears what it wrote on the
522
553
  next bind, including properties it set on template children. UI mutation remains on the platform
523
554
  UI thread; [DESIGN.md](DESIGN.md) describes update and event ownership.
524
555
 
556
+ ### iOS cell requests during snapshot replacement
557
+
558
+ Status: implemented, unreleased. On iOS 17.5 and 26.0, a focused UIKit fixture
559
+ reproduced the assertion on version 6.7.0-62 and completed the same layout
560
+ with the fix. Three focused UIKit tests passed on both runtimes, including
561
+ fixed-footer action routing. Consuming-app acceptance of the fix remains
562
+ pending.
563
+
564
+ When a snapshot removes rows, UIKit may request cells from its outgoing
565
+ snapshot while the new logical rows are already active. The iOS host MUST
566
+ provide a valid reusable cell for such requests. Until UIKit completes the
567
+ removal, the host retains only the removed row descriptors needed for pending
568
+ snapshot applications. These descriptors are presentation-only and cannot
569
+ emit actions, expose accessibility elements, or become selectable. Repeated
570
+ updates must preserve the descriptors still needed by in-flight applications
571
+ and must release them on completion or host disposal. A request with no
572
+ available descriptor receives an inert empty cell. The accepted snapshot,
573
+ patch validation, row identity, and structural-transition behavior retain
574
+ their existing contracts.
575
+
576
+ The action and interaction restrictions apply to the presenting collection
577
+ row. Its top-level key determines whether its actions can be delivered,
578
+ including actions whose payload comes from a child renderer. The fixed footer
579
+ is a separate host and retains its normal interaction, even when it shares a
580
+ key with a retiring row.
581
+
582
+ Conformance scrolls an unmaterialized outgoing row into UIKit's viewport
583
+ during removal and checks its renderer, inert state, and the binding of the
584
+ first filtered row. It also covers fixed-footer actions with a shared key
585
+ during a structural transition. A separate consuming-app check covers address
586
+ input in the Send recipient picker.
587
+
525
588
  ### Android vertical-drag React touch cancellation
526
589
 
527
590
  Status: implemented; four real Android MotionEvent/JSTouchDispatcher regressions
@@ -632,6 +695,16 @@ An unrelated layout request MUST NOT indefinitely postpone command completion.
632
695
  Replacement, actual drag, detach and disposal invalidate old callbacks; a stale
633
696
  callback MUST NOT move the view or clear a newer command's barriers.
634
697
 
698
+ On iOS, the existing `scrollToOffset` implementation is also exposed to native
699
+ callers as `onekeyScrollToOffset:animated:`. BottomTabs discovers this selector
700
+ on the collection view's direct NativeList owner and requests offset zero for
701
+ standalone-list double-press scrolling. The call uses `requestScroll`, including
702
+ its explicit-scroll revision, structural-tail interruption, command notifications
703
+ and pending-layout ownership; external callers MUST NOT bypass it by writing
704
+ the internal collection view's offset. This adds no JavaScript/Nitro API.
705
+ BottomTabs and NativeList native sources must ship together. The native handoff
706
+ is source implemented; structural-transition runtime acceptance remains pending.
707
+
635
708
  A valid command can privately notify the owning Pager before execution, including
636
709
  a same-position no-op; this does not add a public NativeList API. A Pager-owned
637
710
  page-top or sticky-top command can privately cancel only its owned list's old
@@ -819,6 +892,19 @@ keep their existing layout and public interfaces.
819
892
 
820
893
  ### Android section-index attachment
821
894
 
895
+ The index rail and its letter preview MUST remain outside the view hierarchy
896
+ until the accepted configuration contains usable index entries. Disabling the
897
+ index or removing its last usable entry MUST detach both views, cancel the
898
+ preview interaction, and prevent a pending attachment callback from restoring
899
+ them. Restoring usable entries MUST reattach the same view instances without
900
+ duplicate parents. This attachment lifecycle is Android-specific; iOS and Web
901
+ keep their existing behavior.
902
+
903
+ The section-index letter preview is decorative. It MUST NOT participate in
904
+ React Native touch targeting while visible, fading, or invisible. Controls in
905
+ React container slots beneath its bounds MUST remain pressable; the index rail
906
+ continues to own index selection and scrubbing.
907
+
822
908
  When `sectionIndex.centeredInWindow` is enabled, the Android index rail moves
823
909
  between the list container and the window host as list visibility and attachment
824
910
  change. Before adding that same rail to its new parent, the previous parent MUST
@@ -1296,6 +1382,76 @@ disposal. Unit checks prove transition semantics, not rendered behavior.
1296
1382
 
1297
1383
  ## Native media preview probing
1298
1384
 
1385
+ ### Persistent first-frame revision — Source implemented; scoped iOS validation
1386
+
1387
+ This revision supersedes the cell-only frame retention, unbounded visible-player
1388
+ count and copy-failure retained-player behavior described in the baseline below.
1389
+ Image owns the native-only preview cache and extraction coordinator defined in
1390
+ its SPEC §6.3; NativeList retains the paused/muted player and view lifecycle.
1391
+ No public descriptor, JavaScript API or Web renderer behavior changes.
1392
+
1393
+ On reaching the video candidate, a visible slot queries permitted decoded memory
1394
+ and then disk before requesting extraction. A hit displays the still frame and
1395
+ creates no AVPlayer/ExoPlayer. Normal image candidates retain their original
1396
+ precedence and image cache; a video-cache hit MUST NOT bypass an earlier image
1397
+ candidate. Cache identity excludes row key and includes URI, canonical headers,
1398
+ bounded pixel tier, schema and capture fit. Recycle drops cell state, not the
1399
+ shared cached frame. Fit, orientation, black/transparent platform letterbox and
1400
+ row-owned tap behavior match a newly captured frame.
1401
+
1402
+ The media descriptor exposes URI, explicit headers, dimensions, fit and cache
1403
+ policy, with no cookie/session management API. Preview identity does not track
1404
+ ambient cookie sessions or automatically invalidate on cookie changes; media
1405
+ that requires that behavior is outside the supported preview-cache contract.
1406
+ Existing AVPlayer/Media3 networking and cookie handling remain unchanged. The
1407
+ cache does not promise that underlying network requests are cookie-free.
1408
+ Detaching an iOS view with no window MUST preserve its last pixel tier and captured
1409
+ still; only a real attached-window scale/layout change can invalidate that tier.
1410
+
1411
+ Slots subscribe only while visible, attached and foreground eligible. They
1412
+ cancel on invisibility, detach, background, recycle or identity/size change and
1413
+ release any owned player immediately. A same-key visible peer may take over;
1414
+ old owner, binding, candidate and player generations cannot attach a frame or
1415
+ complete a newer request. At most two flights extract concurrently, bounded by
1416
+ Image's queue and 10-second grant deadline. The existing six short copy attempts
1417
+ may run, but exhaustion now releases the player and advances/fails the candidate
1418
+ instead of retaining a paused player indefinitely. Success is emitted after a
1419
+ valid still exists, not solely when the player reports its first rendered frame.
1420
+ No failed extraction is cached. Disk-write failure still permits a successful
1421
+ still to display. A cached or newly copied still releases player and viewport
1422
+ observers, and ordinary text-only rebinding retains the current presentation.
1423
+
1424
+ The cache dimensions use actual view pixel size, capped to a 1024-pixel long edge
1425
+ and 1,048,576 pixels with source aspect ratio preserved. Empty layout defers work.
1426
+ iOS retains the CVPixelBuffer for bounded background CI conversion rather than
1427
+ building a full-resolution UIImage on the UI thread. Android performs a bounded
1428
+ TextureView copy on the UI thread and background encoding; its cached presentation
1429
+ must restore the aspect-ratio container after reuse. Source headers and URL/query
1430
+ text are not written into cache filenames, metadata or logs.
1431
+
1432
+ The production iOS video slot passed 14 simulator checks with a real H.264 MP4,
1433
+ including cold capture/player release, cross-cell/recycled memory reuse, disk
1434
+ reuse after memory clear and a layout-tier resize. Its harness substitutes only
1435
+ the unused image-candidate host; image-to-video fallback and full-app integration
1436
+ were not exercised. Android runtime and physical-device performance remain
1437
+ pending. The complete acceptance matrix adds warm cross-cell/recycled hits with
1438
+ zero new players, disk hits after memory clear and process restart, same-source
1439
+ deduplication, owner cancellation/transfer, concurrency and timeout bounds,
1440
+ clear-generation races, corrupt entry repair and all existing probing/lifecycle
1441
+ cases. Native tests and simulator evidence cannot establish device FPS or memory
1442
+ improvement; those require workload-specific measurements on target devices.
1443
+
1444
+ The final Android slot, including deferred Media3 error release, compiled in the
1445
+ consumer's normal native build and final incremental APK. Matching SDK/consumer
1446
+ source hashes and APK provenance were checked, and the App visibly started on
1447
+ the isolated emulator. This is build/startup acceptance, not Android video-frame
1448
+ or complete Home NFT route acceptance. A temporary Home probe lacked account
1449
+ context; a later diagnostic Dialog had an unexplained black capture. Neither is
1450
+ recorded as a passing NFT visual case. Further scrolling, frame-cache and
1451
+ memory/performance measurements are outside this PR's recorded acceptance scope.
1452
+
1453
+ ### Baseline before the persistent first-frame revision
1454
+
1299
1455
  Status: Source implemented; native runtime acceptance pending. `mediaTile.media`
1300
1456
  is an opt-in native-only preview descriptor: `{ source: ImageSource, probeOrder:
1301
1457
  ('image' | 'video')[] }`. The order contains one or two distinct candidates.
@@ -1312,8 +1468,8 @@ There are no controls or video touch targets; the row owns press interaction.
1312
1468
  Android preserves a black letterbox and iOS a transparent one, matching the
1313
1469
  existing native Video views. No code calls play or requests audio focus.
1314
1470
 
1315
- A failed candidate advances once; exhaustion displays the existing error
1316
- placeholder. New source/row identity resets probing; binding, candidate and
1471
+ A failed candidate advances once; exhaustion displays the failed media
1472
+ placeholder (see Media loading and failure placeholders). New source/row identity resets probing; binding, candidate and
1317
1473
  player generations reject stale callbacks, including A→B→A. Text-only updates
1318
1474
  preserve the current request. On Android, terminal image/player completion is
1319
1475
  posted to the next UI queue turn before advancing probes or notifying the row;
@@ -1428,15 +1584,42 @@ width React lays it out at. Android's narrow-screen row scale and section-index
1428
1584
  apply to data rows only. Slot React trees own their internal layout and
1429
1585
  business actions; NativeList owns their scroll placement and lifecycle.
1430
1586
 
1431
- The wrapper mounts four non-collapsible slot roots and reports measured
1432
- heights through `containerSlotHeightsJson` in header/empty/footer/sidecar order.
1433
- The sidecar root has zero reserved height when absent. Native validates four
1434
- finite, non-negative heights. Slot updates MUST NOT alter data-row
1435
- keys or public row indices. No per-scroll-frame JS position updates are used.
1587
+ The wrapper mounts six non-collapsible slot roots and reports measured heights
1588
+ through `containerSlotHeightsJson` in header/empty/footer/sidecar/expanded/toggle
1589
+ order. The sidecar root has zero reserved height when absent. Native validates
1590
+ six finite, non-negative heights and still accepts legacy four-number arrays,
1591
+ except for the iOS pending-header state described below. Slot updates MUST NOT
1592
+ alter data-row keys or public row indices. No per-scroll-frame JS position updates are used.
1436
1593
  iOS mounts each slot root inside a list-owned host view in UICollectionView and
1437
1594
  reserves native layout space. The host owns the slot's vertical position and clips to
1438
1595
  the reported height, so React frame updates cannot move a slot out of place and a slot
1439
1596
  whose height has not been reported yet (or has just grown) never draws over rows.
1597
+
1598
+ iOS header first-frame measurement: when `listHeader` is present but
1599
+ its first layout has not arrived, the matching wrapper sends `null` for slot 0
1600
+ instead of an authoritative zero. The other five slot values remain finite,
1601
+ non-negative numbers; Android serialization stays unchanged. On iOS, an absent
1602
+ header always reports numeric zero. Each absent/present boundary replaces only
1603
+ the header slot root and starts a new measurement epoch; a layout callback from
1604
+ an earlier epoch MUST NOT make the current header ready. Replacing header content
1605
+ while it remains present does not start another epoch. A newly present header stays pending
1606
+ until its own layout reports a number, including zero.
1607
+ Before that measurement, the iOS host may reserve the current mounted header
1608
+ root's finite, non-negative `ceil(bounds.height)` when its bounds width is finite
1609
+ and positive. It applies that height to both clipping and row placement in the
1610
+ same native update, regardless of whether the root or pending heights arrive
1611
+ first. Without a valid current root, pending height is zero. Unmounting or
1612
+ recycling the root discards its provisional height; another root cannot inherit
1613
+ it. The first numeric measurement, including a genuine zero, is authoritative
1614
+ and retains ordinary dynamic growth and shrink behavior. Legacy four- and
1615
+ six-number arrays remain accepted. Only header slot 0 may be null, and the
1616
+ wrapper and native binary must match for this pending-header protocol.
1617
+ When the vertical iOS collection view first obtains positive bounds in
1618
+ `layoutSubviews`, it emits `OneKeyNativeScrollViewDidBecomeReady` before
1619
+ executing pending scroll requests or laying out container slots so an enclosing
1620
+ `CollapsiblePagerView` can synchronously attach and apply top insets, offset
1621
+ alignment, and sticky heights during the same layout pass.
1622
+
1440
1623
  Android uses ConcatAdapter with three single-item slot adapters around the existing
1441
1624
  data adapter; adapter binding indices stay local while layout-manager positions
1442
1625
  are explicitly translated. Slots span all grid columns, do not select/reorder,
@@ -1638,6 +1821,61 @@ tones. `descriptionActionKey` makes only the description emit that action with
1638
1821
  source `description`; footer actions retain their existing source/keys and
1639
1822
  disabled behavior. All actions use the current host binding epoch.
1640
1823
 
1824
+ Description action text. The action is hit on text only, never on the unused
1825
+ width of the description line, which belongs to the row press. Which text is
1826
+ stated by the caller in `descriptionActionStart`, a UTF-16 offset into
1827
+ `description` as supplied (JavaScript string index): the text from the offset on
1828
+ opens the action, the text before it is plain and belongs to the row press.
1829
+ NativeList never derives the offset from the displayed string, its separators or
1830
+ its wording; a caller that composes `prefix + label` records `prefix.length`.
1831
+
1832
+ - Absent means `0`: the whole description text is the action.
1833
+ `description.length` leaves no action text; the row then has no description
1834
+ action, and no button semantics, on any platform.
1835
+ - The field is ignored without `descriptionActionKey`.
1836
+ - Development validation rejects a value that is not a non-negative safe
1837
+ integer, and on a complete row (a snapshot row, or a row after a patch is
1838
+ merged) a value past `description.length`. Production drops a malformed value,
1839
+ which restores the default, and renderers clamp a value past the text to its
1840
+ end.
1841
+ - A patch that changes `description` without `descriptionActionStart` clears the
1842
+ stored offset, because it pointed into the previous string. Callers that keep
1843
+ a prefix restate the offset in the same patch.
1844
+ - iOS and Android map the offset onto the displayed text: a one-line description
1845
+ folds each line break into one space, so offsets after a CRLF move by one.
1846
+ - The hit area follows the laid-out text. iOS and Android build it from the
1847
+ layout engine's own rects for the action's character range (TextKit enclosing
1848
+ rects, the Android layout's selection), one per line and per visual run. A
1849
+ line that ends before the offset takes no touches, the line that holds it
1850
+ takes them from the offset on, later lines take them on their text. In
1851
+ mixed-direction text the action can be several runs on one line with plain
1852
+ text between them, and each run is its own region.
1853
+ - Touch slop reaches into blank space only. iOS and Android widen each run of
1854
+ action text by 8 units, and the widening stops at plain description text on
1855
+ the same line: text before the offset never opens the action, however narrow
1856
+ it is. iOS also extends the first and the last line of the whole layout by 6
1857
+ points away from the text, never a line in between, so the slop cannot reach
1858
+ into a line that holds only plain text. Android extends the first and last
1859
+ line of the layout to the view's top and bottom edge.
1860
+ - An ellipsis belongs to the action while action text is visible before it.
1861
+ Once truncation hides the action text altogether the ellipsis also stands for
1862
+ plain text, and the row has no hit area for the action.
1863
+ - Truncation. The description stays on its declared lines as `prefix + action`.
1864
+ On Web the prefix keeps its natural width and the action text truncates
1865
+ first, which matches the tail truncation of the native label. While action
1866
+ text follows, the Web prefix is capped at the row width less `3em` and
1867
+ truncates itself, so a prefix wider than the row cannot squeeze the action to
1868
+ nothing and leave it without a pointer target. iOS and Android draw one label
1869
+ and truncate its tail; they do not reserve room, so there a long prefix can
1870
+ push the action text out of view. The Web prefix and action are two elements
1871
+ side by side and each resolves its own text direction, so an offset inside a
1872
+ directional run draws that run in two parts; the action element is still
1873
+ exactly the action text.
1874
+ - Internally the native text view holds one optional start: none keeps the
1875
+ view's own hit testing (rows without the action), `0` limits touches to all of
1876
+ the text, a positive value to the text from there on. Binding, rebinding
1877
+ without the action and recycling set or clear that one value.
1878
+
1641
1879
  Rich rows measure the declared line/visual metrics; there is no six-line native
1642
1880
  truncation. iOS automatic height mirrors the rendered stacks: `lineGap` between the
1643
1881
  visible title/description/status lines, the description measured at the identity
@@ -1922,8 +2160,9 @@ imageState explicitly selects that state.
1922
2160
 
1923
2161
  Web gallery media preserves the consuming NFT card presentation: healthy image
1924
2162
  and exhausted fallback surfaces have a10px radius, while a healthy video surface
1925
- has square corners. The image/video frame uses the list page background; only
1926
- the exhausted fallback surface uses the strong background. Rebinding the same
2163
+ has square corners. The image/video frame uses the list page background; the
2164
+ loading and exhausted fallback surfaces use the strong background and the
2165
+ shared media placeholders. Rebinding the same
1927
2166
  video key retains square corners, and failed-video fallback to an image restores
1928
2167
  the image radius. This is Web renderer behavior; native media presentation and
1929
2168
  probe-order contracts are unchanged.
@@ -2185,12 +2424,49 @@ The same native display-link/animator tick changes suffix extent, footer positio
2185
2424
 
2186
2425
  Web/Desktop/extension prefix-preserving tail refinement status: source implemented; Web and Desktop consuming-app preview routes exercised with the local candidate Web overlay. Browser extension was outside that preview scope, and no FPS or paint-duration claim has been verified. The complete accepted snapshot becomes current immediately, while removed suffix rows may remain only in an inert, accessibility-hidden presentation window until the existing 220 ms transition completes. That window follows the same scroll owner and mounts only viewport-near old rows as the owner moves; each row keeps its natural height while the tail is clipped by the interpolated list extent. Inserted suffix rows use their final layout immediately and are revealed by the growing extent. The shared animation frame updates list height, React footer compensation, and programmatic scroll together. Its final scroll range uses the actual parent page extent, including a taller sidecar. For an off-screen fallback, Web uses the footer's complete visible interval where it fits, including the sticky inset, and otherwise aligns the footer start below the sticky region; the retained row is preferred only when the footer is absent. Price patches update the accepted snapshot and visible retained rows without restarting the transition. A newer structure command, unsupported shape, user scroll takeover, reduced motion, resize, or disposal releases presentation nodes and animation ownership without a stale completion writing an older offset. Other structural changes retain the existing behavior. This refinement adds no public field or native behavior; focused Web DOM tests passed, while browser extension and broader runtime performance remain unverified.
2187
2426
 
2427
+ ### Web token table geometry
2428
+
2429
+ Status: implemented with focused SDK regression coverage and consuming-App
2430
+ measurements from a local runtime overlay; formal SDK release integration is
2431
+ separate.
2432
+
2433
+ A Web `DataRow` with exactly the ordered column keys `asset`, `balance`, `price`,
2434
+ and `swapSpacer`, without an ordinal index, favorite control, or checkbox,
2435
+ preserves the legacy four equal columns. Rows with any of those controls retain
2436
+ their existing weighted layout so the controls keep their linear positions.
2437
+ The leading visual and its declared gap share the first column with the asset
2438
+ text; an absent visual reserves no icon inset. Balance and price occupy the
2439
+ second and third columns; the trailing accessories align to the end of the
2440
+ fourth. This closed migration shape uses equal columns instead of the
2441
+ previous weight approximation and removes the row's inherited 12px gap so
2442
+ each track occupies exactly one quarter of the padded content width. Other
2443
+ column shapes retain their existing weighted layout. Rebinding a retained row
2444
+ between these shapes clears the old grid placement, gap override, and asset
2445
+ inset, including when the leading visual is reused.
2446
+ Text, icon size, row height, actions, and iOS/Android layouts retain their
2447
+ existing contracts.
2448
+
2449
+ The Web `listStructureToggle` slot cancels the enclosing footer band's
2450
+ horizontal content inset while disclosure is present, since toggle content owns
2451
+ its page padding. The footer and expanded-content slots keep their existing
2452
+ insets. Changing the accepted content padding updates the compensation;
2453
+ removing disclosure still hides and disables the retained toggle subtree.
2454
+
2455
+ Conformance covers token-to-generic and generic-to-token row reuse, rows with an
2456
+ index/favorite/checkbox, leading visual and disabled action preservation,
2457
+ accepted padding changes, and absent disclosure. The consuming App comparison
2458
+ covers six visible rows and the toggle
2459
+ at 1024, 1280, and 1600 CSS-pixel viewports; it does not establish native runtime
2460
+ acceptance or a performance improvement.
2461
+
2188
2462
  `DataRow.trailing?: readonly TrailingAccessory[]` reuses the existing accessory action contract, including `rowKey`, `actionKey`, disabled state, and accessibility/test labels. At most two accessories are accepted. Desktop Home can render its independent price/balance columns with `DataRow.columns` and a Swap button in `trailing`. Existing rows without `trailing` retain their current layout. On iOS, trailing controls reserve their intrinsic width and the weighted columns fill the remaining row width. Changing between linear and table layout rebinds retained cells even when their row payload is unchanged.
2189
2463
 
2190
2464
  `DataColumn.textSegments` and `secondaryTextSegments` reuse `ValueTextSegment` (`text`, optional `style: 'subscript'`) for formatted prices, balances, and values in each independent table column. Plain `text` and `secondaryText` remain the spoken/fallback strings. Missing segments preserve existing rendering.
2191
2465
 
2192
2466
  `DataColumn.titleIcon` and `secondaryTitleIcon` reuse `IdentityRow.titleIcon` after the primary column text. They preserve native-asset and receipt-token symbols in the desktop asset column. Web `hoverActionKey` uses the same anchored help action as Identity rows; absent icons leave the existing column layout unchanged.
2193
2467
 
2468
+ `DataColumn.webLeadingBadge?: { text: string; textColor: string; backgroundColor: string }` is an optional Web-only passive label on the primary line, placed before `secondaryLeadingText` and the primary text. The caller supplies the visible text and both colors: `text` is non-blank and within the 4096-character text limit, both colors are required `#RRGGBB` or `#RRGGBBAA` values, and no other key is accepted. The label is a 12/16 regular pill (2 by 6 padding, radius 4) that receives no pointer events and has no action, hover target, tone or style slot. While it is present the primary line spans its column, keeps the column's start, center or end alignment and uses an 8-unit gap in place of `titleBadgeGap`. The label is capped at half of the column width, padding included, and truncates with an ellipsis at that cap; the primary text keeps the remaining width and truncates after it, so neither leaves the column. A label that fits is drawn at its intrinsic width. Row height and measurement do not change. Development validation rejects a malformed badge in a snapshot and in a row patch that replaces `columns`; production drops the badge, strips undeclared keys and keeps the row. iOS and Android ignore the field, so a caller that needs the same signal there uses `titleIcon`. A column without the field renders as before. `validation.test.ts` covers the validation rules and `DataRowWebParity.test.ts` the element order, declared layout styles and row reuse in jsdom, which performs no layout. A scoped Chrome 157 measurement of the compiled renderer with `WEB_LIST_CSS` used four-column table rows 1000, 560 and 420 CSS pixels wide, all three alignments and labels of 10, 15 and 63 characters: the label stayed inside its column at no more than half of its width and the primary value kept a visible width in every case, and a label that fits kept the geometry it had without the cap. This is not app-host runtime acceptance.
2469
+
2194
2470
  `IdentityRow.titleSuffixes?: readonly { text: string; tone: 'secondary' | 'disabled'; maxWidth?: number }[]` supports up to three plain 12/16 labels on the title line. Each suffix truncates independently at its optional maximum width. This preserves Recent recipient EVM, network, and relative-time metadata without using background badges; rows without suffixes keep their present title layout.
2195
2471
 
2196
2472
  ### Web slot-list scroll ownership
@@ -285,6 +285,10 @@ content; `lineGap` separates content text rows (primary/secondary per data colum
285
285
  for activity, the native failure label or rich title badges; Web has no activity
286
286
  badge target);
287
287
  `trailingGap` separates trailing values/controls (title/badge to status for rail).
288
+ For identity those are the trailing accessories: a `valuePair` is one accessory,
289
+ so the gap sits between it and its neighbours and never between its two lines,
290
+ on every platform. For activity the gap separates `primaryAmount` from
291
+ `secondaryAmount`.
288
292
  `walletGroup` padding applies only to the group; it never cascades into members.
289
293
  Composite metric-card `lineGap` separates heading/metric blocks and dividers; it
290
294
  does not change the typography or inner label/value gap of each metric.
@@ -535,6 +539,9 @@ defaults applied when `style` is absent.
535
539
  | image radius | 10 | 10 | dp(10) | 10px **=** |
536
540
  | tile radius | 16 | 16 | 16 | 16px **=** |
537
541
  | network badge | 14 | 14×14, r7 | dp(14), circle | 14px, r50% **=** |
542
+ | placeholder glyph | 28% of width, max 44 | CAShapeLayer | Canvas path | inline SVG **=** |
543
+ | loading sheen | 60% wide, -12°, 1.6s | CAKeyframeAnimation | `postInvalidateOnAnimation` | CSS keyframes **=** |
544
+ | failed hatch | 1 / 7, 135°, 4.5% | CAShapeLayer + radial mask | `saveLayer` + `DST_IN` | repeating gradient + mask **=** |
538
545
 
539
546
  ### metricCard
540
547
 
@@ -635,6 +642,11 @@ the list's general section mechanism.
635
642
  | Reorder preview | no | — | — | r12, shadow `0 4px 24px` |
636
643
  | Reorder count badge | no | 24 h, r12, 12 semibold | dp(24), r dp(12), sp(12) semibold | 24px, r12, 12/22/600 |
637
644
 
645
+ Pinned section headers draw no separator or shadow on any platform. The pinned
646
+ overlay paints the header's own row background, which is what hides the rows
647
+ scrolling underneath it; a list that wants a visible boundary supplies it through
648
+ the header row's style, not through container chrome.
649
+
638
650
  The section index rail is three separate constant sets for one control; Android's
639
651
  `sectionIndexDp()` deliberately never follows the source-scale switch.
640
652
 
@@ -187,17 +187,24 @@ final class NativeListActivityDetailsView: UIStackView {
187
187
  weight: .medium, color: nativeListColor(theme, "primaryText", "#202020"), lineHeight: 24,
188
188
  lines: 1, fonts: fonts
189
189
  ).bind(title)
190
- NativeListResolvedText(data.string("description"), style: style.dictionary("description"), size: 14,
190
+ let descriptionText = NativeListResolvedText(data.string("description"), style: style.dictionary("description"), size: 14,
191
191
  color: nativeListColor(theme, "secondaryText", "#646464"), lineHeight: 20, lines: 2,
192
- fonts: fonts
193
- ).bind(descriptionLabel)
192
+ fonts: fonts)
193
+ descriptionText.bind(descriptionLabel)
194
194
  NativeListResolvedText(data.string("status"), style: style.dictionary("status"), size: 12,
195
195
  color: nativeListColor(theme, "secondaryText", "#646464"), lineHeight: 16, lines: 1,
196
196
  fonts: fonts
197
197
  ).bind(status)
198
198
  descriptionKey = data.string("descriptionActionKey")
199
- descriptionLabel.isUserInteractionEnabled = !descriptionKey.isEmpty
200
- descriptionLabel.accessibilityTraits = descriptionKey.isEmpty ? .staticText : .button
199
+ // The label spans the identity column, so with an action only its text
200
+ // from the caller's `descriptionActionStart` on takes touches. The start is
201
+ // never read out of the string, and one at the end leaves no action.
202
+ let actionStart = descriptionKey.isEmpty
203
+ ? nil : descriptionText.displayOffset(data.int("descriptionActionStart"), in: data.string("description"))
204
+ let hasActionText = actionStart.map { $0 < (descriptionText.text as NSString).length } ?? false
205
+ descriptionLabel.touchableTextStart = actionStart
206
+ descriptionLabel.isUserInteractionEnabled = hasActionText
207
+ descriptionLabel.accessibilityTraits = hasActionText ? .button : .staticText
201
208
  for badge in badgeViews { titleLine.removeArrangedSubview(badge); badge.removeFromSuperview() }
202
209
  badgeViews = data.dictionaries("badges").map { descriptor in
203
210
  let label = NativeListTextLabel()
@@ -269,6 +276,7 @@ final class NativeListActivityDetailsView: UIStackView {
269
276
  }
270
277
  func recycle() {
271
278
  visual.recycle(); visual.isHidden = false; amountViews.forEach { $0.recycle() }; actionKeys = []; descriptionKey = ""
279
+ descriptionLabel.touchableTextStart = nil
272
280
  }
273
281
  }
274
282