yurykorzun / notinphilly Goto Github PK
View Code? Open in Web Editor NEWNot in Philly
Not in Philly
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.
Include test launch info
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.
Increase registration of new accounts by visitors to NotInPhilly.org.
Please use this issue thread to add ideas and develop solutions!
We need to figure out a way to backup, make changes without loosing existing data and migrate database to a different server.
API: https://developers.google.com/maps/documentation/geocoding/intro
Use browser geolocation as well?
https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/Using_geolocation
Pictured above: a logged-in user who has yet to select any Philly streets from the map feature to clean up.
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.
Find ways of reaching out to registered users who have yet to adopt a block, and encourage them to become active participants.
Please use this issue thread to add ideas and develop solutions!
An "x" option in the upper right should be added when a block is selected if one wishes to close the window.
Link with instagram
Numbered streets, as well as any street that uses N/S/E/W is difficult or impossible to enter using the current format.
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.
The streets view has issues with Chrome and Safari in iOS and Chrome on Android.
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.
STR:
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
A fine suggestion from Ben Novack. From a UX perspective, there's an intuition to tap outside of the sidebar to close it, as would happen in a native app.
I think the best way to tackle this might be to use a touch event on the leaflet directive. Additionally, this library might help create a more native feel on mobile: https://github.com/ftlabs/fastclick
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);
}
}
Pictured above: a logged-in user who has adopted some blocks near 13th and Sansom.
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:
Add in-app features that allow admins to track participation and encourage consistent litter cleanup participation among block adopters.
N/A
Please use this issue thread to add ideas and develop solutions!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.