-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
After #192, assignees of a repo without any issues or PRs are hidden. Now, add the column to display such users with 0 PRs and issues. Co-authored-by: Gabriel Goh <77230723+gycgabriel@users.noreply.github.com>
- Loading branch information
1 parent
bb4cb78
commit 64a6862
Showing
7 changed files
with
150 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
82 changes: 82 additions & 0 deletions
82
src/app/issues-viewer/hidden-users/hidden-users.component.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
.hidden-users { | ||
margin: 8px; | ||
min-width: 150px; | ||
max-width: 300px; | ||
} | ||
|
||
.row-count { | ||
background-color: rgb(222, 222, 222); | ||
border-radius: 3px; | ||
cursor: default; | ||
padding: 6px; | ||
color: rgb(0, 0, 0); | ||
font-weight: 410; | ||
display: inline-flex; | ||
font-size: 14px; | ||
} | ||
|
||
.mat-card-header { | ||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
width: 100%; | ||
} | ||
|
||
.mat-card { | ||
margin: 8px 0px; | ||
height: 40px; | ||
padding: 10px; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
flex-direction: row; | ||
} | ||
|
||
.mat-card-title { | ||
font-size: 14px; | ||
text-align: center; | ||
margin: 0; | ||
flex-grow: 1; | ||
margin: 2px; | ||
word-break: break-word; | ||
} | ||
|
||
.mat-card-avatar { | ||
height: 30px; | ||
width: 30px; | ||
} | ||
|
||
.mat-card-header .mat-card-title { | ||
font-size: 12px; | ||
} | ||
|
||
.scrollable-container { | ||
height: 67vh; | ||
overflow: auto; | ||
scrollbar-width: none; | ||
-ms-overflow-style: none; | ||
position: relative; | ||
} | ||
|
||
.scrollable-containers::-webkit-scrollbar { | ||
display: none; | ||
} | ||
|
||
.scrollable-container::before, | ||
.scrollable-container::after { | ||
pointer-events: none; | ||
content: ''; | ||
z-index: 2; | ||
height: 6px; | ||
width: 100%; | ||
display: block; | ||
background-image: linear-gradient(to bottom, white 66%, transparent); | ||
} | ||
|
||
.scrollable-container::before { | ||
position: absolute; | ||
} | ||
|
||
.scrollable-container::after { | ||
position: sticky; | ||
} |
22 changes: 22 additions & 0 deletions
22
src/app/issues-viewer/hidden-users/hidden-users.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<div *ngIf="users.length > 0" class="hidden-users"> | ||
<mat-card> | ||
<mat-card-title>Hidden users</mat-card-title> | ||
<div class="row-count">{{ users.length }}</div> | ||
</mat-card> | ||
<div class="scrollable-container"> | ||
<div *ngFor="let user of users"> | ||
<mat-card> | ||
<mar-card-header class="mat-card-header"> | ||
<div | ||
mat-card-avatar | ||
[ngStyle]="{ | ||
background: 'url(' + user.avatar_url + ')', | ||
'background-size': '30px' | ||
}" | ||
></div> | ||
<mat-card-title>{{ user.login }}</mat-card-title> | ||
</mar-card-header> | ||
</mat-card> | ||
</div> | ||
</div> | ||
</div> |
11 changes: 11 additions & 0 deletions
11
src/app/issues-viewer/hidden-users/hidden-users.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { Component, Input } from '@angular/core'; | ||
import { GithubUser } from '../../core/models/github-user.model'; | ||
|
||
@Component({ | ||
selector: 'app-hidden-users', | ||
templateUrl: './hidden-users.component.html', | ||
styleUrls: ['./hidden-users.component.css'] | ||
}) | ||
export class HiddenUsersComponent { | ||
@Input() users: GithubUser[] = []; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters