This PR is not done but is ready for an initial review.
_evolutionmetrics to any report. (not documented)
compileAngularComponents(). The method uses the scope for an element, but in some cases
compileAngularComponents()is called again on the same element (like when reloading a widget). This means that the scope is re-used when compiling a widget again, which in turn means its not possible to destroy angular components/directives. In the dashboard I forced the creation of a new scope, not sure if it's the best way to fix.
Report:: getMetricDocumentationForReport()to access metric documentation for a report. Don't need it if an API.getProcessedReport, but that doesn't show the columns from
compileAngularComponents()call to widget preview.
Note: if you'd rather the widget be rendered server side, let me know, just trying to use angular for all new work.
isReusableflag needed? (the current/desired behavior is to allow adding the same widget multiple times for all widgets)
is the isReusable flag needed?
It's used to display the 'Metric' widget w/ black text instead of grey text. Not required, I guess, but I think it's slightly better UX.
sometimes the metric is shown empty for some (instead of zero)
Do you remember which metric? Not currently able to reproduce.
some of the metadata is not displayed yet (percentage sign for rate metrics, currency for revenue metrics),
Some of this is hard to fix. Processed metrics (like percents) I could display via
format_metrics=1, but normal metrics like
revenue are not currently formatted in API output. I will add a fix in another PR.