wevote / endorsementextension Goto Github PK
View Code? Open in Web Editor NEWWe Vote Endorsements Chrome Extension
We Vote Endorsements Chrome Extension
When constructing the link used with the "Admin App" button, please remove the "google_civic_election_id" URL variable, and include the "show_all_elections" variable (with a value of "1")
https://api.wevoteusa.org/c/?show_all_elections=1&candidate_search=Betty+Yee
Please update this text:
Authenticate this "We Vote Endorsement Tool" Chrome extension,
by logging into the We Vote WebApp (https://wevote.us) in another tab.
Once you have logged into the We Vote Web App, navigate back to this tab and press the SIGN IN button again to authenticate the "We Vote Endorsement Tool" Chrome Extension.
To this:
To sign in:
Clicking "Sign in" would open a new tab to WeVote.US as explained in this Issue in the WebApp Issues list:
wevote/WebApp#2819
Less:
Spun off from /issues/50
Note from Dale from Google Doc 2020-02-10:
When voter sees a highlighted candidate name on a page, we would like either of these two scenarios when voter left-clicks highlighted candidate name, dependent on technical feasibility (and not overwhelming the browser CPU/memory footprint across all tabs):
1) "For all candidate name highlights, open a popover when you click on the highlighted name."
Response: It might be possible to add a span around our selection with a onClick() handler that wold select the entire highlighted name when you click in the span.
If we simplified this context menu:
and removed the second level menu (with the two choices), you'd only have to right click on a name, select the WeVote choice, and the dialogue would appear. That would be an improvement.
What we would lose by going to a single choice is the ability to have to have the "Reveal in candidate list" option available in the context menu, without going into the overlay first. We would have to move that to a button within the dialog.
Spun off from //issues/50
2) "If the website already had the candidate name linked to another page, override that link and always open our popover. Place that link in the bottom of our popover per the design below"
<a href="https://www.philting.com/" target="_blank">
<em class="Highlight" style="padding: 1px; box-shadow: rgb(229, 229, 229) 1px 1px; border-radius: 3px; -webkit-print-color-adjust: exact; background-color: rgb(39, 175, 114); color: rgb(255, 255, 255); font-style: inherit;">
Phil Ting
</em>
</a>
Response: Here is the actual markup name and the hidden URL that could be passed to the pop-up. of the highlighted name from the sierra club site. At processing time if the name was wrapped in a 'a' element, I could disable it and maybe hide the link in the mark up with the name, and build a onClick for what I put into the DOM that would select the name and the hidden URL that could be passed to the pop-up.
Currently the "Jump to My Ballot" button isn't going over to https://WeVote.US/ballot yet:
Should open in a new tab.
If you turn on the extension when viewing a tab, then turn it off, change to another tab, and try to turn it on, nothing happens. Broken.
I noticed that this website had three problems when our Endorsement Tool is turned on:
https://runforsomething.net/candidates/
The right panel is very wide, and the left panel is very narrow. The right panel can be a fixed with.
Reveal button doesn't work
Candidate details are expanded all the time
Add a menu that pops down when you click on the We Vote Chrome Extension icon:
Note: the existing We Vote Chrome Extension icon itself does not need to be changed -- it is fine as is:
Note the We Vote logo for the top of this popdown menu can be found here:
https://wevote.us/img/we-vote-logo-horizontal-color-dark-141x46.svg
When I visit this URL: https://www.cleanvirginia.org/our-endorsements/
...and turn the We Vote Endorsement Tool on, I see this in the upper right corner:
When I right click and go to "Open Image in New Tab", I am taken to this URL:
https://www.cleanvirginia.org/our-endorsements/null
Please add these icon squares with thumbs up, thumbs down, and comment to the top right of each candidate's "rolled up" block in the right column:
Thumb Up: https://material.io/resources/icons/?icon=thumb_up&style=baseline
Thumb Down: https://material.io/resources/icons/?icon=thumb_down&style=baseline
Comment Icon: https://material.io/resources/icons/?icon=comment&style=baseline
Candidate highlighted (Yellow/Gray), not signed in: Open Modal
See #57
Candidate highlighted (Green/Red), signed in: Open Modal
See #58
Candidate highlighted (Green/Red), signed in: Sierra Club Endorsement
See #59
For all candidate name highlights, open a popover when you click on the highlighted name.
Spun off to /issues/54
If the website already had the candidate name linked to another page, override that link and always open our popover. Place that link in the bottom of our popover per the design below.
Spun off to /issues/55
This design has two tabs at the top. For now we are only going to implement the "Sierra Club Endorsement" tab.
Note: The current "Create a We Vote endorsement" popover (that appears when you select a name and right click) can open this new popover design.
Please change the text on the "Web App" button to say "WeVote.US".
Edit down this text to fit on one line:
"If a more detailed endorsement exists, enter its URL here:"
Suggested:
"If dedicated candidate page exists, enter URL here:"
Reduce font size of URL in the "If a more detailed endorsement exists, enter its URL here:" input box so we can see more of it in the space available.
I'm enjoying working with the new endorsement chrome extension!
In order to make vertical scrolling more intuitive, please eliminate the overall window vertical and horizontal scrollbars. This will limit the vertical scrolling to either the left-most main panel, or the right "candidate-browser" panel. Example page: https://workingfamilies.org/2019/08/2019-endorsements/
Also, the right candidate-browser panel has a left-right scroll that it would be good to remove. The width of the right candidate-browser panel can be fixed. The main large panel can always be "forced down" in width by the right candidate-browser panel.
If required by the page in the main large panel, a horizontal left-right scroll is fine, if it has a fixed width.
Please test at a variety of desktop browser window sizes.
We would very much like to have a way to see which found items in the right column are actually not visible in the left main panel. (As quality control against false-positives.)
It could be as simple as a red dot to the right of the candidate's name if the name can't be found in the main panel.
For example
This issue requires the installation of pdfminer.six on the python host
https://github.com/pdfminer/pdfminer.six
stars/forks 1.7k/1.4k
Updated 6 days ago
Now handles Py 3
65 issues
When scanning this endorsement page:
https://runforsomething.net/candidates/
...I used the "Reveal" button for "Tamara Sawyer". It did not find her. I did find her on the page with her alternate name highlighted "Tami Sawyer". https://api.wevoteusa.org/c/57445/edit/?google_civic_election_id=1000085&state_code=&page=0
The request is to:
Please convert the We Vote icon in the top bar of Chrome to show a menu upon clicking (as opposed to using the click as an on/off toggle)
Please add the following items as menu items:
Turn off highlighting on these domains:
*.wevote.us
api.wevoteusa.org
localhost
In the future, it would be good to provide the domains to exclude via API, so we can turn highlighting off for client custom domains. (like ballot.motivote.us)
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.