travel-tracker-solo-project's People
travel-tracker-solo-project's Issues
Traveler Dashboard: HTML
- build out basic HTML traveler dashboard based off wireframe
Traveler Interaction: Book Trip Button
When a traveler books their trip:
- need to submit their trip details to the "Add new trip" endpoint via POST
https://fe-apps.herokuapp.com/api/v1/travel-tracker/data/trips/trips
Iteration 3: Login
- a user should be able to log in with username & password
Accessibility: Trip Dashboard
- lighthouse accessibility score minimum 90%
- Aria descriptions for user interactions
- Acceptable color contrast for WAI standards
- Create a branch & push up to GH for accessibility audit BEFORE moving on to iteration 3
Wireframe
- sketch out basic pages of travel app
SCSS Refactor Into Sub-files
Iteration 3: Login Page SCSS
SCSS buildout & styling for login page
Traveler: Test Trips Methods
-
test traveler method for getting past trips
-
test traveler method for getting present trips
-
test traveler method for getting upcoming trips
-
test traveler method for getting pending trips
Prevent User from booking a trip for past date
FETCH: Get All Trips
- Create FETCH function that will get all trips a traveler can choose to take:
https://fe-apps.herokuapp.com/api/v1/travel-tracker/data/trips/trips
Traveler: Get Pending Trips
- Class method to get a traveler's pending trips
Full Responsiveness
App must be fully responsive
Iteration 3: Login Page HTML
Login Page:
- input for username
- input for password
- submit button to submit login credentials that takes them to their dashboard page
Iteration 2: Traveler Interaction Request a Trip
To Make a Trip Request:
- traveler should be able to select a date (need a calendar so they can select a date, may need to use moment.js?)
- need an input field for number of days their trip will be (trip duration)
- need an input field for number of travelers (# travelers)
- need a dropdown for list of destinations (destinations)
Traveler Interaction: Show Cost for Trip Request
Once a user selects their trip information, need to display the estimated cost including a 10% travel agent fee
-
Display the trip cost to the user, include 10% travel agent fee
-
Create button to book the trip
Trip Class: Method to calculate total cost of a trip
Calculate total estimated cost of a trip including 10% travel agent fee
Disable Submit Button After Booking Trip
Sad Path Considerations for user input
Need to create safeguards for user input when booking a trip
ie: incomplete name, passing a word as a traveler number, not entering a duration, etc.
SCSS Mobile View
FETCH: Get all destinations
- Create FETCH function to get all destinations that a traveler can choose from
Iteration 3: Login Display
-
a traveler should see a login page when they first visit the site
-
should be able to login with their unique credentials
-
upon logging in, should be able to view their dashboard
Traveler Dashboard: SCSS buildout
SCSS buildout & styling for traveler dashboard
Traveler: Total Amount Spent On Trips This Year
- Create method that calculates a traveler's total amount spent on trips this year based on the trips data & including a 10% travel agent fee
Traveler: Get Upcoming Trips
- Class method to get a user's upcoming trips
FETCH Get Single User Data
- create function that will get a single traveler's information via FETCH request
https://fe-apps.herokuapp.com/api/v1/travel-tracker/data/travelers/travelers/
where will be a number of a traveler’s id
Trip Class: default pending status
When a user books a trip, it needs to have a default status of "pending", how do I do this?
FETCH: Add New Trip
- Create a POST fetch that will submit a trip booked by a user
https://fe-apps.herokuapp.com/api/v1/travel-tracker/data/trips/trips
{
id: ,
userID: ,
destinationID: ,
travelers: ,
date: <string 'YYYY/MM/DD'>,
duration: ,
status: <string 'approved' or 'pending'>,
suggestedActivities:
}
Traveler: Get Present Trips
- Class method to get a user's present trips
README
Bug: When Traveler books a Trip, have to refresh page to see trip
Traveler Interaction: Trip Request Pending
- Once a traveler submits their trip request, it will show on their dashboard as "pending"
so the travel agency can approve or deny it
Traveler: Test Total Amount Spent On Trips This Year
- Create test for a traveler's total amount spent on trips this year. Total amount should be calculated from trips data & should included a 10% travel agent fee
Traveler Dashboard Display
traveler should see:
- All of their trips (past, present, upcoming & pending)
- total amount they spent on trips this year
Traveler: Get Past Trips
- class method to find a user's past trips
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.