cloney_island's Issues
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!”
add simple_cov
configure it too yo
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
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
format time in Project
and project and project creation
Default user permissions
- what can they see that a guest cannot?
Register/Sign in to Fund
On project page should actually go somewhere.
Add registered user permissions
- add registered user role to logged in user
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
Seed iteration 1
- seed some users and projects
- no relationships between users and projects have been established yet.
Add project funder permissions
- create permissions for project funder
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
Admin permissions
add admin permissions
Seed iteration 4
- add project owners to seed file
update user create password field to be
password field secret
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
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
Paginate projects index
Seed file iteration 2
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
Remove Submit Comment
If not logged in, user should not see button to submit comment.
Seed iteration 3
- add user roles, project_owner and project_funder to seed file
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
add sad path tests for invalid token
Root as Guest
As a Guest
When I visit ‘/’
I see a list of all projects
I should see a button to log in
Projects index
As a Guest
When I visit ‘/projects’
I see a list of all projects
Implement collaborator
Almost funded projects on home
As a user
when I am on the home page
I seethe 3 projects closest to funding goal
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
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
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
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"
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
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
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 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
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
Permission tests
most of these tests cannot live without views. make sure all match up. (create as a permission?)
Add project owner role to default user
As a registered user
When they click submit on the new project form
The role of project owner is added to that user
and a new project is created
Guest Permissions
- what does this mean?
Project Update
As a project owner
When they submit the form to update a project
The details on that project show page are updated
Project owner permissions
- set permissions for project owner
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”
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
Project Funder sees the amount they have funded
as a project funder
When I visit ‘/project-name’ for a project I have funded
I see the total amount I have already funded
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’
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
Set up production
- push shit to heroku
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.