pog_hogs's People
pog_hogs's Issues
add images in production for all items
- just use links from an AWS bucket or imgr. make sure to own the image location rather than use it from google.
- add styling to make images display
User cannot checkout without account
issueEight:
title: Guest User
body: >
As a visitor when I have items in my cart
And when I visit "/cart"
I should not see an option to "Checkout"
I should see an option to "Login or Create Account to Checkout"
After I create an account
And I visit "/cart
Then I should see all of the data that was there when I was not logged in
When I click "Logout"
Then I should see see "Login"
And I should not see "Logout"
fix slug urls
research materialize/bootstrap
figure out pros/cons for each and which would be best
Visitor can browse Items by category
Admin Item Creation
issueTwenty:
title: Admin Item Creation
body: >
As an authenticated Admin:
I can create an item.
- An item must have a title, description and price.
- An item must belong to at least one category.
- The title and description cannot be empty.
- The title must be unique for all items in the system.
- The price must be a valid decimal numeric value and greater than zero.
- The photo is optional. If not present, a stand-in photo is used. (PAPERCLIP)
fix remove item from cart flash msg to have clickable link
a
fix url for a category
'/:category' still not a route. Need '/:category' not for example '/category/pogs'
User can place an order
issueTwelve:
title: Checking out
body: >
Background: An existing user and a cart with items
As a visitor
When I add items to my cart
And I visit "/cart"
And I click "Login or Register to Checkout"
Then I should be required to login
When I am logged in
And I visit my cart
And when I click "Checkout"
Then the order should be placed
And my current page should be "/orders"
And I should see a message "Order was successfully placed"
And I should see the order I just placed in a table
Put image and description in cart
style cart page
Styling on cart page needs to improve for readability sake. You can not distinguish things very easily.
implement basic bootstrap navbar
cart update
ask why we need to refresh before we can get update amount to work
User can see retired items
issueEleven:
title: Retired Items
body: >
As a user if I visit an item page and that item has been retired
Then I should still be able to access the item page
And I should not be able to add the item to their cart
And I should see in place of the "Add to Cart" button or link - "Item Retired"
Admin edits an item
issueTwentyTwo:
title: Admin edits an item
body: >
Background: an existing item
As an admin
When I visit "admin/items"
And I click "Edit"
Then my current path should be "/admin/items/:ITEM_ID/edit"
And I should be able to upate title, description, image, and status
Admin views an individual Order
issueNineteen:
title: Admin views an individual Order
body: >
As an authenticated Admin, when I visit an individual order page
Then I can see the order's date and time.
And I can see the purchaser's full name and address.
And I can see, for each item on the order:
- The item's name, which is linked to the item page.
- Quantity in this order.
- Price
- Line item subtotal.
And I can see the total for the order.
And I can see the status for the order.
polish css
flesh out model test suite
Visitor can adjust quantity of an item in cart
title: Removing an item from my cart
body: >
Background: My cart has an item in it
As a visitor
When I visit "/cart"
And I click link "Remove"
Then my current page should be "/cart"
And I should see a message styled in green
And the message should say "Successfully removed SOME_ITEM from your cart."
And the title "SOME_ITEM" should be a link to that item in case the user wants to add it back
And I should not see the item listed in cart
Unauthenticated users cannot checkout/view other users' data
issueFourteen:
title: Unauthenticated users security
body: >
Background: An unauthenticated user and their abilities
As an Unuthenticated User
I cannot view another user's private data, such as current order, etc.
I should be redirected to login/create account when I try to check out.
I cannot view the administrator screens or use administrator functionality.
I cannot make myself an administrator.
Add cart-item-count in navbar
Admin Viewing items
issueTwentyOne:
title: Admin Viewing items
body: >
As an Admin
When I visit "/admin/dashboard"
Then I should see a link for viewing all items
And when I click that link
Then my current path should be "/admin/items"
Then I should see a table with all items (active and inactive)
And each item should have:
- A thumbnail of the image
- Title that links to the item
- Description
- Status
- Actions (Edit)
meet with sal & carmer
create a seed file
User can see order history (show single)
issueTen:
title: Viewing a past order
body: >
Background: An existing user that has one previous order
As an authenticated user
When I visit "/orders"
Then I should see my past order
And I should see a link to view that order
And when I click that link
Then I should see each item that was order with the quantity and line-item subtotals
And I should see links to each item's show page
And I should see the current status of the order (ordered, paid, cancelled, completed)
And I should see the total price for the order
And I should see the date/time that the order was submitted
If the order was completed or cancelled
Then I should see a timestamp when the action took place
ship to heroku
Put link to dashboard/my profile in navbar
User cannot see other user data or admin
issueThirteen:
title: Authenticated users security
body: >
Background: An authenticated user
As an Authenticated User
I cannot view another user's private data (current or past orders, etc)
I cannot view the administrator screens or use admin functionality
I cannot make myself an admin
Visitor can view items
title: Visitor can view items
body: >
Background: I have several items and each of them has a title, description, price, and image
As a visitor
When I visit "/items"
I can see all existing items
check and trim routes/fix tests
research/implement paperclip
Visitor can remove items from cart
title: Removing an item from my cart
body: >
Background: My cart has an item in it
As a visitor
When I visit "/cart"
And I click link "Remove"
Then my current page should be "/cart"
And I should see a message styled in green
And the message should say "Successfully removed SOME_ITEM from your cart."
And the title "SOME_ITEM" should be a link to that item in case the user wants to add it back
And I should not see the item listed in cart
Configure Hound
set desired filters i.e. single/double quotes, do not assess comments etc
Fix negative items quantity
if you put -22 in quantity you get a refund
Admin can log in-sent to admin/dashboard
issueSixteen:
title: Admin logs in
body: >
As an Admin
When I log in
Then I am redirected to "/admin/dashboard"
User can authenticate/login
issueSeven:
title: Authenticated User
body: >
As a visitor
When I visit "/"
Then I should see a link for "Login"
And when I click "Login"
And I should be on the "/login" page
I should see a place to insert my credentials to login
And I should see a link to "Create Account"
As a visitor
When I visit "/login
And when I click link "Create Account"
And I fill in my desired credentials
And I submit my information
Then my current page should be "/dashboard"
And I should see a message in the navbar that says "Logged in as SOME_USER"
And I should see my profile information
And I should not see a link for "Login"
And I should see a link for "Logout"
Style flash messages
set classes for flash msgs, green > success, red > danger, yellow > notice
Admin can see all orders and their status
issueEighteen:
title: Admin Orders
body: >
As an Admin
When I visit the dashboard
Then I can see a listing of all orders
And I can see the total number of orders for each status ("Ordered", "Paid", "Cancelled", "Completed")
And I can see a link for each individual order
And I can filter orders to display by each status type ("Ordered", "Paid", "Cancelled", "Completed")
And I have links to transition between statuses
- I can click on "cancel" on individual orders which are "paid" or "ordered"
- I can click on "mark as paid" on orders that are "ordered"
- I can click on "mark as completed" on orders that are "paid"
Change update cart quantity to increment/decrement buttons
fix wording on item show page "back to..." link
The show page always says 'back to :category' regardless of if I came from all items or not. Not the worst thing but it's an anti-pattern than will confuse users.
update site url
Change the URL on heroku to reflect the app
Visitor can Add Items to Cart
fixed retired radio button
Customize 404 page
404 needs some styling, not just basic rails default
Create admin users on Heroku
User can see order history (index all past)
issueNine:
title: Viewing past orders
body: >
Background: An existing user that has multiple orders
As an Authenticated User
When I visit "/orders"
Then I should see all orders belonging to me and no other orders
Admin cannot modify user data
issueSeventeen:
title: Admin cannot modify users
body: >
As a logged in Admin
I can modify my account data
But I cannot modify any other user's account data
Admin can visit admin/dashboard; 404 for RegUser
issueFifteen:
title: Admin User Dashboard
body: >
As an Admin
When I visit "/admin/dashboard"
I will see a heading on the page that says "Admin Dashboard"
As a registered user
When I visit "/admin/dashboard"
I get a 404
As an unregistered user
When I visit "/admin/dashboard"
I get a 404
change img sizes (thumbnail/show)
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.