@buaa_smat/hometrans 26.0.5 → 26.0.6
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/README.md +249 -279
- package/agents/code-reviewer.md +1 -1
- package/dist/cli/editors.json +20 -0
- package/dist/platform/registry.js +1 -0
- package/dist/platform/validate.js +2 -1
- package/i18n/agents/code-reviewer.md +1 -1
- package/i18n/platforms/atomcode/skills/a2h-app-migrate/SKILL.unique.md +3 -0
- package/i18n/platforms/claude-code/skills/a2h-app-migrate/SKILL.unique.md +3 -0
- package/i18n/platforms/codebuddy/skills/a2h-app-migrate/SKILL.unique.md +8 -0
- package/i18n/platforms/codex/skills/a2h-app-migrate/SKILL.unique.md +3 -0
- package/i18n/platforms/cursor/skills/a2h-app-migrate/SKILL.unique.md +3 -0
- package/i18n/platforms/deveco/skills/a2h-app-migrate/SKILL.unique.md +3 -0
- package/i18n/platforms/opencode/skills/a2h-app-migrate/SKILL.unique.md +10 -0
- package/i18n/platforms/qoder/skills/a2h-app-migrate/SKILL.unique.md +3 -0
- package/i18n/platforms/qoder-cn/skills/a2h-app-migrate/SKILL.unique.md +8 -0
- package/i18n/platforms/trae/skills/a2h-app-migrate/SKILL.unique.md +3 -0
- package/i18n/platforms/trae-cn/skills/a2h-app-migrate/SKILL.unique.md +3 -0
- package/i18n/skills/a2h-app-migrate/SKILL.md +32 -15
- package/i18n/skills/a2h-app-migrate/references/stage-map.md +4 -2
- package/i18n/skills/a2h-app-migrate/references/workflow.yaml +148 -89
- package/i18n/skills/a2h-app-migrate/scripts/env_preflight.mjs +1 -1
- package/i18n/skills/a2h-app-migrate/scripts/validate_workflow.mjs +51 -2
- package/i18n/skills/a2h-app-migrate/test/test_build_fixer_contract.mjs +1 -1
- package/i18n/skills/a2h-app-migrate/test/test_interaction.mjs +0 -2
- package/i18n/skills/a2h-app-migrate/test/test_resume_plan.mjs +1 -1
- package/i18n/skills/a2h-app-migrate/test/test_skill_doc.mjs +1 -1
- package/i18n/skills/a2h-app-migrate/test/test_specs_json_preflight.mjs +1 -1
- package/i18n/skills/a2h-app-migrate/test/test_utg_static_done.mjs +9 -3
- package/i18n/skills/a2h-app-migrate/test/test_validate_workflow_bilingual.mjs +4 -2
- package/i18n/skills/a2h-arkts-logic-coder/SKILL.md +8 -7
- package/i18n/skills/a2h-arkts-logic-coder/references/ISSUES.md +2 -2
- package/i18n/skills/a2h-arkts-logic-coder/references/code-generation.md +33 -12
- package/i18n/skills/a2h-batch-ui-align/SKILL.md +14 -12
- package/i18n/skills/a2h-batch-ui-align/references/cards/alignment.md +1 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/canvas.md +1 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/dynamics.md +32 -1
- package/i18n/skills/a2h-batch-ui-align/references/cards/geometry.md +3 -2
- package/i18n/skills/a2h-batch-ui-align/references/cards/interaction.md +4 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/resources.md +19 -1
- package/i18n/skills/a2h-batch-ui-align/references/cards/widgets.md +13 -1
- package/i18n/skills/a2h-batch-ui-align/references/cards/window.md +2 -2
- package/i18n/skills/a2h-batch-ui-align/references/checker-rules.md +205 -7
- package/i18n/skills/a2h-batch-ui-align/references/conversion-procedure.md +10 -17
- package/i18n/skills/a2h-batch-ui-align/references/incremental-scope.md +3 -4
- package/i18n/skills/a2h-batch-ui-align/references/lottie-integration.md +47 -2
- package/i18n/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-atomic-component-mapping-reference.md +52 -328
- package/i18n/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-interaction-mapping-reference.md +1 -138
- package/i18n/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-layout-mapping-reference.md +2 -11
- package/i18n/skills/a2h-batch-ui-align/references/state-mgmt/_paradigm-selection.md +1 -1
- package/i18n/skills/a2h-batch-ui-align/references/step3-capture.md +8 -23
- package/i18n/skills/a2h-batch-ui-align/references/step4-prepare.md +2 -1
- package/i18n/skills/a2h-batch-ui-align/references/step5-convert.md +17 -9
- package/i18n/skills/a2h-batch-ui-align/scripts/build_conversion_set.mjs +239 -16
- package/i18n/skills/a2h-batch-ui-align/scripts/group_pack.mjs +6 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/icon_coverage.mjs +6 -3
- package/i18n/skills/a2h-batch-ui-align/scripts/measure_pack.ts +170 -10
- package/i18n/skills/a2h-batch-ui-align/scripts/phase5_check.mjs +42 -1
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/main.ts +20 -1
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/attr_chain.ts +81 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/click_handler.ts +140 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/collapsing_toolbar.ts +124 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/compose_semantics.ts +287 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/flowitem_width.ts +78 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/hit_test.ts +194 -8
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/inset_stacked.ts +138 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/int_division.ts +181 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/layout_placement.ts +62 -2
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/lottie_path.ts +77 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/lottie_ready.ts +109 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/media_tint.ts +88 -18
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/relative_container_cycle.ts +140 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/relative_container_height.ts +2 -2
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/see_through_overlay.ts +149 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/sheet_builder.ts +139 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/sheet_show_close.ts +53 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/space_between_optional.ts +115 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/theme_color.ts +7 -1
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/width_fill.ts +160 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_inset_stacked.test.mjs +155 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_layout_placement.test.mjs +60 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/build_conversion_set.test.mjs +38 -0
- package/i18n/skills/a2h-module-semantic-docs/SKILL.md +3 -2
- package/i18n/skills/a2h-page-specgen/SKILL.md +36 -5
- package/i18n/skills/a2h-page-specgen/references/behavior-ledger.md +89 -21
- package/i18n/skills/a2h-page-specgen/references/gates.md +33 -7
- package/i18n/skills/a2h-page-specgen/references/scenario-authoring.md +67 -13
- package/i18n/skills/a2h-page-specgen/references/spec-example.md +166 -32
- package/i18n/skills/a2h-page-specgen/references/spec-template.md +8 -5
- package/i18n/skills/a2h-page-specgen/scripts/behavior-audit.mjs +37 -1
- package/i18n/skills/a2h-page-specgen/scripts/behavior-discovery.mjs +241 -22
- package/i18n/skills/a2h-page-specgen/scripts/behavior-model.mjs +29 -2
- package/i18n/skills/a2h-page-specgen/scripts/behavior-reconcile.mjs +32 -0
- package/i18n/skills/a2h-page-specgen/scripts/contract-calls.mjs +715 -0
- package/i18n/skills/a2h-page-specgen/scripts/footprint.mjs +129 -2
- package/i18n/skills/a2h-page-specgen/scripts/gate.mjs +19 -10
- package/i18n/skills/a2h-page-specgen/scripts/lib/contracts.mjs +62 -3
- package/i18n/skills/a2h-page-specgen/scripts/lib/graph-evidence.mjs +27 -0
- package/i18n/skills/a2h-page-specgen/scripts/lib/hg.mjs +116 -6
- package/i18n/skills/a2h-page-specgen/scripts/operation-evidence.mjs +270 -29
- package/i18n/skills/a2h-page-specgen/scripts/prepare.mjs +26 -14
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.prompt.md +118 -25
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.worker.md +104 -19
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.prompt.md +118 -25
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.worker.md +104 -19
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.discovery.json +216 -216
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.json +1 -1
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.post-review.json +2 -2
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.prompt.md +118 -25
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.worker.md +100 -15
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.prompt.md +118 -25
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.worker.md +104 -19
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/run.mjs +155 -3
- package/i18n/skills/a2h-page-specgen/scripts/test/android-operation-evidence.test.mjs +529 -1
- package/i18n/skills/a2h-page-specgen/scripts/test/behavior-audit-pre.test.mjs +27 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/behavior-discovery.test.mjs +158 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/behavior-fixtures.mjs +11 -13
- package/i18n/skills/a2h-page-specgen/scripts/test/behavior-reconcile.test.mjs +97 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/contract-calls.test.mjs +737 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/contracts.test.mjs +75 -3
- package/i18n/skills/a2h-page-specgen/scripts/test/finalize.test.mjs +24 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/hg.mkdb.mjs +124 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/footprint-resolve.test.mjs +6 -2
- package/i18n/skills/a2h-page-specgen/scripts/test/gate.test.mjs +106 -1
- package/i18n/skills/a2h-page-specgen/scripts/test/graph-evidence.test.mjs +32 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/hg.test.mjs +12 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/operation-reviews.test.mjs +6 -1
- package/i18n/skills/a2h-page-specgen/scripts/test/prompt-tpl.test.mjs +11 -3
- package/i18n/skills/a2h-page-specgen/scripts/test/protocol-docs.test.mjs +1 -1
- package/i18n/skills/a2h-page-specgen/scripts/test/recovery-e2e.test.mjs +1 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/submit.test.mjs +159 -27
- package/i18n/skills/a2h-resource-convert/SKILL.md +1 -1
- package/i18n/skills/a2h-resource-convert/references/lottie-conversion-rules.md +2 -2
- package/i18n/skills/a2h-resource-convert/scripts/a2h_resource_convert.ts +124 -8
- package/i18n/skills/a2h-resource-convert/scripts/sync-framework-strings.mjs +147 -0
- package/i18n/skills/a2h-resource-convert/scripts/tests/framework_strings.test.mjs +131 -0
- package/i18n/skills/a2h-spec-design-pipeline/SKILL.md +15 -12
- package/i18n/skills/a2h-spec-design-pipeline/references/coding-loop.md +38 -10
- package/i18n/skills/a2h-spec-design-pipeline/references/initialization.md +2 -2
- package/i18n/skills/a2h-spec-design-pipeline/references/post-loop.md +2 -2
- package/i18n/skills/a2h-spec-design-pipeline/references/reply-recovery.md +172 -0
- package/i18n/skills/a2h-spec-design-pipeline/references/review-loop.md +2 -2
- package/i18n/skills/a2h-spec-design-pipeline/references/scripts.md +5 -3
- package/i18n/skills/a2h-spec-design-pipeline/references/state-and-resume.md +7 -1
- package/i18n/skills/a2h-spec-design-pipeline/scripts/plan_groups.ts +1 -1
- package/i18n/skills/a2h-spec-design-pipeline/scripts/test_plan_groups.ts +2 -0
- package/i18n/skills/a2h-spec-generate/references/input-formats.md +1 -1
- package/i18n/skills/a2h-utg-explorer/SKILL.md +11 -5
- package/i18n/skills/a2h-utg-explorer/references/architecture.md +37 -19
- package/i18n/skills/a2h-utg-explorer/scripts/compile_tasks.mjs +48 -3
- package/i18n/skills/a2h-utg-explorer/scripts/final_utg.mjs +21 -0
- package/i18n/skills/a2h-utg-explorer/scripts/recover_d.mjs +67 -8
- package/i18n/skills/a2h-utg-explorer/scripts/tests/diagnostics.test.mjs +32 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/dialog_own_layout.test.mjs +40 -0
- package/i18n/skills/a2h-utg-explorer/scripts/utg_explorer/semantics.mjs +63 -2
- package/i18n/skills/a2h-utg-explorer/scripts/utg_explorer/task_runner.mjs +143 -14
- package/i18n/skills/a2h-utg-static/SKILL.md +3 -3
- package/i18n/skills/a2h-utg-static/references/ui-elements-static-utg-schema.md +4 -3
- package/i18n/skills/a2h-utg-static/scripts/click_paths.mjs +1 -1
- package/i18n/skills/a2h-utg-static/scripts/tests/test_compose_res_text.mjs +25 -0
- package/i18n/skills/a2h-utg-static/tools/convert_static_utg_to_ui_elements.ts +1 -0
- package/package.json +2 -1
- package/platforms/atomcode/skills/a2h-app-migrate/SKILL.unique.md +3 -0
- package/platforms/claude-code/skills/a2h-app-migrate/SKILL.unique.md +3 -0
- package/platforms/codebuddy/agents/build-fixer.frontmatter.md +5 -0
- package/platforms/codebuddy/agents/code-reviewer.frontmatter.md +5 -0
- package/platforms/codebuddy/agents/model-render-worker.frontmatter.md +5 -0
- package/platforms/codebuddy/agents/model-worker.frontmatter.md +5 -0
- package/platforms/codebuddy/agents/specgen-worker.frontmatter.md +5 -0
- package/platforms/codebuddy/skills/a2h-app-migrate/SKILL.unique.md +8 -0
- package/platforms/codex/skills/a2h-app-migrate/SKILL.unique.md +3 -0
- package/platforms/cursor/skills/a2h-app-migrate/SKILL.unique.md +3 -0
- package/platforms/deveco/agents/build-fixer.frontmatter.md +2 -0
- package/platforms/deveco/agents/code-reviewer.frontmatter.md +2 -0
- package/platforms/deveco/agents/model-render-worker.frontmatter.md +2 -0
- package/platforms/deveco/agents/model-worker.frontmatter.md +2 -0
- package/platforms/deveco/agents/specgen-worker.frontmatter.md +2 -0
- package/platforms/deveco/skills/a2h-app-migrate/SKILL.unique.md +3 -0
- package/platforms/opencode/agents/build-fixer.frontmatter.md +2 -0
- package/platforms/opencode/agents/code-reviewer.frontmatter.md +2 -0
- package/platforms/opencode/agents/model-render-worker.frontmatter.md +2 -0
- package/platforms/opencode/agents/model-worker.frontmatter.md +2 -0
- package/platforms/opencode/agents/specgen-worker.frontmatter.md +2 -0
- package/platforms/opencode/skills/a2h-app-migrate/SKILL.unique.md +10 -0
- package/platforms/qoder/skills/a2h-app-migrate/SKILL.unique.md +3 -0
- package/platforms/qoder-cn/skills/a2h-app-migrate/SKILL.unique.md +8 -0
- package/platforms/trae/skills/a2h-app-migrate/SKILL.unique.md +3 -0
- package/platforms/trae-cn/skills/a2h-app-migrate/SKILL.unique.md +3 -0
- package/skills/a2h-app-migrate/SKILL.md +31 -14
- package/skills/a2h-app-migrate/references/stage-map.md +4 -2
- package/skills/a2h-app-migrate/references/workflow.yaml +152 -89
- package/skills/a2h-app-migrate/scripts/assert_dag_complete.mjs +1 -1
- package/skills/a2h-app-migrate/scripts/check_ui_batch_done.mjs +28 -11
- package/skills/a2h-app-migrate/scripts/dag_action_catalog.mjs +76 -0
- package/skills/a2h-app-migrate/scripts/dag_production_executor.mjs +60 -5
- package/skills/a2h-app-migrate/scripts/dag_runner.mjs +184 -4
- package/skills/a2h-app-migrate/scripts/env_preflight.mjs +1 -1
- package/skills/a2h-app-migrate/scripts/ledger.mjs +2 -2
- package/skills/a2h-app-migrate/scripts/resume_plan.mjs +3 -3
- package/skills/a2h-app-migrate/scripts/validate_workflow.mjs +51 -2
- package/skills/a2h-app-migrate/test/test_dag_blocked_guard.mjs +291 -0
- package/skills/a2h-app-migrate/test/test_dag_production.mjs +40 -0
- package/skills/a2h-app-migrate/test/test_dag_runner.mjs +4 -3
- package/skills/a2h-app-migrate/test/test_i18n_engine_mirror.mjs +1 -1
- package/skills/a2h-app-migrate/test/test_interaction.mjs +0 -2
- package/skills/a2h-app-migrate/test/test_resume_plan.mjs +1 -1
- package/skills/a2h-app-migrate/test/test_skill_doc.mjs +1 -1
- package/skills/a2h-app-migrate/test/test_spec_engine_contract.mjs +1 -1
- package/skills/a2h-app-migrate/test/test_specs_json_preflight.mjs +1 -1
- package/skills/a2h-app-migrate/test/test_ui_batch_done.mjs +36 -0
- package/skills/a2h-app-migrate/test/test_utg_static_done.mjs +19 -6
- package/skills/a2h-app-migrate/test/test_validate_workflow_bilingual.mjs +4 -2
- package/skills/a2h-arkts-logic-coder/SKILL.md +8 -7
- package/skills/a2h-arkts-logic-coder/references/ISSUES.md +2 -2
- package/skills/a2h-arkts-logic-coder/references/code-generation.md +33 -12
- package/skills/a2h-batch-ui-align/SKILL.md +14 -12
- package/skills/a2h-batch-ui-align/references/cards/alignment.md +1 -0
- package/skills/a2h-batch-ui-align/references/cards/canvas.md +1 -0
- package/skills/a2h-batch-ui-align/references/cards/dynamics.md +32 -1
- package/skills/a2h-batch-ui-align/references/cards/geometry.md +3 -2
- package/skills/a2h-batch-ui-align/references/cards/interaction.md +4 -0
- package/skills/a2h-batch-ui-align/references/cards/resources.md +19 -1
- package/skills/a2h-batch-ui-align/references/cards/widgets.md +13 -1
- package/skills/a2h-batch-ui-align/references/cards/window.md +2 -2
- package/skills/a2h-batch-ui-align/references/checker-rules.md +205 -7
- package/skills/a2h-batch-ui-align/references/conversion-procedure.md +10 -17
- package/skills/a2h-batch-ui-align/references/incremental-scope.md +3 -4
- package/skills/a2h-batch-ui-align/references/lottie-integration.md +47 -2
- package/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-atomic-component-mapping-reference.md +52 -328
- package/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-interaction-mapping-reference.md +1 -138
- package/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-layout-mapping-reference.md +2 -11
- package/skills/a2h-batch-ui-align/references/state-mgmt/_/350/214/203/345/274/217/351/200/211/346/213/251/350/257/264/346/230/216.md +1 -1
- package/skills/a2h-batch-ui-align/references/step3-capture.md +8 -23
- package/skills/a2h-batch-ui-align/references/step4-prepare.md +2 -1
- package/skills/a2h-batch-ui-align/references/step5-convert.md +17 -9
- package/skills/a2h-batch-ui-align/scripts/build_conversion_set.mjs +239 -16
- package/skills/a2h-batch-ui-align/scripts/group_commit.mjs +6 -1
- package/skills/a2h-batch-ui-align/scripts/group_pack.mjs +6 -0
- package/skills/a2h-batch-ui-align/scripts/group_pass.mjs +270 -0
- package/skills/a2h-batch-ui-align/scripts/group_queue.mjs +134 -16
- package/skills/a2h-batch-ui-align/scripts/group_watch.mjs +39 -8
- package/skills/a2h-batch-ui-align/scripts/icon_coverage.mjs +6 -3
- package/skills/a2h-batch-ui-align/scripts/measure_pack.ts +170 -10
- package/skills/a2h-batch-ui-align/scripts/module_placement.mjs +189 -0
- package/skills/a2h-batch-ui-align/scripts/overlay_effects.mjs +205 -0
- package/skills/a2h-batch-ui-align/scripts/phase5_check.mjs +42 -1
- package/skills/a2h-batch-ui-align/scripts/static_check/main.ts +20 -1
- package/skills/a2h-batch-ui-align/scripts/static_check/registry.ts +28 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/attr_chain.ts +81 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/click_handler.ts +140 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/collapsing_toolbar.ts +124 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/compose_semantics.ts +287 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/flowitem_width.ts +78 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/hit_test.ts +194 -8
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/inset_stacked.ts +138 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/int_division.ts +181 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/layout_placement.ts +62 -2
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/lottie_path.ts +77 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/lottie_ready.ts +109 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/media_tint.ts +88 -18
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/relative_container_cycle.ts +140 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/relative_container_height.ts +2 -2
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/see_through_overlay.ts +149 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/sheet_builder.ts +139 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/sheet_show_close.ts +53 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/space_between_optional.ts +115 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/theme_color.ts +7 -1
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/width_fill.ts +160 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/scan_file.ts +28 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_chrome_defaults.test.mjs +328 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_click_handler.test.mjs +127 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_compose_semantics.test.mjs +150 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_hit_test.test.mjs +117 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_inset_stacked.test.mjs +155 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_layout_placement.test.mjs +60 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_rule_smoke.test.mjs +413 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_runtime_api.test.mjs +159 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_sheet_builder.test.mjs +192 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_theme.test.mjs +4 -2
- package/skills/a2h-batch-ui-align/scripts/tests/build_conversion_set.test.mjs +38 -0
- package/skills/a2h-batch-ui-align/scripts/tests/build_conversion_set_compose.test.mjs +106 -0
- package/skills/a2h-batch-ui-align/scripts/tests/group_commit.test.mjs +15 -0
- package/skills/a2h-batch-ui-align/scripts/tests/group_pass.test.mjs +150 -0
- package/skills/a2h-batch-ui-align/scripts/tests/group_queue.test.mjs +125 -0
- package/skills/a2h-batch-ui-align/scripts/tests/group_watch.test.mjs +56 -0
- package/skills/a2h-batch-ui-align/scripts/tests/measure_pack_icon_leaf.test.mjs +143 -0
- package/skills/a2h-batch-ui-align/scripts/tests/module_placement.test.mjs +248 -0
- package/skills/a2h-batch-ui-align/scripts/tests/overlay_effects.test.mjs +214 -0
- package/skills/a2h-fix-build-errors/references/known-patterns.md +5 -5
- package/skills/a2h-module-semantic-docs/SKILL.md +3 -2
- package/skills/a2h-module-semantic-docs/scripts/commit_module_state.mjs +10 -0
- package/skills/a2h-module-semantic-docs/scripts/design_baseline.mjs +158 -0
- package/skills/a2h-module-semantic-docs/test/test_design_baseline.mjs +128 -0
- package/skills/a2h-page-specgen/SKILL.md +36 -5
- package/skills/a2h-page-specgen/references/behavior-ledger.md +88 -21
- package/skills/a2h-page-specgen/references/evidence.md +2 -1
- package/skills/a2h-page-specgen/references/execution-model.md +13 -5
- package/skills/a2h-page-specgen/references/gates.md +33 -7
- package/skills/a2h-page-specgen/references/scenario-authoring.md +67 -13
- package/skills/a2h-page-specgen/references/spec-example.md +166 -32
- package/skills/a2h-page-specgen/references/spec-template.md +8 -5
- package/skills/a2h-page-specgen/scripts/behavior-audit.mjs +40 -2
- package/skills/a2h-page-specgen/scripts/behavior-discovery.mjs +241 -22
- package/skills/a2h-page-specgen/scripts/behavior-model.mjs +29 -2
- package/skills/a2h-page-specgen/scripts/behavior-reconcile.mjs +35 -2
- package/skills/a2h-page-specgen/scripts/contract-calls.mjs +715 -0
- package/skills/a2h-page-specgen/scripts/finalize.mjs +55 -2
- package/skills/a2h-page-specgen/scripts/footprint.mjs +129 -2
- package/skills/a2h-page-specgen/scripts/gate.mjs +20 -11
- package/skills/a2h-page-specgen/scripts/lib/contracts.mjs +56 -3
- package/skills/a2h-page-specgen/scripts/lib/graph-evidence.mjs +27 -0
- package/skills/a2h-page-specgen/scripts/lib/hg.mjs +114 -5
- package/skills/a2h-page-specgen/scripts/lib/ledger.mjs +20 -3
- package/skills/a2h-page-specgen/scripts/operation-evidence.mjs +270 -29
- package/skills/a2h-page-specgen/scripts/prepare.mjs +25 -14
- package/skills/a2h-page-specgen/scripts/report.mjs +26 -5
- package/skills/a2h-page-specgen/scripts/submission.mjs +69 -2
- package/skills/a2h-page-specgen/scripts/submit.mjs +105 -4
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.prompt.md +110 -18
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.worker.md +97 -12
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.prompt.md +110 -18
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.worker.md +97 -12
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.discovery.json +224 -224
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.json +1 -1
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.post-review.json +2 -2
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.prompt.md +110 -18
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.worker.md +97 -12
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.prompt.md +110 -18
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.worker.md +97 -12
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/run.mjs +153 -3
- package/skills/a2h-page-specgen/scripts/test/android-operation-evidence.test.mjs +529 -1
- package/skills/a2h-page-specgen/scripts/test/behavior-audit-pre.test.mjs +27 -0
- package/skills/a2h-page-specgen/scripts/test/behavior-discovery.test.mjs +158 -0
- package/skills/a2h-page-specgen/scripts/test/behavior-fixtures.mjs +11 -13
- package/skills/a2h-page-specgen/scripts/test/behavior-reconcile.test.mjs +97 -0
- package/skills/a2h-page-specgen/scripts/test/contract-calls.test.mjs +737 -0
- package/skills/a2h-page-specgen/scripts/test/contracts.test.mjs +82 -3
- package/skills/a2h-page-specgen/scripts/test/finalize.test.mjs +24 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/hg.mkdb.mjs +11 -0
- package/skills/a2h-page-specgen/scripts/test/footprint-resolve.test.mjs +6 -2
- package/skills/a2h-page-specgen/scripts/test/gate.test.mjs +94 -1
- package/skills/a2h-page-specgen/scripts/test/graph-evidence.test.mjs +32 -0
- package/skills/a2h-page-specgen/scripts/test/hg.test.mjs +14 -0
- package/skills/a2h-page-specgen/scripts/test/ledger.test.mjs +49 -1
- package/skills/a2h-page-specgen/scripts/test/operation-reviews.test.mjs +6 -1
- package/skills/a2h-page-specgen/scripts/test/prompt-tpl.test.mjs +12 -4
- package/skills/a2h-page-specgen/scripts/test/protocol-docs.test.mjs +1 -1
- package/skills/a2h-page-specgen/scripts/test/recovery-e2e.test.mjs +1 -0
- package/skills/a2h-page-specgen/scripts/test/report.test.mjs +80 -1
- package/skills/a2h-page-specgen/scripts/test/submit.test.mjs +159 -27
- package/skills/a2h-page-specgen/scripts/test/waker-process.test.mjs +23 -0
- package/skills/a2h-page-specgen/scripts/waker.mjs +8 -1
- package/skills/a2h-resource-convert/SKILL.md +1 -1
- package/skills/a2h-resource-convert/data/framework-strings/NOTICE +10 -0
- package/skills/a2h-resource-convert/data/framework-strings/manifest.json +90 -0
- package/skills/a2h-resource-convert/data/framework-strings/strings.json +382 -0
- package/skills/a2h-resource-convert/references/conversion-rules.md +7 -1
- package/skills/a2h-resource-convert/references/lottie-conversion-rules.md +2 -2
- package/skills/a2h-resource-convert/references/step5-reference-resolution.md +16 -0
- package/skills/a2h-resource-convert/scripts/a2h_resource_convert.ts +124 -8
- package/skills/a2h-resource-convert/scripts/sync-framework-strings.mjs +147 -0
- package/skills/a2h-resource-convert/scripts/tests/framework_strings.test.mjs +131 -0
- package/skills/a2h-spec-design-pipeline/SKILL.md +14 -11
- package/skills/a2h-spec-design-pipeline/references/coding-loop.md +38 -10
- package/skills/a2h-spec-design-pipeline/references/execution-model.md +3 -0
- package/skills/a2h-spec-design-pipeline/references/final-report-template.md +6 -3
- package/skills/a2h-spec-design-pipeline/references/initialization.md +2 -2
- package/skills/a2h-spec-design-pipeline/references/post-loop.md +2 -2
- package/skills/a2h-spec-design-pipeline/references/reply-recovery.md +172 -0
- package/skills/a2h-spec-design-pipeline/references/review-loop.md +2 -2
- package/skills/a2h-spec-design-pipeline/references/scripts.md +4 -3
- package/skills/a2h-spec-design-pipeline/references/shared-layer.md +24 -19
- package/skills/a2h-spec-design-pipeline/references/state-and-resume.md +7 -1
- package/skills/a2h-spec-design-pipeline/references/static-defect-gate.md +12 -5
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/config/ruleMeta.json +5 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/config/ruleSet.json +4 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/data/README.md +27 -3
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/data/api-param-contract.json +46 -1
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/data/api-permission-map.json +2511 -295
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/api-permission-declared-cn.md +27 -72
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/api-permission-declared-en.md +39 -83
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/arkui-runtime-pitfall-cn.md +132 -101
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/arkui-runtime-pitfall-en.md +158 -115
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/platform-api-contract-cn.md +60 -93
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/platform-api-contract-en.md +73 -100
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/route-page-side-effect-import-cn.md +52 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/route-page-side-effect-import-en.md +59 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/ApiPermissionDeclaredCheck.js +57 -8
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/ArkUIRuntimePitfallCheck.js +475 -18
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/PlatformApiContractCheck.js +472 -4
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/RoutePageSideEffectImportCheck.js +570 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/arkui/RouteParamCarrierSubCheck.js +1053 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/sql/SqlIdentifierAnalysis.js +427 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/index.js +7 -1
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/package.json +1 -1
- package/skills/a2h-spec-design-pipeline/scripts/plan_groups.ts +1 -1
- package/skills/a2h-spec-design-pipeline/scripts/settle.ts +785 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_api_permission_declared.ts +286 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_arkui_runtime_pitfall.ts +166 -2
- package/skills/a2h-spec-design-pipeline/scripts/test_docs_refresh_contract.ts +40 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_plan_groups.ts +2 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_platform_api_contract.ts +350 -7
- package/skills/a2h-spec-design-pipeline/scripts/test_route_page_side_effect_import.ts +185 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_route_param_carrier.ts +341 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_settle.ts +593 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_shared_layer_docs.ts +92 -1
- package/skills/a2h-spec-design-pipeline/scripts/test_sql_identifier_analysis.ts +137 -0
- package/skills/a2h-spec-generate/references/input-formats.md +1 -1
- package/skills/a2h-utg-explorer/SKILL.md +11 -5
- package/skills/a2h-utg-explorer/references/architecture.md +37 -19
- package/skills/a2h-utg-explorer/scripts/audit.mjs +6 -2
- package/skills/a2h-utg-explorer/scripts/close_phases.mjs +8 -5
- package/skills/a2h-utg-explorer/scripts/compile_tasks.mjs +95 -19
- package/skills/a2h-utg-explorer/scripts/d_prereqs.mjs +192 -4
- package/skills/a2h-utg-explorer/scripts/final_utg.mjs +21 -0
- package/skills/a2h-utg-explorer/scripts/panel_routes.mjs +1 -1
- package/skills/a2h-utg-explorer/scripts/plan.mjs +16 -1
- package/skills/a2h-utg-explorer/scripts/predicates.mjs +270 -0
- package/skills/a2h-utg-explorer/scripts/promote_dynamic.mjs +2 -0
- package/skills/a2h-utg-explorer/scripts/recover.mjs +4 -3
- package/skills/a2h-utg-explorer/scripts/recover_d.mjs +67 -8
- package/skills/a2h-utg-explorer/scripts/rejudge.mjs +4 -3
- package/skills/a2h-utg-explorer/scripts/report.mjs +32 -2
- package/skills/a2h-utg-explorer/scripts/run_cycle.mjs +103 -36
- package/skills/a2h-utg-explorer/scripts/run_device.mjs +3 -8
- package/skills/a2h-utg-explorer/scripts/schedule_states.mjs +189 -0
- package/skills/a2h-utg-explorer/scripts/tests/calendar_round_fixes.test.mjs +9 -0
- package/skills/a2h-utg-explorer/scripts/tests/coverage_rules.test.mjs +11 -0
- package/skills/a2h-utg-explorer/scripts/tests/d_prereqs.test.mjs +31 -2
- package/skills/a2h-utg-explorer/scripts/tests/device_lock_retry.test.mjs +1 -1
- package/skills/a2h-utg-explorer/scripts/tests/diagnostics.test.mjs +32 -0
- package/skills/a2h-utg-explorer/scripts/tests/dialog_own_layout.test.mjs +40 -0
- package/skills/a2h-utg-explorer/scripts/tests/explorer_review_fixes.test.mjs +4 -1
- package/skills/a2h-utg-explorer/scripts/tests/hybrid_route.test.mjs +6 -28
- package/skills/a2h-utg-explorer/scripts/tests/in_route_surface.test.mjs +125 -0
- package/skills/a2h-utg-explorer/scripts/tests/list_probe_target_wait.test.mjs +86 -0
- package/skills/a2h-utg-explorer/scripts/tests/multi_host.test.mjs +167 -0
- package/skills/a2h-utg-explorer/scripts/tests/nested_list.test.mjs +58 -0
- package/skills/a2h-utg-explorer/scripts/tests/overlay_opener.test.mjs +100 -0
- package/skills/a2h-utg-explorer/scripts/tests/pipeline.test.mjs +8 -1
- package/skills/a2h-utg-explorer/scripts/tests/pr169_review_fixes.test.mjs +1 -0
- package/skills/a2h-utg-explorer/scripts/tests/pr191_review_fixes.test.mjs +2 -31
- package/skills/a2h-utg-explorer/scripts/tests/review_fixes.test.mjs +1 -1
- package/skills/a2h-utg-explorer/scripts/tests/run_cycle.test.mjs +56 -7
- package/skills/a2h-utg-explorer/scripts/tests/snapshot_integrity.test.mjs +117 -6
- package/skills/a2h-utg-explorer/scripts/tests/state_inventory.test.mjs +414 -0
- package/skills/a2h-utg-explorer/scripts/tests/tree_unreliable.test.mjs +197 -0
- package/skills/a2h-utg-explorer/scripts/utg_explorer/adapters.mjs +196 -30
- package/skills/a2h-utg-explorer/scripts/utg_explorer/hosts.mjs +146 -0
- package/skills/a2h-utg-explorer/scripts/utg_explorer/semantics.mjs +63 -2
- package/skills/a2h-utg-explorer/scripts/utg_explorer/states.mjs +286 -0
- package/skills/a2h-utg-explorer/scripts/utg_explorer/task_runner.mjs +197 -19
- package/skills/a2h-utg-static/SKILL.md +3 -3
- package/skills/a2h-utg-static/references/extractors.md +7 -0
- package/skills/a2h-utg-static/references/ui-elements-static-utg-schema.md +4 -3
- package/skills/a2h-utg-static/scripts/click_paths.mjs +1 -1
- package/skills/a2h-utg-static/scripts/compose_overlay.mjs +642 -22
- package/skills/a2h-utg-static/scripts/tests/test_compose_res_text.mjs +25 -0
- package/skills/a2h-utg-static/scripts/tests/test_in_route_surface.mjs +123 -0
- package/skills/a2h-utg-static/scripts/tests/test_overlay_host_effects.mjs +239 -0
- package/skills/a2h-utg-static/scripts/tests/test_shared_host_depths.mjs +48 -0
- package/skills/a2h-utg-static/scripts/utg_html.mjs +2 -0
- package/skills/a2h-utg-static/tools/convert_static_utg_to_ui_elements.ts +1 -0
- package/i18n/skills/a2h-app-migrate/references/specs.example.json +0 -19
- package/i18n/skills/a2h-batch-ui-align/scripts/databinding_analyzer_design.md +0 -79
- package/i18n/skills/a2h-utg-explorer/scripts/utg_explorer/state_phase.mjs +0 -47
- package/resource/convert_pipeline_process.svg +0 -114
- package/resource/project_architecture.svg +0 -120
- package/resource/set_environment.png +0 -0
- package/resource/set_multimodel.png +0 -0
- package/skills/a2h-app-migrate/references/specs.example.json +0 -19
- package/skills/a2h-batch-ui-align/scripts/databinding_analyzer_design.md +0 -79
- package/skills/a2h-utg-explorer/scripts/utg_explorer/state_phase.mjs +0 -47
|
@@ -24,7 +24,7 @@ Every row of the table below gives the wrong translation and its consequence —
|
|
|
24
24
|
| Negative margin (e.g. `layout_marginTop="-30dp"`) | Keep it negative: `.margin({top:-30})` or `.offset({y:-30})`, and explain its purpose in the report | Dropped → this block and everything after it shift down, common in "top region moved up to hug the status bar" scenarios |
|
|
25
25
|
| The element's own `margin` | Stays on **that element** | Promoted to the parent's `padding` → affects every sibling, pushing them all together |
|
|
26
26
|
| `layout_constraintStart_toEndOf="parent"` (pushed out of the visible area) | Not rendered in that state, or `.visibility()` as needed | Translated as an ordinary constraint → the element wrongly stays on screen |
|
|
27
|
-
| ConstraintLayout card with `layout_height="wrap_content"` (children `Top_toTopOf="parent"` / `Bottom_toBottomOf="parent"`, e.g. "icon vertically centred + two text lines on the right") | `Row { Image; Column { title; value } }` (`alignItems(VerticalAlign.Center)` gives the vertical centring), corner elements with `Stack` + `Alignment`; when a `RelativeContainer` is really needed, anchor vertically only on siblings (the first child has no vertical alignRules and sits at the top by default) and write `.height('auto')`, or write the height measured in the reference view tree | Translating each alignRule that anchors top/bottom on `'__container__'` → RelativeContainer doc: when a child is anchored to the container in that direction, `"auto"` / `wrapContent` **does not take effect** and the height counts as unset (the container height and the child layout depend on each other in a cycle, FAQ faqs-arkui-318); inside a Scroll the container is stretched far taller than the Android content height. Adding `.height('auto')` does not fix it either. GATE `relative-container-unsized-in-scroll` |
|
|
27
|
+
| ConstraintLayout card with `layout_height="wrap_content"` (children `Top_toTopOf="parent"` / `Bottom_toBottomOf="parent"`, e.g. "icon vertically centred + two text lines on the right") | `Row { Image; Column { title; value } }` (`alignItems(VerticalAlign.Center)` gives the vertical centring), corner elements with `Stack` + `Alignment`; when a `RelativeContainer` is really needed, anchor vertically only on siblings (the first child has no vertical alignRules and sits at the top by default) and write `.height('auto')`, or write the height measured in the reference view tree; sibling anchors must be one-way: once the text column anchors the icon horizontally, the icon must not `center` on the text column vertically (chains excepted: adjacent components anchored end to start on one axis + `.chainMode()` on the head is allowed by the doc) | Translating each alignRule that anchors top/bottom on `'__container__'` → RelativeContainer doc: when a child is anchored to the container in that direction, `"auto"` / `wrapContent` **does not take effect** and the height counts as unset (the container height and the child layout depend on each other in a cycle, FAQ faqs-arkui-318); inside a Scroll the container is stretched far taller than the Android content height. Adding `.height('auto')` does not fix it either. GATE `relative-container-unsized-in-scroll`; rewriting it as "icon anchors the text column vertically + text column anchors the icon horizontally" → a mutual dependency; RelativeContainer doc: with circular dependencies no child is drawn, the card shows only its background (an empty capsule, view tree `children: []`), and the build and smoke test both pass. GATE `relative-container-anchor-cycle` |
|
|
28
28
|
| Two-dimensional constraints: an element shares a vertical interval with only **some** of its siblings (e.g. the bottom-right "arrow + difference" chain hugs only the `parent` bottom and is `start_toEndOf` the second text line; the right side of the first-line title is unconstrained) | Keep the two-dimensional relation: `RelativeContainer` + `.alignRules()`; or a `Stack`, placing the corner element separately with `Alignment.BottomEnd` etc. and letting the main `Row/Column` fill | Split into a one-dimensional `Row [icon][Column(title, value).layoutWeight(1)][corner element]` → the corner element takes a column over the **whole height**, the title's available width shrinks, the single-line `wrap_content` title wraps onto two lines and the card gets taller; every copied attribute is right, and compilation and checks all pass |
|
|
29
29
|
| **Fixed dp size** + `layout_constraintEnd_toEndOf="parent"` + `layout_marginEnd` (right-anchored; `Bottom_toBottomOf` likewise means bottom-anchored) | Express it as an **alignment relation**, not coordinates: `RelativeContainer` + `.alignRules()` (see `ConstraintLayout → RelativeContainer` in the layout mapping table); or a parent `Stack` with `Alignment.TopEnd` + child `.margin({right})`; or derive `x = parentWidth - marginEnd - childWidth` from the parent's measured width | An absolute offset computed at the reference resolution written as `.position({x: <constant>})` → the constant **only holds at the reference device's width**; on a narrower screen the element's right side **moves out of the visible area and is clipped**. The size dimension is unambiguous (the dp is explicit), so this is the easiest to miss; or the anchoring is carried by a container that fills the parent (`width('100%')` + `height('100%')` + edge alignment) → visually correct, but it becomes the **topmost** of its siblings and swallows hit testing for every clickable element beneath it (`hitTestBehavior` at its default responds to hits), so all clicks in that area stop working |
|
|
30
30
|
|
|
@@ -66,7 +66,7 @@ and compare it with the intervals of the other siblings in the same `Stack` and
|
|
|
66
66
|
| `.width('100%')` combined with `.margin({left,right})` | Intuition says `100%` automatically subtracts the margin | Actual width = parent width + left/right margin, **overflowing on the right**, rounded corners clipped | Search for `width('100%')` and left/right `margin` on the same element; switch to parent `padding` or `layoutWeight(1)` |
|
|
67
67
|
| **`0dp` + `layout_weight` translated as several siblings all `width('100%')`** | In evenly split tabs each one "fills its own cell", and each looks right on its own | The first sibling takes the whole row and the rest are pushed off screen | Weights always use `.layoutWeight(n)`, `@Builder` root nodes too. GATE `main-axis-pct-siblings` |
|
|
68
68
|
| **Cards in a vertical `LinearLayout` given no width** | Android child Views are full width even without LayoutParams, so no `MATCH_PARENT` is visible in the source | Children of an ArkUI `Column` shrink to content by default: each card has a different width with ragged right edges, and the whole page looks "messily laid out" | Cards get `.width('100%')`; for tree-only pages check against the group pack's geometry table (`full` rows). GATE `card-width-wraps` |
|
|
69
|
-
| **`wrap_content` card translated as an unsized `RelativeContainer` whose children anchor the container's top and bottom** | Every two-dimensional constraint is translated into a RelativeContainer (the "Two-dimensional constraints" row of the table above), on the assumption that it sizes to its content like ConstraintLayout | The card is stretched inside the Scroll
|
|
69
|
+
| **`wrap_content` card translated as an unsized `RelativeContainer` whose children anchor the container's top and bottom** | Every two-dimensional constraint is translated into a RelativeContainer (the "Two-dimensional constraints" row of the table above), on the assumption that it sizes to its content like ConstraintLayout | The card is stretched inside the Scroll; `.height('auto')` is just as ineffective while children anchor the container vertically | → the "ConstraintLayout card with `layout_height="wrap_content"`" row of the table above. GATE `relative-container-unsized-in-scroll` |
|
|
70
70
|
| **Whole-card mask written as `.overlay('<colour>')`** | After `percent-height-in-scroll` blocks the Stack mask's `'100%'`, the mask moves to overlay on the assumption that the string is a colour | The colour value is drawn as text at the card's top-left corner ("transparent", "#66FFFFFF") and no mask is painted | `.overlay(@Builder)`, builder root `width/height('100%')` + `backgroundColor` + `hitTestBehavior(HitTestMode.Transparent)`. GATE `overlay-string-color` |
|
|
71
71
|
| **WRAP parent + MATCH child translated as a `constraintSize({ minHeight })` parent + `'100%'` child** | Android's two-pass measurement makes a MATCH_PARENT child inside a WRAP_CONTENT parent fall back to the content height, so the attribute-by-attribute translation looks equivalent | ArkUI resolves percentages against the upper constraint, roughly the viewport inside a Scroll, so the component is stretched very long; a mistake in a shared component breaks several places at once | Remove the child's `'100%'` and use `alignItems` + `min…`. GATE `pct-in-auto-size-parent` |
|
|
72
72
|
| Using the parent's size as the child's constrained size | Android `0dp` + constraints taken as "fill the parent" | The region is too big/tall and squeezes the content after it | Compare the measured size in the reference view tree with the parent; if they differ, `'100%'` must not be used |
|
|
@@ -83,3 +83,4 @@ and compare it with the intervals of the other siblings in the same `Stack` and
|
|
|
83
83
|
| **`BasicTextField` translated to a fixed-height `TextInput` with no `.padding()`** | Compose `BasicTextField` / an undecorated `EditText` have no inner padding, so copying `height(24)` looks 1:1 | ArkUI `TextInput`/`TextArea` default padding is 8vp top/bottom and 16vp left/right (12vp top/bottom in underline mode): a 24vp height leaves 8vp for 16fp text, so **the typed text shows only its top half**, and the left edge gains 16vp | Map to `.padding(0)` (the docs suggest `.borderRadius(0)` too, so the caret is not cut); to keep an inset, make the height line height + padding. GATE `text-input-default-padding-clips` |
|
|
84
84
|
| **An empty container shown only through its background has no width or height** | An Android `View`'s `match_parent` / constraint size comes from the parent layout and the background is drawn at the View's size; ArkUI width/height default to the size of the children, which is 0 for an empty container, and `.background()` / `.backgroundImage()` do not take part in measuring | The background layer is 0 wide: a header image, base colour or divider strip simply does not show | Every container with no children that is shown only through background* / a gradient needs a size source on both axes (`'100%'` / explicit value / `layoutWeight` / `size`); GATE `bg-only-container-collapsed` |
|
|
85
85
|
| **`layout_weight` translated onto a custom component's build() root node** | Android's `layout_weight` is written on the View itself, so an attribute-by-attribute translation lands it on the component's inner root node; and it actually works when the call site chains no attributes | As soon as the call site chains an attribute (`.margin()`, `.onClick()` both count), the component is wrapped in a `__Common__` node and the parent `Row`/`Column` can no longer read the weight: the component shrinks to its content, **leaving blank space at the end of the row** | Write the weight at the **call site** `Cell({ … }).layoutWeight(1)`, **and** make the inner root node fill along the parent's main axis (parent Row → `.width('100%')`); moving only the weight without filling leaves the background shrunk to the content. `@Builder` is inlined and unaffected. GATE `layout-weight-on-component-root` |
|
|
86
|
+
| **A `WaterFlow` `FlowItem` with no cross-axis size** | `columnsTemplate('1fr 1fr')` already splits the columns, so giving the FlowItem a width looks unnecessary; the card inside follows Compose `fillMaxWidth()` with `.width('100%')` | The column width is not handed down as the percentage reference, so the card's `'100%'` resolves against the whole WaterFlow: the card is about as wide as the screen, an `aspectRatio` image becomes a screen-wide square, the neighbouring column's card is drawn over the overflow, and the column gap and card padding disappear | Vertical flow: `FlowItem() { … }.width('100%')` (horizontal: `.height('100%')`), as in the SDK examples. GATE `flowitem-no-cross-size` |
|
|
@@ -7,6 +7,10 @@
|
|
|
7
7
|
|---|---|---|
|
|
8
8
|
| `stack-swallows-taps` (GATE) | `conversion-procedure.md` Phase 5 "Interaction Reachability Evidence"; API reference, enums, HitTestMode; FAQ faqs-arkui-549 | A filling layer drawn later in a Stack, taking no input itself or in its subtree, covers clickable earlier siblings: Default blocks the siblings, with or without onClick. Add `.hitTestBehavior(HitTestMode.None)` |
|
|
9
9
|
| `fullsize-container` (GATE/CAND) | same | A filling node the checker cannot prove, from the layer structure, leaves taps alone. A GATE closes only by fixing the code or by the checker-verified marker `// HIT-TEST: blocks-input:` / `covers-below:`, never by EVIDENCE text; a CAND is what the checker cannot see (components outside the scan, zIndex, no call site) |
|
|
10
|
+
| `hidden-layer-children-hit` (GATE/CAND) | interaction mapping table, HitTestMode row; atomic mapping table, AnimatedVisibility row; API reference "Enums" HitTestMode | A whole layer hidden by opacity whose `hitTestBehavior` switches between None and Default still takes taps through its children. Unmount it with `if` when Android stops composing it, or use `BLOCK_DESCENDANTS` while it must stay |
|
|
11
|
+
| `refresh-programmatic-reentry` (GATE/CAND) | layout mapping table "Pull-to-refresh (SwipeRefreshLayout) mapping", item 4 | Code setting `refreshing` to true also fires `onRefreshing`. Tell a user pull apart with `onStateChange` |
|
|
12
|
+
| `click-handler-untestable` (GATE) | `conversion-procedure.md` Phase 4 "Never disable an entry silently"; API reference, enums, HitTestMode | A constant `HitTestMode.None` takes the node itself out of the touch test, so an onClick / gesture on the same node never fires. When the target is not converted, keep the node clickable and write the `// UNWIRED:` marker |
|
|
13
|
+
| `empty-click-handler` (GATE) / `unwired-handler` (CAND) | same | An empty or comment-only handler takes the tap and does nothing. Implement it from Android; a deliberate tap sink gets `// CLICK-SINK: <basis>`; a target outside the conversion set gets `// UNWIRED: <Android file:line> — <reason>`, downgraded to CAND and carried into Step 7's Manual Follow-up TODOs |
|
|
10
14
|
| `a11y-content-desc-unobservable` (GATE/CAND) | this entry in `references/checker-rules.md` | The `uitest` view tree exports only `accessibilityDescription`. Icon-only/glyph-only controls get `.accessibilityDescription(X)`, with the same value as the Android `content-desc` |
|
|
11
15
|
| `orphan-component` (GATE) | `step5-convert.md` Step 5.5 "Gate" and the wiring of self-contained components | An `export struct` that is never imported or instantiated will never render: import and instantiate it in the host page, and wire the trigger to its visibility switch |
|
|
12
16
|
| `converted-page-unreachable` (GATE) | `step5-convert.md` Step 5.5 "wire navigation to real pages" | Following each page's `navigates_to` in `conversion_set.json`, write a real `router.pushUrl` or component switch for every edge pointing to a converted page, and register it in `main_pages.json` |
|
|
@@ -9,7 +9,25 @@
|
|
|
9
9
|
|
|
10
10
|
**Color arithmetic — do not hand-write blending functions**: Android's `ColorUtils.blendARGB` / `setAlphaComponent` / `Color.parseColor`, and Compose's `Color.copy(alpha = x)` / `Color(0x…).copy(alpha = …)` / `colorResource(…).copy(alpha = …)`, always go through this skill's `assets/ColorUtils.ets`. **Do not mix the two alpha scales**: Compose `copy(alpha = 0.5f)` is 0..1 and maps to `withAlpha(c, 0.5)`; Android `ColorUtils.setAlphaComponent(c, 128)` is 0..255 and maps to `setAlphaComponent(c, 128)`. Passing Compose's `0.5` to `setAlphaComponent` yields an alpha byte of only `00`/`01`, an almost fully transparent color (a disabled button disappears), GATE `alpha-scale-mismatch`; the asset version rounds a computed non-integer alpha (such as `0.3 * 255`) to the nearest byte instead of throwing, and throws only outside 0..255. ArkUI color strings are `#AARRGGBB`, **alpha first**; appending the two alpha digits **after** `#RRGGBB` gives `#RRGGBBAA`, which is valid and raises no error but is read as a different color (`'#000000' + '1A'` = `#0000001A` → alpha 00, fully transparent; `'#FFFFFF1A'` → opaque yellow). GATE `color-alpha-appended`. When the project has no `<module>/src/main/ets/common/ColorUtils.ets`, **copy it over verbatim** — do not rewrite it or start another one. It has been tested bit-for-bit against androidx (including `(int)` truncation: `blend(#FFFFFF, #E5E5EA, .62)` = `#EEEEF1`; rounding would give `#EFEFF2`). For blends whose inputs are all fixed Palette values, prefer **precomputing them as literal constants** with the source formula in a comment. "Formula substituted back, consistent" in EVIDENCE must be **actually run** output (e.g. `node -e`); mental arithmetic is not accepted.
|
|
11
11
|
|
|
12
|
-
**
|
|
12
|
+
**Colours chosen by a parameter: translate both branches**: Compose components often pick a colour by a parameter, `colorResource(if (isDark) R.color.color_white else R.color.color_black).copy(alpha = 0.5f)`. The port keeps the parameter and the branch: `.fontColor(this.isDark ? 'rgba(255,255,255,0.5)' : 'rgba(0,0,0,0.5)')`, and passes the parameter at every call site. Reading only a screenshot or one call site tends to leave only the white branch, and on a light background the text, border and icon become hard to read. A parameter declared but never read is GATE `theme-param-unread`; when the shell contract's `theme.mode` is not static, `'rgba(…)'` counts as a fixed colour just like `'#…'` (GATE `theme-color-literal`).
|
|
13
|
+
|
|
14
|
+
**Classify the image source first — a data-bound image is not an icon and does not go through L1–L3**: before tiering, look at where each Android image's source comes from.
|
|
15
|
+
|
|
16
|
+
- **Data-bound**: the source is runtime data (a URL the backend delivers, a database field, an image the user picked). Compose `AsyncImage(model = …)`, `SubcomposeAsyncImage(model = …)`, `Image(painter = rememberAsyncImagePainter(<url>))` (Coil), `GlideImage(model = …)`; View `Glide.with(…).load(<url/field>)`, `Picasso.get().load(…)`, Coil `imageView.load(…)`, `setImageURI` / `setImageBitmap` fed from a model field, a DataBinding BindingAdapter such as `app:imageUrl="@{item.icon}"`. Criterion: the argument of `model =` / `load(…)` / the painter is an expression (a field, a variable, a concatenated string), not `R.drawable.x`, `painterResource(R.drawable.x)` or `Icons.*`.
|
|
17
|
+
- **Asset**: the source is a resource or library symbol compiled into the APK. Only these go through L1 → L2 → L2.5 → L3 below.
|
|
18
|
+
|
|
19
|
+
What to do with a data-bound image:
|
|
20
|
+
|
|
21
|
+
1. Map it to `Image(<URL field>)` (a `string` URL or a `PixelMap`), keeping the Android model's field name (`AsyncImage(model = item.ext?.icon)` → `Image(this.item.ext.icon)`).
|
|
22
|
+
2. `.objectFit()` follows the Android scale parameter: an ImageView uses the ScaleType table in `mappings/android-to-harmonyOS-ui-atomic-component-mapping-reference.md` 1.3.1; Compose `contentScale`: `Crop` → `ImageFit.Cover`, `Fit` → `ImageFit.Contain`, `FillBounds` → `ImageFit.Fill`, `Inside` → `ImageFit.ScaleDown`, `None` → `ImageFit.None`. `AsyncImage` without `contentScale` defaults to `Fit`, while ArkUI `Image` defaults to `Cover`, so write `.objectFit(ImageFit.Contain)` explicitly.
|
|
23
|
+
3. Copy the placeholder and error images from Android: Compose `placeholder` / `error` / `fallback`, Glide `.placeholder()` / `.error()` / `.fallback()`. The loading placeholder is `.alt(<resource>)`; when the error image differs from the placeholder, set a state variable in `.onError()` and switch the source to the error resource. No placeholder on Android means none here. These placeholder resources are assets and are tiered L1–L3.
|
|
24
|
+
4. Network permission: an http(s) URL needs `ohos.permission.INTERNET` (system_grant, no `reason` needed). First check whether `module.json5` `requestPermissions` already has it. If not: while other groups are converting concurrently, do not edit `module.json5` (Step 5 Scheduling rule 7); add a row under `shell requests` in the report: "`module.json5` requestPermissions add `ohos.permission.INTERNET`, reason: data-bound image `<Android file:line>`", which Step 5.5 wiring applies. A single serial group allowed to edit the registry surface adds `{ "name": "ohos.permission.INTERNET" }` directly.
|
|
25
|
+
5. Mock data: the field must hold a representative URL, **never an empty string**. Prefer a real URL format found in the Android source, test fixtures or API docs, and put `// TODO(data-layer): mock URL, supplied by <Android source file:line> once the data layer is wired` above it. An empty string leaves blank every spot where the reference screenshot shows an image.
|
|
26
|
+
6. The `Image` line that renders it carries `// ICON: <key>` as usual (a Compose image is a childless `android.view.View` in the view tree, and measure_pack lists it in `icon_inventory`).
|
|
27
|
+
|
|
28
|
+
**A data-bound image decided as L3, written as an empty `Row()` / `Blank()` / fixed-size placeholder with no `Image`, or replaced by a local media picked by name, is a failure.**
|
|
29
|
+
|
|
30
|
+
**Icon source tiers — decide icon by icon and label the tier in the report** (asset images only):
|
|
13
31
|
|
|
14
32
|
No matching `<vector>` in `res/drawable` is **normal, not an anomaly**: Compose's `Icons.Outlined.*`, Phosphor, Feather, etc. are `ImageVector`s compiled into libraries; Step 2 converts only `res/` and cannot produce them. In that case you must go through the tiers and must not invent your own downgrade.
|
|
15
33
|
|
|
@@ -28,10 +28,22 @@ The report must include this ownership table, **each row labeled (a) / (b1) / (b
|
|
|
28
28
|
|
|
29
29
|
**Bottom sheets (`ModalBottomSheet` / `BottomSheetDialog` / `BottomSheetScaffold`): use `bindSheet`; self-drawing is not the way out of a look mismatch**: besides its look, an Android Material bottom sheet carries a set of behaviors: drag the panel down to close, tap the scrim to close, back key to close, panel height bounded by the window. `bindSheet` / `UIContext.openBindSheet` bring these behaviors with them. Solve look differences with options: with `dragBar: false` the system draws no handle and the builder draws the Android one (e.g. 40×4dp, radius 2), which **does not count as drawing it twice**; panel color goes in `backgroundColor`, corners in `radius`, height in `height` / `detents`, scrim color in `maskColor`. So "the system handle differs from Android's" is not a reason to re-classify the sheet as (a) self-drawn. When it really must be self-drawn (Stack + scrim + panel), the report's part-ownership row lists each behavior of the original control and where it is implemented: drag to close (`PanGesture({ direction: PanDirection.Down })`, following the finger and calling the dismiss callback past a distance or velocity threshold), tap the scrim to close, back key to close (`onBackPress` / host interception), maximum panel height. A missing one is `needs escalation`, not implemented. GATE `self-drawn-sheet-no-drag-dismiss`.
|
|
30
30
|
|
|
31
|
+
**The sheet's opening height comes from `sheetState`, not from the modifier**: a Compose `ModalBottomSheet` opens at the height `rememberModalBottomSheetState(skipPartiallyExpanded = …)` decides; `Modifier.fillMaxHeight()` only says how far the panel **can** be dragged.
|
|
32
|
+
|
|
33
|
+
| Android | `bindSheet` option | Basis |
|
|
34
|
+
|---|---|---|
|
|
35
|
+
| `skipPartiallyExpanded = false` (the default) | `detents: [SheetSize.MEDIUM, SheetSize.LARGE]`: opens half-height, can be dragged to full height | sheet doc: "the first height in the tuple is the initial height"; `height` is ignored once `detents` is set |
|
|
36
|
+
| `skipPartiallyExpanded = true` | `height: SheetSize.LARGE` (no `detents`) | opens fully expanded |
|
|
37
|
+
| `BottomSheetDialog` + `behavior.state = STATE_EXPANDED` / `skipCollapsed = true` | `height: SheetSize.LARGE` | same |
|
|
38
|
+
|
|
31
39
|
**When part ownership is (a) self-drawn, take over the behavior too**: the three verdicts above only ask whether a decoration is drawn twice and whether it looks right. Once a control is re-classified (a) and the atomic component is no longer instantiated, its built-in **interaction behavior** is gone with it (drag to close, inertia, keyboard avoidance, back key, accessibility role), and neither the compiler, the screenshot comparison nor the GATEs notice. So an (a) row lists, besides the graphic structure, "built-in behavior of the original control → `file:line` of the self-drawn implementation"; a behavior with no implementation site is marked `needs escalation`.
|
|
32
40
|
|
|
41
|
+
**Write `showClose` explicitly, never leave the default**: `bindSheet`'s `showClose` defaults to `true`, and the system draws a close button in the sheet's top-right corner. Android's Material `ModalBottomSheet` / `BottomSheetDialog` have no such button, so the default to write is `showClose: false` (a two-argument `bindSheet` needs an options object added for it); when the source draws its own close icon in the title row, keep that icon in the builder and still write `showClose: false`, otherwise two appear. Write `true` only when the source really has a close button and the system one replaces it. GATE `sheet-show-close-unset`.
|
|
42
|
+
|
|
33
43
|
**One sheet / content cover per node**: a `bindSheet` / `bindContentCover` is owned by the node it is bound to, and a node keeps one modal lifecycle; with two on one attribute chain, one closes right after it opens ("tap, flash, gone"), and neither the build nor the smoke test shows it. Each Compose `ModalBottomSheet` has its own state, which in ArkUI means its own host node: bind each on its trigger node, or wrap each in an empty container as host; with many overlays, manage them with `UIContext.openBindSheet` / `closeBindSheet`. This applies equally when Step 5.5 wiring adds an overlay. GATE `multiple-overlay-binds-same-node`.
|
|
34
44
|
|
|
45
|
+
**Pass the sheet builder as `this.X()`, and write the state back on close**: the second argument of `bindSheet(isShow, this.X(), …)` must be a builder call, which the compiler rewrites into `{ builder: … }`; `() => { this.X() }` is passed through as a bare function and the panel silently never shows (GATE `overlay-builder-arrow-arg`). The arrow form is for a custom component's `@BuilderParam` only. When isShow has no `$$` / `!!` two-way binding, a swipe or mask tap leaves the state true and the panel never opens again: add `onDisappear` to the options to set the host state back to false (GATE `sheet-isshow-no-writeback`). For `bindContentCover`, pass `{ modalTransition, onDisappear }` as the third argument rather than a bare `ModalTransition.X`.
|
|
46
|
+
|
|
35
47
|
**System dialogs and menus — anchor with the native mechanism, take the look from the source theme**: Android `PopupMenu` / `ContextMenu` / a `ListPopupWindow` anchored to a button, and `AlertDialog.Builder` / `MaterialAlertDialogBuilder`, are framework widgets whose **look is set by the Android app theme**, not by "the system"; once moved to ArkUI, "the system look" becomes the HarmonyOS look. The mapping table's "Direct mapping" only says the APIs line up, not that the look does.
|
|
36
48
|
|
|
37
49
|
- **Menus**: always anchor with `.bindMenu(...)` **on the trigger component** (`.bindContextMenu(...)` for long-press menus); a custom-drawn, state-driven overlay is **forbidden** (width, corner radius, dividers, shadow and position have no source, and it is not anchored to the button; GATE `popup-menu-not-bound`). For the look, pass a `@Builder` returning `Menu(){ MenuItem() }` and take values in the priority below; **do not pass `MenuElement[]`**, which renders the HarmonyOS system menu (GATE `popup-menu-default-look`).
|
|
@@ -47,7 +59,7 @@ The report must include this ownership table, **each row labeled (a) / (b1) / (b
|
|
|
47
59
|
| `Theme.Material3*` | 28dp corners; 24dp padding; 24sp title aligned to the start; 14sp `onSurfaceVariant` message; **sentence-case** (not uppercased) `colorPrimary` text buttons aligned to the end | 4dp corners; `surfaceContainer` background; 8dp top/bottom padding; 48dp rows; 16sp (BodyLarge); 16dp inset |
|
|
48
60
|
| `Theme.Holo*` / `Theme.DeviceDefault*` / unresolved | Vendor look: follow the capture; without a capture, flag `escalate` | Same |
|
|
49
61
|
|
|
50
|
-
|
|
62
|
+
With a capture, the `measure_pack` always wins.
|
|
51
63
|
|
|
52
64
|
**Known limits of the theme source**: the checker reads only `<application android:theme>` (a SplashScreen launch theme is followed through `postSplashScreenTheme` to the real app theme). An activity's own `android:theme`, and a dialog theme passed explicitly as `AlertDialog.Builder(context, R.style.X)` / `MaterialAlertDialogBuilder(context, R.style.X)`, are **not** read, so the reported chain may not be the one in effect: when converting, check the host activity and the builder arguments first, and take the values from an explicit theme when there is one.
|
|
53
65
|
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
Search the page's host Activity and its Application/base classes first; when the host itself has none, hits belonging to another Activity (e.g. a crash page, a full-screen reader page) **do not** count as evidence for this page.
|
|
11
11
|
**Inferring this item from screenshots is forbidden**: "the status bar is visible in the screenshot" or "content starts below the status bar" **cannot** imply non-immersive — an edge-to-edge page pads itself for insets, and its screenshot is **exactly the same shape** as a non-immersive one, so that criterion is bound to misjudge immersive pages. Screenshots may only corroborate, never serve as the basis for ①.
|
|
12
12
|
② **Window layer**: fixed to the default layout — `EntryAbility` **does not call** `setWindowLayoutFullScreen` (it may call `setWindowSystemBarProperties` to change the bar foreground color). The system lays content out in the safe area, automatically avoiding the status bar and navigation indicator. This item only needs to state "window layer: default layout"; calling `setWindowLayoutFullScreen(true)` is a failure (`window-fullscreen-layout` GATE).
|
|
13
|
-
③ **Component layer**: when ① is immersive, chrome that touches a system bar extends only its **background** into it — shell/page root `.background(<color>, { ignoresLayoutSafeAreaEdges: [LayoutSafeAreaEdge.TOP] })`, bottom chrome `[LayoutSafeAreaEdge.BOTTOM]`; content that itself must be drawn into the status bar (full-screen cover, video) uses `expandSafeArea([SafeAreaType.SYSTEM], [SafeAreaEdge.TOP])` on that component. **Neither form works inside `Refresh` / `Scroll` / `List`** (these containers have `clip` true by default and cut off the extension; GATE `safe-area-in-clipping-ancestor`): when bar-touching chrome sits inside such a container (a collapsing header inside pull-to-refresh), put its background in a separate layer under the page root, outside the container, with its height driven by the same state and `.hitTestBehavior(HitTestMode.None)`, leaving the content where it is. **This layer must write `.width('100%')`**: it is usually an empty container, and width/height default to the children's size (size attributes doc), which is 0 for an empty container; `.background()` does not take part in measuring, so without a width the whole layer is invisible (GATE `bg-only-container-collapsed`). The page-root `Stack` that holds it writes `alignContent: Alignment.TopStart`, otherwise a fixed-height background layer is centred vertically. **This layer's height is the height inside the safe area (the same value as the content layer), drawn with `.background(<color or @Builder>, { ignoresLayoutSafeAreaEdges: [LayoutSafeAreaEdge.TOP] })`**: the background area adds one status-bar height above the component while the component's layout stays unchanged. **Do not** use a fixed height + `expandSafeArea`: after extension a fixed width/height (or `'auto'`) keeps its size, so the whole component moves up by one bar height and its bottom edge moves up with it (safe-area doc, expandSafeArea constraints; GATE/CAND `fixed-size-expand-safe-area`). A `@Builder` background does not update with the builder's internal state, so put fade `opacity` etc. on this layer itself.
|
|
13
|
+
③ **Component layer**: when ① is immersive, chrome that touches a system bar extends only its **background** into it — shell/page root `.background(<color>, { ignoresLayoutSafeAreaEdges: [LayoutSafeAreaEdge.TOP] })`, bottom chrome `[LayoutSafeAreaEdge.BOTTOM]`; content that itself must be drawn into the status bar (full-screen cover, video) uses `expandSafeArea([SafeAreaType.SYSTEM], [SafeAreaEdge.TOP])` on that component. **Neither form works inside `Refresh` / `Scroll` / `List`** (these containers have `clip` true by default and cut off the extension; GATE `safe-area-in-clipping-ancestor`): when bar-touching chrome sits inside such a container (a collapsing header inside pull-to-refresh), put its background in a separate layer under the page root, outside the container, with its height driven by the same state and `.hitTestBehavior(HitTestMode.None)`, leaving the content where it is. **This layer must write `.width('100%')`**: it is usually an empty container, and width/height default to the children's size (size attributes doc), which is 0 for an empty container; `.background()` does not take part in measuring, so without a width the whole layer is invisible (GATE `bg-only-container-collapsed`). The page-root `Stack` that holds it writes `alignContent: Alignment.TopStart`, otherwise a fixed-height background layer is centred vertically. **This layer's height is the height inside the safe area (the same value as the content layer), drawn with `.background(<color or @Builder>, { ignoresLayoutSafeAreaEdges: [LayoutSafeAreaEdge.TOP] })`**: the background area adds one status-bar height above the component while the component's layout stays unchanged. **Do not** use a fixed height + `expandSafeArea`: after extension a fixed width/height (or `'auto'`) keeps its size, so the whole component moves up by one bar height and its bottom edge moves up with it (safe-area doc, expandSafeArea constraints; GATE/CAND `fixed-size-expand-safe-area`). A `@Builder` background does not update with the builder's internal state, so put fade `opacity` etc. on this layer itself. **This layer sits below `Refresh` / `Scroll` in z-order**, so it only shows through the empty space above those containers: when scrolled content passes the header area (a same-height spacer at the top of the Scroll, the header as a sibling overlay), the content is drawn above this background and the header looks transparent. So this layer covers the status-bar strip only; inside the safe area the header component's root paints the same layers again (color + header image, opacity from the same state), or, per `cards/dynamics.md` "MotionLayout collapsing header", the content area is placed below the header so the content never passes under it (GATE `scroll-driven-overlay-see-through`). **A stacked full page extends to the same edges as the layer below**: when a lower layer of the page-root `Stack` (a weather gradient, a background image) extends into the bottom navigation bar, the opaque full page above it (a city list, a settings page) must extend its background to BOTTOM as well: `.background(<colour>, { ignoresLayoutSafeAreaEdges: [LayoutSafeAreaEdge.TOP, LayoutSafeAreaEdge.BOTTOM] })`; with TOP only, the bottom navigation bar shows the lower layer (GATE `opaque-layer-safe-area-mismatch`).
|
|
14
14
|
**Layer by layer under the bar**: "background" means **every layer Android actually draws** in the system-bar area, not just one base color. List, in z-order, the painters of the area under the bar (screen y < status-bar height) — container background color, a filling `ImageView` (header image, often with `scaleType=fitXY/centerCrop`), gradients/shapes, scrims — and every layer must go into the extension layer: color layers use `.background(<color>, …)`, image layers use `.background(<@Builder that draws the image>, …)` (or stack a same-size `Image` inside the extension layer), and multiple layers are stacked inside the extension layer in the original z-order. The basis is the Android layout `file:line` (that View's constraints pin it to the `parent` top, or a negative `marginTop` pushes it under the bar). When only the bottom color block is moved and the image above it stays inside the clipping container, the status bar shows only a solid color — `safe-area-in-clipping-ancestor` cannot catch this (the image itself writes no safe-area API); CAND `backdrop-image-in-clipping-ancestor` lists suspicious filling `Image`s.
|
|
15
15
|
Full-bleed content using `expandSafeArea` likewise must not have a fixed height; use a percentage height. When ① is non-immersive, state "not used". List the actual `file:line`; Fragment pages hosted by a shell are handled by the shell — state that and cite the shell's line numbers.
|
|
16
16
|
④ Whether ①②③ are equivalent.
|
|
17
|
-
**Key point**: no page/component may **read the system-bar height** (`getWindowAvoidArea` SYSTEM / NAVIGATION_INDICATOR / CUTOUT, `on('avoidAreaChange')`, a bar-height AppStorage key) or pad by the bar height — the default layout already avoids it, so adding it again is a duplicate; Android's `fitsSystemWindows` / insets padding has **no counterpart** on HarmonyOS and is not translated. Keyboard avoidance (`TYPE_KEYBOARD`) is exempt. A violation is the `system-bar-height-read` GATE.
|
|
17
|
+
**Key point**: no page/component may **read the system-bar height** (`getWindowAvoidArea` SYSTEM / NAVIGATION_INDICATOR / CUTOUT, `on('avoidAreaChange')`, a bar-height AppStorage key) or pad by the bar height — the default layout already avoids it, so adding it again is a duplicate; Android's `fitsSystemWindows` / insets padding has **no counterpart** on HarmonyOS and is not translated. Keyboard avoidance (`TYPE_KEYBOARD`) is exempt. A violation is the `system-bar-height-read` GATE.
|
|
18
18
|
**Cross-page consistency is only a hint, not a way to pass.** When ① and ④ conflict, **① wins**. The baseline (existing pages, `EntryAbility`) **does not constitute** evidence for ① — the baseline only says "what it is now", not "what Android does".
|
|
19
19
|
When ① is immersive and the baseline pages are all non-immersive, the right move is to **add the component-level background extension**, **not** to follow the baseline and stay non-immersive, and **not** to change the window layer. "Stay consistent with base" in this situation locks the error in, and because the whole batch is consistent, cross-page comparison passes with full marks — this is exactly the most common miss path for this item: ① misjudged as non-immersive from a screenshot, ④ confirmed by "consistent with the baseline"; both steps "have evidence" and the conclusion is still wrong.
|
|
20
20
|
If you really decide not to implement immersion (e.g. ① has zero hits), state ①'s search result in the report as the basis. The typical sign of missing this item is a top bar that falls into the status bar (overlapping the time/battery, untappable), or a status-bar strip that clashes with the page background.
|
|
@@ -35,6 +35,15 @@ A downgrade marker is written above the hit line (with the colon and the basis),
|
|
|
35
35
|
- Fix: rewrite Android `sp(N)` as `` `${N}vp` `` or `fp2px(N)` + `px`; when physical pixels are really needed, write `// CANVAS-PX: <basis>` above it to downgrade it to CAND.
|
|
36
36
|
- Downgrade marker: `// CANVAS-PX: <basis>`
|
|
37
37
|
|
|
38
|
+
### canvas-negative-draw-offset
|
|
39
|
+
|
|
40
|
+
- Level: CAND
|
|
41
|
+
- Needs: —
|
|
42
|
+
- Knowledge card: `references/cards/canvas.md`
|
|
43
|
+
- Trigger: In a file with `CanvasRenderingContext2D`, a y variable (name containing `Y` / `Top`) is initialised to a negative constant, or a draw call (`fillText` / `roundRect` / `moveTo`, …) has a negative literal after its first argument.
|
|
44
|
+
- Fix: Compose `Canvas` / `drawBehind` does not clip by default, so the source often draws bubbles and labels above the canvas top edge (negative y), into space reserved above it. ArkUI `Canvas` draws only inside the component, so content at negative coordinates is not where it was and competes with siblings outside the canvas. Fold the reserved height into the Canvas (grow it and shift every y by the same amount), or make the bubble a separate layer outside the Canvas (Stack + a position computed from the selected point). After checking, state the approach in the report under Transition Implementation Evidence or Position Anchor Evidence.
|
|
45
|
+
- Downgrade marker: none
|
|
46
|
+
|
|
38
47
|
### card-width-wraps
|
|
39
48
|
|
|
40
49
|
- Level: GATE / CAND
|
|
@@ -44,6 +53,15 @@ A downgrade marker is written above the hit line (with the colon and the basis),
|
|
|
44
53
|
- Fix: add `.width('100%')` to the card, and if the parent Column has no width either, add it there too; when it really wraps its content, write `// WRAP-WIDTH: <basis>` above it.
|
|
45
54
|
- Downgrade marker: `// WRAP-WIDTH: <basis>`
|
|
46
55
|
|
|
56
|
+
### collapsing-toolbar-not-nested-scroll
|
|
57
|
+
|
|
58
|
+
- Level: CAND
|
|
59
|
+
- Needs: —
|
|
60
|
+
- Knowledge card: `references/cards/alignment.md`
|
|
61
|
+
- Trigger: a scroll callback (`onDidScroll`/`onScroll`/`onScrollFrameBegin`) writes the scroll amount into a member field, and that field (or a getter derived from it) drives a `.fontSize()` / `.scale()` — the collapsing toolbar is built as "fixed header + separate Scroll + title resized in place by the scroll fraction" instead of the title translating with the scroll inside one nested-scroll container.
|
|
62
|
+
- Fix: follow the M3 `LargeTopAppBar`/`MediumTopAppBar` + `TopAppBarScrollBehavior` semantics: put the title inside the **same** scrollable region and let its Y offset follow the scroll offset (one nested-scroll container); do not use "a non-scrolling sibling layer + in-place scale / font size from a fraction". Also: if the collapse amount is bound to the inner Scroll overflowing, it never fires when the content is shorter than the viewport and the title stays expanded. When it is correct, write `// COLLAPSING-OK: <basis>` above the line to silence it.
|
|
63
|
+
- Downgrade marker: `// COLLAPSING-OK: <basis>`
|
|
64
|
+
|
|
47
65
|
### column-shrink-child-centered
|
|
48
66
|
|
|
49
67
|
- Level: CAND
|
|
@@ -80,6 +98,15 @@ A downgrade marker is written above the hit line (with the colon and the basis),
|
|
|
80
98
|
- Fix: `fixed-box-text-wraps` (GATE: the literal text of a fixed-width, fixed-height `Text` does not fit by font-size estimate and has no `maxLines`; CJK/symbols estimated at 1em, pure ASCII reported as GATE only when clearly overflowing; when the font size cannot be read as a number (`$r(...)`, a variable, `px`) it is estimated at 16 and downgraded to CAND) → `.maxLines(1)` + widen.
|
|
81
99
|
- Downgrade marker: none
|
|
82
100
|
|
|
101
|
+
### flowitem-no-cross-size
|
|
102
|
+
|
|
103
|
+
- Level: GATE / CAND
|
|
104
|
+
- Needs: —
|
|
105
|
+
- Knowledge card: `references/cards/geometry.md`
|
|
106
|
+
- Trigger: A `FlowItem()` inside a `WaterFlow` has no size of its own on the cross axis (no `.width(…)` in a vertical flow, no `.height(…)` in a horizontal one) — the column width is not handed down as the percentage reference, a child's `'100%'` resolves against the whole WaterFlow, and the card spreads to screen width over the neighbouring column.
|
|
107
|
+
- Fix: Give the `FlowItem` its cross-axis size: vertical (`columnsTemplate`) `.width('100%')`, horizontal (`layoutDirection(FlexDirection.Row)` + `rowsTemplate`) `.height('100%')`, so a child's percentage resolves against the column width / row height. When there is a real reason, write `// FLOWITEM-SIZE: <basis>` above the line to downgrade to CAND.
|
|
108
|
+
- Downgrade marker: `// FLOWITEM-SIZE: <basis>`
|
|
109
|
+
|
|
83
110
|
### hscroll-centered-in-column
|
|
84
111
|
|
|
85
112
|
- Level: GATE / CAND
|
|
@@ -89,6 +116,15 @@ A downgrade marker is written above the hit line (with the colon and the basis),
|
|
|
89
116
|
- Fix: Compose LazyRow / HorizontalScrollView fill the width and start at the leading edge. Give the horizontal Scroll `.width('100%')` + `.align(Alignment.Start)` (horizontally Start = left + vertically centered, which is what is wanted), or write `.alignItems(HorizontalAlign.Start)` on the parent Column. When centered on purpose, write `// SCROLL-CENTER: <basis>` above the Scroll to downgrade to CAND
|
|
90
117
|
- Downgrade marker: `// SCROLL-CENTER: <basis>`
|
|
91
118
|
|
|
119
|
+
### inset-double-applied
|
|
120
|
+
|
|
121
|
+
- Level: GATE / CAND
|
|
122
|
+
- Needs: —
|
|
123
|
+
- Knowledge card: `references/cards/geometry.md`
|
|
124
|
+
- Trigger: a custom component's build() root sets left/right `.padding()`, and one of its call sites, or a container around the call site up to the nearest scroll container, sets `.padding()` with the same left/right values — one inset is applied twice.
|
|
125
|
+
- Fix: the root padding of an embedded Fragment / include layout belongs to the component alone: keep it on the component's build() root and drop the host-side copy. The host container (e.g. the Column standing for `flTodayWeather`) writes only its own attributes; when the host needs an extra offset (a collapsing-header height, etc.) it writes only that (e.g. `.padding({ top: HEADER_H })`), never the child layout's left/right inset along with it. When both layers really exist (the Android host container has the same padding too), write `// INSET-STACKED: <host XML file:line>` above the host `.padding(` line to downgrade to CAND. When the component root draws a box itself (background, border, radius, shadow: a card), its padding is the card's content inset and the host's is the page gutter, so the finding is only a CAND; confirm it against the Android host layout.
|
|
126
|
+
- Downgrade marker: `// INSET-STACKED: <basis>`
|
|
127
|
+
|
|
92
128
|
### layout-weight-on-component-root
|
|
93
129
|
|
|
94
130
|
- Level: GATE
|
|
@@ -152,6 +188,15 @@ A downgrade marker is written above the hit line (with the colon and the basis),
|
|
|
152
188
|
- Fix: remove the child's `'100%'` and let the parent's `alignItems` and the child's `constraintSize({ min… })` size it; when equal heights are really required, measure with `onAreaChange` and set a value, or give the parent a definite size. When the size really is given from above, write `// PCT-PARENT-SIZED: <basis>` above the container to downgrade it to CAND.
|
|
153
189
|
- Downgrade marker: `// PCT-PARENT-SIZED: <basis>`
|
|
154
190
|
|
|
191
|
+
### pct-size-in-hugging-or-scroll-parent
|
|
192
|
+
|
|
193
|
+
- Level: GATE / CAND
|
|
194
|
+
- Needs: —
|
|
195
|
+
- Knowledge card: `references/cards/geometry.md`
|
|
196
|
+
- Trigger: going up from a `.width('100%')` to a horizontal Scroll/List/Grid/WaterFlow (paging scrollers with `enablePaging(true)` / `scrollSnapAlign` excepted), no layer in between has a definite width (GATE); or the width sits on an **empty-body** background / selected layer (`Column() {}` etc.) whose direct parent is a `Stack` with no definite width (CAND: a `'100%'` background layer breaks the Stack's content-hug).
|
|
197
|
+
- Fix: items in a horizontal scroll are sized by their content: drop the main-axis `.width('100%')` / `layoutWeight`, take the width from the content or `constraintSize.minWidth`. A selected-state / alpha background layer in a shrink-wrapping `Stack` must not be a `.width('100%')` child (it stretches the Stack instead): bake the selected colour into the container sized by its content, or use `.overlay(@Builder)` (builder root `width/height('100%')` + background + `hitTestBehavior(HitTestMode.Transparent)`). When the source construct is Compose `Modifier.matchParentSize()`, see mapping table §6.2 (`matchParentSize()` follows the parent size and does not drive it; never translate it to a `.width('100%')` background child). For an intentional full width write `// WIDTH-FILL: <basis>` above the line: in the horizontal-scroll case it downgrades to CAND, in the Stack background-layer case it is no longer reported.
|
|
198
|
+
- Downgrade marker: `// WIDTH-FILL: <basis>`
|
|
199
|
+
|
|
155
200
|
### pct-width-with-hmargin
|
|
156
201
|
|
|
157
202
|
- Level: GATE
|
|
@@ -170,13 +215,22 @@ A downgrade marker is written above the hit line (with the colon and the basis),
|
|
|
170
215
|
- Fix: corner badges use `.position({ right, bottom })`; a content root that must fill the viewport uses `.constraintSize({ minHeight: '100%' })`; a mask / greyed-out layer covering the whole card uses `.overlay(this.<@Builder>())` whose builder root is `width/height('100%')` + `backgroundColor` + `hitTestBehavior(HitTestMode.Transparent)` (`'100%'` inside the overlay is relative to the host); **do not** pass a colour string (`overlay(string)` is mask text, GATE `overlay-string-color`).
|
|
171
216
|
- Downgrade marker: none
|
|
172
217
|
|
|
218
|
+
### relative-container-anchor-cycle
|
|
219
|
+
|
|
220
|
+
- Level: GATE
|
|
221
|
+
- Needs: —
|
|
222
|
+
- Knowledge card: `references/cards/geometry.md`
|
|
223
|
+
- Trigger: Direct children of one `RelativeContainer` whose sibling anchors in `.alignRules()` form a cycle: A anchors B and B anchors A (on any axis), a longer cycle, or a child anchoring itself. Chains are exempt: a pair anchored end to start on one axis (A's right/end on B's Start and B's left/start on A's End; bottom/top likewise vertically) is not a cycle, with or without `.chainMode()`. Only literal `.id('x')` and literal `anchor: 'x'` on child components are read: a cycle through a barrier (`.barrier()`) or a variable such as `.alignRules(this.rules)` is not detected.
|
|
224
|
+
- Fix: RelativeContainer doc: when children depend on each other mutually or in a cycle, none of the container's children are drawn — the card shows only its background / corners (an empty capsule), the view tree has `children: []` for it, and neither the build nor the smoke test reports it. For "icon vertically centered + two text lines on the right" use `Row { Image; Column { … } }.alignItems(VerticalAlign.Center)`, and put corner elements on the next row or in a `Stack` + `Alignment`; when RelativeContainer is really needed, keep dependencies one-way: once the text column anchors the icon (horizontally), the icon must not anchor the text column (center it on `__container__` or give a fixed height instead). The one exception is a chain: adjacent components on one axis anchor each other end to start, with `.chainMode(Axis.Horizontal | Axis.Vertical, ChainStyle.*)` on the chain head; the doc allows it and the rule does not flag it.
|
|
225
|
+
- Downgrade marker: none
|
|
226
|
+
|
|
173
227
|
### relative-container-unsized-in-scroll
|
|
174
228
|
|
|
175
229
|
- Level: GATE
|
|
176
230
|
- Needs: —
|
|
177
231
|
- Knowledge card: `references/cards/geometry.md`
|
|
178
232
|
- Trigger: A `RelativeContainer` inside a vertical Scroll/List/Grid/WaterFlow, with no definite height on any level up to the scroll container, whose own height is unset or `'auto'` / `LayoutPolicy.wrapContent` / `fixAtIdealSize`, and with a child whose `alignRules` anchor top / bottom / center on `'__container__'` (traced across structs to the call site).
|
|
179
|
-
- Fix: RelativeContainer doc: when height is `"auto"` (API 11+) or `wrapContent` (API 20+), any child anchored to the container in the vertical direction disables the self-sizing and the height counts as unset (FAQ faqs-arkui-318: the container height and the child layout depend on each other in a cycle). Express an Android `wrap_content` card with `Column`/`Row`/`Stack` (left icon + text column = `Row { Image; Column { … } }`, corner elements with `Stack` + `Alignment`); when two-dimensional constraints are really needed, anchor vertically only on siblings (the first child has no vertical alignRules and sits at the top by default) and write `.height('auto')`, or write the height measured in the reference view tree.
|
|
233
|
+
- Fix: RelativeContainer doc: when height is `"auto"` (API 11+) or `wrapContent` (API 20+), any child anchored to the container in the vertical direction disables the self-sizing and the height counts as unset (FAQ faqs-arkui-318: the container height and the child layout depend on each other in a cycle). Express an Android `wrap_content` card with `Column`/`Row`/`Stack` (left icon + text column = `Row { Image; Column { … } }`, corner elements with `Stack` + `Alignment`); when two-dimensional constraints are really needed, anchor vertically only on siblings (the first child has no vertical alignRules and sits at the top by default) and write `.height('auto')`, or write the height measured in the reference view tree; sibling anchors must be one-way, never A anchoring B while B anchors A (on any axis), or no child is drawn (GATE `relative-container-anchor-cycle`); a chain (end-to-start anchors on one axis + `.chainMode()` on the head) is the exception.
|
|
180
234
|
- Downgrade marker: none
|
|
181
235
|
|
|
182
236
|
### scroll-align-default-center
|
|
@@ -197,6 +251,15 @@ A downgrade marker is written above the hit line (with the colon and the basis),
|
|
|
197
251
|
- Fix: laying out from the top should be Alignment.TopStart; keep it and note the basis only when the Android side really has centered/bottom-anchored semantics (fillViewport + gravity=center, stackFromEnd/reverseLayout)
|
|
198
252
|
- Downgrade marker: none
|
|
199
253
|
|
|
254
|
+
### scroll-driven-overlay-see-through
|
|
255
|
+
|
|
256
|
+
- Level: GATE
|
|
257
|
+
- Needs: —
|
|
258
|
+
- Knowledge card: `references/cards/dynamics.md`
|
|
259
|
+
- Trigger: In one `Stack`, a vertical scroller (Scroll/List/Grid/WaterFlow) is followed by a sibling layer whose arguments or attributes read the state that scroller's scroll callback writes (a collapsing header's progress / offset), and whose root is a layout container (Stack/Column/Row/Flex/RelativeContainer, or a custom component whose root is one) with no `.background*` / `.linearGradient` at the call site or on the root. The scrolled content passes under this transparent header and its text lands on the cards.
|
|
260
|
+
- Fix: Follow `cards/dynamics.md` "MotionLayout collapsing header": the preferred structure is `Column { header (height driven by state, paints its own opaque layers) ; Scroll(content).layoutWeight(1) }`, with the header consuming the drag first in the Scroll's `.onScrollFrameBegin` (return `{ offsetRemain: 0 }` until it is collapsed), so the content's viewport starts at the header's bottom edge, as Android's `Top_toBottomOf=@toolbar` does. If you keep the spacer + overlay structure, the header root must paint Android's opaque header layers itself (color + header image, opacity from the same state); the extension layer outside the page's containers only covers the status-bar strip (`cards/window.md` ③). If the transparency is intended (on Android the content really passes under a transparent bar), write `// SEE-THROUGH-OK: <Android layout file:line>` above the sibling.
|
|
261
|
+
- Downgrade marker: `// SEE-THROUGH-OK: <basis>`
|
|
262
|
+
|
|
200
263
|
### shared-chrome-placement-drift
|
|
201
264
|
|
|
202
265
|
- Level: GATE / CAND
|
|
@@ -206,6 +269,15 @@ A downgrade marker is written above the hit line (with the colon and the basis),
|
|
|
206
269
|
- Fix: unify the pages, or move it into a host container component
|
|
207
270
|
- Downgrade marker: none
|
|
208
271
|
|
|
272
|
+
### space-between-optional-lead
|
|
273
|
+
|
|
274
|
+
- Level: GATE / CAND
|
|
275
|
+
- Needs: —
|
|
276
|
+
- Knowledge card: `references/cards/alignment.md`
|
|
277
|
+
- Trigger: A `Row` / `Column` / `Flex` distributes its children with `FlexAlign.SpaceBetween`, its first child sits in an `if` (not rendered when the condition is false), and at most one child may remain — SpaceBetween puts a single child at the start, so a child that belonged at the end (e.g. the top bar's actions) moves to the start.
|
|
278
|
+
- Fix: Lay it out as slots instead of distributing with SpaceBetween: the leading slot (the back button wrapped in `if`), `Blank().layoutWeight(1)`, then the trailing slot, so the trailing slot stays at the end when the condition is false; or keep a fixed-width empty placeholder for the leading slot (`else { Row().width(<slot width>) }`). When a lone child really belongs at the start, write `// SPACE-BETWEEN: <basis>` above the container to downgrade to CAND.
|
|
279
|
+
- Downgrade marker: `// SPACE-BETWEEN: <basis>`
|
|
280
|
+
|
|
209
281
|
### stack-bar-default-center
|
|
210
282
|
|
|
211
283
|
- Level: GATE / CAND
|
|
@@ -220,8 +292,8 @@ A downgrade marker is written above the hit line (with the colon and the basis),
|
|
|
220
292
|
- Level: GATE / CAND
|
|
221
293
|
- Needs: —
|
|
222
294
|
- Knowledge card: `references/cards/alignment.md`
|
|
223
|
-
- Trigger: a `Stack` has no alignContent, and a child relies on its own `.align()` to pin to the bottom/edge while wrapping its content on that axis.
|
|
224
|
-
- Fix:
|
|
295
|
+
- Trigger: a `Stack` has no alignContent (default Center), and a child relies on its own `.align()` to pin to the bottom/edge while wrapping its content on that axis; or the `Stack` sets an **explicit non-Center** alignContent and a child's `.align(Y)` **conflicts** with it (the child is still placed at the Stack's alignContent, not at Y).
|
|
296
|
+
- Fix: `.align()` only arranges the child's own content and does not decide its position in the Stack: every child is placed at the Stack's alignContent. To pin a child to an edge, set the Stack's alignContent to that direction (wrap the other children that rely on the current alignment in a full-size container), or first make the child `'100%'` on that axis and then arrange its content with `.align`.
|
|
225
297
|
- Downgrade marker: none
|
|
226
298
|
|
|
227
299
|
### stack-custom-child-default-center
|
|
@@ -316,6 +388,15 @@ A downgrade marker is written above the hit line (with the colon and the basis),
|
|
|
316
388
|
- Fix: `blur-not-mirrored` (GATE, needs `--android`): an Android source file or layout XML uses a background blur (`*BlurView` tags, `RenderEffect.createBlurEffect`, `setBackgroundBlurRadius`, `FLAG_BLUR_BEHIND`, `RenderScriptBlur`, etc.), yet the HarmonyOS files whose text cites that source file have no blur API at all (`BlurStyle.NONE` and a zero radius do not count; `systemMaterial` does; commented-out Android code does not count; downgraded to CAND when Android has several files with that name). When the parent flow has accepted the difference, write `// APPEARANCE-ESCALATED(BlurView): <ruling source>` to downgrade it to CAND.
|
|
317
389
|
- Downgrade marker: `// APPEARANCE-ESCALATED(BlurView): <basis>`
|
|
318
390
|
|
|
391
|
+
### border-object-resets-radius
|
|
392
|
+
|
|
393
|
+
- Level: GATE
|
|
394
|
+
- Needs: —
|
|
395
|
+
- Knowledge card: `references/cards/resources.md`
|
|
396
|
+
- Trigger: on one attribute chain a `.borderRadius(non-zero)` comes first and a later `.border({…})` call has no `radius` field, with no `.borderRadius()` after it — `.border()` resets the corner radius to 0, so the stroke / card renders square.
|
|
397
|
+
- Fix: put the radius into the border object: `.border({ width, color, radius })`; or move `.borderRadius()` after `.border()` (border doc: border's radius defaults to 0; when color/radius are omitted, borderColor/borderRadius only take effect if written after border). Separate setters `.borderWidth().borderColor().borderRadius()` are not affected.
|
|
398
|
+
- Downgrade marker: none
|
|
399
|
+
|
|
319
400
|
### color-alpha-appended
|
|
320
401
|
|
|
321
402
|
- Level: GATE / CAND
|
|
@@ -406,6 +487,15 @@ A downgrade marker is written above the hit line (with the colon and the basis),
|
|
|
406
487
|
- Fix: Set a semi-transparent `backgroundColor` (matching the Android overlay color, e.g. `'#80FFFFFF'`); to control the radius precisely, use `backgroundColor: Color.Transparent` + `blurStyle: BlurStyle.NONE` and apply `.backgroundEffect({ radius, color })` on the content root node.
|
|
407
488
|
- Downgrade marker: none
|
|
408
489
|
|
|
490
|
+
### sheet-show-close-unset
|
|
491
|
+
|
|
492
|
+
- Level: GATE
|
|
493
|
+
- Needs: —
|
|
494
|
+
- Knowledge card: `references/cards/widgets.md`
|
|
495
|
+
- Trigger: The literal options of `bindSheet` do not set `showClose`, or `bindSheet` is called with two arguments and no options — it defaults to `true` and the system draws a close button in the top-right corner of the panel, while Android's `ModalBottomSheet` / `BottomSheetDialog` have no such button.
|
|
496
|
+
- Fix: Write it explicitly from Android: a source sheet without a close button (the Material bottom-sheet default) gets `showClose: false`; write `showClose: true` only when the source really has a close icon at the top-right of the title row and the system button replaces it. A close icon the source draws itself stays in the builder, together with `showClose: false`, otherwise two appear.
|
|
497
|
+
- Downgrade marker: none
|
|
498
|
+
|
|
409
499
|
### stack-occluding-sibling
|
|
410
500
|
|
|
411
501
|
- Level: GATE
|
|
@@ -438,7 +528,7 @@ A downgrade marker is written above the hit line (with the colon and the basis),
|
|
|
438
528
|
- Level: GATE / CAND
|
|
439
529
|
- Needs: `shell-plan`
|
|
440
530
|
- Knowledge card: `references/cards/resources.md`
|
|
441
|
-
- Trigger: the shell contract's theme.mode is not static (Android has a dark scheme or a runtime theme colour), and an .ets file contains a `'#…'` colour literal, or a colour-attribute argument is a fixed enum such as `Color.White` / `Color.Black`.
|
|
531
|
+
- Trigger: the shell contract's theme.mode is not static (Android has a dark scheme or a runtime theme colour), and an .ets file contains a `'#…'` / `'rgb(…)'` / `'rgba(…)'` colour literal (alpha 0 excepted), or a colour-attribute argument is a fixed enum such as `Color.White` / `Color.Black`.
|
|
442
532
|
- Fix: change it to `$r('app.color.<name>')`, defined under the same name in both the base and dark color.json (the dark value cites the line of the Android dark scheme / values-night), submitted through registry_requests `color` / `dark_color`; a runtime theme colour listed in the contract's `theme.runtime_slots` does not use `$r`: it is read through a getter of the observable theme state in `theme.state_module` (GATE `theme-runtime-color-static`). A colour whose value is the same in both Android schemes gets `// THEME-FIXED: <both scheme lines>` above it (downgraded to CAND).
|
|
443
533
|
- Downgrade marker: `// THEME-FIXED: <basis>`
|
|
444
534
|
|
|
@@ -451,6 +541,15 @@ A downgrade marker is written above the hit line (with the colon and the basis),
|
|
|
451
541
|
- Fix: Dark/light takes effect through `ApplicationContext.setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK / _LIGHT / _NOT_SET)`; storing the state without calling it changes nothing. Call it where the mode is set and, because setColorMode is not persisted (FAQ "Dark mode adaptation and persistence"), read the stored mode in the entry ability on launch and call it again.
|
|
452
542
|
- Downgrade marker: none
|
|
453
543
|
|
|
544
|
+
### theme-param-unread
|
|
545
|
+
|
|
546
|
+
- Level: GATE
|
|
547
|
+
- Needs: —
|
|
548
|
+
- Knowledge card: `references/cards/resources.md`
|
|
549
|
+
- Trigger: A component declares a dark/light or theme parameter (`@Param` / `@Prop` / `@Link` named like `isDark`, `isXxxDark`, `isLight`, `darkMode`, `theme`) but never reads `this.<param>`.
|
|
550
|
+
- Fix: Colours picked by a parameter in Compose, such as `colorResource(if (isDark) R.color.color_white else R.color.color_black).copy(alpha = …)`, need both branches: `.fontColor(this.isDark ? 'rgba(255,255,255,0.5)' : 'rgba(0,0,0,0.5)')`, and every call site must pass the parameter. Keeping one branch (hard-coded white) makes text, borders and icons unreadable on a light background. Delete the declaration when the parameter is truly not needed.
|
|
551
|
+
- Downgrade marker: none
|
|
552
|
+
|
|
454
553
|
### theme-runtime-color-static
|
|
455
554
|
|
|
456
555
|
- Level: GATE / CAND
|
|
@@ -503,7 +602,7 @@ A downgrade marker is written above the hit line (with the colon and the basis),
|
|
|
503
602
|
- Level: GATE
|
|
504
603
|
- Needs: `--resources`
|
|
505
604
|
- Knowledge card: `references/cards/resources.md`
|
|
506
|
-
- Trigger: the referenced media SVG has a fill="none" bounding box covering the viewBox: a path whose
|
|
605
|
+
- Trigger: the referenced media SVG has a fill="none" bounding box covering the viewBox: a path made only of straight segments whose every subpath runs through the four viewBox corners (`M0 0h24v24H0z`, `H0V0z`, the doubled `…zm0 0h24v24H0V0z` and other spellings all count), or a rect with x/y at 0 and width/height equal to the viewBox.
|
|
507
606
|
- Fix: - The rules that read SVG/resource file content (need `--resources`) correspond to the sub-items of "Misused Resource References": `fillcolor-on-stroke-svg`, `fillcolor-on-full-viewport-path`, `media-unresolved-theme-attr` / `media-placeholder-in-use`, `media-duplicate-attribute`. They are exactly the class missed by "just running `ls media/` to confirm the name exists".
|
|
508
607
|
- Downgrade marker: none
|
|
509
608
|
|
|
@@ -543,6 +642,24 @@ A downgrade marker is written above the hit line (with the colon and the basis),
|
|
|
543
642
|
- Fix: Load `rawfile/lottie/<name>.json` with `@ohos/lottie` per `references/lottie-integration.md` (request `@ohos/lottie` in registry_requests if the dependency is missing). When it truly cannot be integrated, write `// LOTTIE-DEGRADED: <which animation, what placeholder, why>` in a `.ets` that cites the source to downgrade to CAND, and register L3 degraded in the report. Replacing the Lottie with another static drawable is "substituting an existing drawable with mismatched semantics", not a downgrade exit.
|
|
544
643
|
- Downgrade marker: `// LOTTIE-DEGRADED: <basis>`
|
|
545
644
|
|
|
645
|
+
### lottie-load-before-canvas-ready
|
|
646
|
+
|
|
647
|
+
- Level: GATE / CAND
|
|
648
|
+
- Needs: —
|
|
649
|
+
- Knowledge card: `references/cards/resources.md`
|
|
650
|
+
- Trigger: the file has a `Canvas(`, and `@ohos/lottie`'s `loadAnimation(` is written in `aboutToAppear()` / `aboutToBuild()` — these lifecycles run before `build()`, the Canvas rendering context is not ready yet, so the animation paints into an empty context and does not show.
|
|
651
|
+
- Fix: move `lottie.loadAnimation({ container: this.canvasContext, … })` into the `Canvas(this.canvasContext).onReady(() => { … })` callback (onReady fires once the Canvas is laid out and the context is usable); keep destroy in `aboutToDisappear` + `Canvas.onDisAppear`. With a real basis write `// LOTTIE-READY: <basis>` above the line to downgrade it to CAND.
|
|
652
|
+
- Downgrade marker: `// LOTTIE-READY: <basis>`
|
|
653
|
+
|
|
654
|
+
### lottie-path-not-ets
|
|
655
|
+
|
|
656
|
+
- Level: GATE / CAND
|
|
657
|
+
- Needs: —
|
|
658
|
+
- Knowledge card: `references/cards/resources.md`
|
|
659
|
+
- Trigger: The options of `@ohos/lottie`'s `loadAnimation({ … })` set `path`, and it is not a string literal naming a file that exists under this module's `ets/` — `path` reads only the `ets/` directory, the parent skill puts the animation JSON in `rawfile/lottie/`, and with no data the library only fires `data_failed`, so the animation is blank.
|
|
660
|
+
- Fix: Follow `references/lottie-integration.md` 4.5.2: read the bytes with `this.getUIContext().getHostContext()!.resourceManager.getRawFileContentSync('lottie/<name>.json')`, decode with `new util.TextDecoder('utf-8', { ignoreBOM: true }).decodeToString(bytes)`, `JSON.parse` it and pass it as `animationData`; drop `path`. When the JSON really is under `ets/` and the path comes from a variable, write `// LOTTIE-PATH: <basis>` above the line to downgrade to CAND.
|
|
661
|
+
- Downgrade marker: `// LOTTIE-PATH: <basis>`
|
|
662
|
+
|
|
546
663
|
### media-duplicate-attribute
|
|
547
664
|
|
|
548
665
|
- Level: GATE
|
|
@@ -617,6 +734,15 @@ A downgrade marker is written above the hit line (with the colon and the basis),
|
|
|
617
734
|
- Fix: delete the copy; the shell draws it once for all
|
|
618
735
|
- Downgrade marker: none
|
|
619
736
|
|
|
737
|
+
### click-handler-untestable
|
|
738
|
+
|
|
739
|
+
- Level: GATE
|
|
740
|
+
- Needs: —
|
|
741
|
+
- Knowledge card: `references/cards/interaction.md`
|
|
742
|
+
- Trigger: the same node binds `.onClick` / `.onTouch` / `.gesture(TapGesture|LongPressGesture …)` (`parallelGesture` / `priorityGesture` included) and writes the constant `.hitTestBehavior(HitTestMode.None)`. An expression that switches on a condition (`this.x === undefined ? HitTestMode.None : HitTestMode.Default`) does not count.
|
|
743
|
+
- Fix: `HitTestMode.None` takes the node itself out of the touch test, so its own click / gesture never fires. Remove that `hitTestBehavior`, or make it switch on whether the callback is set. Never use None to disable an entry silently when its target page is not in the conversion set: keep the node clickable, write `// UNWIRED: <Android handler file:line> — <reason>` in the handler (see `empty-click-handler`) and list it in the batch report's manual follow-ups.
|
|
744
|
+
- Downgrade marker: none
|
|
745
|
+
|
|
620
746
|
### converted-page-unreachable
|
|
621
747
|
|
|
622
748
|
- Level: GATE
|
|
@@ -635,6 +761,15 @@ A downgrade marker is written above the hit line (with the colon and the basis),
|
|
|
635
761
|
- Fix: a navigation `TODO` is legitimate only when its target is a `skip` row.
|
|
636
762
|
- Downgrade marker: none
|
|
637
763
|
|
|
764
|
+
### empty-click-handler
|
|
765
|
+
|
|
766
|
+
- Level: GATE
|
|
767
|
+
- Needs: —
|
|
768
|
+
- Knowledge card: `references/cards/interaction.md`
|
|
769
|
+
- Trigger: the arrow body of `.onClick(…)`, or of `.onAction(…)` on a `TapGesture` / `LongPressGesture`, is empty or holds only comments (`TODO` included). Not reported with `// CLICK-SINK: <basis>` on the line, up to 3 lines above it, or inside the body.
|
|
770
|
+
- Fix: implement the body from the Android handler. When intercepting the tap is deliberate (a popup card area that absorbs taps so its scrim does not dismiss), write `// CLICK-SINK: <basis>` on the line or up to 3 lines above it. When the Android handler is not empty but its target (page, popup) is not in this conversion set, write `// UNWIRED: <Android handler file:line> — <reason>`: it is downgraded to CAND `unwired-handler` and must be listed in the batch report's manual follow-ups as an upstream UTG gap, never as done.
|
|
771
|
+
- Downgrade marker: `// UNWIRED: <Android file:line> — <basis>`
|
|
772
|
+
|
|
638
773
|
### entry-route-not-converted
|
|
639
774
|
|
|
640
775
|
- Level: GATE
|
|
@@ -658,10 +793,19 @@ A downgrade marker is written above the hit line (with the colon and the basis),
|
|
|
658
793
|
- Level: GATE / CAND
|
|
659
794
|
- Needs: —
|
|
660
795
|
- Knowledge card: `references/cards/interaction.md`
|
|
661
|
-
- Trigger: a node `'100%'` in width and height with no `hitTestBehavior` that the checker cannot prove, from the layer structure, leaves the taps below it alone. Nodes it can prove (taking input itself, a non-layered parent, nothing clickable below, a page root) are no longer listed. Any `hitTestBehavior` (`Block` / `Default` included) counts as the author's explicit choice and is out of scope.
|
|
796
|
+
- Trigger: a node `'100%'` in width and height (in a `Stack`/`RelativeContainer`, an axis written with the parent's own size expression counts too) with no `hitTestBehavior` that the checker cannot prove, from the layer structure, leaves the taps below it alone. Nodes it can prove (taking input itself, a non-layered parent, nothing clickable below, a page root) are no longer listed. Any `hitTestBehavior` (`Block` / `Default` included) counts as the author's explicit choice and is out of scope.
|
|
662
797
|
- Fix: GATE "conditional overlay": while shown it covers clickable elements below it. When blocking input is the intent (loading mask, modal layer) write the downgrade marker `// HIT-TEST: blocks-input: <basis>`; otherwise add `.hitTestBehavior(HitTestMode.None)`. GATE "layer whose children take input": its own area covers clickable elements below it; size or place it so it does not, or add `.hitTestBehavior(HitTestMode.Transparent)` when a tap on it should reach them too; when covering the lower layer is the intent (a full-screen sheet over its own scrim) write `// HIT-TEST: covers-below: <basis>`. CAND (a component outside the scanned files drawn by it or below it, `zIndex` reordering, no call site found): the checker cannot decide it; check it under "Interaction Reachability Evidence".
|
|
663
798
|
- Downgrade marker: `// HIT-TEST: <blocks-input|covers-below>: <basis>`
|
|
664
799
|
|
|
800
|
+
### hidden-layer-children-hit
|
|
801
|
+
|
|
802
|
+
- Level: GATE / CAND
|
|
803
|
+
- Needs: —
|
|
804
|
+
- Knowledge card: `references/cards/interaction.md`
|
|
805
|
+
- Trigger: One node has both `.opacity(<state expression>)` and a `.hitTestBehavior(<conditional>)` that switches between `HitTestMode.None` and another mode, and its subtree has interactive nodes (clicks, gestures, Scroll/List/Refresh/Swiper, …). CAND when the subtree has components outside the scanned files.
|
|
806
|
+
- Fix: `HitTestMode.None` only stops the node itself; its children still respond (enum reference: "Self not respond … but children respond"). A page or layer hidden by opacity stays in the tree, and the Scroll and buttons in its subtree keep taking taps meant for the layer below. When Compose hides it by not composing it (`if (animValue < 1) { … }`), write `if` in ArkUI and unmount it when the transition ends; when the node must stay during the transition, use `HitTestMode.BLOCK_DESCENDANTS` in the hidden state (API 20+, neither the node nor any descendant responds), or wrap the hidden state in `if` on lower versions. When the subtree cannot be tapped while hidden (for example it is also `visibility(Visibility.Hidden)`), write `// HIDDEN-LAYER: <basis>` above it (downgrades to CAND).
|
|
807
|
+
- Downgrade marker: `// HIDDEN-LAYER: <basis>`
|
|
808
|
+
|
|
665
809
|
### input-type-decimal-domain
|
|
666
810
|
|
|
667
811
|
- Level: GATE
|
|
@@ -698,6 +842,15 @@ A downgrade marker is written above the hit line (with the colon and the basis),
|
|
|
698
842
|
- Fix: self-contained dialog/panel components must be imported by the wiring sub-agent in Step 5.5 and attached to their triggers (see SKILL.md Step 5.5).
|
|
699
843
|
- Downgrade marker: none
|
|
700
844
|
|
|
845
|
+
### overlay-builder-arrow-arg
|
|
846
|
+
|
|
847
|
+
- Level: GATE / CAND
|
|
848
|
+
- Needs: —
|
|
849
|
+
- Knowledge card: `references/cards/widgets.md`
|
|
850
|
+
- Trigger: The second argument of `.bindSheet(isShow, <arrow>, …)` / `.bindContentCover(isShow, <arrow>, …)` is an arrow function literal (e.g. `() => { this.X() }`): GATE. The first argument of `.overlay(` / `.background(` / `.bindMenu(` / `.bindContextMenu(` is an arrow function: CAND.
|
|
851
|
+
- Fix: Pass a built-in attribute's builder as `this.X()` (or `this.X(arg)`) directly: the compiler only recognises this form and rewrites it into `{ builder: () => { this.X.call(this) } }`; an arrow function is passed through as a bare function, the runtime finds no `builder`, and the panel silently never shows, with no compile error. `() => { this.X() }` is only for a custom component's `@BuilderParam` argument (see builder-param-bare-method-ref); do not apply it to built-in attributes. Once a device run confirms the current SDK shows a sheet whose builder is an arrow, write `// SHEET-BUILDER-ARROW: <basis>` above the call to downgrade to CAND.
|
|
852
|
+
- Downgrade marker: `// SHEET-BUILDER-ARROW: <basis>`
|
|
853
|
+
|
|
701
854
|
### scroll-delta-as-offset
|
|
702
855
|
|
|
703
856
|
- Level: GATE / CAND
|
|
@@ -730,7 +883,7 @@ A downgrade marker is written above the hit line (with the colon and the basis),
|
|
|
730
883
|
- Level: GATE
|
|
731
884
|
- Needs: —
|
|
732
885
|
- Knowledge card: `references/cards/interaction.md`
|
|
733
|
-
- Trigger: a later, always-shown child of a `Stack`/`RelativeContainer`
|
|
886
|
+
- Trigger: a later, always-shown child of a `Stack`/`RelativeContainer` fills its parent (each axis `'100%'`, or the same size expression the parent `Stack` writes on that axis, e.g. both `.height(this.panelHeight)`), has no `hitTestBehavior`, takes no input itself or in its subtree, and an earlier sibling has a clickable element (items a `ForEach` / `LazyForEach` / `Repeat` repeats count at its position among the siblings). Any `hitTestBehavior` on the layer (`Block` / `Default` included) counts as the author's explicit choice and is not reported. Also (single-axis form): a later non-interactive child of a `Stack` that spans the parent on **only one axis** (e.g. a centered title `Text.width('100%')`), with no `hitTestBehavior` / positioning / margin, necessarily intersects an earlier clickable sibling that spans the parent on **the other axis** (e.g. a back-button row with `.height(bar height)`), so it swallows that tap.
|
|
734
887
|
- Fix: give the layer `.hitTestBehavior(HitTestMode.None)` (`HitTestMode.Transparent` when the layer must still receive events itself). The default `HitTestMode.Default` blocks the touch test of sibling nodes, so a transparent layer with no onClick still swallows every tap below it.
|
|
735
888
|
- Downgrade marker: none
|
|
736
889
|
|
|
@@ -743,6 +896,15 @@ A downgrade marker is written above the hit line (with the colon and the basis),
|
|
|
743
896
|
- Fix: `aboutToAppear` runs before `build()` (custom component lifecycle doc), when the Swiper does not exist yet and the controller has nothing to page; the initial page is decided by `.index()` and is page 0 when it is unset (FAQ "How does Swiper show the page at a given index"). Give the Swiper `.index(this.vm.selectedTabIndex)` (V1 can bind it two-way with `$$`) so state drives both the initial page and later page changes; keep `changeIndex` for user actions after build.
|
|
744
897
|
- Downgrade marker: none
|
|
745
898
|
|
|
899
|
+
### unwired-handler
|
|
900
|
+
|
|
901
|
+
- Level: CAND
|
|
902
|
+
- Needs: —
|
|
903
|
+
- Knowledge card: `references/cards/interaction.md`
|
|
904
|
+
- Trigger: an empty handler carries `// UNWIRED: <Android file:line> — <reason>`: Android implements it, but the target is not in this conversion set.
|
|
905
|
+
- Fix: no code change; each one must be listed in the batch report's manual follow-ups (an upstream UTG gap) and never counted as done. Once the target page is added to the UTG and converted, implement the body and drop the marker.
|
|
906
|
+
- Downgrade marker: none
|
|
907
|
+
|
|
746
908
|
## state — State management (V1/V2 decorators, Builder parameter passing)
|
|
747
909
|
|
|
748
910
|
### appstoragev2-connect-creator
|
|
@@ -799,6 +961,15 @@ A downgrade marker is written above the hit line (with the colon and the basis),
|
|
|
799
961
|
- Fix: CustomDialog reference: CustomDialogController is valid only as a member of a @CustomDialog / @Component struct and assigned inside a @Component, and the builder must be a @CustomDialog. In a V2 page use `this.getUIContext().getPromptAction().openCustomDialog(new ComponentContent(uiContext, wrapBuilder(fn), params), options)`, whose builder may instantiate a @ComponentV2 component; close it with closeCustomDialog(contentNode).
|
|
800
962
|
- Downgrade marker: none
|
|
801
963
|
|
|
964
|
+
### java-int-division-not-truncated
|
|
965
|
+
|
|
966
|
+
- Level: GATE
|
|
967
|
+
- Needs: `--android`
|
|
968
|
+
- Knowledge card: `references/cards/dynamics.md`
|
|
969
|
+
- Trigger: A `.ets` comment cites Android source lines (`X.java:148-161` / `X.kt:30`), those lines contain a division whose both operands are integers (`int`/`long`/`Int`/`Long` variables or integer literals, e.g. `i / 24`), and within the 25 `.ets` lines after the citation the same expression is written as plain `i / 24`, not wrapped in `Math.trunc(...)` / `Math.floor(...)`. Java/Kotlin integer division truncates; ArkTS `/` is a floating-point division, so the value changes.
|
|
970
|
+
- Fix: Write the integer division as `Math.trunc(a / b)` (it matches Java for negative operands too; `Math.floor` is fine only when they are never negative). When the Android side is already a floating-point division (one side is `float`/`double` or a literal like `.0f`) nothing is affected; when the variable is really floating-point and only shares the name, write `// INT-DIV-OK: <basis>` above the line.
|
|
971
|
+
- Downgrade marker: `// INT-DIV-OK: <basis>`
|
|
972
|
+
|
|
802
973
|
### observedv2-without-trace
|
|
803
974
|
|
|
804
975
|
- Level: GATE
|
|
@@ -817,6 +988,24 @@ A downgrade marker is written above the hit line (with the colon and the basis),
|
|
|
817
988
|
- Fix: V1 and V2 decorators mixed in the same file — the two paradigms must not be mixed in the same project
|
|
818
989
|
- Downgrade marker: none
|
|
819
990
|
|
|
991
|
+
### refresh-programmatic-reentry
|
|
992
|
+
|
|
993
|
+
- Level: GATE / CAND
|
|
994
|
+
- Needs: —
|
|
995
|
+
- Knowledge card: `references/cards/interaction.md`
|
|
996
|
+
- Trigger: `Refresh({ refreshing: <one-way bound state> })` has `.onRefreshing(…)` on its chain but no `.onStateChange(…)` to tell a user pull apart.
|
|
997
|
+
- Fix: `onRefreshing` fires when the refresh state is entered (API reference refresh.d.ts: "Called when the refresh state is entered"); code setting `refreshing` to true (first load, a request after the location resolves) enters it too, and a request sent from the callback re-enters, so concurrent requests keep re-projecting data. Android `setRefreshing(true)` does not notify the `OnRefreshListener`. Record in `.onStateChange` whether the user is dragging (`RefreshStatus.Drag` / `OverDrag` set it, `Inactive` / `Done` clear it) and forward `onRefreshing` only for a user pull. When `refreshing` is written only by this component's pull and code never sets it true, write `// REFRESH-REENTRY: <basis>` above it (downgrades to CAND).
|
|
998
|
+
- Downgrade marker: `// REFRESH-REENTRY: <basis>`
|
|
999
|
+
|
|
1000
|
+
### sheet-isshow-no-writeback
|
|
1001
|
+
|
|
1002
|
+
- Level: GATE / CAND
|
|
1003
|
+
- Needs: —
|
|
1004
|
+
- Knowledge card: `references/cards/widgets.md`
|
|
1005
|
+
- Trigger: The isShow of `.bindSheet(` / `.bindContentCover(` is not two-way bound (no `$$x` / `x!!`), and either the literal options in the third argument have no `onDisappear` / `onWillDisappear` / `onWillDismiss` / `shouldDismiss`, or the third argument is `ModalTransition.X` (an overload with no room for a close callback): GATE. When the options are not a literal (a variable or call), or a callback is written but its body has neither an assignment nor a `this.x()` call (an `onWillDismiss` / `shouldDismiss` that never calls `dismiss()` blocks the close and counts as handled): CAND. Callback bodies are checked by text only; the checker does not follow a called method to see whether it really sets the state back to false.
|
|
1006
|
+
- Fix: When the user swipes down, taps the mask or presses back, the system does not write back a one-way isShow; the state stays true, setting it to true again changes nothing, and the panel never opens a second time. Where two-way binding is possible, write `$$this.x` (V1) or `this.x!!` (V2); when isShow comes from an input such as @Param that cannot be two-way bound, add `onDisappear: () => { this.onDismiss() }` to the options to set the host state back to false. For `bindContentCover`, change a `ModalTransition.X` third argument to `{ modalTransition: ModalTransition.X, onDisappear: … }`. When something else is known to reset the state, write `// SHEET-CLOSE-OWNED: <basis>` above the call to downgrade to CAND.
|
|
1007
|
+
- Downgrade marker: `// SHEET-CLOSE-OWNED: <basis>`
|
|
1008
|
+
|
|
820
1009
|
### trace-without-observedv2
|
|
821
1010
|
|
|
822
1011
|
- Level: GATE
|
|
@@ -864,6 +1053,15 @@ A downgrade marker is written above the hit line (with the colon and the basis),
|
|
|
864
1053
|
- Fix: Give the layer its own fixed height without expandSafeArea, and change the background to .background(<color or builder>, { ignoresLayoutSafeAreaEdges: [LayoutSafeAreaEdge.TOP] }) — the background area includes the expanded safe area and the component layout is unchanged (background settings doc, BackgroundOptions); or use a percentage height on the inner layer and then expandSafeArea (percentages are exempt). On a CAND hit, state the actual value of that height expression in the report.
|
|
865
1054
|
- Downgrade marker: none
|
|
866
1055
|
|
|
1056
|
+
### opaque-layer-safe-area-mismatch
|
|
1057
|
+
|
|
1058
|
+
- Level: GATE
|
|
1059
|
+
- Needs: —
|
|
1060
|
+
- Knowledge card: `references/cards/window.md`
|
|
1061
|
+
- Trigger: In a `Stack`, an earlier filling layer extends its content or background into the bottom navigation bar (`expandSafeArea` with `SafeAreaEdge.BOTTOM` or no edges list, or `background(…, { ignoresLayoutSafeAreaEdges })` with `BOTTOM`), while a later filling opaque layer (its own chain or its custom component's root has `backgroundColor` / `background`) does not extend to BOTTOM.
|
|
1062
|
+
- Fix: With two stacked layers, an upper layer that extends only to TOP lets the bottom navigation bar show the lower layer's background (gradient, image). Extend the upper layer's background to the same edges: `.background(<colour>, { ignoresLayoutSafeAreaEdges: [LayoutSafeAreaEdge.TOP, LayoutSafeAreaEdge.BOTTOM] })`, keeping the content inside the safe area. When the bar is meant to show the layer below, make the upper background transparent.
|
|
1063
|
+
- Downgrade marker: none
|
|
1064
|
+
|
|
867
1065
|
### safe-area-in-clipping-ancestor
|
|
868
1066
|
|
|
869
1067
|
- Level: GATE
|