Giter VIP home page Giter VIP logo

acopio-ui's People

Stargazers

 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

acopio-ui's Issues

Extender mensaje "No encontramos centros de acopio"

La primer página de la app muestra una lista de centros de acopio cerca de donde estás. Pero si no encuentra ninguno cercano te da el mensaje "No encontramos centros de acopio". Si yo como usuario novato entro y lo primero que me sale es eso, pienso que es un error porque parece que no hubiera centros de acopio en ningún lado. Así que hay que modificar el texto para que diga "No encontramos centros de acopio cerca de ti".

Manage contact info for a center

Once you create a center, you should be able to add contacts.

The endpoint to work with is /acopios/{acopio-id}/contactos (it should already support POST/PUT/)

A contact object would end up looking like:

{ "nombre": "Juan Perez", "email": "[email protected]", "twitter": "@blah", "facebook": "fb.com/blah", "telefono": "55 2561 9561", "id": "59c4c11400220a53359e0983", "acopioId": "59c4c11400220a53359e0982" }

id: being the id of the contact (auto-generated) and acopioId being the id of the center in question.

Some centers only provide an email, others a facebook page, others the name of a person and a phone. Therefore, all fields are optional but we need at least one of the fields to be filled.

Add markers to the map for each collection center

We need to display a marker on the map for each collection center. The markers should also be in clusters since there may be quite a few centers in a relatively small area. They will need to be clickable (especially on mobile); clicking a marker should bring up a card with the center's information on it, but building the card will be a separate task.

Register new center

Implement a form so that users can create new "Centro de acopio".
Info: Name of the center, address.

Centros de acopio actualizados más recientemente

Es muy probable que los centros de acopio actualizados más recientemente sean los que necesitan más ayuda. Tenemos que ordenar siempre los centros de acopio por fecha de última actualización.

related: #72

Decide on featured centers

If we're unable to get the user's geolocation, the best UX is to present a useful list of featured centers. Decide on a list of 5-10 centers to feature.

Nuevo homepage

Queremos una nueva homepage que muestre resultados y permita al usuario navegar rápidamente a lo que quiere. La pantalla debería de mostrar

  • 5 AcopioCards con los centros de acopio actualizados más recientemente
  • 5 AcopioCards con los productos necesitados más recientes
  • Si el usuario tiene activada la localización (currentPosition), mostrar AcopioCards 5 centros de acopio más cercanos, de lo contrario, mostrar un mensaje que lo invite a activar su posicionamiento.

Para puntos extras de karma, los AcopioCards pueden ser mostrados en un carrusel.

cc @clasig

Filter centers that appear on map by products

We should be able to search and filter the centers that appear on the map based on products that they need. This will help facilitate the movement of goods from centers with extra of an item to centers that need the item. It might be good to filter based on what the centers have as well to allow people who need certain items to find the closest center with that item.

Vista de centro de acopio

Necesitamos una vista más completa del centro de acopio a la cual se pueda acceder desde AcopioCard

Debe de tener una ruta
/acopios/:id

Y debe de cargar los datos necesarios para que sea compartible via URL

Esta vista debe de tener

  • imagen con mapa de ubicación
  • link a google maps usando Image API
  • formas de contacto, enlazadas (teléfono, twitter, sitio web)
  • lista de productos necesitados
  • enlace al editor de productos necesitados
  • enlace al editor de contactos.

Add simple authentication to the app

We need further definition on what the API is expecting before we can implement this. I believe the API is using auth0 so we may be able to get away with using their built in UI, maybe just customized with the project logo.

Arreglar el mapa

Se necesita limpiar el código del mapa para que sea útil

  • Quitar el drawer o confinarlo a esta vista
  • usar las APIs que hemos desarrollado para las otras vistas como withCurrentLocation
  • Hacer que use el router para enviar a la vista de detalle de centro de acopio ( #73 )
  • Add a pin with current user location in map
  • Re-importar Map.css con los estilos que correspondan al mapa

UI con Tabs

Necesitamos una mejor forma de navegación. Actualmente tenemos

  • Todos los centros
  • centros cercanos
  • Mapa de ambas

Tambien estamos desarrollando

  • Buscar producto en centros
  • Centros por estado / municipio
  • Vistas de detalle de centros

El entregable de este PR crea navegación usando el componente Tabs

Implement Mapbox GL

Mapbox GL will be used to render a map of collection centers. Expect the API to return lat/lng coordinates for each center.

Propose a new layout for the home

A full page map has disadvantages like long load time and has issues being displayed in mobile phones. We will make a new proposal to see how it works and decide what to do.

Manage the endpoint base url as a configurable value

Yesterday we changed the url of the endpoint, and eventually it might end up being somewhere else under the sismomexico.org domain, so it would be nice to be able to change that value quickly and it not be hardcoded in the calls.

Add main UI as a list

Current UI has some usability issues.

  • Density of information is low
  • There are some points very close together some space doesn't have points
  • Slow Androids might choke on loading large JS for map rendering

Proposal is to

  • Add a List based UI that displays Acopios
  • Set this new UI as the default
  • Add a mode in the UI to use the map
  • Add a button in the UI that triggers a change between the two modes.

Link to discussion: https://codeandomexico.slack.com/messages/C76TGK6AG/convo/C76TGK6AG-1506134554.000011/

New screen: show list of Acopios

We need a new Index screen that shows all the acopios. We can use the api.getAcopios() call and display the resulting data on an AcopioList

This screen will be very similar to Supply but without geolocation

Set page title

  • Create REACT_APP_NAME environment variable to save app name
  • Dynamically set page title when app is opened
  • Dynamically update page title when switching screens

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.