Repository navigation
Conversation
Co-Authored-By: GPT-6.1 Sol <noreply@openai.com>
Contributor
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — This is a narrowly scoped server bug fix that corrects the iOS simulator Notes:
You can add or adjust custom eligibility rules. Learn more. |
Contributor
This branch has not been deployed
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.
Problem
When an iOS simulator uses the smallest Dynamic Type category,
extra-small, the Device panel reports its text size as Large. The reader matches theextrasubstring before reaching its explicitextra-smallcheck.Change
Check the small categories before the broader
extramatch. Add a regression test throughreadDeviceDetailusingextra-small\nas the simulator command output.Scope and approval
This is a very small, focused fix for an obvious bug under CONTRIBUTING.md's exception. The existing reader already lists
extra-smallas a small category, but its earlier branch prevents that mapping. No prior issue or discussion is linked.Verification
With the regression test added to the unchanged base,
vp test run src/device/DeviceActions.test.ts -t 'reads the smallest iOS text size as small' --maxWorkers=1fails with expectedsmall, receivedlarge.vp test run src/device/DeviceActions.test.ts --maxWorkers=1passes all 18 tests on the branch, run fromapps/server.node node_modules/typescript/bin/tsc --noEmit -p apps/server/tsconfig.jsonpasses from the repository root.vp fmt --check apps/server/src/device/DeviceActions.ts apps/server/src/device/DeviceActions.test.tspasses.vp lint apps/server/src/device/DeviceActions.ts apps/server/src/device/DeviceActions.test.tspasses.UI verification on an iPhone 17 Pro simulator running iOS 26.5. Set
content_size extra-smallwithsimctl; the real command reads backextra-Small. The Device panel on main checks Large. The candidate checks Small against the same simulator and unchanged setting. Restored the original text size and cleaned up both dev servers and the simulator.Not checked:
Prior PRs: No earlier PR for this bug was found. #21835 changes the device-host test helper without changing this mapping, and its only overlap with this patch is the
makeReadyhelper, so either merge order applies cleanly. The merged #20182 and #21996 cover Android rotation and tracing, respectively. This fix reuses no changes from those PRs.Production fix, tests, PR description and images written with GPT-6.1 Sol in T3 Code Nightly.
🤖 Generated with GPT-6.1 Sol in T3 Code Nightly