Repository navigation
TalkBack, 10 of 10: Announce connection test feedback - #6168
eliotcougar wants to merge 15 commits into
Conversation
Keep bottom-bar accessibility semantics tied to the stable connection state while visual test progress continues to update. Emit assertive, locale-aware announcements only for test start and terminal current or bulk results, with localized spoken delay units and the native connection-test action intact.
Use millisekundu after the connection succeeded in phrase for one millisecond and other counts ending in one. The connection-test plural is already separate from standalone server-row delay units, whose nominative remains unchanged. Play Store debug resource compilation and APK assembly pass. This changes no connection-test progress or result lifetime behavior.
|
I tested this PR with TalkBack. The connection-test result itself is announced correctly when the test finishes, and there is no problem with that announcement. The issue is that the result does not remain available on the “Check status” button after the test completes. For example, if the test reports “Connected” and I hear it at that moment, everything is fine. However, if I do not hear the announcement, there is no result left on the button for TalkBack to read later. I have to run the connection test again to get the result announced again. So the problem is not that the button cannot read its status when it has one. The problem is that the test result is not retained as persistent accessible information on the button after the test finishes. Could you please check whether the latest connection-test result can remain exposed through the appropriate accessibility semantics/content of the button after the test completes, while keeping the existing one-time announcement? I did not observe any other issue with the connection-test announcement. |
|
The testing progress and result was hidden from TalkBack to prevent duplicate announcements (from the status bar and the live region at the same time). I guess, we can reset the hidden state after it was spoken once. |
Expose the localized current-test result as merged row text after its short-lived assertive live-region node retires. Keep the connection label stable and hide result text during another test, bulk progress, or disconnection. Reuse the full delay formatter and app-locale spans without changing visual text or native actions. Cover success and error results, repeated event IDs, and retained state in JVM tests. Add an Android accessibility-tree regression for live-region visibility, repeated results, and the native connection-check action.
Adopt the overlapping terminology corrections from PR 2dust#6169 and carry them into branch-only plural and accessibility resources. This keeps later merge resolution from restoring stale Bakhtiari wording.
Keep feature-specific additions away from the common translated lines changed by neighboring accessibility PRs. Preserve every resource name, value and placeholder in the existing catalog.
Reuse Part 1's live-region primitive and queue start/result publication only while the screen is resumed. Keep terminal results readable after transient feedback retires, without direct announcements or focus changes. Correlate current and bulk IPC replies by request ID, distinguish notification cancellation from completion, and acknowledge absent or cancelled native tests. Own native probe cancellation across replacement, stop, and reload so late replies cannot become fresh feedback. Replace the permanent Android fixture and copy-only helper tests with focused request/queue regressions. Validation: 64 JVM tests, Play Store debug compilation/assembly, TalkBack-preserving external emulator checks, and 20 clean pairwise merge simulations. Actual JNI stop/reload races across all service modes were not run.
Build announcements on upstream request identities, acknowledged delivery, worker cancellation, and batched result flushing. Publish only accepted starts and final results; keep progress inert and retain the completed result for later status-row navigation. Remove duplicated lifecycle code and request-policy tests already merged upstream, without changing the service protocol.
Preserve the upstream start-button rotation while retaining ordered assertive test announcements, inert progress and the last result after announcement. Keep current request-ID cancellation behavior and migrate the feedback regression tests to JUnit Platform. Validation: 101 JVM tests, Kotlin compilation and PlaystoreDebug assembly passed. API 37 emulator probe with TalkBack enabled checked same-frame start/result order, retained results, stale replies, cancellation, paused delivery and bulk-progress suppression. Real-network probes and physical-device validation were not run.
Preserve the current upstream main-screen group bar, subscription-info overlay, response-header parsing and dependency/native updates. Retain assertive start/result live regions, inert changing test progress, request correlation and the settled status result. Keep the shared live-region helper aligned with part 1. Add connection-test completion, connected-state and plural delay wording for the newly supported Azerbaijani locale. Validation: full Play Store JVM tests, Kotlin compilation and x86_64 debug assembly pass. Device test coverage is recorded separately; no runtime conclusion is inferred from assembly.
Place this feature's translated resources near their owning screens and align shared action resources across the TalkBack set. Every resource entry, value, attribute, placeholder and plural item is unchanged; catalogs remain in the existing strings.xml files. This avoids same-location insert conflicts, including the newly supported Azerbaijani locale and Bakhtiari catalog. Exact-entry XML preservation, duplicate-key and whitespace checks pass. Full JVM/Kotlin/APK checks passed before this content-neutral catalog relocation; the final committed-tree build checks follow separately.
Integrate the published fix/accessibility-connection-tests head df5a48c after its upstream compatibility review. Preserve the focused PR history and its latest fixes.
Preserve the redesigned track and its connection test action. Track intermediate and terminal replies by request ID so a stale reply cannot replace a newer test. Announce only the final reply, even when the IP lookup returns no information.
Keep endpoint lookup independent of result publication so the Xray TUN lookup change merges without changing the accessibility protocol.
Separate connection-test announcements from continuously changing visual status in part 10 of the TalkBack series.
The live-region helper is byte-identical to Parts 1 and 9. It retains locale spans, a stable hidden idle node, frame-separated publication, and publication acknowledgement. Each update is held briefly after acknowledgement; this does not claim to detect when TalkBack finishes speaking. No direct speech announcements, focus requests, native-role suppression, or interactive Snackbar/Toast nodes are added.
Upstream's independent current/bulk request IDs remain authoritative: stale completion and cancellation replies cannot retire newer requests. Cancellation does not announce successful completion. No native API or persisted format changes are introduced by this PR.
Synced by merging upstream 2.3.15 (
57907cf354) without rewriting history. Review preserved the upstream DNS/WireGuard/Hysteria/native changes and subscription infinity/RTL rendering. Shared bottom-bar and ViewModel merge simulations with Parts 1, 8, and 9 are conflict-free and order-independent; Part 8's service action label survives alongside test-status suppression.Validation at
df5a48c68:git diff --checkpassed.Not run: device/emulator TalkBack, semantics-tree/event inspection, speech timing, actual blocking JNI cancellation or VPN/proxy/root stop/reload races, background/recreation flows, or the complete input/theme/locale/layout matrix on this synced revision. No ADB target is available and an existing QEMU process has unresolved ownership. Build and JVM checks do not establish runtime accessibility behavior.