Code Monkey home page Code Monkey logo

breatheamairica's Introduction

Leigh Larson

Howdy!

🀠 Texan --> πŸ” Colorado via πŸ‡ΊπŸ‡Έ US Air Force
πŸ‘©πŸ»β€πŸŽ“ Turing School of Software & Design, 2020; 🀘🏼 University of Texas at Austin, 2016
πŸ’» React / Redux / Saga
πŸ”Ž LinkedIn
πŸ¦ΈπŸ»β€β™€οΈ She / hers
⛺️ Camping when not coding

Tech Skills

breatheamairica's People

Contributors

erinuntermeyer avatar joshsevy avatar leighlars avatar

Watchers

 avatar

breatheamairica's Issues

Main display

  • Mock data for display that we want to render on load
  • Conditionals for icons to display with changes in data from air quality api
  • Switch statement might work well depending on the changes in air data we get
  • Rendering components with bad data or unresolved promise

Limit the number of fetch calls on Home

  • Add in local storage so that when the user navigates back to Home, the data does not have to be fetched again.
  • Maybe when page loads we can update state to show firstLoad to be true or something?

Location Testing

  • Integrate testing into Location Prop
  • needs mostly render tests
  • App component has locations fetch call

Home Page

fetch 15 cities on load and display them

General Styling

  • Hardcode mocked data as placeholders to style elements and views
  • Add pop of color other than blue on to the site
  • Add Legend to About
  • Test rendered components?
  • Make top cities clickable to respective page
  • What to do about tables..... sep component?
  • What data do we want for each city?
  • How to toggle weather icon near temp ??

File tree setup

Set up file tree (TSX, SCSS, test) for:
Home
Location
Header
Search
View

Combine Data fetch to one data file

  • Combine data fetch to a singular object to remove any data we dont need.
  • What functionality do we need to manipulate the data for display?
  • What data are we getting?
  • Any data we may be missing?

About Page?

NavLink in Header that takes User to Page of info about site.
Could be Legend, description of site and devs, etc.

target=blank research/bug

Find bug in React that doesn't like target=blank for outside links

add rel="noopener noreferrer" in all a tags where target=_blank is

AirQuality API and Proxy

  • Connect AirQuality Api
  • run proxy to prevent cors errors
  • evaluate data from request
  • plan for function to clean data
  • plan for error handling functionality

Typescript Remove any types

  • work on removing any instances of the any type from the project
  • This will be an on going project
  • Get used to the errors and what they mean

Multiple Cities

Fetch returns multiple cities, but we are grabbing the first match (not UX friendly). Will need multiple cities for drop down or user options.

About page - wireframe and mockup

  • What is our mission?
  • What information should we add here?
  • Is it for us or for the user?
  • What websites abouts do we like and why?
  • What component upgrades do we need to add this new display?
  • Contact info? Maybe free email address to add

Team discussion - Results page?

Since the position stack API is getting us multiple results back from the query typed in, we could get ALL of them back and display just the basics (the query typed in, type, region, country, continent, label(?)). Type returns things like "locality" "postal code" "venue?" "county". It may help make it easier on the user to ensure they are getting the location they want! These could be displayed at the route '/results'. Once the user clicks on the result they wanted, they are taken to the Location page ( and that would be when the second fetch call is made taking the lat and long of the clicked card and passed into the correct method ).

This would essentially solve issue #19

Location Page -- build render for weekly weather data

  • Map through weeklyWeather.daily and build a card to display 7 day forecast
  • Still need to figure out the Date conversion from the API
  • Use day.weather.id for the key value in the card to prevent linter errors in React

About page bug

  • Test
  • Fix Bug
    When you navigate to the About page, this error appears in the console:

Warning: validateDOMNesting(...): Text nodes cannot appear as a child of <thead>. in thead (at About.tsx:76) in table (at About.tsx:75) in div (at About.tsx:69) in section (at About.tsx:23) in About (at App.tsx:44) in Route (at App.tsx:41) in main (at App.tsx:34) in div (at App.tsx:30) in App (at src/index.tsx:8) in Router (created by BrowserRouter) in BrowserRouter (at src/index.tsx:8)

Create Results component with all search results

  • Retrieve data from getCoordinates API based on the query entered in search bar
  • Render the Results component after button click
  • Results component will render cards for each result returned
  • Handle errors!!!
  • Style
  • Clear input upon search button clicked

Write network request for search functionality

  • Make this a drop-down for all supported cities from the API?

  • Write functionality to locate the nearest supported city?

  • We ended up going with a 2nd API that will get the latitude and longitude from a query (can be zip, city, county, address) and using that to fetch the nearest city data from the air quality API.

WeeklyForcast Component

  • add component to map the 7 day forcast to display each upcoming day
  • match structure of Location components jsx
  • Add types to all props being passed in

Home

Clean up Home Page
Scour weather websites that bring color or life to a page full of facts and numbers
Reading articles???
Header -- bugging me. Needs more professionalism or something.

Look for other places to tighten up styling. Resume!!!!!!!!!!

AQ Emphasis

  • On Home: 2 horizontal galleries for top cities for AQ-- pollution + ozone (hardcoded?) [Lung Assoc of America]
    (https://www.stateoftheair.org/city-rankings/cleanest-cities.html)
    Ozone: Anchorage, AK; Savannah, GA; Destin, FL; Honolulu, HI; Casper, WY
    Particle Pollution: Hot Springs, AR; Colorado Springs, CO; Bellingham, WA; Albuquerque, NM; Portland, ME;

  • On Details: Expand on AQ section and add icons for activity, health, dog

Data we want:

  • general weather (Temp, feels like?, Humidity, Precip, cloudy?, snow, storm, visibility, time) ----> Open Weather API
  • aq (pollution, ozone), -text description about weather and aq ----> AirNow API

What we communicate:

  • activities you can do
  • optimal places to travel
  • health

Data TS props definitions

  • Add TS definitions for all data coming back from API to remove errors of loading
  • in Helpers export interface LocationProps

Api data thoughts - Team discussion

  • What data are we getting back?
  • What data do we need?
  • What do we want to display for each city?
  • What errors are we getting on unsuccessful promise?
  • How are we gonna return that error display?

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.