Skip to content

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

Open
icebear0828 wants to merge 1 commit intogoogle-labs-code:mainfrom
icebear0828:fix/outputcomponents-projection-find
Open

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

Conversation

@icebear0828
Copy link
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)

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).
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

1 participant