Skip to content

fix: update generate_screen_from_text projection index from 0 to 1#145

Merged
davideast merged 1 commit intogoogle-labs-code:mainfrom
icebear0828:fix/outputcomponents-projection-find
Mar 29, 2026
Merged

fix: update generate_screen_from_text projection index from 0 to 1#145
davideast merged 1 commit intogoogle-labs-code:mainfrom
icebear0828:fix/outputcomponents-projection-find

Conversation

@icebear0828
Copy link
Copy Markdown
Contributor

Fixes #143

Summary

  • generate_screen_from_text now returns designSystem at outputComponents[0], pushing design to [1]
  • edit_screens is unaffected — design remains at [0]
  • Fix: change generate_screen_from_text projection index from 0 to 1 in domain-map.json
  • Update unit test mocks to match the current API response structure

Test plan

  • All 77 tests pass (npm run test)
  • Script tests pass (npm run test:scripts)
  • Smoke tests pass (npm run test:smoke)
  • Formatted with Prettier
  • E2E: 3/3 rounds passed (16 checks each)

@davideast davideast force-pushed the fix/outputcomponents-projection-find branch from df6fc88 to 4748be5 Compare March 29, 2026 21:27
Fixes google-labs-code#143

The Stitch API now returns designSystem at outputComponents[0] for
generate_screen_from_text, pushing the design component to index 1.
edit_screens is unaffected (design remains at index 0).
@davideast davideast force-pushed the fix/outputcomponents-projection-find branch from 4748be5 to d78a54a Compare March 29, 2026 21:29
@davideast davideast merged commit 6a2a5e3 into google-labs-code:main Mar 29, 2026
4 of 5 checks passed
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.

generate() and edit() crash: outputComponents[0] is now designSystem, not screen data

2 participants