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

Make the "Dimensions of well-being" diagram clickable #94

Open
tanius opened this issue Aug 30, 2017 · 2 comments
Open

Make the "Dimensions of well-being" diagram clickable #94

tanius opened this issue Aug 30, 2017 · 2 comments

Comments

@tanius
Copy link
Member

tanius commented Aug 30, 2017

We (and esp. @Ladyniasan) would like to have a clickable version of the "Dimensions of Wellbeing" diagram, to use as a secondary way of navigating the content on the edgeryders.eu website.

Requirements:

  1. The diagram should be embedded on a static page of the website, which will be created the same way as the pages referred from the menu. Means, as a closed topic in the Menu Pages category.

  2. Each element in the diagram (both the diagram proper and the diagram key) should be linked to a Discourse tag. Which element belongs to which tag is shown on this page.

  3. The diagram should be created in three versions: one English, one Arabic, one French (French only if French translations are provided in time). The English texts and Arabic translations are available again on this page, and French translations will be added there, too.

Since this will be used as a relatively prominent navigation feature, please first research technically clean ways to implement this and discuss with @tanius to find a common decision which to use. Alternatives include at least:

  • A diagram made with a third-party online graphing / diagramming web service. For example, Grafana seems to be a great choice for this; a well known, open source diagramming tool that includes a SaaS web service and widgets. Widgets are for example embedable
    in Riot, a Matrix protocol instant messaging software.

  • A diagram done with a JavaScript diagramming library, perhaps using SVG.

  • A simple HTML imagemap, but that will have problems width screen width etc. in the mobile version. Because Discourse will scale the image automatically, but the image map coordinates will not scale.

The problem is how to add these to a Discourse topic without including the same JavaScript on every page. That could be done with an iframe element, but Discourse probably does not allow these as HTML elements. A cleaner solution would be the Onebox feature, extending it as necessary to create a dynamic embedded content as it happens for example for Google Maps links. Might be better to extend the Onebox mechanism with a new type of embeddings, in a custom plugin. There are example repositories around of how to do that as a custom Discourse plugin.

@tanius tanius added this to the (2) Priority fixes milestone Aug 30, 2017
@damingo
Copy link
Member

damingo commented Sep 6, 2017

As discussed with @tanius this is now implemented with a standard picture, which can be viewed in detail in a popup, and a color coded list which enables convenient navigation on smartphones.
See: https://edgeryders.eu/t/wellbeing-indicators/6978

@damingo damingo closed this as completed Sep 6, 2017
@tanius
Copy link
Member Author

tanius commented Sep 18, 2017

For smartphone navigation, the list is fine. In the medium term, we (well, @Ladyniasan :-) ) want a real clickable diagram for the desktop version though.

For that, the solution detailed above with an external diagramming or drawing web service plus Onebox embedding seems the most applicable for this, but it's also quite a bit of effort.

@tanius tanius reopened this Sep 18, 2017
@tanius tanius assigned tanius and unassigned damingo Sep 18, 2017
@tanius tanius removed the important label Sep 18, 2017
@tanius tanius modified the milestones: (2) Priority fixes, (x) Nice to have Sep 18, 2017
@tanius tanius removed their assignment Nov 17, 2017
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

No branches or pull requests

2 participants