jcjurado3 / civic_voice_plus_fe Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
As a logged in user, I can search bills by region alone.
I can also search bills by region alone. If I do not type in a search topic but instead only select a state - “Florida” - and click button ‘search’, the page then renders with the 50 most recently updated bills from that state. I can see multiple pages of bills within the search, each page of results are limited to 10 results per page.
As a logged in user, when I am on ‘/bills/:id”. There is also a bookmark to save or unsave the bill to my index page. When I first click the bookmark icon, and then visit my dashboard ‘/dashboard’, I see that bill saved in my “saved bills” section.
sad path: anytime a bookmark is selected/saved to a user's dashboard it persists across all pages. So even if a user goes a searches for that bill again or goes to its show page, it shows the bill is already bookmarked
Create ReadME Documentation
As a logged in user, when I click on select bill topics
I am routed to the user show page. There I see a form to select categories of legislative interest. I am required to select at least one of the categories and then click the button save
. When I visit my dashboard, I see the digest sections has been updated with bills from the category(s) I selected. The button to select bill topics
no longer appears and instead I see a button near the top of my page to edit my categories
Extension: as a logged in user, on the bills index page, I can see top 5 trending bills. Each bill is a link to that bills show page.
As a logged in user, when I click a search result’s bill name, it is a link that redirects me to the bill’s show page. When I visit ‘bills/:id’ I see the bill’s name, status, and a simplified description of the bill.
I also see a section that shows the congressperson who sponsored it - displaying a photo of the congressperson, their name, and their contact information.
Additionally I see a button that will route me to the full text of the bill.
Now that I am logged in, the navigation bar has a link to go to my dashboard or to sign out. I no longer see a ‘login button’.
When I click ‘my dashboard’ I am routed to ‘/dashboard’. On my dashboard, I see a greeting ‘Welcome @user_email’. As a new user, I see a section called “Digest” and text that informs me to click a button to select bill topics
that will appear in my digest section.
Conditional: if I have already selected bill topics, this button will not appear, and instead I will only see a button to edit my categories
which routes me to ‘users/:id’ --the Users show page .
Additionally I see a section header for My Saved Bills
. This is where my saved bills will be added when i've searched and saved them to my dashboard
As a logged in user on my dashboard, I see a button to edit my categories
which routes me to ‘/users/:id’. Here I see a form to update my categories of legislative interest. When I change my selections and click ‘save’, I see that my list has been updated. When I visit
As a logged in user, on my dashboard, I have the ability to unsave a bill by clicking the bookmark. When I click the bookmark for the saved bill, the bill will no longer be saved and will not be visible on my index page. Sad path: If I go to search for the bill again, I can click the bookmark button to save the bill back to the dashboard.
As a user, when I visit the landing page I see a button to “login”. When I click this link I am taken to ‘/login’ where I see a button to “sign in with google”. When I click this button I am routed to ‘accounts.google.com’ where a login form asks me to select the google email account I would like to use to sign in. Once I select an email account, I am redirected to ‘/dashboard’ and I see that I am logged in.
As a logged in user, I can search bills by topic and region. When I click the button “search bills” it routes me to visit ‘/bills’ (bills index) I see a form to search for house/senate bills by keyword and I also see a drop-down selector to choose a state. When I fill in the search with ‘workers rights’ and the default region is auto selected ‘everywhere’. When I click the “search” button, the page renders with the up to 50 search results matching that search criteria in descending order of ‘last action’ where the most recently updated bill is first. I can see multiple pages of bills to click through to find bills based on my search criteria. Each page has at most 10 results per page. For each bill I see it’s name, a truncated short description, and a bookmark icon. Each bills name is a link to that bills show page.
Extension: as a logged in user, on the bills show page, I can click a button to ‘simplify’ the summary in more user-friendly terms. When I click this button, it populates a summary utilizing openai in simpler terms.
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.