Skip to content

HarmonyOS port: API and example matching iOS (score 100) - #20

Open
ChenYilong wants to merge 608 commits into
masterfrom
feat/harmony
Open

ChenYilong wants to merge 608 commits into
masterfrom
feat/harmony

Conversation

@ChenYilong

@ChenYilong ChenYilong commented Nov 15, 2026 •

Copy link
Copy Markdown
Owner

HarmonyOS port of CollectionViewClassifyMenu, scored live in docs/harmony.md. It now stands at 100 / 100.

  • Table 1, the iOS public API: all 785 rows are covered.
    • 17 rows are marked N/A, each with its reason. 13 are init?(coder:), which has no Interface Builder counterpart. 4 are custom accessibility actions; ArkUI through API 21 only has the click action.
  • Table 2, the iOS example: all 22 demo screens are covered.
  • Rules (in docs/instructions.md): the API matches iOS one to one, and the example matches the iOS example one to one. The internals are migrated from the Android Kotlin sources, and Swift decides where the two differ.
  • Versions: the target is HarmonyOS 5.0.0 (API 12). It builds with SDK 6.0.1 (API 21) and DevEco Studio 6.0.1.
  • Library (harmony/classifymenu):
    • core/: style, appearance, colours, tag models, resources and configuration.
    • components/: the tag list and the animated icon, which plays Lottie, PAG, Rive and GIF.
    • tagviews/: the tag button and the tag views.
    • classify/: the classify menu and the multiple filter.
    • imagetag/: the image tag views.
  • Example (harmony/entry): the root tab bar and every iOS screen, under demos/.
  • Build: harmony/scripts/build.sh builds the library and the app on Windows and macOS.
  • Scripts: harmony/scripts/harmony_parity.py generates the document (--check, --todo), and parity_map.py maps rows.

Not verified yet: nothing has run on a device or emulator, because none is available on the machine this was built on. The test checklist is in docs/cross-platform.md.

🤖 Generated with Claude Code

https://claude.ai/code/session_017y7XP1PdARBM5KQfkatJYT

@ChenYilong ChenYilong changed the title HarmonyOS port: parity document and live score HarmonyOS port: API and example matching iOS (score 100) Nov 15, 2026
@ChenYilong

Copy link
Copy Markdown
Owner Author

HarmonyOS verification (12 commits, 080f682..9319f6d)

New full-marks standard: docs/harmony-verification.md.
Verified: 15 / 53 (28.3 / 100). The 38 rows that need an emulator are marked "TODO: N/A on HarmonyOS (deferred)" with their reasons, at the maintainer's request; they are not checked yet.

  • ArkTS warnings 92 → 1: model code measures through CYLUIContext; UIContext APIs; accessibilitySelected only on API 13+. The one left is the API 12–17 getContext() fallback.
  • Example strings in en / zh-Hans / zh-Hant, generated from the iOS bundle (export-example-strings.py).
  • SVGA animated icons: the library decodes SVGA 2.x itself (inflate + protobuf + Canvas), because no ohpm SVGA player exists. The example has SVGA versions of the Rive scenes. svga-decoder-test.sh matches zlib on all six files.
  • 49 / 49 local unit tests on the computer (scripts/unit-test.sh); fixed a bug they found in partialLine.
  • UI tests for every feature and scripts/screenshots.sh with launch options, ready for the emulator (not run yet).

🤖 Generated with Claude Code

https://claude.ai/code/session_017y7XP2ptDmtCUfFAYtzGxS

@ChenYilong

Copy link
Copy Markdown
Owner Author

Pushed 5a2bff0: HarmonyOS accessibility (labels on every image, input and control; scripts/accessibility-check.py), native localized resources in base / en_US / zh_CN / zh_TW with the tab titles copied from CYLTabBarController (scripts/check-native-strings.py), two fixes for comparisons of translated text, and accessibility-first UI tests (cylTapAccessible). Rules in AGENTS.md and the skills cyl-harmonyos, cyl-accessibility, cyl-localization. Builds, 49 / 49 host tests pass; still verified 15 / 53 because nothing has run on an emulator yet.

🤖 Generated with Claude Code

@ChenYilong
ChenYilong changed the base branch from feat/android-kotlin to master November 16, 2026 02:17
claude and others added 25 commits November 17, 2026 05:44
CYLTabBarController's guide (0a63bed) adds multi-engine management and a
TODO for this repository: show the registry's report in the example that
links the five engines, so the integrator sees each engine confirmed. The
Animated icons screen now lists the known engines from
CYLTabBarItemAnimatorRegistry: a check mark for each registered engine, the
pod line to add for a missing one, and each conflict. Strings in en and
zh-Hant, the mini program strings regenerated, and a test that all five
engines are registered with no conflict and listed.

By @ChenYilong <luohanchenyilong@163.com>

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017y7XP2P2UnTvzHG1KZL67A
CI on 69db925 fails the menu tests the same way as 0b6917d: the demo app
cannot load CYLClassifyMenuViewController's members, because its Swift
compiler does not get CYLAnimatedItem's module map in a Podfile that
builds static libraries. The DEFINES_MODULE of CYLAnimatedItem.podspec
does not cover the app target, so the root, TagCollectionView and React
Native example Podfiles give the pod :modular_headers => true again
(dd8c535 had removed it; 6dc9124's run that would have verified it was
cancelled).

By @ChenYilong <luohanchenyilong@163.com>

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017y7XP2P2UnTvzHG1KZL67A
Task log: CYLIndexPathButton, CYLRightImageButton and
CYLMultipleFilterHeaderView on Android follow iOS onto CYLTagButton.

By @ChenYilong <luohanchenyilong@163.com>

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017y7XP2NgtYLPSYcmHu9Axx
CI on 69db925: the demo app, which imports only CollectionViewClassifyMenu,
could not load CYLClassifyMenuViewController members typed with
CYLAnimatedItemView subclasses under explicit modules. CYLTagButton.swift
re-exports the base class module, as CYLTabBarController does, so every
client of the library loads it.

By @ChenYilong <luohanchenyilong@163.com>

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017y7XP2NgtYLPSYcmHu9Axx
CYLIndexPathButton and CYLRightImageButton now subclass CYLTagButton, and
CYLMultipleFilterHeaderView shows its title in titleButton, a CYLTagButton,
as on iOS. Ports CYLMenuStyle.classifyMenuTag / filterTag / sectionTitle,
CYLCollectionCellButtonStyle and CYLTagButton.cylApply, plus
CYLRightImageButton.expandTitle / collapseTitle. Callers in the core and
the tests updated; parity tables regenerated. Not compiled here (no
Android SDK); CI is the check. Details: docs/component-architecture.md.

By @ChenYilong <luohanchenyilong@163.com>

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017y7XP2NgtYLPSYcmHu9Axx
The #788 tip and newest commit: remote GIF and PAG downloads and the
late-failure fallback on top of 0a63bed.

By @ChenYilong <luohanchenyilong@163.com>

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017y7XP2NgtYLPSYcmHu9Axx
The menu tests keep failing to compile the demo app (static libraries):
CYLMainViewController cannot inherit from CYLClassifyMenuViewController
"because it has overridable members that could not be loaded", with
modular headers and the core's re-export in place, while the Example
(frameworks) subclasses the same controller and TagCollectionView
(static libraries, no subclass) builds. The demo app now imports
CYLAnimatedItem itself, which fixes the load or names the missing module.

By @ChenYilong <luohanchenyilong@163.com>

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017y7XP2P2UnTvzHG1KZL67A
The #788 tip: CYLAnimatedItem on HarmonyOS and the mini program, and the
iOS umbrella header importing the animator headers. Task log for
adopting the new components.

By @ChenYilong <luohanchenyilong@163.com>

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017y7XP2NgtYLPSYcmHu9Axx
The mini program library draws every tag icon of cyl-tag-list and
cyl-tag-button through CYLTabBarController's shared component
cyl-animated-item, vendored at 57a527e by scripts/fetch-cyltabbar.js
(with cyl-animation-placeholder, the upstream LICENSE and a COMMIT file;
--check compares the copy, and the upstream model tests run here).

- The library forwards the abstract nodes cyl-lottie-view, cyl-pag-view,
  cyl-rive-view and cyl-svga-view and links no engine; GIF is drawn by
  cyl-animated-item's image. The old cyl-animation-icon slot is removed.
- animations.js only maps configured file paths to an animation-url
  (model.animationURL); play() goes through cyl_playFromStart.
- The example's components/cyl-tag-animation-view is the engine
  component (cyl-lottie, cyl-rive, cyl-pag) for every tag list page.
- check-licenses.sh checks the vendored LICENSE files.

By @ChenYilong <luohanchenyilong@163.com>

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017y7XP2NgtYLPSYcmHu9Axx
The HarmonyOS library draws a tag's animated icon with CYLTabBarController's
shared CYLAnimatedItemView (module cylanimateditem, vendored unmodified from
commit 57a527e into harmony/cylanimateditem, registered in build-profile and
depended on with file:). CYLTagAnimatedIcon wraps it, since ArkTS structs
cannot subclass; CYLTagButton keeps its API, layout, badge and accessibility.

The library no longer depends on @ohos/lottie, @tencent/libpag or @ohos/rive,
and its own players, icon views and SVGA decoder move to the example
(entry/src/main/ets/animation), which registers Lottie, PAG, Rive, SVGA and
GIF with CYLAnimatedItemEngines and its views with CYLTagAnimationBuilder.
Compile and device checks are TODO in harmony/README.md.

By @ChenYilong <luohanchenyilong@163.com>

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017y7XP2NgtYLPSYcmHu9Axx
Records the two ports by commit (222a58a, b4c7460), the upstream
component gaps sent to CYLTabBarController, and the remaining TODOs.

By @ChenYilong <luohanchenyilong@163.com>

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017y7XP2NgtYLPSYcmHu9Axx
…arController PR #815)

Records the owner's decision (extend upstream, then migrate), the four commits of
CYLTabBarController PR #815 (playback, resting progress, GIF stills, Lottie data,
per-engine wasm paths, animationType, embedded), and that the mini program migration
itself landed from the other session first (b4c7460), with the GIF stills regression
and the pin move after #815's merge handed to it.

By @ChenYilong <luohanchenyilong@163.com>

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017y7XP2P2UnTvzHG1KZL67A
…nd TODOs

docs/animated-item-migration.md lists each item of CYLTabBarController's
docs/Animated-Item.md that applies to this repository, per platform, with its
status and evidence: 18 of 25 rows done (score 72). Open: the static-library
demo app and the rest of iOS CI, a separate SwiftPM CYLAnimatedItem product
(upstream), the mini program GIF stills after CYLTabBarController PR #815 is
merged, and the HarmonyOS, WeChat DevTools, Flutter and React Native Android
builds that cannot run here. Linked from component-architecture.md and
issue-progress.md. Documentation only: [skip ci], so the queued iOS
run 44037489477 is not cancelled.

By @ChenYilong <luohanchenyilong@163.com>

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017y7XP2P2UnTvzHG1KZL67A
docs/component-architecture.md gains one table that tracks how far this
repository follows CYLTabBarController's docs/Animated-Item.md (read at
e3ebc242; pinned 57a527e, same component code): 9 of 14 rows done in
code (score 64), with evidence per row; the rest are TODO: iOS CI green
on the pin, the mini program GIF stills and playback from upstream PR
#815, HarmonyOS gaps in CYLAnimatedItemView, the React Native and
Flutter HarmonyOS shells, and publishing order. Nothing was compiled in
the Linux container.

By @ChenYilong <luohanchenyilong@163.com>

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017y7XP283aUcH5Eu6xtFNFW
…olor

fillColor only recolors SVG and symbol images, so setIconColor did nothing
for PNG icons (the orange review icon on the orange selected chip). An
explicit icon color now also applies an alpha-preserving colorFilter, as
iOS template images; without one a bitmap keeps its colors. The example
workaround (white PNG copies) is removed. Core follow-up of Y2.

By @ChenYilong <luohanchenyilong@163.com>

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017y7XP2ptDmtCUfFAYtzGxS
fb55fea and 6dd8fdb (two sessions at the same time) both added a
progress table against CYLTabBarController's Animated-Item.md. Keep the
fuller one, docs/animated-item-migration.md (25 rows, score 72), and
leave a pointer to it in component-architecture.md.

By @ChenYilong <luohanchenyilong@163.com>

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017y7XP283aUcH5Eu6xtFNFW
…olors

The core takes ResourceColor for tag colors now, so the product page gives
its chips light and dark resource colors instead of reading the color
mode once when it appears. Core follow-up of E7.

By @ChenYilong <luohanchenyilong@163.com>

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017y7XP2ptDmtCUfFAYtzGxS
By @ChenYilong <luohanchenyilong@163.com>

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017y7XP2ptDmtCUfFAYtzGxS
The tag button test used a rawfile that does not exist (icon.png), which
stopped the test build; parity-map.json still named CYLTagButton members
now inherited from CYLAnimatedItemView; the filter icon tint wrapped its
chain so the accessibility check lost it (now CYLColor.tintFilter). Build,
58 host tests, accessibility, strings and parity checks pass (row 17).

By @ChenYilong <luohanchenyilong@163.com>

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017y7XP2ptDmtCUfFAYtzGxS
DevTools unused-file filter dropped cyl_animated_item_model.js, so every
tag list failed to load (module not defined, component not found). The
tag list and tag button required it with a .js suffix while the component
requires it without; both use the extension-less path now. 126 tests
pass; checked in DevTools 2.02 (row 20).

By @ChenYilong <luohanchenyilong@163.com>

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017y7XP2ptDmtCUfFAYtzGxS
A CYLTagButton drawn without a tag list measured its title without the
window text metrics (CJK titles cut to "SVG..."), and it always took the
tap, so a parent row could not handle it. The component remembers the UI
context and registers onClick only with onTagClick. Found and checked on
the emulator by the CYLSearchViewController session.

By @ChenYilong <luohanchenyilong@163.com>

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017y7XP2ptDmtCUfFAYtzGxS
CYLTagButton.kt converted to com.cyl.tabbar.CYLSize, which does not exist:
the :cylanimateditem module (CYLTabBarController 57a527e and newer) has
com.cyl.animateditem.CYLSize, so the library did not compile. Reported by
the CYLSearchViewController session from its Android build.

By @ChenYilong <luohanchenyilong@163.com>

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017y7XP2ptDmtCUfFAYtzGxS
…rkflow rule

On the emulator the matrix colorFilter after fillColor left the selected
review icon orange; a ColorFilter object tints it white (Y2, before and
after screenshots). New rule: record, screenshot, then fix animation and
icon bugs in CYLTabBarController animated item component, not in the
examples; demos needing more get a component API from CYLTabBarController.

By @ChenYilong <luohanchenyilong@163.com>

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017y7XP2ptDmtCUfFAYtzGxS
ChenYilong and others added 30 commits November 19, 2026 15:44
…abelled screenshot

- confirmed by the CYLSearchViewController session at c966c52 on the Mate 70 Pro emulator: the pencil and the title
  rename through the list, the stack view draws both icons tinted

By @ChenYilong <luohanchenyilong@163.com>

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017y7XP2ptDmtCUfFAYtzGxS
…gram screenshot; log cyl-tag-cloud folding

- taken by the CYLSearchViewController session at c966c52 in WeChat DevTools: pencil and cross, the header trash,
  rename by id; Android 40, HarmonyOS 30, mini program 30
- new TODO: defaultVisibleRows and a tail fold control in cyl-tag-cloud

By @ChenYilong <luohanchenyilong@163.com>

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017y7XP2ptDmtCUfFAYtzGxS
…he fold control as the last tag

- defaultVisibleRows, foldControlContent, foldControlColor; setExpanded / isExpanded; foldchange event
- measured rows; the control takes the end of the last visible row (model.foldVisibility), as iOS
- editing shows every tag; tests (2), npm test 161 / 161; DevTools screenshot

By @ChenYilong <luohanchenyilong@163.com>

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017y7XP2ptDmtCUfFAYtzGxS
…d from the tag font

- the text glyph drew a ~6 px dash in DevTools; now a tinted SVG chevron, cap height x 1.25 like the editing icons
- the test checks the icon and its size; npm test 161 / 161; before / after screenshot

By @ChenYilong <luohanchenyilong@163.com>

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017y7XP2ptDmtCUfFAYtzGxS
…wift Package Manager revision checked

The owner chose commit references over a CocoaPods trunk release and a master tag. Checked from outside the
repository: a copy of the Swift Example installs CollectionViewClassifyMenu by :git + :commit (CYLAnimatedItem pinned
the same way), pod install fetches it from GitHub, 22/22 tests pass and the app runs; a Swift package depending on
the repository by revision builds for the iOS simulator. The README now installs by commit instead of the master
branch, which lacked the current code. Issue row #11 at 100.

By @ChenYilong <luohanchenyilong@163.com>

Claude-Session: https://claude.ai/code/session_017y7XP1mQbtZ3qSM2mvdshG
New workflow .github/workflows/localization.yml (Ubuntu, Python 3 standard library only, under a minute):
scripts/check-localization.py (iOS core, demo app, both Examples, Flutter, React Native),
scripts/check-localization-ports.py (Android, HarmonyOS, mini program) and the Flutter / React Native exports'
--check against the iOS bundle. AGENTS.md says so.

By @ChenYilong <luohanchenyilong@163.com>

Claude-Session: https://claude.ai/code/session_017y7XP1mQbtZ3qSM2mvdshG
…rmonyOS, Android, RN and Flutter

- mini program: fetch-cyltabbar.js COMMIT; vendored cyl-animated-item / cyl-animation-placeholder re-fetched
- HarmonyOS: harmony/cylanimateditem re-vendored (new CYLAnimatedItemTypes.ts and its test), README
- Android: cyl.tabbar.commit; RN fetch-cyltabbar.sh; Flutter example pubspec ref
- npm test 161 / 161; HarmonyOS host tests 75 / 75, the app builds; Android library tests 99 / 0

By @ChenYilong <luohanchenyilong@163.com>

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017y7XP2ptDmtCUfFAYtzGxS
…eact Native again

Every iOS pin moves from 9a4ad95e to 74f0b4cd, which contains 3ddb2868 (a delegate that only implements the methods
gets tab taps again, broken since migration step 63; React Native tabs never reported taps). No code change here.
Checked on the simulator: the React Native example's Classify tab switches the page in JavaScript.
Tests: menu 37/37, Example 110/110, Swift Example 22/22, TagCollectionView 6/6; flutter build ios OK.

By @ChenYilong <luohanchenyilong@163.com>

Claude-Session: https://claude.ai/code/session_017y7XP1mQbtZ3qSM2mvdshG
… tap (mut-bind)

- catchtouchstart on the delete indicators and the editing icons -> mut-bind:touchstart; the item's touchstart too
- a touch on an icon still does not press the tag; the CYLSearchViewController page's × and pencil work again
- regression test (no catchtouchstart, mut-bind on the item and the four icons); npm test 162 / 162; DevTools check

By @ChenYilong <luohanchenyilong@163.com>

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017y7XP2ptDmtCUfFAYtzGxS
…y 3.6.6; closed at 100

- the old template ignores the touch tap on base library 3.6.6 and works on 3.18.0; the mut-bind fix works on both
- the CYLSearchViewController session confirmed it on its page; screenshot on 3.6.6

By @ChenYilong <luohanchenyilong@163.com>

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017y7XP2ptDmtCUfFAYtzGxS
As WeChat's friend verification sheet: one cell per character, 9 equal cells per row, smear a finger across cells
to select them, the selected characters in text order fill a field.
Core: CYLMenuStyle.wordPicker(), CYLTagListView.setTags(withCharactersOf:) (keeps selectionMode),
allowsSmearSelection (anchored on the touched-down cell; starting on a selected cell deselects; taps still toggle),
selectedText, selectItems(from:through:); a space cell is read as "Space" (new core string CYLMenuSpaceCharacter).
Example: the Styles tab's word picker demo with the remark field and the sheet (Cancel, Fill in off until something
is selected). Checked on the simulator with an axe drag from L to y.
Tests: 3 new; menu 37/37, Example 113/113; localization checks 0. Five new iOS to Android rows for the Windows session.

By @ChenYilong <luohanchenyilong@163.com>

Claude-Session: https://claude.ai/code/session_017y7XP1mQbtZ3qSM2mvdshG
- CYLMenuStyle.wordPicker(); setTagsWithCharactersOfText (keeps selectionMode); selectedText; selectItemsFromIndexPath
- allowsSmearSelection: a drag from a tag selects (or deselects) the tags it crosses; a tap still toggles
- a space cell reads CYLMenuSpaceCharacter; example: Styles -> word picker with the remark field and the sheet
- CYLWordPickerTest (2); library 101 / 0; android-api 893 / 893; check-localization-ports.py prints UTF-8

By @ChenYilong <luohanchenyilong@163.com>

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017y7XP2ptDmtCUfFAYtzGxS
The demo showed the text of the owner's WeChat screenshot as untranslated user content. It now shows an Example
string, "Hi, I'm Alex from Design 👋" (zh-Hans 你好,我是设计部的 Alex 👋, zh-Hant 你好,我是設計部的 Alex 👋), with
the sender Alex: letters, Chinese characters, an emoji and a space, and a name to pick. Tests find the name in any
language; a new test checks all three languages. Screenshots in the three languages.

By @ChenYilong <luohanchenyilong@163.com>

Claude-Session: https://claude.ai/code/session_017y7XP1mQbtZ3qSM2mvdshG
…d demo on the generic message

- HarmonyOS: CYLMenuStyle.wordPicker(); setTagsWithCharactersOfText (cylCharacters: graphemes by hand);
  selectedText; selectItemsFrom; allowsSmearSelection with a per-item PanGesture (no direction unless it can smear)
- a space cell reads CYLMenuSpaceCharacter; TagListWordPicker.test.ets (2); host tests 77 / 77; the app builds
- Android demo: the localized "你好,我是设计部的 Alex 👋" (iOS 251131c), tests find the name; library 101 / 0

By @ChenYilong <luohanchenyilong@163.com>

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017y7XP2ptDmtCUfFAYtzGxS
…mear selection

- setTagsWithCharactersOfText (graphemes, keeps selectionMode), selectedText(), selectItemsFrom
- allowsSmearSelection: touchstart anchors, touchmove over the measured frames extends; the page does not scroll
- model.wordPickerStyle(), numberOfItemsPerRow (equal cells), title fontWeight; a space reads CYLMenuSpaceCharacter
- test/tag-cloud-word-picker.test.js (2); npm test 164 / 164 both ways

By @ChenYilong <luohanchenyilong@163.com>

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017y7XP2ptDmtCUfFAYtzGxS
…d by a touch smear in DevTools

- pages/sample-word-picker: remark field, localized message, sheet with Cancel, the grid and 填入
- DevTools + miniprogram-automator: smear A..x picks Alex, 填入 fills the field; npm test 164 / 164

By @ChenYilong <luohanchenyilong@163.com>

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017y7XP2ptDmtCUfFAYtzGxS
Each smear that starts on an unselected cell adds its range, so 设计部 and then " Alex" give "设计部 Alex"
(zh-Hant 設計部 Alex; English, in text order, Alex Design). New test through the gesture handler in the three
languages; checked on the simulator with two real drags per language and Fill in; screenshots.

By @ChenYilong <luohanchenyilong@163.com>

Claude-Session: https://claude.ai/code/session_017y7XP1mQbtZ3qSM2mvdshG
… A to x picks Alex, Fill in fills it

- labelled screenshot; the Android part of the word picker at 40 / 40

By @ChenYilong <luohanchenyilong@163.com>

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017y7XP2ptDmtCUfFAYtzGxS
The cloud bound touchmove without catching it, so the finger dragging a
tag also scrolled the page. disablesScrollingWhileReordering (default
true) makes the item catch touchmove from the long press that starts a
drag until the drag ends or is cancelled; reorderingchange lets a host
with a scroll-view turn scroll-y off for that time.

By @ChenYilong <luohanchenyilong@163.com>

Claude-Session: https://claude.ai/code/session_017y7XNzPUTD1qDqdiasqxb1
- WordPickerSample.ets (route CYLWordPickerDemoViewController): remark field, localized message, a sheet with
  Cancel, the grid and 填入; example strings regenerated; the app builds
- the emulator screenshot waits: the emulator's identity file is gone and DevEco is to stay closed

By @ChenYilong <luohanchenyilong@163.com>

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017y7XP2ptDmtCUfFAYtzGxS
…he mini program

- owner's check (iOS testSeveralSmearsAddUp): "Alex" then " Design" (from the space) -> "Alex Design";
  a smear from a selected cell removes its range
- Android CYLWordPickerTest 3 / 3; HarmonyOS host tests 78 / 78; mini program npm test 166 / 166

By @ChenYilong <luohanchenyilong@163.com>

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017y7XP2ptDmtCUfFAYtzGxS
… in DevTools

- two smears give "Alex Design" on Android (adb swipes, Fill in) and in the mini program (touch smears)

By @ChenYilong <luohanchenyilong@163.com>

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017y7XP2ptDmtCUfFAYtzGxS
…ace, not the emulator's identity file

- the emulator needs -imageRoot; then it refuses "No enough space to start Emulator" at 7.6 GB free

By @ChenYilong <luohanchenyilong@163.com>

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017y7XP2ptDmtCUfFAYtzGxS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants