Dropsource / monarch

Monarch is a tool for building Flutter widgets in isolation. It makes it easy to build, test and debug complex UIs.
https://monarchapp.io
MIT License
433 stars 22 forks source link

Fix user selection tracking #64

Closed fertrig closed 1 year ago

fertrig commented 1 year ago

A bug was always sending 0s for metrics like story count and locale count. It was also sending 1s for metrics like selected devices, themes, etc.

The bug was in the controller. The code sending the track request was using the first state object which only had the initialized values. This PR fixes the bug and moves the gathering of all the user selections data to the Preview API. It makes more sense there since the Preview API maintains the state of the user selections.

This PR also improves the tracking of user selections changes like text scale factor and visual debug flags. It also includes new versions of the monarch_grpc and monarch_utils packages.