Git Product home page Git Product logo

Comments (5)

eduardoboucas avatar eduardoboucas commented on May 24, 2024

This is a tricky one, as the dashboard can't decrypt any URLs. Something similar happens with the wptUrl property. When that's encrypted, we can't display the filmstrip view (see here). I think this just needs to be acknowledged and documented: when using encrypted URLs, links to PageSpeed can't work.

from speedtracker.

 avatar commented on May 24, 2024

I absolutely adore the feature, and could see envelope encryption being used to deliver the secret to the UI if there's ever an admin section.

Until then, could you point me to any docs you'd like updated, @eduardoboucas, and offer me your thoughts on running a RegExp in the UI to look for TLD before offering activatible targets (Idea here is to keep everything discoverable, but obviously suppressed for security, and hinting to the user why or why not they can/can't take action)?

This might be an opportune time to consider a backwards compatible way to work in wpt_url Re: naming conventions in #58.

from speedtracker.

eduardoboucas avatar eduardoboucas commented on May 24, 2024

At the moment, we're simply hiding the filmstrip view altogether when the URL is encrypted (we don't use a RegExp, just check to see whether the string starts with http). The only place this is documented is in the default profile. Perhaps it should be documented somewhere in the documentation page? I feel that page needs some TLC anyway.

As for hinting the user why they can't take action, not sure what's the best way to do that. Perhaps in the label that sits below the chart where we explain that they can click on a data point to view the page, we can explain that they COULD do that if their URL wasn't encrypted?

Re. changing wptUrl to wpt_url, I'm all for consistency, but I'd really like to avoid changing things here. Even if we keep accepting wptUrl for backwards-compatibility (until when?), it still means a potential merge conflict when people update their dashboards by just issuing a PR from the base to their fork via GitHub UI. For example, at some point I wanted to change the default SpeedIndex budget but ended up reverting for this reason.

from speedtracker.

 avatar commented on May 24, 2024

Will close after digesting your thoughts, @eduardoboucas. I have an engagement coming up later this week I'm prepping for, but I won't let this stagnate too long. Cheers.

from speedtracker.

 avatar commented on May 24, 2024

At the moment, we're simply hiding the filmstrip view altogether when the URL is encrypted [...].

You sure about that? Just about every site I'm encrypting has a filmstrip view, e.g.

http://speed.habd.as/habd_as-cable/?period=month (shows filmstrip)
https://github.com/jhabdas/speedtracker/blob/master/_profiles/habd_as-cable.html#L31 (shows profile is encrypted)

Let me know and I'll open another issue.

As for hinting the user why they can't take action, not sure what's the best way to do that.

Tooltip. Simply replace the text and hint where the existing text lives when URL is encrypted.

Re. changing wptUrl to wpt_url, I'm all for consistency, but I'd really like to avoid changing things here

Fair enough. It's really just a matter of rebasing properly, which I understand isn't the easiest thing for people to wrap their heads around.

from speedtracker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.