wething's Issues
URL's don't link to anything
Add specs to User model
Right now, user model is validating the presence of first_name and last_name fields. We need to cover these validations with specs.
Tip:
Favorited Things
Users should be able to add things as favorites.
Feature: Adding a thing to my favorites
I am logged in
And I visit root_path
Given I have one thing
When I click on "Add to my favorites"
Then current_user.favorited_things should include that thing
Feature: Listing my favorite things
I am logged in
And I have favorited 1 thing
When I visit "/my/favorites"
Then page should list that thing
Caveats:
- A thing can be favorited only once per user
Issue with configure_permitted_parameters method
devise_parameter_sanitizer.for(:sign_in) should only permit email and password params.
devise_parameter_sanitizer.for(:sign_up) should permit password_confirmation.
Homepage: list things
As logged in user
I visit '/'
and I see my company's things
Can't edit my account
Signup is not working
A user visits http://localhost:3000/users/sign_up
when he clicks on "sign up"
the following messages are rendered:
- Email can't be blank
- Password can't be blank
- First name can't be blank
- Last name can't be blank
The problem is that we don't have neither first name nor last name fields to complete these data.
Tip: https://github.com/plataformatec/devise#configuring-views
Signup and Signin links are missing
A user visits http://localhost:3000/
No signup link is rendered.
No signin link is rendered.
implement iframe
Views tracking
We'd like to implement a basic views tracking for the URLs we stored in the system.
Every time I click on an URL, the system should increment a views counter for that URL, before redirecting to the referenced site.
Here's the user story for this feature:
I am logged in
And I visit root_url
Given I have a thing stored
And it has 0 views
When I click on thing's URL
Then the thing's views counter should be 1
And I should be redirected to that URL
Caveats:
- The system should store only 1 view per user.
Views tracking feature isn't properly covered
It's necessary to cover what should happen when there's no user logged in.
Feature: Thing!
As a User
I visit "/thing/this"
I fill in "url", with "some valid and existing url"
and I fill in "description", with "some smart description"
when I click on "Thing this!"
Then 1 Thing is created.
and my company things include that created thing.
Present current company name for logged in users
As a logged in user
I want to see my current company name.
Issue with devise links
With a logged in User:
- Show sign out link.
- Show current user's first name
Without a logged in User:
- Show sign in link.
- Show sign up link.
Thing this feature is not integrated with Bootstrap
Implement views with slim markup
Convert:
- application.html.erb => application.html.slim
- home/index.html.erb => home/index.html.slim
Tip:
"Thing Something!" should look like a button
Favorite feature is not properly covered
The specs aren't taking into consideration what should happen if there's no user logged in and if a user has already favorited a thing.
Multi-tenant Signup
As a visitor
I visit /users/sign_up
when I fill in "user[first_name]" with "Bruce"
and I fill in "user[last_name]" with "Banner"
and I fill in "user[email]" with "[email protected]"
and I fill in "user[company_attributes][name]" with "The Hulk!"
and I fill in "user[password]" with "123123123"
and I fill in "user[password_confirmation]" with "123123123"
and I click "Sign up"
Then a user is created
and a company is created with the name "The Hulk!"
and the user is linked to that company
Install TwitterBootstrap
Implement a basic layout based on TwitterBootstrap.
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.