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 topic/sup-topic/resource menus #20

Open
timothyfcook opened this issue Jul 31, 2015 · 9 comments
Open

add topic/sup-topic/resource menus #20

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

Comments

@timothyfcook
Copy link
Contributor

Per Chelsea's design.

@cameronscott137
Copy link

First draft here: saxifrage/cityasacampus@359bd85

All static right now. Will need an eventual assist from @whit537 to make those dynamic.

@timothyfcook
Copy link
Contributor Author

Nice. On our way!

Note Chelsea's design has the top menu boxes aligned on-center, not top-aligned.

@timothyfcook
Copy link
Contributor Author

Also:

  • There is also a subtle gray line that runs between the centers.
  • The third box is incrementally smaller than the others

screen shot 2015-08-03 at 2 05 59 pm

@cameronscott137
Copy link

Added in the subtle grey line.

@chelseaerdner and I just had a conversation your other points:

Hierarchically, shrinking each navigation box makes sense, but the result is that the third box—arguably the most important when its visible—is also the smallest, which is counter-intuitive.

In addition, if any headline breaks to two lines, it will be impossible to maintain that centered alignment. Given that this will ultimately utilize user-submitted content, we won't have control over text length (see screenshot).

screen shot 2015-08-03 at 4 05 55 pm

Chelsea and I came to the conclusion the subtle grey line and the left-to-right order will be enough to convey progression and hierarchy. Thoughts?

@timothyfcook
Copy link
Contributor Author

Looks good. We'll leave this issue open until we can make them dynamic.

@chadwhitacre
Copy link
Contributor

As of saxifrage/cityasacampus#181 we now have a pretty nice data structure for the topics, subtopics, and resources. It's at Map.topics, and there's some light documentation on the (Python) function that generates it.

screen shot 2015-09-18 at 9 15 53 am

@chadwhitacre
Copy link
Contributor

However, what Map.topics doesn't provide is ordering. We do have ordering info for the resources in Map.topics[topic_id].subtopics[subtopic_id].dag, but a) we also need it for subtopics within each topic, and for the top-level topics, and b) an Array would be an easier API to traverse than a DAG. For #61 I'm planning to add ordering information re: resources at the Python (caac-map) level, so it wouldn't be that much work to also implement topic and subtopic ordering at that level as well, so that resources.json (which, now that I type this, probably wants to be topics.json since it's what ends up at Map.topics) perhaps includes an order key where we keep that info.

@chadwhitacre
Copy link
Contributor

I'll see if I can take the topic ordering from the order of the worksheets in the Google Sheet. How should we manage the ordering of the subtopics? Order mentioned in the sheet? Explicitly defined elsewhere?

@chadwhitacre
Copy link
Contributor

"Alphabetical is rarely the best sort order." —Tufte

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