-
Notifications
You must be signed in to change notification settings - Fork 3
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 icons for tags in DemocracyOS #57
Comments
Tags (derived from guanyem commissions): Economy Link to svg files: https://www.dropbox.com/sh/qu35v6l0wljz1zh/AAD-od3lWvX8IVATp0ZwsJEOa?dl=0 @jaakkokorhonen do these more or less correspond to what is needed in Finland? Issue is they have grouped some things together (eg work/poverty and mobility/public space etc) which might or might not work for others. I have timed it to finish these eleven categories though, so any additional ones will have to wait ... In Catalan: Economia de la ciutat |
No. And these are not used in Guanyem. Will they be? Up to Joonas if he wants to see this in the Helsinki pilot. |
well, guanyem were the one's who had originally asked for them, so I hope they will be implemented! will ping Toret tomorrow (Friday) let him know what is up. @jaakkokorhonen will you let Joonas know? and have him get in touch if he needs any modifications. |
@gvilarino I followed all the steps from here https://github.com/DemocracyOS/app/wiki/How-to-add-new-tag-images and then went here http://democracyos-dcent.herokuapp.com/admin/tags/create ... but I can't see any images to chose from when creating a new tag, and can't edit any of the existing tags to change their images. After adding the files and editing the json and js file, what do I do next? Thanks |
@jayapapaya did you push your new code to the server? |
@gvilarino I added the new svgs to the folder on github and then edited json and js straight via the github browser-based editor... https://github.com/d-cent/democracyos-dcent/tree/master/lib/tag-images is that all correct? When in the admin panel - I can't see any of the old images either. there are just some blank circles to chose from. Where do I edit old tags, i.e. associate them with new images? |
@jayapapaya is this all on your local instance or on the dcent online demo? |
Ping @joonasp. |
@gvilarino here https://github.com/d-cent/democracyos-dcent - assumed that was the D-CENT online demo? |
That's the codebase for the demo. You have to deploy that to heroku in order for changes to be available at http://democracyos-dcent.herokuapp.com |
don't have log-in/ credentials for herokuapp and have not yet worked with it. @jaakkokorhonen ? |
@jayapapaya I'll push this as soon as I get a second; gotta finnish something |
Nice one - thanks @gvilarino |
@jayapapaya you didn't push any code to any branch or made any pull requests. Could you please make a PR? I can't push no changes :) |
@gvilarino :( But I did! Am not very used to using github, so I might not have done it in the right sequence. but I made commits to the master, which should all be there: d-cent/democracyos-dcent@63a6adf...master |
@jayapapaya that is not the repo we've been using and updating for the dcent-demo; you should make a PR to https://github.com/d-cent/democracyos |
Actually that repo is absoluely outdated; I'll delete it if it's ok with you @jaakkokorhonen |
By the way, @jayapapaya, pull requests should always be done against the I'll incorporate your commits to |
@jayapapaya for further reference please read the contribution guidelines; that should cover most of what's unclear about how to contribute code to this github repo. |
Ok, everything is updated and deployed in http://democracyos-dcent.herokuapp.com @jayapapaya your commits weren't compiling; I had to do a lot of manual fixing there. Were you able to run those changes locally? If so, how? |
@gvilarino hmmm, what needed to be fixed? In terms of implementing I simply followed your steps, assuming it would be pretty straightforward. A couple of issues:
(If I know a bit more what fixes you had to do, I might be able to help sort some of this...) |
@gvilarino design-wise, preferable to drop the polygons and have the icons in black actually. Let me know if possible and I will upload a set of black svgs. |
Mainly @jayapapaya you may add any kind of svg you like; you just need to test locally if they look good. Keep in mind that the hexagon will get drawn in the background, tinted with the color in the |
@gvilarino haven't installed DOS locally - sorry, don't have the capacity to do that here, which was why I was hoping the process was fairly straightforward so that I could do the necessary tweaks. @jaakkokorhonen any chance of someone making the hexagons white (ie, invisible)? So that we can just have the black icons there as they are not designed to have the hexagon around them, and also then the user can actually see what icons they are chosing for which tag, as right now it is just a series of white circles: http://democracyos-dcent.herokuapp.com/admin/tags/5417397efa4836b7323893d7 Finally, the icons are too small. Where/ how can this be corrected? |
@jaakkokorhonen @saariokari if you could let me know if hexagons can be made white (invisible)? |
Hmm. Adding this snippet "article.proposal .entry-tag .hexagon { visibility: hidden; }" to custom.css in lib/style/ might just do the trick. |
@saariokari you can add the |
Added hide class and created pull request. |
@saariokari need help creating PR for the black icons... the commits: d-cent/democracyos@f0fc569 |
@gvilarino How can we make the icons larger? thanks |
You should toy around with CSS values of course. For example with |
@gvilarino am just looking to make them larger @saariokari any chance you could help? am looking to have the icons ideally 90px high in the body, and 45px in the left sidebar. |
I'll check this too today or tomorrow latest. |
@saariokari thanks - ping me if there is a problem pls :) |
Added styles (articles did not show on my local machine, had to use finnish demo site tags as a reference). Pull request made. |
https://github.com/DemocracyOS/app/wiki/How-to-add-new-tag-images
@jayapapaya can you supply a list of tags and icons?
The text was updated successfully, but these errors were encountered: