Closed alanning closed 9 years ago
Adrian,
Instead, I'm automatically hiding MongoInspector on mobile devices (resolution <768px) using CSS. What do you think of this solution?
I suggested this on crater but I think it would be nice to click a collection and see the data in an on-screen overlay. If you think that's feasible then keeping the display for mobile would be good so people could still use it on mobile and potentially debug data-related issues.
Yeah the visualization of the collections is the goal, but I'm still thinking through the options to find the right way to do it so it could be evolved smoothly. Hope to have it up by next weekend.
Regarding mobile, since people generally develop and debug on their desktops, I thought to just focus around that environment. I don't think many people will be debugging their collections on their phone - but would love to hear a second opinion.
You may want to check out velocity's html-reporter for how we did an overlay. One issue we ran into was css collisions with the host app. Oli pretty much took care of that by namespacing.
Mobile is the way the world is going so if you're gonna have an overlay anyways, I'd say keep it around for mobile too. More complex applications may send different data depending on device type. Click title to hide for those who don't wanna see it without removing the package.
But it really depends on how much time you have to spend on it. Mobile support would be nice (my first view of the demo was on mobile so didn't really have a great experience when tapping didn't work). But its a nice-to-have not a must-have.
Adrian, thanks for sharing. I just namespaced everything by hand, I figured that would be easier because its a small project.
I just pushed up version 2, which lets you browse documents. The design is desktop only, but it could be adapted to mobile. I'll wait to see if there are any more requests for it first. Great point on mobile devices sending different data though.
Anyway, check it out at http://mongoinspector.meteor.com, would love to hear your thoughts. Also have something else in beta, http://sessioninspector.meteor.com/ :)
Tapping the overlay title seems to have no effect (does not hide the inspector).