Skip to content

Commit

Permalink
Merge pull request #8288 from ever-co/stage
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
evereq authored Sep 29, 2024
2 parents fca0ff3 + ecfbb0c commit 1dc1544
Show file tree
Hide file tree
Showing 106 changed files with 2,835 additions and 1,693 deletions.
3 changes: 2 additions & 1 deletion .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,8 @@
"nbbutton",
"xaxis",
"wdth",
"concate"
"concate",
"typeahead"
],
"useGitignore": true,
"ignorePaths": [
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/server-api-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ jobs:
PROCESSOR_REVISION: ''
PSModuleAnalysisCachePath: ''
PSModulePath: ''
Path: 'C:\hostedtoolcache\windows\node\20.11.1\x64;C:\Program Files\Git\bin;C:\npm\prefix;C:\hostedtoolcache\windows\Python\3.9.13\x64\Scripts;C:\hostedtoolcache\windows\Python\3.9.13\x64;C:\Program Files\OpenSSL\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\OpenSSH\;C:\Program Files\dotnet\;C:\Program Files\PowerShell\7\;C:\Program Files\CMake\bin;C:\Program Files\nodejs\;C:\Program Files\Git\cmd;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Program Files\GitHub CLI\;C:\Program Files\Amazon\AWSCLIV2\;C:\Users\runneradmin\.dotnet\tools'
Path: 'C:\hostedtoolcache\windows\node\20.11.1\x64;C:\Program Files\Git\bin;C:\npm\prefix;C:\hostedtoolcache\windows\Python\3.9.13\x64\Scripts;C:\hostedtoolcache\windows\Python\3.9.13\x64;C:\Program Files\OpenSSL\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\OpenSSH\;C:\Program Files\dotnet\;C:\Program Files\PowerShell\7\;C:\Program Files\CMake\bin;C:\Program Files\nodejs\;C:\Program Files\Git\cmd;C:\Program Files\Git\usr\bin;C:\Program Files\Amazon\AWSCLIV2\'
DOTNET_MULTILEVEL_LOOKUP: ''
DOTNET_NOLOGO: ''
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: ''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,13 +224,14 @@ <h4>
<div class="hour-label mb-3">
<ng-template [ngxPermissionsOnly]="PermissionsEnum.CHANGE_SELECTED_EMPLOYEE">
<ngx-avatar
size="sm"
class="avatar-dashboard activity"
[size]="'sm'"
[name]="employee?.user?.name"
[src]="employee?.user?.imageUrl"
[appendCaption]="'TIMESHEET.LAST_WORKED' | translate"
[caption]="(employee?.timeSlots)[0]?.startedAt | utcToLocal | dateFormat"
[id]="employee?.id"
[employee]="employee"
></ngx-avatar>
</ng-template>
<div></div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,17 +84,17 @@
</div>
</ng-template>
</ng-template>
<div class="col-3 project-name">
<div class="col-3">
<ngx-project *ngIf="log?.project; else noProject" [rowData]="log"></ngx-project>
<ng-template #noProject>
<span>
{{ 'TIMESHEET.NO_PROJECT' | translate }}
</span>
</ng-template>
<div class="mt-2 small">
<span *ngIf="log?.task; else noToDo">
<strong> {{ 'TIMESHEET.TODO' | translate }} : </strong>
{{ log?.task?.title }}
<span *ngIf="log?.task; else noToDo" [nbTooltip]="log?.task?.title">
<strong>{{ 'TIMESHEET.TODO' | translate }}:</strong>
{{ log?.task?.title | truncate : 50 }}
</span>
<ng-template #noToDo>
<span>{{ 'TIMESHEET.NO_TODO' | translate }}</span>
Expand All @@ -119,10 +119,18 @@
{{ log.logType | titlecase }}
</span>
</div>
<div class="col">
<span class="log">
{{ log.source | replace : '_' : ' ' | titlecase }}
</span>
<div class="col source-version">
<ngx-badge-label
[text]="log?.source | replace : '_' : ' ' | titlecase"
class="badge-item"
></ngx-badge-label>

<ngx-badge-label
*ngIf="log?.version"
[text]="log?.version"
status="info"
class="badge-item"
></ngx-badge-label>
</div>
<div class="col">
{{ log.duration | durationFormat }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,33 +1,37 @@
@import '../../weekly/weekly/weekly.component.scss';

:host {
nb-card {
border-radius: 0 nb-theme(border-radius) nb-theme(border-radius) nb-theme(border-radius);
}
nb-card-body {
height: 100%;
}
.gauzy-button-action {
display: flex;
align-content: center;
justify-content: flex-end;
}
.log-container {
height: calc(100% - 50px);
}
.log {
width: fit-content;
font-size: 12px;
font-weight: 600;
line-height: 15px;
letter-spacing: 0em;
text-align: left;
padding: 3px 8px;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
border-radius: nb-theme(border-radius);
background: var(--gauzy-sidebar-background-3);
}
nb-card {
border-radius: 0 nb-theme(border-radius) nb-theme(border-radius) nb-theme(border-radius);
}
nb-card-body {
height: 100%;
}
.gauzy-button-action {
display: flex;
align-content: center;
justify-content: flex-end;
}
.log-container {
height: calc(100% - 50px);
}
.log {
width: fit-content;
font-size: 12px;
font-weight: 600;
line-height: 15px;
letter-spacing: 0em;
text-align: left;
padding: 3px 8px;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
border-radius: nb-theme(border-radius);
background: var(--gauzy-sidebar-background-3);
}
.source-version {
display: flex;
gap: 5%;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@ <h4>
></nb-icon>
</button>
</nb-form-field>
<nb-autocomplete
#autocomplete
(selectedChange)="onSelectionChange($event)"
>
<nb-autocomplete #autocomplete (selectedChange)="onSelectionChange($event)">
<nb-option
*ngFor="let role of roles$ | async"
[value]="role.name"
Expand All @@ -41,10 +38,7 @@ <h4>
</nb-autocomplete>
</div>
</div>
<div
class="col-6"
*ngxPermissionsOnly="['CHANGE_ROLES_PERMISSIONS']"
>
<div class="col-6" *ngxPermissionsOnly="['CHANGE_ROLES_PERMISSIONS']">
<ng-container *ngIf="isWantToCreate">
<div class="actions create">
<button
Expand All @@ -59,9 +53,7 @@ <h4>
{{ 'BUTTONS.CREATE_NEW_ROLE' | translate : { name: input.value } }}
</div>
</ng-container>
<ng-container
*ngIf="role && role.isSystem === false && !isWantToCreate"
>
<ng-container *ngIf="role && role.isSystem === false && !isWantToCreate">
<div class="actions delete">
<button
nbButton
Expand All @@ -71,10 +63,7 @@ <h4>
size="small"
[nbTooltip]="'BUTTONS.DELETE' | translate"
>
<nb-icon
status="danger"
icon="trash-2-outline"
></nb-icon>
<nb-icon status="danger" icon="trash-2-outline"></nb-icon>
</button>
{{ 'BUTTONS.DELETE_EXISTING_ROLE' | translate : { name: role.name } }}
</div>
Expand All @@ -85,35 +74,20 @@ <h4>
<div class="col-12 col-xl-6">
<nb-card>
<nb-card-header>
{{
'ORGANIZATIONS_PAGE.PERMISSIONS.GROUPS.GENERAL'
| translate
}}
{{ 'ORGANIZATIONS_PAGE.PERMISSIONS.GROUPS.GENERAL' | translate }}
</nb-card-header>
<nb-card-body class="permission-items-col">
<nb-toggle
*ngFor="let permission of permissionGroups.GENERAL"
[(checked)]="enabledPermissions[permission]"
(checkedChange)="
permissionChanged(
permission,
$event,
!isDisabledGeneralPermissions()
)
"
(checkedChange)="permissionChanged(permission, $event, !isDisabledGeneralPermissions())"
labelPosition="start"
status="basic"
[disabled]="isDisabledGeneralPermissions()"
>
<div class="custom-permission-view">
<strong>{{
'ORGANIZATIONS_PAGE.PERMISSIONS.' +
permission | translate
}}</strong>
<small>{{
'ORGANIZATIONS_PAGE.PERMISSIONS.' +
permission | translate
}}</small>
<strong>{{ 'ORGANIZATIONS_PAGE.PERMISSIONS.' + permission | translate }}</strong>
<small>{{ 'ORGANIZATIONS_PAGE.PERMISSIONS.' + permission | translate }}</small>
</div>
</nb-toggle>
</nb-card-body>
Expand All @@ -122,46 +96,28 @@ <h4>
<div class="col-12 col-xl-6">
<nb-card>
<nb-card-header
>{{
'ORGANIZATIONS_PAGE.PERMISSIONS.GROUPS.ADMINISTRATION'
| translate
}}
>{{ 'ORGANIZATIONS_PAGE.PERMISSIONS.GROUPS.ADMINISTRATION' | translate }}
<nb-icon
[nbTooltip]="
'ORGANIZATIONS_PAGE.PERMISSIONS.ONLY_ADMIN'
| translate
"
[nbTooltip]="'ORGANIZATIONS_PAGE.PERMISSIONS.ONLY_ADMIN' | translate"
icon="question-mark-circle-outline"
size="tiny"
>
</nb-icon>
</nb-card-header>
<nb-card-body class="permission-items-col">
<nb-toggle
*ngFor="
let permission of getAdministrationPermissions()
"
*ngFor="let permission of getAdministrationPermissions()"
[(checked)]="enabledPermissions[permission]"
(checkedChange)="
permissionChanged(
permission,
$event,
!isDisabledAdministrationPermissions()
)
permissionChanged(permission, $event, !isDisabledAdministrationPermissions())
"
labelPosition="start"
status="basic"
[disabled]="isDisabledAdministrationPermissions()"
>
<div class="custom-permission-view">
<strong>{{
'ORGANIZATIONS_PAGE.PERMISSIONS.' +
permission | translate
}}</strong>
<small>{{
'ORGANIZATIONS_PAGE.PERMISSIONS.' +
permission | translate
}}</small>
<strong>{{ 'ORGANIZATIONS_PAGE.PERMISSIONS.' + permission | translate }}</strong>
<small>{{ 'ORGANIZATIONS_PAGE.PERMISSIONS.' + permission | translate }}</small>
</div>
</nb-toggle>
</nb-card-body>
Expand Down
Loading

0 comments on commit 1dc1544

Please sign in to comment.