Comments (2)
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 beAddressSearchBar
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 afterrepresentatives
call has completed and set it in context - Home page will navigate to /civicInformation after both calls succeed
Context
- Refactored/renamed
GlobalContext
toGlobalContextWrapper
- 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 theelections
endpoint are dumped in the console from that state held in react context
from mosa-upenn-soc-2023.
Other:
- deployed updates
- fixed security vulnerability in an npm package
from mosa-upenn-soc-2023.
Related Issues (20)
- Query elections address API based on the list item that has been clicked HOT 1
- Update README and document how to set up and activate API key
- Make WhyVote page responsive
- Display Representative information in a grid layout
- Make search bar work on enter key HOT 1
- Show more representative data in a modal HOT 1
- Display available elections after querying API
- make second election api call HOT 3
- Store address in context and propagate it to the 2nd api call HOT 1
- Add informative links when hovering over button
- Fix styling in CivicInfo Page HOT 2
- Write detailed technical explanation on about page HOT 1
- Create a persistent store of requests HOT 1
- General responsiveness HOT 1
- Create a link to source code
- Style scroll bars HOT 1
- Remove dead code
- Add google map ?
- Preparing repo for submission on Devpost
- Add gif to readme
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mosa-upenn-soc-2023.