Enhancements to Create Metric Screen
diego-escobedo opened this issue · 3 comments
diego-escobedo commented
Currently, the create a metric screen looks like this:
There's a few problems with it:
- there's too much going on. Counter Gauge and Custom are all together, even though those aren't the 3 categories of event we have. The templates take up too much space. The metric representing a cost is too prominent considering not too many people use it.
- There's no way to preview exactly what the events you're choosing for this metric are.
- It's unclear what the filters really mean/do.
To solve this, we want too enhance the metrics screen by doing the following:
- Make the 3 main types be Counter, Gauge, and Rate
- Move Custom to a toggle in the top right
- have filters explained better (is in vs is not in are for text fields and the rest are for numeric fields). Isin vs isnotin should be a multi-selector like in add features
- implement an endpoint to get all event names + properties in this organization's events, so we can show them as a dropdown option in these options
diego-escobedo commented
Took care of 1. in #593. Also updated some of the fields in there + clarified how gauge pricing + proration works. @glamboyosa working on 3.
diego-escobedo commented
Updated Issue description (leaving old one up for posterity): (Also, axing #2 on this)
Currently, the create a metric screen looks like this:
There's no way to preview exactly what the events you're choosing for this metric are, which is a bit of a problem.
To solve this, we want too enhance the metrics screen by doing the following:
- Implement an endpoint in the backend for displaying the possible events (should match event_name, property_name if applicable, and filters) + show them, maybe a limit of 10 or something doesn't have to be anything crazy
- implement an endpoint to get all event names + properties in this organization's events, so we can show them as a dropdown option in these options
diego-escobedo commented
Resolves by @ben-jamming-reilly in #730