Coder Social home page Coder Social logo

notinphilly's People

Contributors

alubneuski avatar carltonstith avatar codenprose avatar dgrebb avatar geekychristine avatar gocoolkris avatar gregilo avatar krisbodnya avatar philippelesaux avatar webguyian avatar yurykorzun avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

notinphilly's Issues

Implement simple admin dashboard

We need to implement a simple admin dashboard that will have a number of grids, such as user list, event list and so on. Only users in Admin role should be able to view and edit them. Currently a stub for the admin page is implemented but not finished.

Street highlighting should exclude intersections

By making the intersection itself not part of the clickable area, it makes it more obvious that the streets are clickable. Also, it may be good to think about a slightly different color, like light blue or yellow, instead of gray.

June 2017 Hackathon: Encourage Block Adopters to Log Cleanups

screen shot 2017-06-13 at 10 33 25 am

Pictured above: a logged-in user who has adopted some blocks near 13th and Sansom.

Issue

For the users who have adopted blocks, the NotInPhilly admin team has only social media available to view evidence of litter pickup and to encourage active participation. See the "Social media" tab:

screen shot 2017-06-13 at 10 38 20 am

Goal

Add in-app features that allow admins to track participation and encourage consistent litter cleanup participation among block adopters.

Ideas

  • Add a feature where users can schedule and/or log cleanup events. Fields could include a datepicker, a dropdown where between 1 and all of the user's adopted blocks can be added to the cleanup event, and a checkbox to indicate complete status
  • Automatically email users to remind them of an upcoming cleanup event (similar to automated email reminder system from #63)
  • Automatically email users to ask them if a recently passed cleanup event was completed
  • Automatically email users if they haven't scheduled or logged a cleanup event in X number of weeks

Current Workflow

N/A

Please use this issue thread to add ideas and develop solutions!

Change map view based on zoom level

If a user zooms in with either the zoom tool or by scrolling, the map view should change from neighborhood to street after a certain zoom factor.

June 2017 Hackathon: Drive Block Adoption Among Registered Users

screen shot 2017-06-13 at 10 18 25 am

Pictured above: a logged-in user who has yet to select any Philly streets from the map feature to clean up.

Issue

The NotInPhilly.org membership database has a significant group of users who have yet to adopt a block and become active cleanup participants. A streamlined signup process from #62 is likely to generate more "inactive" participants.

Goal

Find ways of reaching out to registered users who have yet to adopt a block, and encourage them to become active participants.

Ideas

  • Add a link to the maps feature to the welcome email
  • Increase the prominence / frequency of on-screen CTAs for users who aren't currently participating in any streets
  • Develop an automated email reminder system for registered users who have zero blocks to log in and make their selections in the map feature. Is a weekly reminder sufficient?
  • Add ability for admins to manually select blocks for members
  • Auto-suggest or auto-add blocks for new members - e.g. if the block where their home address is unclaimed during the signup process

Current Workflow

  1. Users who complete registration receive a welcome email (see below) - but it doesn't include a link back to the site's map feature where they can adopt a block
  2. Users who log in see a small prompt to find streets to adopt on their profile page.

Please use this issue thread to add ideas and develop solutions!

Bugs in street view - Mobile

The streets view has issues with Chrome and Safari in iOS and Chrome on Android.

  • Difficulties scrolling around on iOS
  • Selecting individual streets is broken; if the popup appears, it's offset from the clicked location
  • bugs with tooltip hover not exiting

isAdmin function is declared twice in authServices.js

exports.isAdmin = function (req, res, next) {
  var adminRoleId = 1;

  if (req.isAuthenticated()) {
    if(req.user.roles.indexOf(adminRoleId) > -1)
    {
      next();
    }
  }
  else {
    res.send(401);
  }
}

exports.isAdmin = function () {
  var adminRoleId = 1;

  if (req.isAuthenticated()) {
    if(req.user.userInfo.roles.indexOf(adminRoleId) > -1)
    {
      next();
    }
  }
  else {
    res.send(401);
  }
}

June 2017 Hackathon: Streamlined Signup Process

screen shot 2017-06-13 at 9 52 45 am

Pictured above: the Not In Philly signup screen for new users. Users can sign up with Facebook in order to auto-fill some of these fields.

Goal

Increase registration of new accounts by visitors to NotInPhilly.org.

Ideas

  • Split up the signup form so that Step 1 only requires minimal information to create an account: email, password, and maybe first/last name. Users would then be encouraged to "complete their profile" by filling in the rest of the information that's required on the current registration form and adopting blocks.
  • Make the prompt for new account registration more prominent in the menu / hero areas

Current Workflow

  1. Navigate to http://notinphilly.org/
  2. Select "Sign Up / Log In"
  3. Select the "Sign Me Up" button
  4. In the modal window that appears, fill in all required fields (including street address validation via Google API) and select "Register Now"
  5. Receive a welcome message in your email inbox (see below)
  6. Log in to your Profile page

screen shot 2017-06-13 at 10 14 30 am

Please use this issue thread to add ideas and develop solutions!

Visitors cannot register new account with non-Philly home address

STR:

  1. Navigate to http://notinphilly.org/
  2. Click "Sign Up / Log In" and then choose "Sign Me Up" button. The registration modal appears.
  3. Fill out the information for a new user. Choose a home address from outside the City of Philadelphia (example: 6 Station Rd, Ardmore, PA 19003).
  4. Click "Register Now"

Result: registration modal hangs. No error is displayed to the user. API call to /api/users/ endpoint hangs and then times out.

Locally, the node server console displays an error:

(node:99009) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: Cannot read property '_id' of null

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.