Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StatsWidget: (Idea) allow developer to show stats widgets from console #87

Open
ibgreen opened this issue Aug 22, 2019 · 2 comments
Open

Comments

@ibgreen
Copy link
Collaborator

ibgreen commented Aug 22, 2019

For discussion:

In probe we already store log settings in local storage.

We could also have StatsWidgets hidden by default and offer a console command to enable them.

> probe.stats = true // or
> probe.showStats()

This way, devs could easily turn on stats after a new release or when they think they see regressions.

@tsherif
Copy link
Contributor

tsherif commented Aug 23, 2019

I think this could be really cool. If we had a standard way that stats indicated how they should be displayed (e.g. the typeHint property I suggested) and a standard way to register stats globally, then it would be easy to turn on a display like this.

@ibgreen
Copy link
Collaborator Author

ibgreen commented Aug 23, 2019

As an alternative to fully automated Stats object detection, we could also require apps to still add StatsWidgets to their UI for this to work. Those StatsWidgets would however not show up automatically.

They could then be displayed by activating them in the console as described above.

Presumably we would also provide a programmatic interface ({display: true}) for apps that actually always want them displayed.

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

No branches or pull requests

2 participants