Skip to content

Commit 0560507

Browse files
committed
Merge master branch into TT-589
2 parents 89d1e6a + 64826cd commit 0560507

File tree

6 files changed

+49
-8
lines changed

6 files changed

+49
-8
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "time-tracker",
3-
"version": "1.72.4",
3+
"version": "1.72.5",
44
"scripts": {
55
"config": "ts-node ./scripts/setenv.ts",
66
"preinstall": "npx npm-force-resolutions",

src/app/modules/activities-management/store/activity-management.selectors.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ const getActivityState = createFeatureSelector<ActivityState>('activities');
66
export const allActivities = createSelector(getActivityState, (state: ActivityState) => state?.data);
77

88
export const allActiveActivities = createSelector(getActivityState, (state: ActivityState) => {
9-
return state?.data.filter((item) => item.status !== 'inactive');
9+
return state?.data.filter((item) => item.status !== 'inactive').sort( (a, b) => {
10+
return (a.name).localeCompare(b.name);
11+
});
1012
});
1113

1214
export const activityIdToEdit = createSelector(getActivityState, (state: ActivityState) => state?.activityIdToEdit);

src/app/modules/reports/components/time-entries-table/time-entries-table.component.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
</thead>
2121
<app-loading-bar *ngIf="dataSource.isLoading"></app-loading-bar>
2222
<tbody *ngIf="!dataSource.isLoading">
23-
<tr class="d-flex" *ngFor="let entry of dataSource.data">
23+
<tr class="d-flex col-height" *ngFor="let entry of dataSource.data">
2424
<td class="hidden-col">{{ entry.id }}</td>
2525
<td class="col md-col">{{ entry.owner_email }}</td>
2626
<td class="col sm-col">
@@ -43,8 +43,8 @@
4343
</a>
4444
</ng-container>
4545
</td>
46-
<td class="col lg-col">{{ entry.description }}</td>
47-
<td class="col lg-col">
46+
<td class="col lg-scroll">{{ entry.description }}</td>
47+
<td class="col lg-scroll">
4848
<ng-container *ngIf="entry.technologies.length > 0">
4949
<div *ngFor="let technology of entry.technologies" class="badge bg-secondary text-wrap">
5050
{{ technology }}

src/app/modules/reports/components/time-entries-table/time-entries-table.component.scss

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,14 @@
22
.col{
33
white-space: nowrap;
44
overflow: hidden;
5-
text-overflow: ellipsis;
65
font-size: small;
76
}
7+
8+
.col-height {
9+
min-height: auto;
10+
max-height: 8rem;
11+
}
12+
813
.x-sm-col{
914
width: 5em;
1015
max-width: 7em;
@@ -23,7 +28,39 @@
2328
width: 12em;
2429
overflow: hidden;
2530
white-space: normal;
31+
border: none;
32+
}
33+
34+
@mixin scroll-style {
35+
width: 18em;
36+
overflow: hidden;
37+
white-space: normal;
38+
display: -webkit-box;
39+
-webkit-box-orient: vertical;
40+
margin: 8px 10px 0px 10px;
41+
border: none;
42+
overflow-y: auto;
43+
overflow-wrap: break-word;
44+
45+
&::-webkit-scrollbar {
46+
width: 0.5em;
47+
}
48+
49+
&::-webkit-scrollbar-track {
50+
box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
51+
}
52+
53+
&::-webkit-scrollbar-thumb {
54+
background-color: #7a8486;
55+
outline: 1px solid #7a8486;
56+
border-radius: 0.5em;
57+
}
58+
}
59+
60+
.lg-scroll {
61+
@include scroll-style;
2662
}
63+
2764
.hidden-col{
2865
display: none;
2966
}

src/app/modules/time-clock/components/entry-fields/entry-fields.component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ export class EntryFieldsComponent implements OnInit, OnDestroy {
6161
this.loadActivitiesSubscription = this.actionsSubject$
6262
.pipe(filter((action: any) => action.type === ActivityManagementActionTypes.LOAD_ACTIVITIES_SUCCESS))
6363
.subscribe((action) => {
64-
this.activities = action.payload.filter((item) => item.status !== 'inactive');
64+
this.activities = action.payload.filter((item) => item.status !== 'inactive').sort((a, b) => {
65+
return (a.name).localeCompare(b.name);
66+
});
6567
this.store.dispatch(new LoadActiveEntry());
6668
});
6769

0 commit comments

Comments
 (0)