-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update cloud button Update welcome page entry points Update text Update text Update style Create scenario-solution help dialog Display help in upload dialog Update welcome page styling Add zip icon Change upload dialog size Update upload dialog layout Add CSV layout Add CSV help dialog Fix test Update branding Change JSON upload layout Update place ids flow Go directly into application upload file upload Open upload dialog when CSV upload is closed on landing page Update cloud upload icon Add license info Use custom ErrorStateMatcher on file upload input Add close buttons to dialogs Add close buttons to dialogs Style close buttons Update tests Fix style Adjust margin on logo Add icons Update app logo
- Loading branch information
1 parent
d23df8a
commit 70d4fad
Showing
33 changed files
with
576 additions
and
195 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
8 changes: 4 additions & 4 deletions
8
application/frontend/src/app/core/components/logo/logo.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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<a | ||
href="/" | ||
class="branding link--gray-dark" | ||
title="Cloud Optimization AI" | ||
aria-label="Cloud Optimization AI"> | ||
<img class="branding__logo" src="assets/images/cloud_optimization_ai_logo.svg" width="50px" /> | ||
<span class="branding__name">Cloud<br />Optimization AI</span> | ||
title="Google Maps Platform" | ||
aria-label="Google Maps Platform"> | ||
<img class="branding__logo mr-3" src="assets/images/maps.svg" width="30px" /> | ||
<span class="branding__name">Google<br />Maps Platform</span> | ||
</a> |
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
16 changes: 16 additions & 0 deletions
16
application/frontend/src/app/core/containers/csv-help-dialog/csv-help-dialog.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,16 @@ | ||
<h3 class="d-flex flex-column"> | ||
<button | ||
mat-icon-button | ||
class="small-close-button" | ||
type="button" | ||
title="Cancel" | ||
(click)="cancel()"> | ||
<mat-icon svgIcon="clear"></mat-icon> | ||
</button> | ||
<div class="strong">What data can I upload via CSV?</div> | ||
</h3> | ||
<p> | ||
If you have data for vehicles, shipments, or vehicle operators in individual .csv files, you can | ||
use this option to upload your data. You can also use this option get sample files to see how your | ||
data should be structured. | ||
</p> |
Empty file.
33 changes: 33 additions & 0 deletions
33
...cation/frontend/src/app/core/containers/csv-help-dialog/csv-help-dialog.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,33 @@ | ||
/** | ||
* @license | ||
* Copyright 2022 Google LLC | ||
* | ||
* Use of this source code is governed by an MIT-style | ||
* license that can be found in the LICENSE file or at | ||
* https://opensource.org/licenses/MIT. | ||
*/ | ||
|
||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { CsvHelpDialogComponent } from './csv-help-dialog.component'; | ||
import { MatDialogRef } from '@angular/material/dialog'; | ||
|
||
describe('CsvHelpDialogComponent', () => { | ||
let component: CsvHelpDialogComponent; | ||
let fixture: ComponentFixture<CsvHelpDialogComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [CsvHelpDialogComponent], | ||
providers: [{ provide: MatDialogRef, useValue: {} }], | ||
}).compileComponents(); | ||
|
||
fixture = TestBed.createComponent(CsvHelpDialogComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
25 changes: 25 additions & 0 deletions
25
application/frontend/src/app/core/containers/csv-help-dialog/csv-help-dialog.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,25 @@ | ||
/** | ||
* @license | ||
* Copyright 2022 Google LLC | ||
* | ||
* Use of this source code is governed by an MIT-style | ||
* license that can be found in the LICENSE file or at | ||
* https://opensource.org/licenses/MIT. | ||
*/ | ||
|
||
import { ChangeDetectionStrategy, Component } from '@angular/core'; | ||
import { MatDialogRef } from '@angular/material/dialog'; | ||
|
||
@Component({ | ||
selector: 'app-csv-help-dialog', | ||
templateUrl: './csv-help-dialog.component.html', | ||
styleUrls: ['./csv-help-dialog.component.scss'], | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
}) | ||
export class CsvHelpDialogComponent { | ||
constructor(private dialogRef: MatDialogRef<CsvHelpDialogComponent>) {} | ||
|
||
cancel(): void { | ||
this.dialogRef.close(); | ||
} | ||
} |
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
20 changes: 20 additions & 0 deletions
20
...ore/containers/scenario-solution-help-dialog/scenario-solution-help-dialog.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,20 @@ | ||
<h3 class="d-flex flex-column"> | ||
<button | ||
mat-icon-button | ||
class="small-close-button" | ||
type="button" | ||
title="Cancel" | ||
(click)="cancel()"> | ||
<mat-icon svgIcon="clear"></mat-icon> | ||
</button> | ||
<div class="strong">What's the difference between a scenario and a solution?</div> | ||
</h3> | ||
<p> | ||
A scenario is a vehicle routing problem (VRP) request that Fleet Routing can solve. It consists of | ||
one or more vehicles and one or more shipments to be delivered. | ||
</p> | ||
|
||
<p> | ||
A solution is what the Fleet Routing API produces in response to a request to solve a scenario. | ||
Solutions are visible in FleetRouting App via the Gantt chart, on a map, or in the Metadata view. | ||
</p> |
Empty file.
33 changes: 33 additions & 0 deletions
33
.../containers/scenario-solution-help-dialog/scenario-solution-help-dialog.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,33 @@ | ||
/** | ||
* @license | ||
* Copyright 2022 Google LLC | ||
* | ||
* Use of this source code is governed by an MIT-style | ||
* license that can be found in the LICENSE file or at | ||
* https://opensource.org/licenses/MIT. | ||
*/ | ||
|
||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { ScenarioSolutionHelpDialogComponent } from './scenario-solution-help-dialog.component'; | ||
import { MatDialogRef } from '@angular/material/dialog'; | ||
|
||
describe('ScenarioSolutionHelpDialogComponent', () => { | ||
let component: ScenarioSolutionHelpDialogComponent; | ||
let fixture: ComponentFixture<ScenarioSolutionHelpDialogComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [ScenarioSolutionHelpDialogComponent], | ||
providers: [{ provide: MatDialogRef, useValue: {} }], | ||
}).compileComponents(); | ||
|
||
fixture = TestBed.createComponent(ScenarioSolutionHelpDialogComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
25 changes: 25 additions & 0 deletions
25
.../core/containers/scenario-solution-help-dialog/scenario-solution-help-dialog.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,25 @@ | ||
/** | ||
* @license | ||
* Copyright 2022 Google LLC | ||
* | ||
* Use of this source code is governed by an MIT-style | ||
* license that can be found in the LICENSE file or at | ||
* https://opensource.org/licenses/MIT. | ||
*/ | ||
|
||
import { ChangeDetectionStrategy, Component } from '@angular/core'; | ||
import { MatDialogRef } from '@angular/material/dialog'; | ||
|
||
@Component({ | ||
selector: 'app-scenario-solution-help-dialog', | ||
templateUrl: './scenario-solution-help-dialog.component.html', | ||
styleUrls: ['./scenario-solution-help-dialog.component.scss'], | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
}) | ||
export class ScenarioSolutionHelpDialogComponent { | ||
constructor(private dialogRef: MatDialogRef<ScenarioSolutionHelpDialogComponent>) {} | ||
|
||
cancel(): void { | ||
this.dialogRef.close(); | ||
} | ||
} |
23 changes: 0 additions & 23 deletions
23
application/frontend/src/app/core/containers/upload-dialog/upload-dialog.component.css
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.