-
Notifications
You must be signed in to change notification settings - Fork 291
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
Hover to show event handlers #333
Comments
Hi @argyleink, |
nice clever gist there, but i'm not sure we can guarantee our script is first. which, lucky for us, we've got the background script yep, which can get the data from devtools. the only reason that's not 100% the best choice, is that it would be the first feature that requires devtools and ultimately makes visbug not just a simple portable web component, which is ok. you gonna attack this one?! follow what the metatips are doing and you should be good to go. metatip flow is like this:
hm, seems like hard parts will be these:
|
I was able to load that mentioned gist script before any script included on the page. by mentioning in content script setting in the
ref: https://developer.chrome.com/extensions/content_scripts |
rad work! side effects unknown, but we could test. looks like you're building the extension and loading it and trying it around the web, awesome. you know, dropping the event information into the a11y inspector looks like a fine idea. and your idea about checkboxes being in there, i'd love it if those tooltips were reactive and interactive, but that's a longer term goal. feel like it wouldn't take much though in your current workflow to add that? unsure if designers need to control them, but front end might like that a ton. 2 things i'm unsure/concerned about:
curious too what felt hacky about a devtools message passing architecture? again, this is very exciting work, looks like you're having fun! final question(s): having been the first user and tried it out a few places, what are your thoughts!? useful? is it creepy how many listeners are on things? can we show a count next to the listeners name? |
I was thinking about it. We can provide a control to the user of enable/disable the visbug.By defining a popup page and putting two buttons in there. one for enable/disable and second one is to open the visbug in the active tab. by saving the selected option using chrome storage apis. we can include /exclude the main content of the
yes. regular inspector tip is good for that.
As stated on the page https://developer.chrome.com/extensions/devtools :-
So what is the prupose of devtools apis are accessible only from devtools page? It would be easier to have these apis accessed from background scripts.
yes it makes sense just as inspect feature. Sometimes it feels creepy sometimes its not. yes we can show counts of listener |
first off, great conversation and excellent research and insights so far, this is really nice!
yeah, could put a checkbox behind an options flyout. the ux has a few bummers though:
seems like it'll be a decent amount of work making the above interaction smooth, but maybe not? thoughts?
I think we could drop the event information into the normal tooltip pretty quick and put off any new ui work until later (when we've got more data and we're more informed). Maybe for now follow the "local modifications" header pattern and make a new section called "Events" if there are events to report?
I'm still not 100% sold the devtools protocol isn't the way to go. could be the way to best ux:
this means no storage bool, no potential side effects, no scripts on every page, etc. only work it means we need to do is make sure we're getting the events for the tab we're launched in (which certainly isn't broken). thoughts? it feels like devtools has already captured the events, we should ask them for it? wonder if we get more data?
can you tell me a little about some of the event lists you've seen that are super large? like elements with lots of listeners? i'm curious what the high end of our dataset can be so I can think about how to handle it's presentation tier. too bad we can't use chrome's handy "getEventListeners()" feature they have in the console! |
https://twitter.com/_baxuz/status/1088066681656750081?s=20
the tooltips are ready to go, just need the data and a template made
The text was updated successfully, but these errors were encountered: