-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#352] dashboardview (connects #352) #362
Conversation
MacNew
commented
Jan 30, 2018
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra space and extra lines. Please check it once and solve it .
<mat-grid-list cols="6" rowHeight="2:1"> | ||
<mat-grid-tile class="backgroundcolor-purple"> | ||
<mat-icon style="color:white;font:bold;" class="md-icon-36">event </mat-icon> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please remove extra line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok
<mat-card> | ||
<mat-card-content> | ||
<mat-grid-list cols="6" rowHeight="2:1"> | ||
<mat-grid-tile class="backgroundcolor-green"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are more spaces before . Please check it once .
<mat-card-content> | ||
<mat-grid-list cols="6" rowHeight="2:1"> | ||
<mat-grid-tile class="backgroundcolor-orange"> | ||
<mat-icon style="color:white;font:bold;" class="md-icon-36">library_books </mat-icon> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are more spaces. Please check it once .
</mat-card-content> | ||
</mat-card> | ||
</div> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why there are two extra lines?
@@ -0,0 +1,39 @@ | |||
.dashboard-card-view { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please follow indentation rule.
<mat-divider></mat-divider> | ||
<div class="dashboard-card-view-library"> | ||
<mat-card> | ||
<mat-card-content> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indentaion there are extra spaces
src/app/dashboard/dashboard.scss
Outdated
.md-icon-36 { | ||
@include md-icon-size(46px); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so many extra lines
@@ -4,9 +4,8 @@ import { UserService } from '../shared/user.service'; | |||
|
|||
// Main page once logged in. At this stage is more of a placeholder. | |||
@Component({ | |||
template: ` | |||
<div id="greeting">Hi, {{name}}</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we have greeting messages for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
its ok not to have greeting message
<mat-card-content> | ||
<mat-grid-list cols="6" rowHeight="2:1"> | ||
<mat-grid-tile class="backgroundcolor-orange"> | ||
<mat-icon style="color:white;font:bold;" class="md-icon-36">library_books </mat-icon> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
styles should go in scss file, bootstrap class should not be used
@@ -0,0 +1,74 @@ | |||
<mat-card class="dashboard-card-view"> | |||
<div class="dashboard-contain-image-and-string"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we have i18n translation tag added in all places
images used should be from the icon drive and also there is white space at bottom of all sections |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking messy both in the UI and in the code. Please take a look at another issue so I can review this in more detail and help fix it.
|
||
export class DashboardComponent implements OnInit { | ||
myLibrary = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pull data from database instead of having it written
constructor( | ||
private userService: UserService | ||
) {} | ||
|
||
ngOnInit() { | ||
Object.assign(this, this.userService.get()); | ||
} | ||
|
||
nextLibrary() { | ||
this.myLibrary = this.myLibrary.concat( this.myLibrary.splice( 0, 4 ) ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of playing around with array add pointer to point out the current position
@paulbert shall we make content scrollable or sort the data instead to avoid scrolling half of the content of a card |
closing icon on favor of https://github.com/ole-vi/planet/pull/393 |