Repository navigation
fix: restore main CI and startup a11y flags after button guidance - #73
Merged
Merged
Conversation
370efaf committed a Kotlin Gradle Plugin daemon session file under android/.kotlin/. Remove it and ignore the directory.
Prettier and dart format output only, no behavior change. These files made the agent-mvp lint step and the Flutter format check fail.
introduceHome() loads the accessibility state at startup while initAccessibility() is still loading it. The overtaken startup load returned a stale copy and mirrored it onto <html>, and the newer state was never applied, so the bold text, contrast and motion flags were lost at startup. An overtaken load now settles with the newest load's result.
initialGuidance() read the saved browser preference even when the native preference was configured and wins anyway. Read it only when the native side reports configured: false; the returned values are unchanged.
- Button guidance: leave the home introduction, which plays on load and has its own tests, out of the exact spoken-text checks. - Native voice: the dock no longer has finish or type-instead buttons and recognition submits automatically, so simulate the recognizer ending by itself and leave through the cancel button. - Benefits suggestion: at 393x915 the home fits only two suggestions in phone mode, so the test passed only when its click beat the re-measure. Use a 393x1000 viewport.
On CI the bill flow test timed out clicking "Open template: Water bills". At 200% text in English, DejaVu Sans makes the fixed chat header and composer dock, which gained a "More suggestions" chip in c73afd5, tall enough to cover the link wherever it scrolls. The narrower macOS fonts leave room, so the test passed locally. The 200% checks in this test only cover reflow, so reset the text size before the navigation part. Reproduced and verified locally by forcing Verdana, whose metrics are close to DejaVu Sans.
3 of 6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改了什麼、為什麼
CI on
mainhas failed since254656c(run 42432392291).c73afd5(button guidance) and370efafwere pushed tomainwithout the self-checks. CI stops at the format steps: Prettier flags 4 files infrontend/agent-mvpanddart formatflags 1 file. With formatting fixed, the steps CI never reached also fail: 1 unit test and 7 e2e tests infrontend/agent-mvp, plus 1 more e2e test that fails only with CI's fonts. One of them is a real accessibility regression.dart format(1 file)c73afd5was pushed without running the formatters606ce62)android/.kotlin/sessions/*.salive370efafcommitted a Kotlin daemon session fileandroid/.kotlin/(7c33236)app.e2e.ts:929introduceHome()loadsa11y_stateat startup whileinitAccessibility()is still loading it. The overtaken startup load returned a stale copy and mirrored it onto<html>, so bold text, high contrast and reduced motion were lost at startupa4bba66)guidance-preference.test.ts(native opt-out)initialGuidance()read the saved browser preference even when the native preference is configured and wins anywaylocalStorageonly when the native side reportsconfigured: false; the returned values are unchanged (34228b6)button-guidance×386d7406)native-voice×2c73afd5removed the voice dock's finish and type-instead buttons and made recognition submit automatically; the tests still used the old flow86d7406)townpass.e2e.ts:74(flaky)86d7406)app.e2e.ts:165(CI only)c73afd5, cover the "Open template" link wherever it scrolls. The narrower macOS fonts leave roomf781171)The tests now follow the current
c73afd5behaviour (auto-submit, no finish button). Apart from the twofix(a11y)commits, no product behaviour changes. Follow-ups in separate PRs: align the voice docs and hint with auto-submit, list usable home suggestions first, and keep conversation content reachable at 200% text when the fixed header and composer dock grow.如何驗證
Local run on
86d7406(macOS), same commands as CI:fvm dart format --output=none --set-exit-if-changed lib test(0 changed),fvm flutter analyze(no issues),fvm flutter test(219 passed)frontend/agent-mvp:pnpm lint,pnpm format:checkandpnpm buildpass;pnpm test585 passed;pnpm test:e2e73 passedtools/townpass:pnpm typecheckpasses;pnpm test114 passedfrontend:pnpm lint(0 errors; 35 existing warnings, none in changed files),pnpm format:checkandpnpm buildpass;pnpm test17 passedtests/accessibility.test.tsfails against the previousa11y.ts86d7406After
f781171(test-only), infrontend/agent-mvp:pnpm lint,pnpm format:checkandpnpm buildpass;pnpm test585 passed;pnpm test:e2e73 passed. With Verdana forced (metrics close to DejaVu Sans),app.e2e.ts:165times out on the same click without the fix and passes 6 of 6 runs with it.Checklist
fvm flutter analyze/fvm flutter test;前端:pnpm lint/pnpm test)相關 issue(若有)
None.