mintona / escape_app Goto Github PK
View Code? Open in Web Editor NEWThis is the Rails front end for the Escape App.
This is the Rails front end for the Escape App.
As a logged in User, after filling in the search preferences including activity preferences, I am redirected to a results page, where I can view the results of that search. The results I see include:
As a logged in User,
when I visit 'My Trip' show page,
I click on a route name,
which is a link,
and am redirected to an external page with more detailed information about that route.
And I see each routes:
As a user
when I am on '/search/climbs' and
fail to fill out any of the required fields*, OR
I put in a value not supported by the api
and click Continue,
I am redirected to '/search/climbs' and
I am alerted of the error I need to fix
and I can re-fill in the climb preferences
If i leave optional fields blank, search will use defaults
Subtasks:
Add Log In button to help redirect a visitor away from the about page back to the log in with Google 2.0 OAuth page.
Add additional tool tips to display possible number input on all forms. Update PR with each change that was made.
As a user
when I am adding activities to an existing trip
I am on /activity
I see the text "Choose an activity to add to your trip:"
I see a button for 'Climbing'
I see a button for 'Hiking'
When I click "Climbing",
I'm taken to to /climbing
When I click 'Hiking'
I'm taken to /hiking
Subtask:
As a user
when I am on /climbing
fill out all required fields*,
and click Continue
I am redirected to /results
where I see my search results
Subtasks:
GooglePlaces and Mountain project API services should be set-up from 2 previous user stories
Clicking the Continue button:
Coordinates are combined with min/max difficulty & max distance to be used as search params for mountain project
climb type and rating are saved in a session(?)to be used to sort the returned climbs on the next page
As a User
After I have logged in
I see a /logout
link in the nav bar
I click on /logout
I see a flash message alerting me I have logged out
I am back on the welcome page
I no longer see my name in the nav bar
As a logged in user
When I visit "/search"
I can enter the maximum distance from the starting point I am willing to travel.
As a visitor or user
When I click on "About" from the nav bar
I am taken to the /about
Which has:
As a user, when I visit a trip show page, I see a map with pins for all route locations and I see a pen of the original location that was searched.
As a user, when I visit a trip show page, I can click on a pin in the map and the associated route will be highlighted and/or focused.
As a user
when I visit /search
if I do not enter a destination AND/OR
I do not enter an activity,
and click Search
a flash message is displayed alerting me to enter a destination
and I can try again
Subtasks:
As a user
When I enter a location that doesn't exist on /search
But I have selected an activity
The activity I selected is still checked when the page renders
AND
As a user
When I enter a vaild location
but do not select an activity
my location is auto populated in the location field
when the page renders
As a logged in User, after I fill in the search information and I am redirected to the results page, I see a check box next to each Activity route in the results list. I can check as many boxes as I would like to add to my trip. At the bottom of the page, when I click 'save', a trip is created containing my destination and activity routes I selected with the check boxes. I am redirected to a 'My Trip' show page, where I can see the details of the Trip.
As a user,
when I visit the root page,
I want to click the Login with Google
button so that I can login to the application using my google account.
I am redirected to /profile
Where I see text that says "Hello, <first_name>!"
And I see "Hi, <first_name" in the nav bar
As a logged-in user, after I begin my search for a destination and activity, I am on the results ('/trip/new') page and can select routes to add to my trip. At the bottom of the page, I can click on 'Save Trip'. I am then redirected to the new Trip show page ("/trip/#{trip.id}"), where I see the activities sections (currently Climbing) with a list of the routes I selected for my trip on the previous page.
As you think of navigations, please add to the list
/about
As a logged in user
When I visit "/search"
I can enter a specific location
And find hiking trails nearby.
As a user
when I visit /search
I see the following:
/search/climbs
Sad:
If I fail to enter a destination
I am alerted via a flash message 'You must enter a destination'
And can try again
Sad:
If i fail to pick an activity
I am alerted via a flash message
I can try again
Subtasks:
lat = json["candidates"][0]["geometry"]["location"]["lat"]
lng = lat = json["candidates"][0]["geometry"]["location"]["lat"]
5.10 displaying as 5.1
As a user
after I have chosen climbing as my activity
I am on / climbing
I choose from the following, which will be part of my search criteria:
Subtasks:
[5.4, 5.5, 5.6, 5.7, 5.8, 5.9, 5.10, 5.11, 5.12, 5.13, 5.14, 5.15]
lat
and lon
(should be in a session)Trips table: (user has many trips, trip belongs to a user, has many trip_climbs, has many climbs through trip_climbs)
Climbs table:(has many trip_climbs, has many trips through trip_climbs)
Trip Cimbs table:(belongs to climb, belongs to trip)
Hikes
As a logged in user
When I visit "/search"
I enter my destination
I choose climbing
I am taken to /search/climbs/new
I can fill in:
I click Find Hikes!
I am on hikes/trips/new
I see the number of results found
I see a list of all the hiking results and the hike info:
Each hike has a check box
I can select the hikes I want to add to my trip
I click on Save Selected Hikes
I am now on my trip show page
I see my hike titles as links (that go to hiking project) with the hikes:
As a logged in user
When I visit "/search"
I can click a drop down menu
And choose the rating I want.
As a logged in user
When I visit "/search"
I can click a drop down menu
And choose the level of difficulty I want.
Save Trip
, I am redirected to the newly created trip show page and I can see all details of that Trip.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.