Skip to content

Commit

Permalink
Release v0.9.0-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
Brend-Smits authored Dec 9, 2020
2 parents bb1e840 + 302638b commit abc2ca1
Show file tree
Hide file tree
Showing 42 changed files with 1,650 additions and 626 deletions.
4 changes: 4 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,9 @@ A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.

**Production URL**
Can this issue be linked to a relevant production URL? If so, please post the full link here, don't use hyperlinks.
If you can, post a short description around the url why it's relevant, this is good for SEO reasons.

**Additional context**
Add any other context about the problem here.
4 changes: 4 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,9 @@ A clear and concise description of what the problem is. Ex. I'm always frustrate
**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Production URL**
Can this issue be linked to a relevant production URL? If so, please post the full link here, don't use hyperlinks.
If you can, post a short description around the url why it's relevant, this is good for SEO reasons.

**Additional context**
Add any other context or screenshots about the feature request here.
20 changes: 20 additions & 0 deletions .github/workflows/lighthouse.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Lightouse CI
on:
push:
branches: [ develop ]
jobs:
lighthouse:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Audit URLs using Lighthouse
uses: treosh/lighthouse-ci-action@master
with:
urls: |
https://staging.dex.software/home
https://staging.dex.software/project/overview
https://staging.dex.software/project/add/source
https://staging.dex.software/account/login
budgetPath: ./budget.json # test performance budgets
uploadArtifacts: true # save results as an action artifacts
temporaryPublicStorage: true # upload lighthouse report to the temporary storage
2 changes: 1 addition & 1 deletion .github/workflows/staging-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Staging Deployment

on:
push:
branches: [ develop ]
branches: [ develop, release/* ]

jobs:
build:
Expand Down
31 changes: 31 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,49 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]


### Added


### Changed


### Deprecated


### Removed


### Fixed


### Security



## Release v.0.9.0-beta - 09-12-2020

### Added

- Added SEO & performance check when pushing new code to develop branch [#285](https://github.com/DigitalExcellence/dex-frontend/issues/285)
- Added a DeX preview when linking DeX in social media with a title, description and image for more user friendliness [#347](https://github.com/DigitalExcellence/dex-frontend/issues/347)

### Changed

- Redesigned project overview page [#365](https://github.com/DigitalExcellence/dex-frontend/issues/365)
- Implemented redesigned project details page [#362](https://github.com/DigitalExcellence/dex-frontend/issues/362)

### Fixed

- Fixed issue where the project icons would shrink if the description or title was too long - [#349](https://github.com/DigitalExcellence/dex-frontend/issues/349)
- Fixed alert box blocking project edit/-delete buttons - [#352](https://github.com/DigitalExcellence/dex-frontend/issues/352)
- Fixed issue where the pagination parameter was not getting reset on a new search - [#302](https://github.com/DigitalExcellence/dex-frontend/issues/302)
- Fixed images showing alt when image could not be loaded, it now shows placeholder image instead - [#339](https://github.com/DigitalExcellence/dex-frontend/issues/339)
- Fixed issue where tags were not hidden in production - [#373](https://github.com/DigitalExcellence/dex-frontend/issues/373)
- Fixed issue where images were not being lazy loaded - [#374](https://github.com/DigitalExcellence/dex-frontend/issues/374)
- Fixed low accessibility score within Lighthouse tests on home and project overview page [#366](https://github.com/DigitalExcellence/dex-frontend/issues/366)


## Release v.0.8.0-beta - 06-11-2020

### Added
Expand Down
31 changes: 31 additions & 0 deletions budget.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
[
{
"path": "/*",
"timings": [
{
"metric": "interactive",
"budget": 3000
},
{
"metric": "first-meaningful-paint",
"budget": 1000
}
],
"resourceSizes": [
{
"resourceType": "script",
"budget": 125
},
{
"resourceType": "total",
"budget": 300
}
],
"resourceCounts": [
{
"resourceType": "third-party",
"budget": 10
}
]
}
]
7 changes: 6 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dex-frontend",
"version": "0.0.0",
"version": "0.9.0-beta",
"scripts": {
"ng": "ng",
"config": "ts-node set-env.ts",
Expand All @@ -23,6 +23,7 @@
"@angular/platform-browser": "~9.1.12",
"@angular/platform-browser-dynamic": "~9.1.12",
"@angular/router": "~9.1.12",
"@fortawesome/fontawesome-free": "^5.15.1",
"@sentry/browser": "^5.24.2",
"@webcomponents/webcomponentsjs": "^2.4.4",
"bootstrap": "^4.5.2",
Expand Down
1 change: 1 addition & 0 deletions src/app/components/alert/alert.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@
::ng-deep .alert {
margin: 0 0 10px 0;
box-shadow: 0 3px 6px #0000001a;
pointer-events: all;
}
2 changes: 1 addition & 1 deletion src/app/components/app-layout/app-layout.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<div class="main-container">
<header *ngIf="!displayContentWithoutLayout" class="header header-6 navbar navbar-expand-md navbar-light">
<div class="branding">
<span class="title"><a routerLink=""><img alt="" src="assets/images/dex-logo-dark-orange.png" loading="lazy"></a></span>
<span class="title"><a routerLink="" aria-label="Back to the Homepage"><img alt="" src="assets/images/dex-logo-dark-orange.png" loading="lazy"></a></span>
<p (click)="onClickHeaderBetaText()" class="beta-text">Beta</p>
</div>

Expand Down
3 changes: 2 additions & 1 deletion src/app/components/app-layout/app-layout.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@

.account {
display: flex;
align-items: left;
align-items: flex-start;
margin-left: auto;
}

Expand Down Expand Up @@ -281,6 +281,7 @@
margin-right: auto;
margin-left: auto;
z-index: 10;
pointer-events: none;
}

.dropdown-menu {
Expand Down
4 changes: 2 additions & 2 deletions src/app/components/home/home.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ <h1>All projects in one place.</h1>
<div class="col-12">
<div class="search">
<input type="search" placeholder="search project" [formControl]="searchControl"
(keydown)="onKeyDownFunction($event)">
<button (click)="onClickSearch()"><img src="assets/images/research.svg" alt="" loading="lazy"></button>
(keydown)="onKeyDownFunction($event)" aria-label="Search project">
<button (click)="onClickSearch()"><img src="assets/images/research.svg" alt="" loading="lazy" aria-label="Search project" ></button>
</div>
</div>
</div>
Expand Down
8 changes: 4 additions & 4 deletions src/app/error-handler/sentry.error-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
* along with this program, in the LICENSE.md file in the root project directory.
* If not, see https://www.gnu.org/licenses/lgpl-3.0.txt
*/
import {ErrorHandler, Injectable} from '@angular/core';
import * as Sentry from '@sentry/browser';
import { ErrorHandler } from '@angular/core';
import { Injectable } from '@angular/core';
import { environment } from 'src/environments/environment';
import {environment} from 'src/environments/environment';

Sentry.init({
dsn: environment.sentryDsnUrl
dsn: environment.sentryDsnUrl,
release: '[email protected]'
});

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ <h2>Highlighted projects</h2>
<div *ngFor="let highlight of highlights" class="col-md-12 col-lg-4 mb-4">
<div class="card" (click)="onClickHighlightedProject(highlight.projectId, highlight.project.name)">
<div class="card-title">
<div class="icon"><img [src]="getIconUrl(highlight.projectId)" alt="" loading="lazy"></div>
<div class="icon" [ngStyle]="{'background-image': 'url(' + getIconUrl(highlight.projectId) + ')'}"></div>
<h3>{{highlight.project.name}}</h3>
</div>
<p class="large">{{highlight.description | striphtml}}</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,15 @@
height: 40px;
margin-right: 10px;
overflow: hidden;
border-radius: 999px;
background-size: cover;
background-position: center;
box-shadow: 0 0px 4px #0000001a;

@include media-breakpoint-down(sm) {
margin: auto;
margin-bottom: 10px;
}

img {
width: 100%;
height: 100%;
object-fit: cover;
}
}

h3 {
Expand Down
11 changes: 11 additions & 0 deletions src/app/modules/project/collaborator/collaborator.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<div class="collaborator-wrapper">
<div class="role">{{collaborator.role}}</div>
<div class="orange">
<div class="name">{{collaborator.fullName}}</div>
<ng-container *ngIf="isProduction()">
<div class="follow" (click)="onFollowClick(collaborator.id)">
<span>+</span>
</div>
</ng-container>
</div>
</div>
81 changes: 81 additions & 0 deletions src/app/modules/project/collaborator/collaborator.component.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
/*
*
* Digital Excellence Copyright (C) 2020 Brend Smits
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation version 3 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You can find a copy of the GNU Lesser General Public License
* along with this program, in the LICENSE.md file in the root project directory.
* If not, see https://www.gnu.org/licenses/lgpl-3.0.txt
*
*/
@import "assets/styles/variables";

.collaborator-wrapper {
display: grid;
grid-template-columns: 1fr 1.25fr;
align-content: stretch;
border-radius: 999px;
box-shadow: inset 0 0 0 2px $accent-color-red-primary;
margin-bottom: 2px;
align-items: center;
line-height: 1;
.role {
padding: 0 15px;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
color: $accent-color-red-primary;
white-space: nowrap;
}

.orange {
display: flex;
justify-content: space-between;
align-items: center;
height: 28px;
width: 100%;
max-width: 100%;
overflow: hidden;

background-color: $accent-color-red-primary;
color: white;
border-radius: 999px;
.name {
padding: 0 15px;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

.follow {
display: flex;
align-items: center;
justify-content: center;
font-size: 28px;
color: white;
min-width: 38px;
border-left: 1px solid white;
background-color: $accent-color-red-primary;
max-height: 100%;
height: 100%;
&:hover{
background-color: $accent-color-red-secondary;
cursor: pointer;
}
}

}

div {
display: inline-block;
}
}
35 changes: 35 additions & 0 deletions src/app/modules/project/collaborator/collaborator.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import { Component, Input, OnInit } from '@angular/core';
import { Collaborator } from 'src/app/models/domain/collaborator';
import { environment } from 'src/environments/environment';

@Component({
selector: 'app-collaborator',
templateUrl: './collaborator.component.html',
styleUrls: ['./collaborator.component.scss']
})
export class CollaboratorComponent implements OnInit {

@Input() collaborator: Collaborator;

constructor() { }

ngOnInit(): void {
}

/**
* Method that is called when a user clicks the follow button on a collaborator
* This functionality is not implemented YET
*/
public onFollowClick(projectId: number) {
// TODO: Implement this function when following users is added to the backend
}

/**
* Check whether the the application is running in production mode
* So we can hide the items that are not implemented yet
*/
public isProduction(): boolean {
return !environment.production;
}

}
Loading

0 comments on commit abc2ca1

Please sign in to comment.