@onekeyfe/react-native-native-list 6.7.0-20 → 6.7.0-22
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/android/src/main/java/com/onekey/nativelist/NativeListAccessoryStack.kt +5 -0
- package/android/src/main/java/com/onekey/nativelist/NativeListActivityDetailsView.kt +29 -4
- package/android/src/main/java/com/onekey/nativelist/NativeListActivityRenderer.kt +6 -10
- package/android/src/main/java/com/onekey/nativelist/NativeListAdapter.kt +17 -1
- package/android/src/main/java/com/onekey/nativelist/NativeListDataRowRenderer.kt +15 -0
- package/android/src/main/java/com/onekey/nativelist/NativeListGeneratedIcons.kt +47 -0
- package/android/src/main/java/com/onekey/nativelist/NativeListIdentityRenderer.kt +33 -2
- package/android/src/main/java/com/onekey/nativelist/NativeListLeadingVisual.kt +5 -0
- package/android/src/main/java/com/onekey/nativelist/NativeListMarketRenderer.kt +92 -28
- package/android/src/main/java/com/onekey/nativelist/NativeListModels.kt +13 -10
- package/android/src/main/java/com/onekey/nativelist/NativeListPrimitives.kt +120 -338
- package/android/src/main/java/com/onekey/nativelist/NativeListRendererRowView.kt +5 -0
- package/android/src/main/java/com/onekey/nativelist/NativeListView.kt +33 -8
- package/android/src/test/java/com/margelo/nitro/nativelist/NativeListActivityHostClipPolicyTest.kt +11 -5
- package/docs/ROW_TEMPLATES.md +10 -2
- package/docs/SPEC.md +432 -50
- package/ios/NativeListAccessoryStack.swift +6 -16
- package/ios/NativeListActivityDetailsView.swift +13 -4
- package/ios/NativeListDataRowRenderer.swift +15 -6
- package/ios/NativeListDesignAssets.swift +13 -84
- package/ios/NativeListGeneratedIcons.swift +55 -0
- package/ios/NativeListIconBinding.swift +171 -0
- package/ios/NativeListIdentityRenderer.swift +69 -13
- package/ios/NativeListLeadingVisual.swift +11 -9
- package/ios/NativeListMarketRenderer.swift +120 -31
- package/ios/NativeListMediaTileRenderer.swift +6 -2
- package/ios/NativeListMetricCardRenderer.swift +4 -2
- package/ios/NativeListSectionHeaderRenderer.swift +12 -4
- package/ios/RNCNativeListView.swift +21 -3
- package/ios/tests/NativeListAccessoryStackTests.swift +12 -0
- package/ios/tests/NativeListAccountSelectorLayoutTests.swift +96 -0
- package/ios/tests/NativeListActivityPresentationTests.swift +97 -0
- package/ios/tests/NativeListLifecycleTests.swift +73 -4
- package/ios/tests/NativeListMarketMetricsTests.swift +117 -0
- package/ios/tests/NativeListSharedIconTests.swift +236 -0
- package/lib/module/NativeList.js +25 -6
- package/lib/module/NativeList.web.js +9 -12
- package/lib/module/models.js +2 -0
- package/lib/module/validation.js +695 -114
- package/lib/module/web/NativeListGeneratedIcons.js +31 -0
- package/lib/module/web/NativeListWebEngine.js +24 -332
- package/lib/module/web/templates/ActivityRowRenderer.js +4 -24
- package/lib/module/web/templates/IdentityRowRenderer.js +66 -4
- package/lib/module/web/templates/MarketTableRowRenderer.js +36 -19
- package/lib/module/web/templates/MediaTileRowRenderer.js +2 -12
- package/lib/typescript/src/NativeList.types.d.ts +2 -2
- package/lib/typescript/src/models.d.ts +27 -14
- package/lib/typescript/src/validation.d.ts +7 -2
- package/lib/typescript/src/web/NativeListGeneratedIcons.d.ts +2 -0
- package/lib/typescript/src/web/NativeListWebEngine.d.ts +0 -1
- package/package.json +16 -10
- package/react-native-native-list.podspec +0 -5
- package/scripts/generate-icons.mjs +150 -0
- package/scripts/generate-icons.test.mjs +288 -0
- package/scripts/native-list-icons.json +260 -0
- package/src/NativeList.tsx +30 -10
- package/src/NativeList.types.ts +2 -2
- package/src/NativeList.web.tsx +10 -14
- package/src/models.ts +158 -153
- package/src/validation.ts +1757 -167
- package/src/web/NativeListGeneratedIcons.ts +28 -0
- package/src/web/NativeListWebEngine.ts +31 -415
- package/src/web/templates/ActivityRowRenderer.ts +15 -53
- package/src/web/templates/IdentityRowRenderer.ts +78 -4
- package/src/web/templates/MarketTableRowRenderer.ts +53 -33
- package/src/web/templates/MediaTileRowRenderer.ts +2 -15
- package/ios/Resources/NativeListIcons.xcassets/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_arrow_bottom.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_arrow_bottom.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_arrow_top.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_arrow_top.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_badge_verified_solid.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_badge_verified_solid.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_chart_trending_up.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_chart_trending_up.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_checkbox_checked.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_checkbox_checked.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_checkbox_indeterminate.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_checkbox_indeterminate.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_chevron_bottom.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_chevron_bottom.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_chevron_grabber_ver.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_chevron_grabber_ver.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_chevron_right_small.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_chevron_right_small.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_chevron_top.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_chevron_top.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_crypto_coin_outline.imageset/Contents.json +0 -15
- package/ios/Resources/NativeListIcons.xcassets/onekey_crypto_coin_outline.imageset/icon.svg +0 -4
- package/ios/Resources/NativeListIcons.xcassets/onekey_document2.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_document2.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_dot_hor.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_dot_hor.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_dot_ver_solid.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_dot_ver_solid.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_drag.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_drag.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_error_solid.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_error_solid.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_gas_solid.imageset/Contents.json +0 -15
- package/ios/Resources/NativeListIcons.xcassets/onekey_gas_solid.imageset/icon.svg +0 -3
- package/ios/Resources/NativeListIcons.xcassets/onekey_image_square_waves.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_image_square_waves.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_info_circle.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_info_circle.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_minus_circle.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_minus_circle.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_minus_circle_solid.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_minus_circle_solid.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_pencil.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_pencil.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_plus_circle.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_plus_circle.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_plus_large.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_plus_large.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_plus_small.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_plus_small.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_questionmark_solid.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_questionmark_solid.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_refresh_ccw_outline.imageset/Contents.json +0 -15
- package/ios/Resources/NativeListIcons.xcassets/onekey_refresh_ccw_outline.imageset/icon.svg +0 -3
- package/ios/Resources/NativeListIcons.xcassets/onekey_selector_account_error_custom.imageset/Contents.json +0 -15
- package/ios/Resources/NativeListIcons.xcassets/onekey_selector_account_error_custom.imageset/icon.svg +0 -14
- package/ios/Resources/NativeListIcons.xcassets/onekey_selector_all_networks_solid.imageset/Contents.json +0 -15
- package/ios/Resources/NativeListIcons.xcassets/onekey_selector_all_networks_solid.imageset/icon.svg +0 -12
- package/ios/Resources/NativeListIcons.xcassets/onekey_selector_apple_brand.imageset/Contents.json +0 -15
- package/ios/Resources/NativeListIcons.xcassets/onekey_selector_apple_brand.imageset/icon.svg +0 -6
- package/ios/Resources/NativeListIcons.xcassets/onekey_selector_bot_illus.imageset/Contents.json +0 -15
- package/ios/Resources/NativeListIcons.xcassets/onekey_selector_bot_illus.imageset/icon.svg +0 -15
- package/ios/Resources/NativeListIcons.xcassets/onekey_selector_crossed_small_solid.imageset/Contents.json +0 -15
- package/ios/Resources/NativeListIcons.xcassets/onekey_selector_crossed_small_solid.imageset/icon.svg +0 -3
- package/ios/Resources/NativeListIcons.xcassets/onekey_selector_globus_outline.imageset/Contents.json +0 -15
- package/ios/Resources/NativeListIcons.xcassets/onekey_selector_globus_outline.imageset/icon.svg +0 -7
- package/ios/Resources/NativeListIcons.xcassets/onekey_selector_google_illus.imageset/Contents.json +0 -15
- package/ios/Resources/NativeListIcons.xcassets/onekey_selector_google_illus.imageset/icon.svg +0 -18
- package/ios/Resources/NativeListIcons.xcassets/onekey_selector_lock_solid.imageset/Contents.json +0 -15
- package/ios/Resources/NativeListIcons.xcassets/onekey_selector_lock_solid.imageset/icon.svg +0 -7
- package/ios/Resources/NativeListIcons.xcassets/onekey_shield_exclamation.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_shield_exclamation.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_speaker_promote.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_speaker_promote.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_star.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_star.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_star_solid.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_star_solid.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_swap_hor.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_swap_hor.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_ticket.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_ticket.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_wallet.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_wallet.imageset/icon.svg +0 -1
package/docs/ROW_TEMPLATES.md
CHANGED
|
@@ -59,6 +59,10 @@ separately from source implementation in STYLE_SPEC §9.
|
|
|
59
59
|
a 4-point gap. It has no click action; an optional Web `hoverActionKey`
|
|
60
60
|
emits an icon-anchored tooltip request on hover or touch. A trailing `button` is the fixed small
|
|
61
61
|
secondary text action and uses the normal accessory event slot.
|
|
62
|
+
- **Title image:** optional `titleImage` renders a circular image after the title
|
|
63
|
+
icons and before suffixes/badges. Its `ImageSource` dimensions must be square,
|
|
64
|
+
1...40 logical units. Optional Web `hoverActionKey` uses the existing anchored
|
|
65
|
+
help event; native keeps the image decorative for touch. See SPEC.md.
|
|
62
66
|
- **Second Web help icon:** `secondaryTitleIcon` uses the same descriptor after
|
|
63
67
|
`titleIcon`; each glyph has its own hover/touch anchor. Native ignores it.
|
|
64
68
|
- **Decorative refresh:** a trailing `RefreshCcwOutline` without `actionKey`
|
|
@@ -178,8 +182,12 @@ separately from source implementation in STYLE_SPEC §9.
|
|
|
178
182
|
with at most 32 unique keyed entries. Each entry supports a leading visual,
|
|
179
183
|
tone, primary/secondary text and subscript segments. The title supports at
|
|
180
184
|
most four keyed badges. `descriptionActionKey` emits a description action.
|
|
181
|
-
`presentation: 'table'` allocates
|
|
182
|
-
optional fee
|
|
185
|
+
`presentation: 'table'` allocates identity (including the leading visual and
|
|
186
|
+
its gap), amounts and optional fee in a stable `1:1:0.6` ratio after column
|
|
187
|
+
gaps. Without fee, identity and amounts have equal widths. Amount content
|
|
188
|
+
stays start-aligned; native fee content stays end-aligned, while Web retains its
|
|
189
|
+
existing start alignment. Fee text length and leading visibility do not move
|
|
190
|
+
the amount column. `stacked` keeps right-aligned amounts beside identity.
|
|
183
191
|
`fee.hidden` reserves its column while hiding its content. The Web rich
|
|
184
192
|
Activity renderer uses these fields and the same `hideLeading` visibility.
|
|
185
193
|
|
package/docs/SPEC.md
CHANGED
|
@@ -1,5 +1,50 @@
|
|
|
1
1
|
# NativeList contract
|
|
2
2
|
|
|
3
|
+
## Shared image SVG integration — Implemented
|
|
4
|
+
|
|
5
|
+
Static icons use the image package's named resources and SVG implementation:
|
|
6
|
+
the main registry, Activity's ten private glyphs, Market stars/recognized badge,
|
|
7
|
+
Media fallback and Android checkbox. The closed per-platform coverage, including
|
|
8
|
+
the main-line asset-list additions, is recorded under Built-in icon metadata
|
|
9
|
+
generation; unknown-name text fallbacks remain. The NativeList-only legacy name
|
|
10
|
+
`BadgeVerifiedSolid` resolves to canonical `BadgeRecognizedSolid`. Circle and
|
|
11
|
+
dynamic charts/spinners/dotted decoration remain local primitives.
|
|
12
|
+
|
|
13
|
+
Each iOS glyph slot owns a request owner and revision, including overlays and
|
|
14
|
+
UIButton states. Final graphical identity (name, raster geometry/scale and render
|
|
15
|
+
strategy) controls requests. A private synchronous bind transaction preserves
|
|
16
|
+
both an identical pending request and a ready raster across reset/rebind calls;
|
|
17
|
+
changed or empty identities cancel and clear. Only the current attached revision
|
|
18
|
+
may apply a completion. Detach, reuse and raster geometry changes invalidate
|
|
19
|
+
ownership. UIKit template tint changes reuse the immutable mask. UIButton states
|
|
20
|
+
share one decode, retaining template/original and disabled tint/alpha/action
|
|
21
|
+
behavior. Name validity and descriptor geometry control visibility, layout and
|
|
22
|
+
touch bounds; image availability does not control them.
|
|
23
|
+
Detached binds and auto-height measurement use only known intrinsic metadata;
|
|
24
|
+
they MUST NOT submit named requests or read/decode SVG resources. Initial attach
|
|
25
|
+
starts loading without changing the measured glyph or button dimensions.
|
|
26
|
+
|
|
27
|
+
iOS original brand/opacity modes and the size overload's always-template behavior
|
|
28
|
+
remain. Android named glyphs preserve their source aspect ratio, fit both source
|
|
29
|
+
dimensions within the view and optional glyph-size limit, and center the result
|
|
30
|
+
on both axes. This includes the non-square 16 × 20 Apple artwork; it MUST NOT
|
|
31
|
+
extend beyond the view. Checkboxes retain their 16 dp glyph plus 2 dp border
|
|
32
|
+
offset in selector geometry, otherwise 80 percent centered geometry. Shared images are immutable; no cross-view mutable
|
|
33
|
+
Drawable bounds or pixel changes are allowed. Named work uses image's existing
|
|
34
|
+
two-worker and bounded cache service. Web consumers use its pure DOM external-icon
|
|
35
|
+
helper while keeping inherited color, action labels, anchors and exact sizes.
|
|
36
|
+
|
|
37
|
+
Acceptance must cover actual slots, first bind and repeated row reuse, unknown
|
|
38
|
+
and empty inputs, detach/reattach, resize/tint changes, both UIButton states,
|
|
39
|
+
checkboxes, Apple, original brands, legacy badge, and Web/desktop menus. All
|
|
40
|
+
static path readers must be removed from migrated routes; procedural drawings
|
|
41
|
+
and unrelated URI image loading retain their existing ownership.
|
|
42
|
+
|
|
43
|
+
`NativeListRiskAccessoryTest` checks fractional and integral glyph bounds,
|
|
44
|
+
portrait/landscape sources, rectangular slots and both glyph-size scaling modes.
|
|
45
|
+
Its raw-SVG alpha comparison uses integral destination edges to isolate color
|
|
46
|
+
semantics from fractional bitmap interpolation.
|
|
47
|
+
|
|
3
48
|
This is the entry point for the package's behavioral contract. The linked
|
|
4
49
|
documents are part of this spec; implementation status is separate from target
|
|
5
50
|
architecture and runtime evidence.
|
|
@@ -51,6 +96,55 @@ ordinary press for that gesture. Motion cancellation, row rebind/recycle,
|
|
|
51
96
|
disabled state and disposal cancel pending recognition. Trailing accessory
|
|
52
97
|
actions remain independent. Omission preserves existing tap behavior.
|
|
53
98
|
|
|
99
|
+
### Native Swap token menu backport
|
|
100
|
+
|
|
101
|
+
Status: implemented in local native source, unreleased. Native build and runtime
|
|
102
|
+
acceptance are separate checks. Web and Desktop layout and actions stay unchanged;
|
|
103
|
+
their generated icon artwork is covered in the following section.
|
|
104
|
+
|
|
105
|
+
iOS and Android render `DotVerSolid` with the app's existing 24-unit solid icon
|
|
106
|
+
geometry. On Android, exactly two identity trailing accessories consisting of
|
|
107
|
+
`valuePair` followed by an `icon` named `DotVerSolid` with `actionKey: 'menu'`
|
|
108
|
+
lay out horizontally, matching iOS. Other icon names or action keys retain the
|
|
109
|
+
existing axis rules. This backport does not change row padding, accessory spacing,
|
|
110
|
+
button dimensions, actions, disabled state, or the public snapshot contract.
|
|
111
|
+
|
|
112
|
+
`NativeListAccessoryStackTests` checks the iOS image lookup and bound button image.
|
|
113
|
+
`NativeListRiskAccessoryTest` checks Android's actual icon drawing and the target
|
|
114
|
+
horizontal pair, including vertical controls on rebind.
|
|
115
|
+
|
|
116
|
+
### Built-in icon metadata generation
|
|
117
|
+
|
|
118
|
+
The closed `scripts/native-list-icons.json` manifest retains platform coverage,
|
|
119
|
+
canonical App source paths and iOS rendering strategy. `Circle` is a local
|
|
120
|
+
primitive. The NativeList-only legacy `BadgeVerifiedSolid` name maps to
|
|
121
|
+
`solid/badge-recognized.svg` / canonical `BadgeRecognizedSolid`, preserving its
|
|
122
|
+
thumbs-up artwork without adding a general alias.
|
|
123
|
+
|
|
124
|
+
`scripts/generate-icons.mjs --app-root <app-root>` matches each source uniquely
|
|
125
|
+
against image's generated catalog, validates source digests and manifest
|
|
126
|
+
metadata, then emits exactly three small Swift/Kotlin/Web name/geometry tables.
|
|
127
|
+
It writes no SVG, path data or xcassets; image owns the single resource pipeline.
|
|
128
|
+
All validation precedes writes. `--check` is read-only and detects missing or
|
|
129
|
+
ambiguous sources, invalid metadata and stale output. Stable sorting emits no
|
|
130
|
+
machine paths or timestamps. Frozen tests compare exact registry key sets;
|
|
131
|
+
this does not prove that every application-computed name is registered.
|
|
132
|
+
|
|
133
|
+
The closed manifest contains 43 names with iOS 42, Android 41 and Web 25
|
|
134
|
+
registry entries (including DotVerSolid). Document2Outline, WalletOutline and
|
|
135
|
+
PlusLargeOutline are registered on all three platforms; TicketOutline also
|
|
136
|
+
retains Web and adds native coverage. These main-line names use image-owned
|
|
137
|
+
canonical SVGs, not duplicate NativeList paths or asset catalogs.
|
|
138
|
+
Existing Activity ten-name and Market/Media private call sites resolve canonical
|
|
139
|
+
names through the same DOM helper; their previous coverage does not expand.
|
|
140
|
+
Image preserves raw path order, fill rules, fixed colors, opacity and viewBoxes.
|
|
141
|
+
NativeList retains its layout, button bounds, actions and snapshot interfaces.
|
|
142
|
+
|
|
143
|
+
Focused SDK fixture acceptance covers native attached lifecycle/rebinding,
|
|
144
|
+
legacy iOS asset comparisons, shared alpha semantics and real Web/Electron
|
|
145
|
+
source/lib consumers. This is not full App, balance, transaction or signed
|
|
146
|
+
release acceptance.
|
|
147
|
+
|
|
54
148
|
Identity trailing accessories stack vertically, except for the pairs every
|
|
55
149
|
platform lays out side by side: `value` + `checkbox`, `valuePair` + `menu`,
|
|
56
150
|
`valuePair` + an `icon` named `DotVerSolid` whose `actionKey` is `menu`,
|
|
@@ -61,13 +155,6 @@ platform lays out side by side: `value` + `checkbox`, `valuePair` + `menu`,
|
|
|
61
155
|
pair is the Swap token selector's balance column and row menu; stacking it
|
|
62
156
|
clipped both inside the fixed 60dp row on Android.
|
|
63
157
|
|
|
64
|
-
Icon names are a closed set drawn from the app's 24-unit Icon sources on every
|
|
65
|
-
platform (`iconPaths` on Android, `NativeListIcons.xcassets` on iOS,
|
|
66
|
-
`selectorIcons` on Web); an unmapped name renders an empty slot rather than a
|
|
67
|
-
placeholder. The set includes every name the app's NativeList builders pass,
|
|
68
|
-
including `DotVerSolid`, `Document2Outline`, `WalletOutline`, `PlusLargeOutline`
|
|
69
|
-
and `TicketOutline` (added 2026-10-30 after the OK-66072 audit found them missing
|
|
70
|
-
on native).
|
|
71
158
|
|
|
72
159
|
A `message` row may opt into `bodyLines: 0`; its complete body wraps within its
|
|
73
160
|
existing text area and determines natural height unless an explicit row or
|
|
@@ -176,6 +263,57 @@ after semantic text styling. Both lines retain their default size, tone, line
|
|
|
176
263
|
height, right alignment and accessibility text. These fields add no action or
|
|
177
264
|
hit target and travel in existing snapshot JSON without a Nitro ABI change.
|
|
178
265
|
|
|
266
|
+
### Identity title image
|
|
267
|
+
|
|
268
|
+
Status: implemented in local source, unreleased. Type checks, JS/Web tests,
|
|
269
|
+
Web runtime checks, package build, iOS XCTest-target compilation, Android
|
|
270
|
+
production/instrumentation-test compilation and JVM tests pass. Focused iOS
|
|
271
|
+
Simulator XCTest and Android emulator instrumentation verify image lifecycle,
|
|
272
|
+
null removal and wallet-sidebar layout. Complete wallet App acceptance remains
|
|
273
|
+
pending.
|
|
274
|
+
An `identity` row may supply `titleImage: { image, accessibilityLabel?,
|
|
275
|
+
hoverActionKey? }`. `image` uses the existing `ImageSource` contract and must
|
|
276
|
+
declare equal finite width and height within 1...40 logical units. The image
|
|
277
|
+
is circular, follows the title and any title icons with a 4-point gap, and
|
|
278
|
+
precedes title suffixes and inline badges. It reserves its declared square
|
|
279
|
+
while loading or after failure, so neither state moves the text. Existing
|
|
280
|
+
rows without this field keep their current layout. The image does not change
|
|
281
|
+
row identity or infer a stock, issuer, or other product meaning.
|
|
282
|
+
|
|
283
|
+
iOS and Android use the existing OneKeyImage-backed slot, request options and
|
|
284
|
+
retry limits. Slots belong to the mounted row renderer; OneKeyImage owns image
|
|
285
|
+
caches. Text-only rebinds retain an unchanged row/source request. Source or row
|
|
286
|
+
changes, removal, recycling and disposal cancel prior work and prevent stale
|
|
287
|
+
completion from painting the next binding. Failure leaves the reserved square
|
|
288
|
+
empty; the SDK adds no title-image fallback request or separate cache.
|
|
289
|
+
|
|
290
|
+
On Web, optional `hoverActionKey` uses the title icon's existing help semantics
|
|
291
|
+
and `leadingAction` anchor source: mouse/pen entry opens an anchored help event,
|
|
292
|
+
departure invalidates it, mouse/pen press closes it until departure, and touch
|
|
293
|
+
press toggles it. Pressing this help target does not activate the row. Without
|
|
294
|
+
help, the image participates in the ordinary row press. It adds no tab stop.
|
|
295
|
+
Native renderers ignore this Web-only help field and preserve ordinary row
|
|
296
|
+
presses. The consumer owns the tooltip text and presentation. Omitted
|
|
297
|
+
`accessibilityLabel` makes the image decorative; a supplied label describes it.
|
|
298
|
+
|
|
299
|
+
Android wallet-sidebar rows with a title image reserve image width and pack the
|
|
300
|
+
wallet name with the image as one centered group. Long names ellipsize within
|
|
301
|
+
the remaining space; removing the image restores the full-width centered name.
|
|
302
|
+
|
|
303
|
+
Full snapshots without `titleImage` remove the image and old help anchor.
|
|
304
|
+
Explicit patch replacement updates the descriptor; an omitted patch field
|
|
305
|
+
leaves it unchanged. Null patches and empty image URIs remove the image. Development guards
|
|
306
|
+
reject malformed descriptors and invalid display geometry; production sanitizes
|
|
307
|
+
optional decoration as described in the validation contract. A production patch
|
|
308
|
+
that supplies a malformed title-image replacement explicitly clears the old
|
|
309
|
+
image and help target instead of retaining stale decoration. The field travels in existing JSON and does not change the Nitro ABI;
|
|
310
|
+
consumers must use a native SDK that implements the field before enabling it.
|
|
311
|
+
|
|
312
|
+
Acceptance covers protocol validation, image/source replacement and removal,
|
|
313
|
+
text-only request retention, Web help-action isolation and anchor cleanup,
|
|
314
|
+
native bind/recycle geometry, and native compilation. Device and complete App
|
|
315
|
+
acceptance must be reported separately from source and DOM tests.
|
|
316
|
+
|
|
179
317
|
### Identity row risk-management controls
|
|
180
318
|
|
|
181
319
|
Status: implemented in source for local consumers, unreleased. Focused validation,
|
|
@@ -186,7 +324,9 @@ label. "After the title" means directly after the title text: the title row
|
|
|
186
324
|
packs at its start on every platform (Android `PackedTitleLineLayout`, Web flex
|
|
187
325
|
`0 1 auto`, iOS a slack-absorbing filler at the end of the title row), so the
|
|
188
326
|
glyph and any badge follow the text and never drift toward the trailing column
|
|
189
|
-
(OK-66041).
|
|
327
|
+
(OK-66041). The glyph is vertically centered on the title line; on Web the
|
|
328
|
+
`title` text style (including its line clamp) applies to the title text span,
|
|
329
|
+
never to the flex row that carries the glyph (OK-66402). Its optional Web-only `hoverActionKey` emits an anchored help action
|
|
190
330
|
from the icon alone on mouse/pen hover or touch press; the consumer owns the
|
|
191
331
|
tooltip. Mouse/pen press closes the anchor until pointer leave. Touch press
|
|
192
332
|
toggles the icon anchor. The icon adds no tab stop or separate click action;
|
|
@@ -324,6 +464,33 @@ migration itself does not change any other protocol field.
|
|
|
324
464
|
|
|
325
465
|
## Lifecycle and concurrency
|
|
326
466
|
|
|
467
|
+
### Updates before native host binding
|
|
468
|
+
|
|
469
|
+
Status: implemented in local source, unreleased. The delayed-host regression fails
|
|
470
|
+
on the previous wrapper and passes with this change; 438 package JS/Web tests and
|
|
471
|
+
the package type check pass. This local JavaScript revision is verified with real
|
|
472
|
+
iOS Fabric/UICollectionView rendering on an iPad simulator: delayed-ref,
|
|
473
|
+
parent-layout-before-ref without an artificial delay, and host-ready control
|
|
474
|
+
scenarios all retain the three complete rows after a later single-row update.
|
|
475
|
+
The actual Home list also recovered all six rows after the task-specific Metro
|
|
476
|
+
reload. Earlier natural re-entry evidence included development Metro bundle
|
|
477
|
+
re-requests, so it does not establish a menu-only trigger or a Sui-specific natural
|
|
478
|
+
reproduction. Android device acceptance remains unverified.
|
|
479
|
+
|
|
480
|
+
Valid snapshots and row patches accepted before the native host is available MUST
|
|
481
|
+
retain the latest owned logical state. When that host binds, its rows MUST reflect
|
|
482
|
+
all accepted updates that are eligible for presentation, including updates to rows
|
|
483
|
+
that do not change again afterward. Later single-row updates MUST NOT leave other
|
|
484
|
+
rows at their initial placeholders. Existing disclosure measurement gates and
|
|
485
|
+
snapshot replacement semantics still apply. Once the host is ready, ordinary row
|
|
486
|
+
patches MUST remain incremental rather than requiring a complete snapshot for each
|
|
487
|
+
patch. This contract does not add a public prop, method, or Nitro ABI field.
|
|
488
|
+
|
|
489
|
+
Conformance covers multiple pre-bind patch batches, newer complete prop and
|
|
490
|
+
imperative snapshots, rejected updates, equivalent prop clones after slot layout,
|
|
491
|
+
selection state, repeated callbacks, distinct replacement hosts, and incremental
|
|
492
|
+
single-row updates after binding.
|
|
493
|
+
|
|
327
494
|
Full binding must work without a preceding recycle callback, including
|
|
328
495
|
style set/change/clear and content A → B. A binding epoch invalidates stale
|
|
329
496
|
image callbacks and action anchors. Recycling/disposal releases pending work
|
|
@@ -333,6 +500,46 @@ image that already loaded. Common container styling clears what it wrote on the
|
|
|
333
500
|
next bind, including properties it set on template children. UI mutation remains on the platform
|
|
334
501
|
UI thread; [DESIGN.md](DESIGN.md) describes update and event ownership.
|
|
335
502
|
|
|
503
|
+
### Android vertical-drag React touch cancellation
|
|
504
|
+
|
|
505
|
+
Status: implemented; four real Android MotionEvent/JSTouchDispatcher regressions
|
|
506
|
+
passed on a dedicated API 34 emulator on 2026-10-30. The focused regression is
|
|
507
|
+
in `native-tests/android/NativeListTouchDeliveryTest.kt`; build and run
|
|
508
|
+
instructions are in that directory's README. Physical-device press/scroll
|
|
509
|
+
acceptance remains separate.
|
|
510
|
+
|
|
511
|
+
This behavior applies to every vertical NativeList, including standalone lists
|
|
512
|
+
outside a CollapsiblePager and touches beginning on React container slots.
|
|
513
|
+
On the UI thread, movement exceeding Android touch slop with vertical
|
|
514
|
+
displacement at least equal to horizontal displacement confirms a vertical
|
|
515
|
+
drag. An initially horizontal movement may become vertical while the list still
|
|
516
|
+
receives the stream; once vertical, ownership stays vertical until release or
|
|
517
|
+
cancellation. Horizontal lists retain their existing touch behavior.
|
|
518
|
+
|
|
519
|
+
The list notifies its React root of native gesture ownership once per confirmed
|
|
520
|
+
drag, cancelling the active React touch before finger-up. Later MOVE events MUST
|
|
521
|
+
NOT repeat that notification. The listener does not consume the stream: native
|
|
522
|
+
RecyclerView scrolling continues. A stationary tap or movement below touch slop
|
|
523
|
+
MUST retain ordinary React touch-end delivery without native-gesture start/end
|
|
524
|
+
notifications. The existing `keyboardDismissMode: 'on-drag'` behavior shares the
|
|
525
|
+
confirmed-drag boundary.
|
|
526
|
+
|
|
527
|
+
ACTION_UP and ACTION_CANCEL finish a started native gesture exactly once and
|
|
528
|
+
release the parent's interception restriction, even after RecyclerView has
|
|
529
|
+
intercepted its child and stops invoking the item-touch interception listener.
|
|
530
|
+
They clear vertical ownership; the next ACTION_DOWN resets direction and
|
|
531
|
+
gesture tracking. Android's touch-target removal cancellation must finish the
|
|
532
|
+
old stream before a retained list is reattached or its slots are reused, so the
|
|
533
|
+
next tap is not suppressed by the previous drag. Disposal releases the listener
|
|
534
|
+
through the existing detached-resource cleanup. This change adds no prop or
|
|
535
|
+
callback and changes neither iOS nor Web touch handling.
|
|
536
|
+
|
|
537
|
+
Conformance uses real MotionEvent dispatch through NativeListView/RecyclerView
|
|
538
|
+
and React Native's JSTouchDispatcher: vertical drag produces one touch-cancel
|
|
539
|
+
and one native end, a tap produces touch-end, and cancellation/removal followed
|
|
540
|
+
by reuse leaves the next tap functional. This proves native touch delivery, not
|
|
541
|
+
execution of a JavaScript press handler or physical-device gesture feel.
|
|
542
|
+
|
|
336
543
|
### Android reorder cancellation
|
|
337
544
|
|
|
338
545
|
Status: implemented; three real Android View/callback regressions verified on
|
|
@@ -445,37 +652,69 @@ row positions. An accepted complete snapshot reuses that index only when its
|
|
|
445
652
|
generation and ordered `(key, type)` sequence match the prior accepted
|
|
446
653
|
snapshot; otherwise it replaces the index. Reorder commits rebuild it and
|
|
447
654
|
disposal clears it. Patch batches reuse the index and never include retiring
|
|
448
|
-
presentation rows in it.
|
|
449
|
-
|
|
450
|
-
|
|
655
|
+
presentation rows in it. Native hosts validate each received canonical batch before changing config or
|
|
656
|
+
presentation; invalid native batches leave both unchanged. The shared production
|
|
657
|
+
JS boundary first isolates rejected row/group units, so a native batch contains
|
|
658
|
+
only accepted canonical updates. iOS updates only changed accepted entries in its
|
|
451
659
|
presentation lookup after a valid patch, preserving any retiring rows.
|
|
452
660
|
|
|
453
661
|
### Validation environments and rejected input
|
|
454
662
|
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
663
|
+
Status: implemented in source; acceptance and remaining runtime gaps are recorded below.
|
|
664
|
+
|
|
665
|
+
Development runs strict contract assertions after shared null/empty-image
|
|
666
|
+
normalization. Production sanitizes optional decorations without rejecting
|
|
667
|
+
valid business content: invalid colors/styles are omitted, invalid images use
|
|
668
|
+
existing placeholders, and positive title-image dimensions are clamped to a
|
|
669
|
+
square of 1...40 logical units. Image headers are string dictionaries, never
|
|
670
|
+
interpreted as geometry. Unsafe object graphs are rejected before normalization.
|
|
671
|
+
|
|
672
|
+
Shared image URI validation accepts the entire `onekey-avatar:` scheme,
|
|
673
|
+
case-insensitively, in snapshots and row patches on iOS, Android and Web. It does
|
|
674
|
+
not restrict the host, version, path, query string or fragment, and preserves the
|
|
675
|
+
URI without decoding. Existing image URI schemes retain their acceptance rules.
|
|
676
|
+
Unsupported image URIs fail development assertions and are sanitized out in
|
|
677
|
+
production. This is validation acceptance only; avatar decoding and loading
|
|
678
|
+
remain owned by the platform image loader or Web avatar worker.
|
|
679
|
+
|
|
680
|
+
A complete snapshot remains atomic after decoration sanitization: invalid
|
|
681
|
+
schema, duplicate/missing identities, required business fields or wallet-group
|
|
682
|
+
parent/children relationships reject the snapshot. No row is silently removed.
|
|
683
|
+
Production normalizes contiguous group positions and filters selection to
|
|
684
|
+
selectable keys, respecting none/single modes.
|
|
685
|
+
|
|
686
|
+
Patches use omitted/undefined fields as no-ops. Null explicitly removes an
|
|
687
|
+
optional field on JS, Web, iOS and Android; required fields cannot be cleared.
|
|
688
|
+
Empty optional images and empty top-level segment arrays normalize to null in
|
|
689
|
+
patches and absence in snapshots. Empty images remove their outer titleImage
|
|
690
|
+
or media wrapper. This protocol requires native binaries with null-removal
|
|
691
|
+
support; callers must not enable it against older native SDK implementations.
|
|
692
|
+
|
|
693
|
+
Market price remains required and nonblank. Updating nonempty priceSegments
|
|
694
|
+
requires a price in the same canonical patch; callers own matching formatted
|
|
695
|
+
text (the validator does not reconstruct subscript prices). Updating price
|
|
696
|
+
without segments clears an existing overlay. For identity/market subtitles,
|
|
697
|
+
updating one representation clears the old other representation unless both
|
|
698
|
+
are supplied; clearing segments alone retains the base text. Activity has no
|
|
699
|
+
subtitle pair. Market quote changes with an existing/new webTable must include
|
|
700
|
+
matching table data or explicitly remove webTable.
|
|
701
|
+
|
|
702
|
+
Development rejects invalid patch batches atomically. Production isolates
|
|
703
|
+
failures to each target key and its coupled groupId: all updates to a key are
|
|
704
|
+
merged in order before validation, and a failure rejects that unit while other
|
|
705
|
+
valid units commit. Financial-value and interactive accessories with missing
|
|
706
|
+
required data fail their row; malformed purely decorative accessories are
|
|
707
|
+
removed. Diagnostics contain locations, never row values or image URLs.
|
|
708
|
+
|
|
709
|
+
All targets share the canonical accepted patches. The accepted JS rows and
|
|
710
|
+
serialized native changes derive from the same result. Native owned snapshots
|
|
711
|
+
and accepted Web engine snapshots validate only changed rows during patches;
|
|
712
|
+
unchanged rows are not rescanned. Direct helpers receiving an unowned baseline
|
|
713
|
+
validate that baseline once before incremental merging. Native owned snapshots
|
|
714
|
+
are immutable and indexed by key. Initial invalid snapshots render empty;
|
|
715
|
+
rejected later snapshots retain the last accepted snapshot. Rejected patch
|
|
716
|
+
units retain their previous complete rows. Direct validators still throw on
|
|
717
|
+
unrecoverable input. Image loading failures remain the loader's responsibility.
|
|
479
718
|
|
|
480
719
|
`planNativeListPatches(previous, next)` is an explicit, pure public helper for
|
|
481
720
|
callers that own two valid, immutable snapshots. It returns a readonly empty
|
|
@@ -498,14 +737,25 @@ Rejection emits a diagnostic without including row keys, text or image URLs.
|
|
|
498
737
|
Explicit calls to the exported validation functions still throw on rejected
|
|
499
738
|
input, so development tooling can inspect the full contract failure. Rejection
|
|
500
739
|
does not imply that the requested update succeeded. No row identity is trimmed,
|
|
501
|
-
truncated or regenerated, and no
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
740
|
+
truncated or regenerated, and no row is silently dropped from a snapshot.
|
|
741
|
+
|
|
742
|
+
Acceptance for this revision: 429 JS/Web tests pass, including native React
|
|
743
|
+
wrapper containment, canonical null/undefined semantics, price/segment pairing,
|
|
744
|
+
production row/group isolation and unchanged-row access checks. Package type
|
|
745
|
+
checks, lint (zero errors; existing warnings) and test-integrity checks pass.
|
|
746
|
+
iOS production/XCTest targets and Android production/instrumentation targets
|
|
747
|
+
compile; 29 Android JVM tests pass. Four focused iOS 26.5 XCTest cases verify
|
|
748
|
+
title-icon packing, title-image reuse and null removal. Android 15/API 35
|
|
749
|
+
instrumentation verifies wallet-sidebar image bounds, long-title ellipsis,
|
|
750
|
+
and full-width title restoration after removal. Shared JS/Web regressions also
|
|
751
|
+
verify that malformed production title-image replacements clear the previous
|
|
752
|
+
image and help anchor. Full App acceptance remains pending.
|
|
753
|
+
|
|
754
|
+
Wallet groups use the actual embedded parent/children model, not memberKeys
|
|
755
|
+
references. groupId/groupPosition remain snapshot-owned fields; production
|
|
756
|
+
patch failures also reject other patched rows in the same existing groupId.
|
|
757
|
+
Unknown extension fields (including unsupported sparkline/changeHighlight
|
|
758
|
+
models) are ignored in production rather than introducing a new renderer API.
|
|
509
759
|
|
|
510
760
|
## Platform contract
|
|
511
761
|
|
|
@@ -515,6 +765,26 @@ Existing geometry/typography differences are recorded in
|
|
|
515
765
|
them. iOS uses UICollectionView, Android RecyclerView, and Web a windowed DOM
|
|
516
766
|
engine. See [DESIGN.md](DESIGN.md) for their current ownership boundaries.
|
|
517
767
|
|
|
768
|
+
### iOS account-selector trailing width (OK-65638)
|
|
769
|
+
|
|
770
|
+
Status: implemented. Manual consuming-app verification on an iOS Simulator
|
|
771
|
+
reported normal balance rendering after a local native rebuild. Automated
|
|
772
|
+
XCTest execution and broader device acceptance are tracked separately.
|
|
773
|
+
|
|
774
|
+
For an `identity` row with `presentation: 'accountSelector'`, an empty trailing
|
|
775
|
+
collection or a spinner-only accessory MUST leave the remaining horizontal
|
|
776
|
+
space available to the title and subtitle column. A short title MUST NOT cause
|
|
777
|
+
the balance subtitle to collapse while unused row width remains. The existing
|
|
778
|
+
gap before the trailing column and the shortened address's compression priority
|
|
779
|
+
remain unchanged; content may still truncate when the row is actually too narrow.
|
|
780
|
+
Visible controls keep their intrinsic width without introducing required-width
|
|
781
|
+
conflicts. Rebinding between empty, spinner and single-icon states MUST release
|
|
782
|
+
the previous row's width constraint.
|
|
783
|
+
|
|
784
|
+
`NativeListAccountSelectorLayoutTests` covers balance/address geometry and
|
|
785
|
+
control widths on production UIKit cells, including rebinds. Android and Web
|
|
786
|
+
keep their existing layout and public interfaces.
|
|
787
|
+
|
|
518
788
|
### Android section-index attachment
|
|
519
789
|
|
|
520
790
|
When `sectionIndex.centeredInWindow` is enabled, the Android index rail moves
|
|
@@ -617,7 +887,14 @@ Host clipping is per-bind state. A row view that serves several row shapes
|
|
|
617
887
|
(the Android Activity view serves the legacy row and the rich `amounts` row) is
|
|
618
888
|
reused across binds, so each bind MUST derive clipping from the item it binds
|
|
619
889
|
(`nativeListActivityHostClips`): a view that last showed an overhanging badge
|
|
620
|
-
clips again when it is rebound to a row without one.
|
|
890
|
+
clips again when it is rebound to a row without one. The rule follows the
|
|
891
|
+
visual, not the row shape: the rich row renders its leading visual on the
|
|
892
|
+
details view, so that view and every column between the visual and the host
|
|
893
|
+
stop clipping too, and the host derives its own clipping from the details
|
|
894
|
+
view's visual (`leadingOverhangs`, OK-66275). Before this rule the rich branch
|
|
895
|
+
forced the host's clipping back on and left the details view at Android's
|
|
896
|
+
defaults, so the app's history rows (which always carry `amounts`) still showed
|
|
897
|
+
the badge cut at the bottom-right after the legacy branch had been fixed.
|
|
621
898
|
|
|
622
899
|
The row's own shape still clips on every platform: iOS masks the cell to its
|
|
623
900
|
corner radius (`masksToBounds`), Web keeps the row `overflow: hidden`, and
|
|
@@ -654,9 +931,10 @@ over the badge. The per-source geometry is one pure function on Android
|
|
|
654
931
|
`NativeListLeadingVisual.layoutSubviews` on iOS; both restore the stacking
|
|
655
932
|
order by role on every bind because slots are reused across roles.
|
|
656
933
|
|
|
657
|
-
The Android Activity renderer also applies the badge-overhang rule above
|
|
658
|
-
(`requestsUnclippedHost` stops the content row
|
|
659
|
-
|
|
934
|
+
The Android Activity renderer also applies the badge-overhang rule above on
|
|
935
|
+
both of its branches (`requestsUnclippedHost` stops the legacy content row, the
|
|
936
|
+
rich details view with its columns, and the row padding clipping), so the
|
|
937
|
+
history rows' network badges render whole instead of cut flat.
|
|
660
938
|
|
|
661
939
|
## Failures, fallback and limits
|
|
662
940
|
|
|
@@ -1308,9 +1586,14 @@ secondary text and subscript text segments. Segments are caller-formatted and
|
|
|
1308
1586
|
never interpreted as numbers by NativeList. Omission preserves the legacy tree.
|
|
1309
1587
|
|
|
1310
1588
|
`presentation: stacked` places the amount lines after the identity column and
|
|
1311
|
-
right-aligns them
|
|
1312
|
-
|
|
1313
|
-
|
|
1589
|
+
right-aligns them. In `table`, the identity column includes its leading visual
|
|
1590
|
+
and gap; identity, amounts and an optional fee use stable widths in the ratio
|
|
1591
|
+
`1:1:0.6` after inter-column gaps. Without fee, identity and amounts split the
|
|
1592
|
+
remaining width equally. Amount content stays start-aligned within its column;
|
|
1593
|
+
native fee content stays end-aligned; Web retains its existing start alignment.
|
|
1594
|
+
Fee text length and leading visibility cannot move the amount column. These
|
|
1595
|
+
native widths match the existing Web table layout. Fee supports label, primary
|
|
1596
|
+
and secondary text with their own segments; `hidden` preserves its column width
|
|
1314
1597
|
while hiding its contents. Up to four uniquely keyed title badges use declared
|
|
1315
1598
|
tones. `descriptionActionKey` makes only the description emit that action with
|
|
1316
1599
|
source `description`; footer actions retain their existing source/keys and
|
|
@@ -1331,6 +1614,15 @@ baseline, matching NumberSizeableText), badge tone/clear, hidden fee, disabled
|
|
|
1331
1614
|
actions, description anchors, dark/RTL/font scaling and explicit/automatic height.
|
|
1332
1615
|
|
|
1333
1616
|
|
|
1617
|
+
Table regression acceptance additionally measures amount-column start, width and
|
|
1618
|
+
center across short/long/hidden fee, leading visibility, 1/2/6/32 amount lines and
|
|
1619
|
+
table/stacked reuse. Android DataRow primary and secondary groups honor their
|
|
1620
|
+
resolved text-role alignment (role style first, then column alignment), including
|
|
1621
|
+
start/center/end and styled/unstyled reuse. The secondary-prefix gap is present
|
|
1622
|
+
only when that prefix is visible; legacy linear rendering is unchanged. The UIKit
|
|
1623
|
+
regression explicitly forces each renderer view's direction; React Native/Fabric
|
|
1624
|
+
host direction propagation and real App RTL remain unverified.
|
|
1625
|
+
|
|
1334
1626
|
### Android ancestor scroll distance
|
|
1335
1627
|
|
|
1336
1628
|
Threshold hysteresis combines the primary RecyclerView's actual consumed scroll
|
|
@@ -1508,6 +1800,51 @@ row/presentation recycling, strict validation, native dictionary safe-ignore,
|
|
|
1508
1800
|
header/body geometry, 100 quote ticks preserving nodes with zero geometry reads,
|
|
1509
1801
|
then a real complex Market table before expanding to all five families.
|
|
1510
1802
|
|
|
1803
|
+
### Native Market metric columns
|
|
1804
|
+
|
|
1805
|
+
Status: implemented in local source, unreleased; native runtime verification
|
|
1806
|
+
pending. A `market` row may supply two or three ordered, uniquely
|
|
1807
|
+
keyed text columns through `metrics`, typed as a `Pick<DataColumn, ...>` of
|
|
1808
|
+
the supported text fields. Each column uses
|
|
1809
|
+
the text subset of `DataColumn`: key, primary text and segments, optional
|
|
1810
|
+
secondary text and segments, weight, alignment, and primary/secondary tone.
|
|
1811
|
+
Icon and secondary-leading fields are rejected in development and stripped by
|
|
1812
|
+
the existing production decoration sanitizer.
|
|
1813
|
+
Keys are nonempty and callers format all text. The row keeps its required
|
|
1814
|
+
`price` and `change` fields as compact fallbacks. When `metrics` is present,
|
|
1815
|
+
iOS and Android display the existing leading action, visual, title, subtitle,
|
|
1816
|
+
and Market badges, then the metric columns in place of the compact price and
|
|
1817
|
+
change block. The metrics are authoritative for this native presentation; the
|
|
1818
|
+
SDK does not infer their values from the fallback fields or product data.
|
|
1819
|
+
The default native accessibility label includes the title and subtitle followed
|
|
1820
|
+
by the displayed metric text, primary then secondary, in column order. It
|
|
1821
|
+
updates with each quote. An explicit row accessibility label takes precedence.
|
|
1822
|
+
The metrics use their own text tones and alignment, with both lines aligned
|
|
1823
|
+
the same way; omitted alignment defaults to `end`. Existing change block
|
|
1824
|
+
width, height, and corner radius do not
|
|
1825
|
+
apply to metric columns. The title content receives a relative weight of two;
|
|
1826
|
+
metric columns receive their declared `weight` (1...3, default one) after the
|
|
1827
|
+
row's existing action, visual, padding, and gaps take their space. The SDK
|
|
1828
|
+
does not choose a mode from screen width. Without `metrics`, all platforms
|
|
1829
|
+
retain their existing compact Market presentation. Web ignores `metrics` and
|
|
1830
|
+
continues using `webTable` when supplied.
|
|
1831
|
+
|
|
1832
|
+
Metric values travel in the existing row snapshot JSON and do not change the
|
|
1833
|
+
Nitro ABI, row key, action keys, badge anchors, or scroll ownership. Full
|
|
1834
|
+
snapshots may add, replace, or omit `metrics`; omission restores compact mode.
|
|
1835
|
+
An explicit patch with a valid two- or three-column array replaces metrics,
|
|
1836
|
+
while an omitted patch field leaves them unchanged. A full snapshot is used
|
|
1837
|
+
to remove metrics from a wide row; this contract adds no null patch meaning.
|
|
1838
|
+
Binding and recycling clear inactive metric and compact views in both
|
|
1839
|
+
directions, including changes between two and three columns, so reused rows
|
|
1840
|
+
cannot show stale text or targets. Metric fields contain no new action target;
|
|
1841
|
+
Market badge, leading action, press, press-in, and long-press behavior remains
|
|
1842
|
+
owned by the existing Market row. Conformance requires validation and patch
|
|
1843
|
+
tests, native bind/reuse and action-anchor checks, then consuming App device
|
|
1844
|
+
checks at narrow and wide list widths. Source and unit tests alone do not
|
|
1845
|
+
establish native layout acceptance.
|
|
1846
|
+
|
|
1847
|
+
|
|
1511
1848
|
|
|
1512
1849
|
### Web grid fractional column geometry
|
|
1513
1850
|
|
|
@@ -1713,6 +2050,23 @@ logo groups retain their4px gap and overlap geometry. No other text-part gaps
|
|
|
1713
2050
|
change. Regression acceptance includes Dark/Light recycled visuals, preserved
|
|
1714
2051
|
network overlays, independent copy actions and Stock hover group spacing.
|
|
1715
2052
|
|
|
2053
|
+
For token visuals in Web/Electron Market tables, changing only `overlays` MUST
|
|
2054
|
+
retain the main image frame, its loaded/error visibility and pending image
|
|
2055
|
+
callbacks. Removed overlay images release their pending work. Changes to the
|
|
2056
|
+
main image descriptor or other leading-visual fields keep the existing full
|
|
2057
|
+
rebind behavior. This is a Web renderer lifecycle rule; it changes neither the
|
|
2058
|
+
snapshot schema nor the iOS/Android implementations. Acceptance covers adding,
|
|
2059
|
+
replacing and removing overlays before and after image load/failure, including
|
|
2060
|
+
consumer row-key changes, and replacing the main image source. Overlay-only
|
|
2061
|
+
updates MUST retain the existing circular bitmap clipping of padded square
|
|
2062
|
+
badges and their caller-provided geometry.
|
|
2063
|
+
Status: implemented on the 6.7.0-alpha.402 publication source. Package DOM
|
|
2064
|
+
regressions, the built-module Chromium lifecycle fixture and consuming Electron
|
|
2065
|
+
refresh/navigation badge rendering are verified. Consuming Electron acceptance
|
|
2066
|
+
also covers a manually locked refresh, user password unlock, first Market entry
|
|
2067
|
+
and a complete quote polling cycle. No native implementation or public API
|
|
2068
|
+
changes are included.
|
|
2069
|
+
|
|
1716
2070
|
Gallery collection subtitles retain an 8px trailing text inset whether or not
|
|
1717
2071
|
a network thumbnail is present. The subtitle uses border-box sizing and its row
|
|
1718
2072
|
has no extra gap, preserving the same 8px separation with a thumbnail and the
|
|
@@ -1808,3 +2162,31 @@ A containing Web pager therefore applies insets, collapse/top commands and route
|
|
|
1808
2162
|
restoration to the owned host, with slot content as its padding target. The
|
|
1809
2163
|
ordinary no-slot viewport and explicit external-host paths keep their existing
|
|
1810
2164
|
ownership; no Pager dependency or new API is required.
|
|
2165
|
+
|
|
2166
|
+
### Shared icon recoloring revision — Implemented; scoped runtime acceptance
|
|
2167
|
+
|
|
2168
|
+
Android named glyph slots consume image's typed immutable shape-cache results:
|
|
2169
|
+
compatible fixed/single/same-alpha multiple colors update per-view tint without a
|
|
2170
|
+
request; new alpha or mixed-color raster requests preserve the last successful
|
|
2171
|
+
same-source/geometry bitmap until completion. Name/geometry changes, invalid,
|
|
2172
|
+
hidden/detach/recycle clear immediately and revisions reject old callbacks.
|
|
2173
|
+
Circle remains local; checkbox rectangles and icon coverage are unchanged.
|
|
2174
|
+
Android non-square named glyphs use the aspect-fit geometry defined above.
|
|
2175
|
+
iOS retains its existing black template/original request and synchronous retint.
|
|
2176
|
+
Web React and DOM use the image package's demand-loaded external per-icon symbol
|
|
2177
|
+
URLs, with existing coverage/aliases/action labels and CSS color inheritance.
|
|
2178
|
+
|
|
2179
|
+
## Host-owned named resources — Implemented; SDK fixture runtime verified
|
|
2180
|
+
|
|
2181
|
+
Image provides decoding and the static Web `#onekey-icon-assets` provider boundary;
|
|
2182
|
+
the application owns complete named SVG resources. NativeList keeps its existing
|
|
2183
|
+
43-name platform coverage and three generated metadata tables, including its
|
|
2184
|
+
legacy `BadgeVerifiedSolid` to canonical `BadgeRecognizedSolid` mapping. No list
|
|
2185
|
+
props, naming coverage or rendering strategy changes. Android non-square glyph
|
|
2186
|
+
geometry follows the aspect-fit contract above.
|
|
2187
|
+
|
|
2188
|
+
The SDK metadata generator validates against the shared 63-sample example/test
|
|
2189
|
+
catalog without an App checkout, including raw source digests and viewBox sizes.
|
|
2190
|
+
It emits metadata only. Production consumers must supply the complete host icon
|
|
2191
|
+
bundle/assets and Web provider; SDK-only fixture tests prove their closed sample
|
|
2192
|
+
coverage, while the App's independent generator verifies all 1,909 resources.
|