Skip to content

fix(snapshot): Use string values for all tags#1199

Merged
runningcode merged 3 commits into
mainfrom
no/fix-show-background-string-tag
May 18, 2026
Merged

fix(snapshot): Use string values for all tags#1199
runningcode merged 3 commits into
mainfrom
no/fix-show-background-string-tag

Conversation

@runningcode
Copy link
Copy Markdown
Contributor

Summary

  • Changed the tags map type from Map<String, Any> to Map<String, String> in the generated snapshot sidecar
  • Numeric tags (font_scale, api_level, width_dp, height_dp) now use .toString()
  • Boolean tags (show_system_ui, show_background) now use "true" instead of true

Fixes EME-1156

🤖 Generated with Claude Code

Tags should use string values instead of raw types so they are
serialized correctly in the sidecar JSON. Changed the map type
from Map<String, Any> to Map<String, String> and converted
numeric and boolean values with .toString().

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 18, 2026

EME-1156

runningcode and others added 2 commits May 18, 2026 11:50
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown

@cameroncooke cameroncooke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we just remove tags as they aren't supported by Snapshots to align with iOS?

@runningcode
Copy link
Copy Markdown
Contributor Author

They are implemented and validated as strings on the backend. The issue is that we are sending up boolean, int, etc.

@runningcode runningcode merged commit 882f8df into main May 18, 2026
20 of 21 checks passed
@runningcode runningcode deleted the no/fix-show-background-string-tag branch May 18, 2026 16:07
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.

3 participants