Tracking interactions

Summary:
Set up basic primitives for user interaction tracking. I hope the docs and unit tests in this diff are self explanatory :)

In upcoming diffs:
* Wire up to scuba events
* Annotate all important parts of Flipper Chrome
* Investigate if we can wrap important interactions of ANT by default

Reviewed By: jknoxville

Differential Revision: D25120234

fbshipit-source-id: 9849d565d7be27e498cc2b4db33e7d6e6938ee06
This commit is contained in:
Michel Weststrate
2020-12-03 04:13:07 -08:00
committed by Facebook GitHub Bot
parent 54e0d58713
commit b885ff3b9e
8 changed files with 571 additions and 4 deletions

View File

@@ -365,6 +365,20 @@ See `View > Flipper Style Guide` inside the Flipper application for more details
An element that can be used to provide a New User eXperience: Hints that give a one time introduction to new features to the current user.
See `View > Flipper Style Guide` inside the Flipper application for more details.
### Tracked
An element that can be used to track user interactions.
See `View > Flipper Style Guide` inside the Flipper application for more details.
### TrackingScope
Defines the location of underlying Tracked elements more precisely.
See `View > Flipper Style Guide` inside the Flipper application for more details.
### withTrackingScope
Higher order component that wraps a component automatically in a [`TrackingScope`](#TrackingScope) using the component name as `scope`.
### theme object
Provides a standard set of colors and spacings, used by the Flipper style guide.