Team-4-PennBootcamp / Project-1

https://team-4-pennbootcamp.github.io/Project-1/
MIT License
0 stars 2 forks source link

added min & max article processing #22

Closed ftorning closed 6 years ago

ftorning commented 6 years ago

There are a number of updates:

  1. created a new variable to change articles returned for each source to make it easier to switch. Because of rate limiting, for development, 2 per should be sufficient.

  2. It's not ideal, but I solved the asynchronous issue where article results were not persisting after the search button click event by adding a timeout, so when you click Search there will be a 5 second lag.

  3. I added the method for getting the min and max articles for the article result divs. It was more difficult than I originally thought, but I think the solution works well (returns an array of top article objects, ordered by sentiment score [and the reverse for min])

  4. I added the recent search buttons to the bottom of the page from Firebase and added a click event to each (currently all it does is log the id for the corresponding topic).