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

Add dependency graph widget (via Stratopan) GH #1168 #1171

Merged
merged 2 commits into from May 12, 2014
Merged

Add dependency graph widget (via Stratopan) GH #1168 #1171

merged 2 commits into from May 12, 2014

Conversation

thaljef
Copy link
Contributor

@thaljef thaljef commented May 10, 2014

This adds a "Dependency graph" link beneath the dependency list (but only if the release has dependencies). The graph itself appears in a modal that uses an iframe to load the content from Stratopan. This required adding boostrap-modal.js to the JS kit.

These size of these graphs can vary greatly, so it was hard to come up with an interface that would accommodate most of them without being too obtrusive. There is a link to open the graph full-screen in a separate window, which is handy for large graphs.

Personally, I like the modal design because it doesn't take you away from the MetaCPAN site, and the iframe loads in the background so it (usually) feels very responsive. If you want to see something different, please let me know.

It looks right to me on latest Firefox, Chrome, and Safari. I haven't tested on older versions of those nor any version of IE or Opera.

On the Stratopan side, I have set up a separate application to serve this stuff (at http://widgets.stratopan.com). Currently there are 8 workers supporting it. If necessary, I can add more and/or rewrite it to be non-blocking.

I've simplifed the widget so you don't need to
pass height and width dimensions any more. Just
setting the size of the iframe should be sufficient.
@thaljef
Copy link
Contributor Author

thaljef commented May 12, 2014

I have added some caching on the Stratopan side. It should significantly reduce the load time in most cases. Like this beast: https://widgets.stratopan.com/wheel?q=Task::Dist::Zilla

And there is some documentation here: https://stratopan.com/widgets

@oalders
Copy link
Member

oalders commented May 12, 2014

Beautiful! Thank you.

oalders added a commit that referenced this pull request May 12, 2014
Add dependency graph widget (via Stratopan) GH #1168
@oalders oalders merged commit cef1924 into metacpan:master May 12, 2014
@haarg
Copy link
Member

haarg commented May 12, 2014

This doesn't work on the metacpan site because metacpan is served via HTTPS, but the iframe uses HTTP.

oiami pushed a commit to oiami/metacpan-web that referenced this pull request Jun 9, 2014
Add dependency graph widget (via Stratopan) GH metacpan#1168
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

Successfully merging this pull request may close these issues.

None yet

3 participants