Skip to content

Commit 6e1fa09

Browse files
authored
Ttl 784 change time clock page name (#986)
* refactor: TTL-784 change <time clock> to <home> and lint * fix: TTL-784 commit message validator
1 parent f4bfd85 commit 6e1fa09

File tree

8 files changed

+15
-15
lines changed

8 files changed

+15
-15
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@
116116
},
117117
"config": {
118118
"commit-message-validator": {
119-
"pattern": "^(fix: TTA-|feat: TTA-|perf: TTA-|build: TTA-|ci: TTA-|docs: TTA-|refactor: TTA-|style: TTA-|test: TTA-|code-smell: TTA-)[0-9].*",
120-
"errorMessage": "\nYour commit message must comply with the following pattern:\n ^(fix: TTA-|feat: TTA-|perf: TTA-|build: TTA-|ci: TTA-|docs: TTA-|refactor: TTA-|style: TTA-|test: TTA-|code-smell: TTA-)[0-9].*\n followed by any commit message.\n\n Example:\n fix: TTA-43 any commit message\n"
119+
"pattern": "^(fix: TTL-|feat: TTL-|perf: TTL-|build: TTL-|ci: TTL-|docs: TTL-|refactor: TTL-|style: TTL-|test: TTL-|code-smell: TTL-)[0-9].*",
120+
"errorMessage": "\nYour commit message must comply with the following pattern:\n ^(fix: TTL-|feat: TTL-|perf: TTL-|build: TTL-|ci: TTL-|docs: TTL-|refactor: TTL-|style: TTL-|test: TTL-|code-smell: TTL-)[0-9].*\n followed by any commit message.\n\n Example:\n fix: TTL-43 any commit message\n"
121121
}
122122
},
123123
"resolutions": {

src/app/app-routing.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ if (isNotLegacy) {
5151
imports: [RouterModule.forRoot(routes)],
5252
exports: [RouterModule],
5353
})
54-
export class AppRoutingModule {
54+
export class AppRoutingModule {
5555

5656
}

src/app/modules/customer-management/components/customer-info/components/customer-list/customer-list.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ export class CustomerListComponent implements OnInit, OnDestroy, AfterViewInit {
206206
}
207207

208208
goToCustomerForm(){
209-
scrollToCustomerForm();
209+
scrollToCustomerForm();
210210
}
211211

212212
}

src/app/modules/login/login.component.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@ export class LoginComponent implements OnInit {
6464
ngOnInit() {
6565

6666
this.googleAuthSDK();
67-
this.loginService.isLogin().subscribe(isLogin => {
68-
if (isLogin) {
69-
this.router.navigate(['']);
70-
}
71-
});
72-
67+
this.loginService.isLogin().subscribe(isLogin => {
68+
if (isLogin) {
69+
this.router.navigate(['']);
70+
}
71+
});
72+
7373
window.handleCredentialResponse = (response) => {
7474
const {credential = ''} = response;
7575
this.featureToggleCookiesService.setCookies();

src/app/modules/shared/components/sidebar/sidebar.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export class SidebarComponent implements OnInit, OnDestroy {
5555
map((isAdmin) => {
5656
if (isAdmin) {
5757
this.itemsSidebar = [
58-
{ route: '/time-clock', icon: 'far fa-clock', text: 'Time Clock', active: false },
58+
{ route: '/time-clock', icon: 'far fa-clock', text: 'Home', active: false },
5959
{ route: '/time-entries', icon: 'far fa-file-alt', text: 'Time Entries', active: false },
6060
{ route: '/reports', icon: 'fas fa-chart-bar', text: 'Reports', active: false },
6161
{ route: '/activities-management', icon: 'fas fa-list-ol', text: 'Activities', active: false },
@@ -64,7 +64,7 @@ export class SidebarComponent implements OnInit, OnDestroy {
6464
];
6565
} else {
6666
this.itemsSidebar = [
67-
{ route: '/time-clock', icon: 'far fa-clock', text: 'Time Clock', active: false },
67+
{ route: '/time-clock', icon: 'far fa-clock', text: 'Home', active: false },
6868
{ route: '/time-entries', icon: 'far fa-file-alt', text: 'Time Entries', active: false },
6969
];
7070
}

src/app/modules/shared/interceptors/inject.token.interceptor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export class InjectTokenInterceptor implements HttpInterceptor {
3535
if (err instanceof HttpErrorResponse) {
3636
if (err.status === 401) {
3737
this.loginService.logout();
38-
window.open("/login", "_self")
38+
window.open('/login', '_self');
3939
}
4040
}
4141
})

src/app/modules/shared/pipes/substract-date-return-float/substract-date-return-float.pipe.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ describe('SubstractDatePipeDisplayAsFloat', () => {
66
expect(pipe).toBeTruthy();
77
});
88

9-
/*TODO: tests will be more robust if they take into account FIXED_POINT_DIGITS*/
9+
/*TODO: tests will be more robust if they take into account FIXED_POINT_DIGITS*/
1010
it('returns the date diff as float hours (xx.xx)', () => {
1111
[
1212
{ endDate: '2021-04-11T10:20:00Z', startDate: '2021-04-11T08:00:00Z', expectedDiff: '2.33' },

src/app/modules/time-clock/store/entry.effects.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export class EntryEffects {
4646
this.entryService.summary().pipe(
4747
map((response) => {
4848
if (!response){
49-
this.toastrService.warning("It's a brand new month! You don't have any time entries yet.");
49+
this.toastrService.warning('It is a brand new month! You do not have any time entries yet.');
5050
}
5151
return new actions.LoadEntriesSummarySuccess(response);
5252
}),

0 commit comments

Comments
 (0)