Skip to content

Conversation

@d4rken
Copy link
Member

@d4rken d4rken commented Dec 15, 2025

Refactor all ROM specs to use the new findNodeByLabel extension function
which searches by label priority rather than tree order. This ensures the
correct button is found when multiple labels match (e.g., Polish localization
where "Pamięć cache" label appears before "Wyczyść pamięć podręczną" button).

Changes:

  • Add findNodeByLabel extension to StepperExtensions for label-priority search
  • Update 17 ROM specs to use label-priority search pattern
  • Remove reliance on tree-order node matching

Closes #2046

…OneUI

Changed label matching to try candidates in priority order instead of
finding any matching node first. This ensures the correct "Clear Cache"
button is found even when other UI elements (like "Cache Memory" labels)
match earlier in the node tree.

Also simplified text matching extension functions using idiomatic Kotlin
and added unit tests for coverage.

Fixes #2046
Refactor all ROM specs to use the new `findNodeByLabel` extension function
which searches by label priority rather than tree order. This ensures the
correct button is found when multiple labels match (e.g., Polish localization
where "Pamięć cache" label appears before "Wyczyść pamięć podręczną" button).

Changes:
- Add `findNodeByLabel` extension to StepperExtensions for label-priority search
- Update 17 ROM specs to use label-priority search pattern
- Remove reliance on tree-order node matching

Closes #2046
Update `.claude/settings.json` to whitelist `git add`, `git log`, `git commit`, and `git show` commands for Bash execution.
Add unit tests for `StepContext.findNodeByLabel` to ensure correct handling of label search lists.

Validates that the function respects the priority order of provided labels (matching specific labels before generic fallbacks) and correctly applies predicate filters.

Changes:
- Add `createStepContextWithTree` helper
- Add tests for priority matching, fallback logic, predicate filtering, and empty inputs
@d4rken d4rken added bug Something isn't working as expected c: AppCleaner Automation Accessibility service related (ACS) labels Dec 15, 2025
@d4rken d4rken merged commit d39f97c into main Dec 15, 2025
13 checks passed
@d4rken d4rken deleted the appcleaner-label-priority-2046 branch December 15, 2025 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Automation Accessibility service related (ACS) bug Something isn't working as expected c: AppCleaner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

no automatic cache clearing android 16 s25 fe

2 participants