-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(workflows): create workflow page
- Loading branch information
Showing
14 changed files
with
222 additions
and
23 deletions.
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
21 changes: 21 additions & 0 deletions
21
...a/src/app/modules/project/feature-new-kanban/project-feature-new-kanban-routing.module.ts
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,21 @@ | ||
/** | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
* | ||
* Copyright (c) 2023-present Kaleidos INC | ||
*/ | ||
|
||
import { NgModule } from '@angular/core'; | ||
import { RouterModule, Routes } from '@angular/router'; | ||
import { ProjectFeatureNewKanbanComponent } from './project-feature-new-kanban.component'; | ||
|
||
const routes: Routes = [ | ||
{ path: '', component: ProjectFeatureNewKanbanComponent }, | ||
]; | ||
|
||
@NgModule({ | ||
imports: [RouterModule.forChild(routes)], | ||
exports: [RouterModule], | ||
}) | ||
export class ProjectFeatureNewKanbanRoutingModule {} |
7 changes: 7 additions & 0 deletions
7
...taiga/src/app/modules/project/feature-new-kanban/project-feature-new-kanban.component.css
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,7 @@ | ||
/* | ||
This Source Code Form is subject to the terms of the Mozilla Public | ||
License, v. 2.0. If a copy of the MPL was not distributed with this | ||
file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
Copyright (c) 2023-present Kaleidos INC | ||
*/ |
9 changes: 9 additions & 0 deletions
9
...aiga/src/app/modules/project/feature-new-kanban/project-feature-new-kanban.component.html
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,9 @@ | ||
<!-- | ||
This Source Code Form is subject to the terms of the Mozilla Public | ||
License, v. 2.0. If a copy of the MPL was not distributed with this | ||
file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
Copyright (c) 2023-present Kaleidos INC | ||
--> | ||
|
||
<div>New Kanban Works!</div> |
63 changes: 63 additions & 0 deletions
63
...a/src/app/modules/project/feature-new-kanban/project-feature-new-kanban.component.spec.ts
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,63 @@ | ||
/** | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
* | ||
* Copyright (c) 2023-present Kaleidos INC | ||
*/ | ||
|
||
import { NO_ERRORS_SCHEMA } from '@angular/core'; | ||
import { Spectator, createComponentFactory } from '@ngneat/spectator/jest'; | ||
import { getTranslocoModule } from '~/app/transloco/transloco-testing.module'; | ||
import { provideMockStore, MockStore } from '@ngrx/store/testing'; | ||
import { ProjectFeatureNewKanbanComponent } from './project-feature-new-kanban.component'; | ||
|
||
import { selectorExample } from './+state/selectors/project-feature-new-kanban.selectors'; | ||
|
||
describe('ProjectFeatureNewKanbanComponent', () => { | ||
let spectator: Spectator<ProjectFeatureNewKanbanComponent>; | ||
let store: MockStore; | ||
|
||
const createComponent = createComponentFactory({ | ||
component: ProjectFeatureNewKanbanComponent, | ||
imports: [getTranslocoModule()], | ||
schemas: [NO_ERRORS_SCHEMA], | ||
mocks: [], | ||
}); | ||
|
||
const initialState = { loggedIn: false }; | ||
|
||
beforeEach(() => { | ||
spectator = createComponent({ | ||
// The component inputs | ||
props: { | ||
name: 'example', | ||
}, | ||
// Override the component's providers | ||
providers: [provideMockStore({ initialState })], | ||
// Whether to run change detection (defaults to true) | ||
detectChanges: false, | ||
}); | ||
|
||
store = spectator.inject(MockStore); | ||
}); | ||
|
||
it('example', () => { | ||
// change ngrx state | ||
store.setState({ loggedIn: true }); | ||
|
||
// mock selector | ||
store.overrideSelector(selectorExample, { | ||
id: 1, | ||
name: 'test', | ||
}); | ||
|
||
// trigger emission from all selectors | ||
store.refreshState(); | ||
|
||
spectator.detectChanges(); | ||
|
||
// This test checks that the input attribute name becomes a class in the component structure | ||
expect(spectator.query('div')).toHaveClass('example'); | ||
}); | ||
}); |
22 changes: 22 additions & 0 deletions
22
.../taiga/src/app/modules/project/feature-new-kanban/project-feature-new-kanban.component.ts
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,22 @@ | ||
/** | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
* | ||
* Copyright (c) 2023-present Kaleidos INC | ||
*/ | ||
|
||
import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'tg-project-feature-new-kanban', | ||
templateUrl: './project-feature-new-kanban.component.html', | ||
styleUrls: ['./project-feature-new-kanban.component.css'], | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
standalone: true, | ||
}) | ||
export class ProjectFeatureNewKanbanComponent implements OnInit { | ||
public ngOnInit(): void { | ||
console.log('ProjectFeatureNewKanbanComponent works!'); | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...pps/taiga/src/app/modules/project/feature-new-kanban/project-feature-new-kanban.module.ts
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,19 @@ | ||
/** | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
* | ||
* Copyright (c) 2023-present Kaleidos INC | ||
*/ | ||
|
||
import { CommonModule } from '@angular/common'; | ||
import { NgModule } from '@angular/core'; | ||
import { ProjectFeatureNewKanbanRoutingModule } from './project-feature-new-kanban-routing.module'; | ||
|
||
@NgModule({ | ||
imports: [CommonModule, ProjectFeatureNewKanbanRoutingModule], | ||
declarations: [], | ||
providers: [], | ||
exports: [], | ||
}) | ||
export class ProjectFeatureNewKanbanModule {} |
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