Giter VIP home page Giter VIP logo

missingmaps.github.io's Introduction

Adding events

Events are managed through a Google Form and Sheet.

Adding Blog Post

Blog posts are managed in the blog repo. Add a post following the instructions in the Readme.

Updating 'Mapathon Materials' zip folder

During the regularly occurring site build process, any files in the app/assets/downloads/mapathon-materials/ folder will be zipped together and made available for download at http://www.missingmaps.org/assets/downloads/mapathon-materials.zip. Make sure the file at host.materials_list[0].asset in each app/_data/{{language_code}}.yml file exists in the downloads folder (e.g. mapathon-materials/english/How_to_Host_a_Mapathon_EN.pdf).

Adding Language support

The site is configured to support 2-letter core language codes. So english is 'en' not 'en-US' and/or 'en-GB'. Using a longer code will not function.

There are four main steps in incorporating a language:

  1. tell app config the language exists
    1. add 2-letter language code to authorized_locales array in _config.yml
  2. include locale file (to support date/time localization)
    1. several already in place (in _locales dir), otherwise get from here
  3. include _data/2-letter code.yml to support site content translations
    1. copy _data/en.yml, then update text values
    2. note that the url for the nav items can be updates for your language. this needs to align with the permalink in the page frontmatter (see item 4.2 below)
  4. create folder of page templates
    1. copy 'en' dir, rename copy as your 2-letter language code
    2. in frontmatter for all templates there within, you need to add the language code and pagename to the permalink (i.e. /about/ becomes /fr/apropos/ for the french translation)
  5. create folder of blog posts
    1. copy the _posts/en dir, rename folder as your 2-letter language code
    2. in frontmatter for all templates there within, you need to change the language to the correct code and add the language code to the permalink (i.e. /blog/:year/:month/:day/:title/ becomes /fr/blog/:year/:month/:day/:title/ for the french translation)
  6. (OPTIONAL) Add translations of pdf assets
    1. add documents to assets/downloads
    2. update _data/2-letter code.yml host.materials_list.asset(s) with the filename you created

If the Jeykll build is failing when parsing one of the /app/_data/*.yml files, it can be useful to install and use yamllint. Running, for example, yamllint ./app/_data/fr.yml will output a large number of errors but you can find the critical ones base on the description, such as:

  138:73    error    syntax error: expected <block end>, but found '<scalar>' (syntax)

Development

Environment

To set up the development environment for this website, you'll need to install the following on your system:

  • Node and npm (version in .nvmrc file)
  • Ruby and Bundler, preferably through something like rvm (version in .ruby-version file)
  • Gulp
$ gem install bundler  -v 2.4.3
$ npm install -g gulp
$ npm install --global gulp-cli

After these basic requirements are met, run the following commands in the website's folder:

$ npm install

Will also run bundle install

If you get a jekyll-4.0.0 requires rubygems version >= 2.7.0, which is incompatible with the current version error then try running: gem update --system

Getting started

$ gulp serve

Compiles the compass files, javascripts, and launches the server making the site available at http://localhost:3000/ The system will watch files and execute tasks whenever one of them changes. The site will automatically refresh since it is bundled with livereload.

The _config-dev.yml file will be loaded alongside _config.yml.

Other commands

Clean the compiled site. I.e. the _site folder

$ gulp clean

Compile the compass files, javascripts, and builds the jekyll site using _config-dev.yml. Use this instead of gulp serve if you don't want to watch.

$ gulp

Compiles the site loading the _config-stage.yml alongside _config.yml. The javascript files will be minified.

$ gulp stage

Compiles the site loading the _config-prod.yml alongside _config.yml. The javascript files will be minified.

$ gulp prod

missingmaps.github.io's People

Contributors

aawiseman avatar abenrob avatar anjikoc avatar astridht avatar cernox avatar cljohn avatar dakotabenjamin avatar danbjoseph avatar dependabot[bot] avatar drisht avatar eljocho avatar giblet22 avatar hagellach37 avatar harry-wood avatar imbaah avatar kamicut avatar maxgrossman avatar melaniechabot avatar mikelmaron avatar mojodna avatar nbumbarger avatar nick-tallguy avatar pedrito1414 avatar rachblevine avatar ramyaragupathy avatar scolchester avatar sophie-gelinasgagne avatar tsamaya avatar willemarcel avatar wireguy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

missingmaps.github.io's Issues

stats lag time?

How long should it take for edits to show up in the stats? I submitted a changeset with comment: Nepal Recovery #MissingMaps #MapGive #RedCross #hotosm-project-1540 ~36 minutes ago and the leaderboard for hotosm-project-1540 still shows "last commit: 5 hours ago" and my user profile still shows no edits for today.

oddities in 'projects contributed to' stats

this is showing on profile...
screen shot 2016-03-04 at 9 20 41 pm
whereas the api is showing...

 "hashtags": {
    "missingmaps": 42,
    "mapgive": 19,
    "redcross": 19,
    "hotosm-project-1540": 19,
    "hotosm-project-1543": 22,
    "maptime": 22,
    "ramanihuria": 22
  }

&

"hashtags": [
      {
        "id": 2,
        "hashtag": "missingmaps",
        "created_at": "2016-02-22T18:48:53.289Z"
      },
      {
        "id": 6,
        "hashtag": "redcross",
        "created_at": "2016-02-22T18:51:41.908Z"
      },
      {
        "id": 10,
        "hashtag": "mapgive",
        "created_at": "2016-02-22T19:11:45.511Z"
      },
      {
        "id": 46,
        "hashtag": "hotosm-project-1540",
        "created_at": "2016-02-24T03:29:54.754Z"
      }
    ]

Missing Maps logo too small

The only branding we have is the logo and it takes up very few pixels. Can we make it dominate more (and use the correct font?)

Change text in 'step 3' on How we work

Make it more immediate and operational. Something like:

Humanitarian organisations are using the map data to respond to disease outbreaks and disasters, and to plan risk reduction which saves lives.

French translation

@tsamaya @ThomasG77 There are still a few items to clean up in the localization branch, but once we are settled on the EN content, that branch is primed for FR. I have started work on it, but I'm sure either of you could do a much better job. I can comment in this thread when we are ready to proceed, so we don't waste time/efforts re-doing too much stuff.

cc @dalekunce @pedrito1414

Badge border issue on iOS

Currently on iOS the badge borders show up displaced. We saw this bug (or something very similar to it) earlier in testing, and were able to fix it previously.

New event - Swanley, UK

Hi,

I don't want to risk breaking anything - I've forked and created a branch with a commit at

Nick-Tallguy@b17a6c5

Can you check thoroughly and then add event please. Bit close for the first one tomorrow (it got overlooked on the wiki I think), and you may wish to change the date to the 16th, 23rd or 30th - same event details otherwise.

site translation/localization

Realising this is a big topic; we should brainstorm on the approach here.

Thoughts:

  • translation is pretty easy. you need lookups for everything, but once in place it works well.
  • localization is harder (displaying times/dates/etc in the correct format for the end user. ie 22 AUG means nothing in France...) should be able to use Date.prototype.toLocaleDateString()
  • We'd need to identify folks to provide translated copy. Pretty sure we can find FR folks pretty easily, but we'd need to id the translatable components beforehand.

<title>missingmaps</title>

On home page, /contribute, /events & /about the <title> tag is 'missingmaps' instead of 'Missing Maps'

User badges thing not working

Oooh new website, with new bits!

This thing http://www.missingmaps.org/users/#/ is not working though.

Type in a name and safari logs a js error:
TypeError: undefined is not an object (evaluating 'user.id') rethrowCaughtErrorbundle.js:50119

But maybe I just need to give you chance to get it working :-)

User badges system. Catch the 'no data' case

The user badges thing: http://www.missingmaps.org/users/#/ ..should catch the 'no data' case, and say something like

"Sorry. No data for this user. Since we started gathering data (Feb 2016) we haven't picked up any edits by this user. Go do some mapping, then come back and try again!"

Currently it silently fails logging a js error TypeError: undefined is not an object (evaluating 'user.id') rethrowCaughtErrorbundle.js:50119

Feature: Event Map

One feature we discussed would be nice to have was a map next to the 'events' section of the site that is populated with points for the locations where events have taken place.

Design wise this could just be a static outline of the world with dots on it via geojsons.

stats don't seem to match across sections or history from user profile

why do i have 30 missingmaps changesets in projects contributed to but only 10 noted in the by the numbers section?

screen shot 2016-02-26 at 8 17 07 pm

also, the timeline is showing edits going back to Feb 21. in my OSM history I have 16 changesets since then, which matches neither of the two above. how does it filter (hashtag and/or tasking manager bounding box?)

if there's no space between hashtags does it confuse the parsing? for example..

hotosm-project-1543#MissingMaps #maptime #ramanihuria

Becoming a member - requirements

There is nothing to say who can become a member... For example can all of the following be a member?

  • individuals
  • single schools
  • businesses
  • NGOs

I can see us getting a lot of useless contact which will eat someone's time. Maybe we should outline who can join?

add Heidelberg

Heidelberg is a new partner add the logo to the about section.
heidelberg and disastermappers

Site look and feel: more operational?

The new graphics are nice, but I feel the faceless people kind of dominate - I guess to emphasise community. There are not many maps and no data represented and the only bit of humanitarian work is the bit where the guy is giving the other two a bit of a cuddle. It's not very operational....

In my experience, the reason people show up to our mapathons in London is to help MSF, RC, etc. One of the reasons they come back again and again is community, but by then they are probably not looking at the website....

I think the website could convey better the fact that volunteers are contributing directly to life-saving work in the field.

missing changesets

When validating I noticed a user had left traced buildings tagged area=yes. I'm messaging them with feedback and wanted to include a link to their MM profile page. But they are not showing up in the search. The edits were yesterday. See the user's OSM profile. Pascal Neis has data on the user. This is possibly related to the lag time question of #117.

screen shot 2016-03-01 at 2 26 05 pm

screen shot 2016-03-01 at 2 27 01 pm

add hashtag to leaderboard

UX for adding hashtags to leaderboard is a bit clunky and hard for non native english speakers.

lets add a "blacked out" card with a giant + in the empty spots similar to adding a desktop in Mac OS X or something similar.

404 error for tabletop guide...

From Aga on twitter

Aga Kreglewska โ€@NomadicAga 3 mins3 minutes ago

@TheMissingMaps on /host page 2nd 'Materials' button links to training. Link to tabletop guide gives 404 error.

Mapathon page - comments

Great addition to the web site with the mapathon pages. I have a couple of comments:

  1. There's nothing to suggest that organisers contact their local HOT / OSM community to help support newbies / collaborate on the event. We have found this is fundamental to sustainable remotely organised mapathons that result in good quality data.
  2. It's very Red Cross-centric. The language around Step 2: How can we help only references red cross / crescent and if you're organising in the UK, your support will come from MSF. In France, it would likely come from CartONG. Needs to be broader language.

Otherwise, amazing!

Pete

Sharing badges to twitter

Currently, the predefined tweet text is

(username) earned the (badge name) on MissingMaps!

Should we change it to either #MissingMaps or @TheMissingMaps for easier tracking/interaction?

New event, Dar es Salaam

For our mapping party for this month July, we would like to work on task #1120 - Missing Maps: Dar es Salaam (drone imagery). Would like to add this event on the missing maps website. Please advise.

Geoffrey Kateregga
Ramani Huria, Dar es Salaam

Add OpenStreetMap to the credited organisations

Where we're listing organisations at the bottom of the main page, and on the about page, I think we should probably mention OpenStreetMap again (and put the icon). Just as a clear thank you / credit. I think it sort of goes without saying really, which is why we've forgotten to say it.

Adding a competitor "succeeds" even when no competitor is found.

if you try and add a competitor that is not found, the UI still behaves as if one was found. the "add competitor" link disappears and commas are added to the url.

and since there is no card added, there is no way to remove the non existent card to try and find the competitor you wanted to add originally, you would have to delete the only showing one, which is usually the missingmaps card.

Current Leader Board - "Delete" option should be changed to "Hide"

Since the delete option does not really delete it and people might be reluctant to use it or confused about its meaning I think it would be good to change the text to "Hide" instead of delete as that more closely matches what it does and is more likely to get used by novice visitors to the website.

Old events top the list

I think it is bad UX that the events that have passed are the first thing people see when they click the events button. Should we be manually clearing these or is there a glitch in the automatic process?

Cheers

P

new badges

need a readme and guidelines for creating new badges

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.