Giter Site home page Giter Site logo

Comments (2)

cfech avatar cfech commented on May 27, 2024

Completed:

UI

  • Removed global 2 rem border
  • Search button stays disabled when the text box has no text
  • Created CivicInfor.tsx with basic mui grid and share context with this page, added this to the navbar
  • Removed Home from navbar and set the site text to navigate home
  • Renamed/refactored homePageSearchBar to be AddressSearchBar this component is shared between the home page and the civic info page
  • Added the AddressSearchBar to the civics info page, if something is queried from this page there will be no redirection
  • Updated search bar title from generic vite one to Civics Central

API Calls

  • Queried available elections api
  • Created interface for available elections response
  • Configured available elections api call to run after representatives call has completed and set it in context
  • Home page will navigate to /civicInformation after both calls succeed

Context

  • Refactored/renamed GlobalContext to GlobalContextWrapper
  • Moved mui context into a class called ThemeContextWrapper
  • Created AvailableElectionsContextWrapper to hold context for available elections query, this wrapper wraps all the children of the app component in order to be able to use this data anywhere we need it
  • Wrote custom hooks for access to available election getter and setter
  • When civicInformation page loads, the data from the representatives endpoint and the elections endpoint are dumped in the console from that state held in react context

from mosa-upenn-soc-2023.

cfech avatar cfech commented on May 27, 2024

Other:

  • deployed updates
  • fixed security vulnerability in an npm package

from mosa-upenn-soc-2023.

Related Issues (20)

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.