Repository navigation
Conversation
…(OK-67971) Card: 16 padding on every side (a one-line card is 52 tall), radius 12 on Web and 16 on iOS/Android, a plain 20 status icon, and a 1 px outer ring with a soft and a tight contact shadow. iOS now draws the ring outside the card and a second shadow, so the back cards of a collapsed stack keep a crisp edge. Android centres cards with the same 16 padding it draws. Actions: a single action takes the title row only in room the text leaves empty, measured at layout time (at most 128 wide, the title still one line, the message on no more lines); otherwise it sits in the lower row on the right. Touch targets are 44 (iOS) / 48 (Android) tall. Web buttons keep the default cursor. Gestures (touch on iOS, Android and Web), from OneKeyHQ#335 with its review findings fixed: a collapsed stack swipes toward its edge to dismiss together (45, or a 20 flick at 500/s) and pulls away to expand; an expanded stack pushes back to collapse and swipes sideways one card at a time. One drag at a time; toasts shown during a drag enter after it ends, however it ends. Android ends a slot's drag before reporting it, so a release from inside layout cannot re-enter it; a second finger cancels the drag. Loading: a plain icon that replaces a spinner pops in; a card shown again under a new generation is announced to screen readers, so a result can settle in place on native as well. Co-authored-by: huhuanming <huanming@onekey.so>
|
@codex review |
|
@codex security review |
|
Cursor review failed. Remote error: |
|
Skipping Bugbot: Bugbot is disabled for this repository. Visit the Bugbot dashboard to update your settings. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Something went wrong. Try again later by commenting “@codex review”. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Codex Review: Didn't find any major issues. Can't wait for the next one! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
- Decide the title-row action from text measured without line clamps on Web, iOS and Android, and never put the action of a text-less card there. - Web: mark a card as loading from the icon it actually shows. - Android: block keyboard focus in hidden and collapsed back cards; run the two text-layout unit tests with native graphics so they measure real text. - iOS window tests: find the action and link by type rather than subview order, and drop the capped inline-action case the redesign removed.
OK-67971
Summary
Brings back the toast redesign reverted in #337 (first commit, a plain revert) and finishes it for OK-67971 (second commit). App side: OneKeyHQ/app-monorepo#14883 (draft until this ships). Spec:
native-views/react-native-native-overlay/docs/SPEC.md(toast sections).Card
Actions
Stack gestures (touch on iOS, Android, Web) — includes #335 by @huhuanming, plus fixes for the findings raised on it:
Loading
Verification
tsc, eslint, prettier.swiftc -typecheck; the App's iOS build was run locally and checked by eye on the simulator before the last round (Android padding, screen-reader announcement, Web drag ownership).Not verified