Git Product home page Git Product logo

cloney_island's People

Contributors

cews7 avatar cjmoore avatar edilenedacruz avatar scmountain avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

cloney_island's Issues

Display owned projects on user profile

As a project owner
When they visit ‘/username’
They see their user information(as detailed in registered user)
They see a table with all of their owned projects
The table includes project name
Each project name is a link to the project show
Total amount
Total Funded
Remaining Time
There is a button labeled “Edit”
There is a button labeled “Disable"

reg user views project show page

As a registered user
When I am on ‘/projects/project-name’
I see the details for the project
I see a button to fund
I see a form to submit a comment

When Reg user clicks "Fund"

When they are on project show
And they click fund
They are taken to ‘/username/funded/new’
They see a form
The form has a field for Amount
The form has a field for credit card
They see a button that says “Fund!”

Reg user can logout

as a registered user,
when you click logout
you are taken to the login
you can see login in nav bar

User logs-in

As a Guest
When I fill in the login form with valid credentials
And click submit
I am now logged in as a user

Root as Guest

As a Guest
When I visit ‘/’
I see a list of all projects
I should see a button to log in

Create user

As a Guest
When I am on “users/new”
And I fill in the form
And I click submit
A new user is created
The user is redirected to the homepage

User Update: Twilio

As a registered user
When they submit the edit form
If they have chosen to change their password
They need to go through two step auth with twillo
They are redirected back to “/username”
The page includes the updated information

Collaborators sad path

As a project owner
When I am creating or editing a project
I cannot add a collaborator that is not already a user
If I try to add a non-valid collaborator
I see a flash and the form is re-rendered

Admin can create admin

as an admin
when I am on users index
I see a button "make admin" next to a user on the users table
when I click that button that user turns into an admin

Projects index

As a Guest
When I visit ‘/projects’
I see a list of all projects

Default user becomes project funder

As a default user
When I am on the ‘projects/project-name/funds/new
And I fill in the form
And I click submit
I become a project funder
The project.funds increase by the amount

Admin sees user index

As an admin
When I am on the ‘/users’ page
I see two columns, ‘username’ and ‘status’
I can see all usernames under the ‘username’ column
and
a highlighted status next to the username under the ‘status’ column
The status options are: ‘active’, ‘archived’, ‘reactivate’

New User

As a Guest
When I am on the login page
And I click Create Account
I am taken to “/users/new”
I see a form
There is a field for username, email, password, password confirmation

Seed iteration 3

  • add user roles, project_owner and project_funder to seed file

Create Project

As a registered user
When they click on Create a Project
They are at the route ‘projects/new’
They see a form for creating a project
There is a field for Title
There is a field for uploading an image
There is a field for Description
There is a field for Total time
There is a field for Amount looking to raise
There is a field to add a contributor by email
They see a create button

Edit User

As a registered user
When they are on their dashboard
And click edit
They are on ‘/username/edit’
They see an image
They see a form
The form has a field for username
The form has a field for email
The form has a field for new password
The form has a field for image
They see a submit button

User new login

As a Guest
When I click login
I am at the route ‘/login’
I see a form to submit username and password
And a button to login with facebook
I also see a button to create an account.

User validations

  • add validations to user model

  • add model tests for those validations

  • validate presence username, email, passoword, first and last name.

  • validate uniqueness email, username

Permission tests

most of these tests cannot live without views. make sure all match up. (create as a permission?)

Edit Project

As a project owner
When they are on their user profile
And they click Edit on their projects table
They are taken to ‘/username/projectname/edit’
They see a form that includes
A field for name
A field for description
A field for Image link
A field to add collaborators by email
They cannot see option to change time or amount
They see a button labeled “update project”

Project Update

As a project owner
When they submit the form to update a project
The details on that project show page are updated

Admin delete comment

As an admin
When I am on the ‘/projects/:slugged project name’ page
I see an individual project with it’s description, image, and comments
I see a ‘delete comment’ button next to every comment
Then I click the ‘delete comment’ button
And the comment is deleted

Disable Project

As a project owner
When I am on my dashboard page
I see a button that says disable
When I click that button the project is disabled
No funds can be given
The project cannot be editted

Reg user's nav bar view

As as a registered user
When they are logged in
They see a button on the nav to logout
They see a button on the nav to view my profile
And they see a button to create a project

User Profile

As a registered user
Who is logged in
When they click on profile
They are taken to ‘/username’
They see a personal image
They see their email
They see their username
They see an edit button

Add table of funded projects to user profile

as a project funder
when I visit ‘/:username’
I can see a table with all the projects I have funded
There is a column for the name
Each name is a link to project show
There is a column for time remaining
There is a column for total amount funded
There is a column for total needed
There is a column for total I have funded

Admin can deactivate User

As an admin
When I am on the ‘/users’ page
I see buttons with options to "deactivate or activate"
Then I click on an option
Then the user becomes either active or deactivated

**question for sal: are these roles or columns on user?-- column

Seed iteration 1

  • seed some users and projects
  • no relationships between users and projects have been established yet.

guest views project show page

As a Guest
When they click on a project
They are directed to ‘/projects/project-name” ** Should this be slugged?
They see the project details
They see the project name
They see an image for the project
They see a description
They see the name of the project owners
They see a progress bar
They see the amount of time left
They see the total amount of time
They see all comments for project
They do not see a button to fund the project
They see a button that says register to fund

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.