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
feat(overview): add overview and project tile components (DEV-984) #777
Merged
Merged
Changes from 9 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
394f42d
feat(overview): add overview and project tile components
mdelez b6d2705
update css
mdelez d90ebcf
feat(overview): add additional css and click events
mdelez 26a6dd8
feat(overview): add view for unknown user, add create new project but…
mdelez e484d27
feat(project): add sidenav item to go to the projects overview
mdelez 39ec20e
test(overview, project-tile): fix test for overview. fix and add test…
mdelez 1c6293f
test(overview): add tests for overview component
mdelez 4a2a01f
refactor(overview): simplify logic to use two arrays instead of three
mdelez 772bc1e
fix(users-list): get shortcode from grandchild route in the case user…
mdelez 2832fce
chore(project): adjust comment
mdelez File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<div class="project-tile"> | ||
<div class="project-tile-content"> | ||
<div class="top-bar"> | ||
<div class="status"> | ||
<div *ngIf="project.status === true" class="status-badge active"> | ||
<span>Active</span> | ||
</div> | ||
<div *ngIf="project.status === false" class="status-badge deactivated"> | ||
<span>Deactivated</span> | ||
</div> | ||
</div> | ||
<div *ngIf="sysAdmin" class="settings"> | ||
<button class="settings-button" mat-icon-button (click)="navigateTo(project.shortcode, 'settings')"> | ||
<mat-icon>settings</mat-icon> | ||
</button> | ||
</div> | ||
</div> | ||
|
||
<div class="icon"> | ||
<mat-icon>redeem</mat-icon> | ||
</div> | ||
|
||
<div class="title"> | ||
<p>{{project.longname}}</p> | ||
</div> | ||
|
||
<div class="dashboard-button-container"> | ||
<button class="dashboard-button" mat-flat-button [color]="'primary'" | ||
(click)="navigateTo(project.shortcode, 'dashboard')"> | ||
Go to dashboard | ||
</button> | ||
</div> | ||
</div> | ||
</div> |
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,97 @@ | ||
.project-tile { | ||
border: 1px solid #d1d5db; | ||
border-radius: 6px; | ||
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25); | ||
|
||
.project-tile-content { | ||
padding: 10px 5px 10px 10px; | ||
|
||
.top-bar { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
|
||
.status, | ||
.settings { | ||
display: inline-block; | ||
} | ||
|
||
.status { | ||
|
||
.status-badge { | ||
border-radius: 10px; | ||
padding: 2px 10px 4px 10px; | ||
|
||
span { | ||
font-size: 12px; | ||
} | ||
} | ||
|
||
.status-badge.active { | ||
background-color: #99F6E4; | ||
|
||
span { | ||
color: #0F766E; | ||
} | ||
} | ||
|
||
.status-badge.deactivated { | ||
background-color: #E5E7EB; | ||
|
||
span { | ||
color: #6B7280; | ||
} | ||
} | ||
|
||
} | ||
|
||
.settings { | ||
mat-icon-button { | ||
width: 28px; | ||
height: 28px; | ||
line-height: 28px; | ||
mat-icon { | ||
height: 28px; | ||
width: 28px; | ||
font-size: 28px; | ||
line-height: 28px; | ||
} | ||
} | ||
|
||
} | ||
} | ||
|
||
.icon { | ||
padding-top: 23px; | ||
|
||
mat-icon { | ||
font-size: 40px; | ||
} | ||
} | ||
|
||
.title { | ||
font-weight: 700; | ||
font-size: 24px; | ||
color: #3b4856; | ||
display: -webkit-box; | ||
-webkit-line-clamp: 2; | ||
-webkit-box-orient: vertical; | ||
overflow: hidden; | ||
line-height: 28px; | ||
padding: 0px 20px; | ||
height: 80px; | ||
} | ||
|
||
.dashboard-button-container { | ||
margin: 14% 0%; | ||
|
||
button { | ||
font-size: 16px; | ||
line-height: 24px; | ||
font-weight: 400; | ||
padding: 13px 21px; | ||
} | ||
} | ||
} | ||
|
||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Because this comment refers to the function its more common to do the "/** [...] */" comment
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.
true true, changed in 2832fce