Coder Social home page Coder Social logo

bomb_photos's People

Contributors

adamhundley avatar adriennedomingus avatar brianrip avatar hhoopes avatar julyytran avatar scottfirestone avatar

Watchers

 avatar  avatar  avatar

Forkers

scottfirestone

bomb_photos's Issues

Visitor views a cart with two photos

As a visitor who has added two photos to my cart,
when I click on "cart",
for each photo in my cart,
I should see the photo image (clickable to show),
and I should see the photo name (clickable to show),
and I should see the photo category (clickable to category index),
and I should see the photo price,
and I should see the total cart price,
and I should see a "continue shopping" button,
and I should see "checkout".

Update header

Update header to reflect new business name and relevant navbar links

Visitor can log in as a customer

As a registered customer,
when I visit root,
I should not see "log out" on header,
and I should not see my username/email on header,
and I should see "log in" on header,
and when I click "log in",
and I fill in my username/email,
and I click "log in",
then I should see my dashboard,
and I should see "log out" on my header,
and I should not see "log in" on my header,
and I should see my username on my header.

Customer can view multiple past orders

As a registered/logged-in customer,
who has placed multiple orders,
when I visit my past orders,
for all orders,
I should see the order numbers,
and I should see the order dates,
and I should see the order totals.

Visitor views photos by category

As a visitor
when I visit the "all photos" page
I should see a list of all categories,
And I click on a category name
I should see only the images associated with that category

Customer can view a deactivated photo

As a registered/logged-in customer,
when I visit my past orders,
and I click on a past order,
and I click on the photo name of a deactivated photo,
then I should see the photo page,
and I should see 'photo is no longer available',
and I should not see 'add to cart'.

Business admin can activate an inactive photo

As a registered/logged-in business admin,
when I visit a retired photo's show page,
and I click on 'activate',
then I should see the photos index page,
and the photo should be labeled 'active',
and I should see a message that 'photo was 'activated',
and when I visit the 'all photos' page,
I should see that photo.

Business admin can view an individual order

As a registered/logged-in business admin,
and I visit my orders,
and I click on an order ID,
then I should see the order ID,
and I should see the date order was placed,
and I should see the customer's username/email,
and I should see ordered photos from my business,
and I should not see photos from another business.

Logged-in user creates an order

As a registered/logged-in user,
when I visit the 'all photos' page,
and I click on a category,
and I click on the photo,
and I click on 'add to cart',
and I visit the cart,
and I click on 'checkout',
(in production, I should see stripe checkout),
then I should see a message 'your order has been placed',
and I should see the order total,
and I should see the created at time/date,
and I should see a link to "all photos",
and I should see a link to all orders.

Business admin can see all their orders

As a registered/logged-in business admin,
when I visit my admin dashboard,
and I click on 'view orders',
then I should see a list of order ids,
and each order should have a subtotal,
and each order should have a 'placed at' timestamp.

Guest is prompted to login when attempting to check out

As a guest,
when I visit the 'all photos' page,
and I click on a category
and I click on the photo,
and I click on 'add to cart',
and I visit the cart,
and I click on 'checkout',
then I should see the login page,
and when I fill in my username/email,
and I fill in my password,
and I click log-in,
then I should see the cart I previously created.

Business admin can log in

As a registered business admin,
when I visit the login path,
and I fill in my username,
and I fill in my password,
and I click "log in",
then I should see the business admin dashboard.

Visitor can register for an account

As a visitor,
when I visit the root,
and I click "sign up",
and I fill in a username/email,
and I fill in a password,
and I fill in a password confirmation,
and I click "sign up",
then I should see a message saying "thanks for signing up,
and I should see my username/email,
and I should see an "edit info" link,
and I should see a link for my past orders,
and I should see a link for my photos.

Business Admin can create a photo

As a registered/logged-in business admin,
when I visit my admin dashboard,
and I click on create new photo,
and I fill in a name,
and I fill in a description,
and I fill in a price,
and I select a category,
and I upload an image,
and I click on 'submit',
then I should be on my business's photo index page,
and I should see the newly created photo,
and I should see a message "your photo has been created".

Business admin can update a photo

As a registered/logged-in business admin,
when I visit a photo show page,
and I click on 'update',
and I fill in a name,
and I fill in a description,
and I fill in a price,
and I select a category,
and I upload an image,
and I click on 'update',
then I should be on my business's photo index page,
and I should see the updated photo,
and I should see a message "your photo has been updated".

Visitor adds photos to cart

As a visitor,
when I visit the "all photos" page,
and I click on a category,
and I click a photo's "add to cart",
then I should see a message "photo has been added to cart",
and in the navbar,
I should see "Cart (1)",
and when I click another photo's "add to cart",
I should see a message "photo has been added to cart",
and I should see "Cart (2)".

Visitor views photos by studio

As a visitor
When I visit "all photos"
And I click on "browse by studio",
I should see a list of all studio names,
And I click on a studio name,
I should see photos associated with only that studio

Visitor can remove photo from cart

As a visitor with two photos in my cart,
when I visit my cart,
and I click "remove" for the first photo,
then I should no longer see that photo info,
and I should see the other photo info,
and I should see a revised total.

Business admin deactivates a photo

As a registered/logged-in business admin,
when I visit a photo's show page,
and I click on 'retire',
then I should see the photos index page,
and the photo should be labeled 'inactive',
and I should see a message that 'photo was deactivated',
and when I visit the 'all photos' page,
I should not see that photo.

user can view studio info

as a visitor

when I click on "all studios"
then I see the studio index of all studios
then I click on a studio
and I see Studio name
and studio description
and link to all studio photos
and a promo photo for studio

User cannot add same photo to cart twice

As a registered user
When I add a photo to my cart
and I click add to cart on the same photo
then I should see a flash message that the photo is already in my cart
and the count of my cart should not increase

Customer can view a past order

As a registered/logged-in customer,
when I visit my past orders,
and I click on a past order,
I should see the order number,
and I should see the order date,
and I should see the order photo names (as links),
and I should see the order photo images (as links),
and I should see the order photo prices,
and I should see the order total.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.