Skip to content

Add native-UI element repository and flow step debugger#220

Merged
JE-Chen merged 1 commit into
devfrom
feat/native-batch
Jun 18, 2026
Merged

Add native-UI element repository and flow step debugger#220
JE-Chen merged 1 commit into
devfrom
feat/native-batch

Conversation

@JE-Chen

@JE-Chen JE-Chen commented Jun 18, 2026

Copy link
Copy Markdown
Member

Round-2 backlog, batch 2 — two pure-stdlib authoring-time tools, each wired through all five layers (facade, AC_*, MCP, Script Builder) with headless tests + EN/Zh v12 docs + README sections.

Features

  • Element repository (utils/element_repository) — ElementRepository: JSON-backed object repository mapping a friendly key to accessibility filters (name/role/app); save/get/remove/keys/resolve/find_info/click. Reuse repo.click("login.submit") instead of repeating locators; fix a UI change in one place. AC_element_save/find/click/remove/list + ac_element_*.
  • Flow step debugger (utils/flow_debugger) — FlowDebugger (breakpoints, step/continue_/run_to_end, live variables(), reset) reusing one executor so script variables persist across steps; and stateless trace_actions(actions, dry_run=...) returning a per-step {index, command, result} trace. AC_debug_trace + ac_debug_trace.

Verification

  • test/unit_test/headless/test_native_batch.py — 10 tests pass (CRUD+persistence, resolve/click via injected backend, step/breakpoint/reset, trace dry-run/real, full wiring).
  • ruff clean; radon no CC≥C; bandit clean.
  • import je_auto_control stays PySide6-free (both new packages are lazy about the executor/accessibility backends).

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 77 complexity · 0 duplication

Metric Results
Complexity 77
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@JE-Chen JE-Chen merged commit 7976029 into dev Jun 18, 2026
16 checks passed
@JE-Chen JE-Chen deleted the feat/native-batch branch June 18, 2026 23:58
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant