GithubHelp home page GithubHelp logo

worldbank-transport / driver Goto Github PK

View Code? Open in Web Editor NEW
35.0 35.0 33.0 20.75 MB

DRIVER - Data for Road Incident Visualization, Evaluation, and Reporting

License: GNU General Public License v3.0

Python 24.30% HTML 13.77% CSS 6.07% JavaScript 54.24% Makefile 0.02% Shell 0.63% Ruby 0.08% R 0.60% Dockerfile 0.27%

driver's People

Contributors

cloudniner avatar ddohler avatar flibbertigibbet avatar fungjj92 avatar hectcastro avatar jeancochrane avatar jerheff avatar jisantuc avatar klaash avatar kshepard avatar moradology avatar mtedeschi avatar notthatbreezy avatar pcaisse avatar rmartz avatar sharph avatar shreshthkhilani 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

Watchers

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

driver's Issues

Consolidate multiple Boundary services

There is a Geography resource in ase-scripts and a Boundaries resource in scripts that both perform queries against /api/boundaries/. We should consolidate these to reduce duplication and potential confusion.

Disable buttons, don't hide them

In some places, particularly the "add" accident view, we're hiding buttons instead of disabling them. We really should set them to be disabled instead of just removing them from the UI (this causes weird styling, and also isn't a best practice).

Is currently...
screen shot 2015-10-05 at 4 29 48 pm

Should be...
screen shot 2015-10-05 at 4 30 10 pm

Create DB user for Windshaft

Given read-only permissions, and limit access to tables needed by Windshaft (probably doesn't need access to user info).

Style TODDOW on Dashboard view

00 through 23 for hours is probably more universal and fits better. Style hover effect popovers. Give the squares a nicer color and light gray when no incidents are reported.

Render fields properly in list views

In the list view (including the list in the tabbed details interface), non-text items, such as images and relationships, are being rendered as text. They should be rendered based on their type, so the image can be shown, some relationship details can be extracted, etc. Also, paragraph fields should be truncated at a certain number of characters.

Make the details definition more explicit

The details object is currently added to the object with the convention <title> Details, and that convention is used in a couple places. It'd be better to have an explicit flag (or something of the sort) to make it less brittle (e.g. so it doesn't break if someone changes the title).

Schema editor not paginated

The schema editor UI only shows the first ten items, without pagination, so there's no way to access the rest.

Restyle filter bar to reflect recent changes

Filter bar now displays on both the map page and list view, so we'll need to remove the original filters from the table. We'll also need to restyle the filters, including adjusting some input styling.

map page styling

  • Fit map to page (do not scroll vertically)
  • Remove bar of white space below header
  • Set z-index of header and header dropdowns to show over map controls
  • Fix layer switcher styling (grey background)

Duplicate requests

Many of the tests show extraneous requests being made. Because this happens in a central place there's some logic in place for deciding whether a request needs to be made or whether the promise for an already underway request needs to be handed out - it would be good to investigate this and reduce requests.

BoundaryState not updating when GeographyState changes

If the GeographyState is changed to select a new geometry, the Boundary dropdown will go blank, implying that no Boundary is selected, but calls to BoundaryState.getSelected() will still return the previously selected Boundary, if there was one.

Notifications cached

There is a bug in the timeout logic for notifications that causes old notifications to be displayed after they have already been dismissed. Can be replicated by saving a schema, switching the view, then switching back to the edit schema view.

Test out docker containers on DOST VM

Get the app running to make sure there will be no major issues with the docker setup/etc. This deploy process should be documented so we can provide instructions to DOST and ask them to attempt to bring up a new VM and get it working.

Schema editor config.js overrides web app config.js

Modifying the web app config.js template has no effect without making a matching edit to the schema editor config.js. On provisioning, the web app config.js template file does get copied to the correct directory (/opt/web/) and is correct in the web docker container.

Apparently both config.jsfiles load on a request to the web app, the editor config loading second.

Interactivity broken by custom filters

Map popups no longer display, due to the SELECT clause of the passed query not casting its fields to strings. One solution might be to just return the WHERE clause from the Django query endpoint instead of the full query, and define the fields in Windshaft.

Boundary selection in header filters all pages

We had a card previously which was just to zoom to the boundary. We still need that, but now will also be applying an application-wide filter using those bounds. It will affect the dashboard, map, and records list pages.

User stories:
"As a manager in Metro Manila, I usually want to see graphs and maps related to my jurisdiction so that I know what's going on there."
"As a manager in Metro Manila, I may want to see graphs and maps related to other jurisdictions so that I know what's going on there."
"As a manager in Metro Manila, I may want to see graphs and maps related to the national jurisdiction so that I know what's going on everywhere."

Long initial app load

The initial app load takes ~11.5s, running locally, before the schema populates and the filter bar and records can show up. The /api/boundarypolygons/ fetch seems to taking up most of that time.

Leaflet uses 4326 for markers

Despite the 3857 CRS set for the map, Leaflet markers are set and return coordinates in 4326.

Storing data in 4326 probably makes more sense than reprojecting client side to set markers.

Split out common modules into bower packages

Some modules need to be used by both the schema_editor and web applications (e.g. json-editor directive, and probably some other utilities and resources). These should be moved to separate repos and packaged with bower.

Until this is implemented, symlinks will be used to share this functionality.

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.