Giter Club home page Giter Club logo

swipesforscience's Issues

Add current file name under additional information

Before adding the file name of where the address is extracted I assumed that the page displayed is "summons". However, I can several times that address is pulled from a file where I am not sure if this is the one that is displayed. So a name of the currently displayed file would be useful.

refresh sample counts

Right now, the sampleCounts is loaded on the client when the /Play component is mounted. Since sampleCounts is changing on the backend, we need to periodically check to see if there is a change and re-fetch this from the client.

Here is the method that grabs the data:
https://github.com/evictions/SwipesForScience/blob/master/src/components/Play.vue#L336

We could do something like this:

  1. create a variable called "sessionSamples" -- this will represent the samples that you've seen in a given session. Whenever the Play component is mounted, we should reset this to [].

  2. update the sessionSamples variable when the widget has sent a response: https://github.com/evictions/SwipesForScience/blob/master/src/components/Play.vue#L438

  3. in that same function, if the number of samples seen in a given session is over a threshold number (maybe something defined in the config file), then run the method to grab and set the sampleCounts data

& (ampersand) in file name

Currently if file name contains &, the app sends a wrong request, cropped at the ampersand sign. For instance, the firekey 05a72f458ad9a6a6adb551ca7f605d40 (Washington King 2006 06-2-24953-4) contains file SummonsandComplaint-SUMMONS&COMPLAINT.pdf. In the API logs I can see request for SummonsandComplaint-SUMMONS. My reading is the & is not converted to http-safe (e.g. %26) and hence considered as end of the file name.

Configure button

Is there anyway that we can remove the 'configure' button displayed on the bottom left of the main page?

UI change on Play

  • instead of mouseover on field names, use small, gray text underneath
  • optimize space on screen (remove side margins so that PDF actually takes half)
  • left side and right side independent scrolling

Timeout handling

Some files take extra minute or so to be converted.
Need to figure out a way to handle this.
Make it wait longer? i.e. 1min?

Select a different file

If the address is not found in the first (summons) file, provide an option to select different files

Make tutorial

it can be a video, or text, and you can clobber Tutorial.vue with your tutorial

ASAP

fix those weird LF errors!! and then lint the code

A way to enter/view additional information

The current webpage is fairly good for the basic info but there should be an option like additional fields for things like court, building, county and such.

There should also be an option to see additional information, in particular

  • file name where the address is coming from
  • list of all files.
  • case number
  • the estimated goodness measure

These are not needed for laymen but I occasionally feel the need to understand better what's going on there.

requesting _null_ file

Sometimes the backend fails with 400, leading to failed to load data message on screen. It is related requesting file named null. Not sure why this happens as the preceding /files request returns a valid file name (apparently). This happens with

  • Whatcom 2004 04-2-00591-1
  • Whatcom 2004 04-2-01479-1 (e9e96c70e4fbbea0e3e67c551dae77ba)
  • Whatcom 2004 04-2-02934-2 (firebase key 6a6bbdbe1732f2bca91a2a82a4199071)
  • Whatcom 2004 04-2-02958-5 (firebase key b10e7b18204f4b8b4b064bbd9027f38a)

In all these cases the file name list contains just one name, Public.TIF.

New keys + remove frontend parsing

These keys are sent to an endpoint to get a PDF & guessed address. Right now the endpoint requires multiple sources of information (case number, county, state, etc), but since each PDF has its own "key" attribute, we need to:

  1. create endpoints that return a PDF & guessed address with a key
  2. an endpoint that returns a list of keys on the server
  3. update the AddressWidget to call the endpoint with the key (e.g. remove parsing)

Certain pdf-s not visible

Summons-SUMMONS.pdf from King 2010 10-2-33955-8 (fb id 5617d34b8341eb14dbf71cb7e708011b) does not display. It seems to be a valid pdf, and is visible in firefox when looked separately (file://...). Log files suggest all well.

Note: this happened in firefox.

quotes in file names

ensure the file names w/quotes work.
In particular "summons.tif" seems to be broken.
Develop a test that checks that.

landing page

clean it up -- background image, title & tagline

Browser PDF Download

If browser is configured to download PDFs, it downloads the summons instead of showing it on the app screen.

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.