-
Notifications
You must be signed in to change notification settings - Fork 185
SEPTA Fare Calculator - First Iteration #208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
lovo-h
wants to merge
36
commits into
thinkcompany:master
Choose a base branch
from
lovo-h:feature/septa-fare-calculator-full-implementation
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
c3211e9
Update .ignore: ignore IDE's '.idea/' directory
lovo-h 36c2c1d
Add .nvmrc: v23.11.1
lovo-h 5f81e23
Run 'npm init' and 'npm install' commands
lovo-h aa5380d
Install needed NPM packages for React
lovo-h 9cd63d4
Setup Webpack + get a basic, working React app
lovo-h 7f8afba
NPM: Add 'reset-css' package
lovo-h 6e48b50
Setup Widget component's basic HTML layout
lovo-h 0b39af3
Move fares.json into ./src/widgets/assets dir
lovo-h 96d65ef
Add SEPTA.svg logo
lovo-h 4704b88
Apply mobile design
lovo-h 233c29e
Add Custom Input Components: Dropdown, RadioButton, InputBox
lovo-h 5dd2889
NPM: Add 'axios' and 'dotenv' packages
lovo-h 78cd005
Add Global Env Variables
lovo-h 416e916
Use FareService To Populate Input Fields With Remote Data
lovo-h 9bb70b8
DropDown: Resize Width Based On Content
lovo-h 89d61cc
Bug Fix: Default To Empty String When InputBox's Value Is Empty
lovo-h 5ad7084
Add Total Cost Calculations + Bulk Cost Breakdown And Savings
lovo-h 8a3074c
Rename setZone to handleZoneChange
lovo-h 19c947c
Rename setInputsHelper to handleInputsChange
lovo-h 2b97240
Cleanup: Make Widget Markup Readable By Consolidating Inputs
lovo-h c21f7f5
Improve Readability: Move Cost UI Elements To Separate Cost Component
lovo-h cefe930
TODO: Remember to Test Total Cost Logic
lovo-h dbd7c94
Cleanup: Rename result.breakdown.remainder to result.breakdown.single
lovo-h 9025f11
UI Adjustment: Spacing Between Divider & Inputs
lovo-h a73b288
Accessibility: Add Labels For Inputs & Add Header, Main, Footer
lovo-h 059dbe1
Accessibility: Announce Total Price When Inputs Change
lovo-h 7b5fd90
Rename result...pricePerRide to result...price
lovo-h 1d5b1f2
TODO: Add Loading State For Slow Connections
lovo-h 716d79a
TODO: Confirm Breakdown Section's UI/UX With Design
lovo-h c66cf00
Apply LightHouse Insights: Description Meta, CSS
lovo-h 0e43eac
Accessibility: Read Helper Text Upon Dropdown Selection
lovo-h 5ce22d9
Add Comments: Backend Integration Notes
lovo-h 5d753c8
Add .gitignore: septa-fare-calculator/dist/ Directory
lovo-h 09c1d6e
Add Loading States
lovo-h c15a22c
Fix: Add Horizontal Padding To Helper Text
lovo-h 7b6e16b
Fix: Lowercase Word 'breakdown' in 'Fare Breakdown'
lovo-h File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, @andyknapp.
This is where the "1" is being rendered. When I added the "resize width" functionality for the
DropDowncomponent, I based the width on the text length for the "When are you riding" dropdown.However, the changes didn't account for the "Where are you going" drop-down. Hence the "1", since it can't be found in the
dayTypeLabelLookupdictionary.To fix this, I would need something like the following: