spacedogxyz / crush2020 Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://crush2020.org
License: Other
Home Page: https://crush2020.org
License: Other
So we can track partner traffic and conversions. Make sure to send it all the way through to Action Network, so we can segment list later.
Sentry Issue: CRUSH2020-2
./src/pages/index.js in c at line 16:24
const IndexPage = () => {
// check for source param and forward to form
let source = undefined
if (exists(window) && window.location.search) {
let urlParams = new URLSearchParams(window.location.search)
source = urlParams.get('source')
}
Sentry Issue: CRUSH2020-1
TypeError: Cannot read property 'name' of undefined
at c (./src/components/plan/index.js:419:62)
...
(11 additional frame(s) were not displayed)
I'm on the "Pick a competitive state and help win big nationally" page and have selected a few states.
However, I only get the next "Please select your answers" when I click the next button despite how many states I select.
Currently has distinct behaviors for hover/select, which don't translate well to mobile. Also, the aspect ratio of the map works for landscape, but for portrait we should investigate alternatives (list the states alphabetically with their outlines from the SVG?)
When we get state-leg candidates in #2, we'll have more than we want to send over the pipe for each user.
Move the data to fauna, and create a Graphql query for it in the Plan component.
For the map, what are your thoughts on using boxes like:
Or maybe just remove the amount from the link and button
Currently using FEC download for federal candidates. Find a source (hopefully free) for state-level candidates. FollowTheMoney.org has them, but will cost $1000 for the data download. Applied for fee waiver for this open source project.
The plan creation is entirely frontend based, and uses a reducer pattern to modify the react state. A decent testing framework would improve our confidence in this code.
We have lots more organizations that might match with a user's location and interests than can be displayed. Right now we pick a random one, but we could also have a simple horizontal scroll instead.
This is a gatsby site hosted on Netlify, but we've received reports of slow loading (up to 85 sec)
We have Sentry performance monitoring installed, but it's not working due to getsentry/sentry-javascript#2935
Checking google analytics shows an average page load time of 2.2 sec, but doesn't report percentiles.
Nice transitions between form pages would make it feel more "app-like." Did an experiment with gatsby-transition-link but it seemed slow. Maybe due to a conflict with the navigate rules at https://github.com/spacedogXYZ/crush2020/blob/master/src/components/form/form.js#L82
To give some context about why each race is interesting and winnable. We did this for Crush18, and it was very useful (but a ton of work).
Some users are going to do this, and it seems to mess up the form state.
Have some rules to mitigate at https://github.com/spacedogXYZ/crush2020/blob/master/src/components/form/form.js#L86, but it only works for back (may need to track locations in popstate listener).
Currently using component-level state and hooks for the form, and getting weird effects if someone goes back/forward or clicks to internal links and then back to form. Consider Redux
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.