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 pathways #19

Closed
timothyfcook opened this issue Jul 31, 2015 · 23 comments
Closed

add pathways #19

timothyfcook opened this issue Jul 31, 2015 · 23 comments
Assignees

Comments

@timothyfcook
Copy link
Contributor

we need lines between the nodes that utilize the pathways information comes_before and comes_after from the resources.json the names of the pathways (a.k.a. sub-topics) are also listed in second level menu in the top left.

@cameronscott137
Copy link

Fought with this a bit today, and may need @whit537's input to get it done. Will keep you posted.

@chadwhitacre
Copy link
Contributor

Planning to work on this on Friday, @cameronscott137. Ideally we can implement it at the javascript layer.

@timothyfcook
Copy link
Contributor Author

@cameronscott137 working on this now with @whit537 at Sprout Fund

@timothyfcook
Copy link
Contributor Author

Whenever you click to activate a resource, it highlights the entire pathway in which it is contained.

@chadwhitacre
Copy link
Contributor

Step Next is to highlight all resources in a given pathway when you click on ...

@chadwhitacre
Copy link
Contributor

What he said. 😶

@chadwhitacre
Copy link
Contributor

Started a PR in saxifrage/cityasacampus#181.

@timothyfcook
Copy link
Contributor Author

Highlighting and targeting pathways is now a GO, now just have to add the pathway lines based on the before_this and after_this properties and print new .svgs

@chadwhitacre
Copy link
Contributor

Working on this ...

Are the DAG.names already ordered? I believe they are ...

@chadwhitacre
Copy link
Contributor

I mean, that's the point of a DAG.

@chadwhitacre
Copy link
Contributor

Okay! So this should be fairly straightforward ...

@chadwhitacre
Copy link
Contributor

We can either draw the paths once when the page loads, and then show/hide them with jQuery, or we can draw and erase them each time you click on a resource. Is it easy to show/hide SVG elements with jQuery? Should be ...

@timothyfcook
Copy link
Contributor Author

We're talking about the possibility of nodes being part of multiple pathways. Also what if a node references other nodes in its before_this and after_this properties that are NOT part of that original nodes pathway sub_topic

@timothyfcook
Copy link
Contributor Author

  1. Record the sub-topic association (in Django)
  2. Read the sub-topic association on page start-up
  3. Then when we go to highlight: find the pathway it's part of and highlight the pathway

@chadwhitacre
Copy link
Contributor

Yes, hiding SVG elements is not a problem:

screen shot 2015-09-04 at 10 15 15 am

@chadwhitacre
Copy link
Contributor

I can draw paths, but not at the point at which I need to draw them (the second loop, in which I have the previous node available). Hrm ...

screen shot 2015-09-04 at 11 07 24 am

@chadwhitacre
Copy link
Contributor

Simple nesting error, on it ...

@chadwhitacre
Copy link
Contributor

screen shot 2015-09-04 at 11 21 09 am

@chadwhitacre
Copy link
Contributor

screen shot 2015-09-04 at 11 27 32 am

@timothyfcook
Copy link
Contributor Author

original design:

screen shot 2015-09-04 at 11 41 13 am

@chadwhitacre
Copy link
Contributor

Multi-mega-circles!

screen shot 2015-09-04 at 12 18 56 pm

@chadwhitacre
Copy link
Contributor

I'm currently working through issues with the pathways that have surfaced now that we have multi-maps again.

@chadwhitacre
Copy link
Contributor

Multi-maps with pathways!

screen shot 2015-09-04 at 5 19 14 pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants