-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #118 from szymonpoltorak/DEV-108-Timeline-view
Dev 108 timeline view
- Loading branch information
Showing
19 changed files
with
642 additions
and
17 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
27 changes: 27 additions & 0 deletions
27
corn-frontend/src/app/pages/boards/timeline/day/day.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,27 @@ | ||
<div class="flex flex-col w-full h-full items-center justify-center border-2 border-amber-400/50"> | ||
<div class="flex flex-row w-full h-1/6 text-amber-500 items-center justify-center"> | ||
@if (day > 0) { | ||
<h3>{{ day }}</h3> | ||
} | ||
</div> | ||
<div class="flex h-5/6 w-full items-center justify-center"> | ||
@if (sprint) { | ||
@if(isFirst) { | ||
<div class="flex h-1/2 w-full items-center justify-start cursor-pointer bg-{{backgroundColor}}-{{color_value}} rounded-l-lg ml-2" | ||
(mouseenter)="mouseOver()" (mouseleave)="mouseOut()" (click)="openSprint()"> | ||
<div class="ml-3"> | ||
<h3>{{ sprint.sprintName }}</h3> | ||
</div> | ||
</div> | ||
} @else if(isLast) { | ||
<div class="flex h-1/2 w-full items-center justify-start cursor-pointer bg-{{backgroundColor}}-{{color_value}} rounded-r-lg mr-2" | ||
(mouseenter)="mouseOver()" (mouseleave)="mouseOut()" (click)="openSprint()"> | ||
</div> | ||
} @else { | ||
<div class="flex h-1/2 w-full items-center justify-start cursor-pointer bg-{{backgroundColor}}-{{color_value}}" | ||
(mouseenter)="mouseOver()" (mouseleave)="mouseOut()" (click)="openSprint()"> | ||
</div> | ||
} | ||
} | ||
</div> | ||
</div> |
71 changes: 71 additions & 0 deletions
71
corn-frontend/src/app/pages/boards/timeline/day/day.component.scss
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,71 @@ | ||
.bg-red-500 { | ||
@apply bg-red-500/50; | ||
} | ||
|
||
.bg-orange-500 { | ||
@apply bg-orange-500/50; | ||
} | ||
|
||
.bg-yellow-500 { | ||
@apply bg-yellow-500/50; | ||
} | ||
|
||
.bg-lime-500 { | ||
@apply bg-lime-500/50; | ||
} | ||
|
||
.bg-green-500 { | ||
@apply bg-green-500/50; | ||
} | ||
|
||
.bg-cyan-500 { | ||
@apply bg-cyan-500/50; | ||
} | ||
|
||
.bg-blue-500 { | ||
@apply bg-blue-500/50; | ||
} | ||
|
||
.bg-purple-500 { | ||
@apply bg-purple-500/50; | ||
} | ||
|
||
.bg-pink-500 { | ||
@apply bg-pink-500/50; | ||
} | ||
|
||
.bg-red-300 { | ||
@apply bg-red-300/50; | ||
} | ||
|
||
.bg-orange-300 { | ||
@apply bg-orange-300/50; | ||
} | ||
|
||
.bg-yellow-300 { | ||
@apply bg-yellow-300/50; | ||
} | ||
|
||
.bg-lime-300 { | ||
@apply bg-lime-300/50; | ||
} | ||
|
||
.bg-green-300 { | ||
@apply bg-green-300/50; | ||
} | ||
|
||
.bg-cyan-300 { | ||
@apply bg-cyan-300/50; | ||
} | ||
|
||
.bg-blue-300 { | ||
@apply bg-blue-300/50; | ||
} | ||
|
||
.bg-purple-300 { | ||
@apply bg-purple-300/50; | ||
} | ||
|
||
.bg-pink-300 { | ||
@apply bg-pink-300/50; | ||
} |
23 changes: 23 additions & 0 deletions
23
corn-frontend/src/app/pages/boards/timeline/day/day.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,23 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { DayComponent } from './day.component'; | ||
|
||
describe('DayComponent', () => { | ||
let component: DayComponent; | ||
let fixture: ComponentFixture<DayComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
imports: [DayComponent] | ||
}) | ||
.compileComponents(); | ||
|
||
fixture = TestBed.createComponent(DayComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
Oops, something went wrong.