-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add functionlity to highlight if slot is autosaved remotely
- Loading branch information
1 parent
0778de4
commit 0c3e68a
Showing
28 changed files
with
298 additions
and
32 deletions.
There are no files selected for viewing
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
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
23 changes: 23 additions & 0 deletions
23
src/components/common/test-recovered-banner/__tests__/test-recovered-banner.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 { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
import { IonicModule } from '@ionic/angular'; | ||
import { TestRecoveredBannerComponent } from '@components/common/test-recovered-banner/test-recovered-banner'; | ||
|
||
describe('TestRecoveredBannerComponent', () => { | ||
let component: TestRecoveredBannerComponent; | ||
let fixture: ComponentFixture<TestRecoveredBannerComponent>; | ||
|
||
beforeEach(waitForAsync(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [TestRecoveredBannerComponent], | ||
imports: [IonicModule], | ||
}); | ||
|
||
fixture = TestBed.createComponent(TestRecoveredBannerComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
})); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
16 changes: 16 additions & 0 deletions
16
src/components/common/test-recovered-banner/test-recovered-banner.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,16 @@ | ||
<div> | ||
<ion-grid> | ||
<ion-row> | ||
<ion-col size="8" class="recovered-centre"> | ||
<ion-icon class="alert-icon" name="alert-circle" aria-label="Information icon"></ion-icon> | ||
</ion-col> | ||
<ion-col class="recovered-centre" size="83"> | ||
<span id="test-recovered-text" class="recovered-text"> | ||
This test has been successfully recorded. | ||
<br />No further action is required. | ||
</span> | ||
</ion-col> | ||
</ion-row> | ||
</ion-grid> | ||
</div> | ||
<br /> |
29 changes: 29 additions & 0 deletions
29
src/components/common/test-recovered-banner/test-recovered-banner.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,29 @@ | ||
:host { | ||
.alert-icon { | ||
color: var(--mes-white); | ||
font-size: 50px; | ||
} | ||
|
||
div { | ||
background: var(--gds-dark-green); | ||
border-left: 10px solid var(--gds-black); | ||
} | ||
|
||
.center-icon { | ||
text-align: center; | ||
} | ||
|
||
.modal-alert-header { | ||
margin: 0 0 24px; | ||
} | ||
|
||
.recovered-centre { | ||
display: flex; | ||
align-items: center; | ||
} | ||
|
||
.recovered-text { | ||
color: var(--mes-white); | ||
} | ||
} | ||
|
9 changes: 9 additions & 0 deletions
9
src/components/common/test-recovered-banner/test-recovered-banner.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,9 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'test-recovered-banner', | ||
templateUrl: 'test-recovered-banner.html', | ||
styleUrls: ['test-recovered-banner.scss'], | ||
}) | ||
export class TestRecoveredBannerComponent { | ||
} |
23 changes: 23 additions & 0 deletions
23
src/components/test-slot/autosave-status/__tests__/autosave-status.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 { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
import { IonicModule } from '@ionic/angular'; | ||
import { AutosaveStatusComponent } from '@components/test-slot/autosave-status/autosave-status'; | ||
|
||
describe('AutosaveStatusComponent', () => { | ||
let component: AutosaveStatusComponent; | ||
let fixture: ComponentFixture<AutosaveStatusComponent>; | ||
|
||
beforeEach(waitForAsync(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [AutosaveStatusComponent], | ||
imports: [IonicModule], | ||
}); | ||
|
||
fixture = TestBed.createComponent(AutosaveStatusComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
})); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
3 changes: 3 additions & 0 deletions
3
src/components/test-slot/autosave-status/autosave-status.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,3 @@ | ||
<div> | ||
<ion-text class="des-header-style-6 recovered-text">RECOVERED</ion-text> | ||
</div> |
8 changes: 8 additions & 0 deletions
8
src/components/test-slot/autosave-status/autosave-status.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,8 @@ | ||
.recovered-text { | ||
font-size: 15px !important; | ||
background: var(--gds-dark-green); | ||
color: var(--mes-white) !important; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
} |
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 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'autosave-status', | ||
templateUrl: 'autosave-status.html', | ||
styleUrls: ['autosave-status.scss'], | ||
}) | ||
export class AutosaveStatusComponent { | ||
} |
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
Oops, something went wrong.