Fix AI widget rendering and automate visual quality review - #47
Merged
Merged
Conversation
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.
AI-generated widgets could pass runtime validation while showing invisible light-mode text, clipped rings or an incorrectly narrow iPad preview. This fixes those rendering issues and adds a repeatable way to inspect generated widgets before release.
Validation: DeepSeek flash baseline and improved runs each produced 16/16 renderable samples. The improved samples passed expected-text/component checks; all 32 improved screenshots were manually reviewed. A separate 16-case offline replay passed. This is bounded smoke coverage, not a universal visual-quality score. Before/replay/after screenshots and reports remain local under
__Release/ai-quality/2026-09-22/.Local validation:
./Scripts/release-readiness.shpassed: 29 editor tests, 164 macOS tests, 166 iPhone simulator tests; app builds passed../Scripts/ipad-icloud-tests.shpassed: 166 iPad Pro simulator tests.AI_QUALITY_REPLAY=... AI_QUALITY_OUTPUT=... ./Scripts/ai-quality.shgit diff --checkpassed. The normal suites skipped 7 macOS / 6 iOS tests requiring opt-in live services or signed iCloud.Security/compatibility: no new permissions, dependencies or credential storage. Live tests are opt-in and use synthetic offline prompts; no user widgets are sent. Credentials and generated artifacts are excluded from the PR. Square-frame behavior is additive; existing width/height forms are preserved. Physical WidgetKit/Live Activity, signed iCloud containers and Apple PCC calls were not tested in this round. No App Store submission is performed.