Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
2a8c76b
fix(draft): first draft
Aug 14, 2020
2740953
feat(): assets service (#120)
thomaslennan Aug 25, 2020
01227c8
feat(assets-url-change): relocated assets service url (#121)
thomaslennan Aug 26, 2020
dec8642
fix(app-switcher-close): close exp panel on menu close, detect changes
thomaslennan Sep 2, 2020
df9aa62
feat(): add notification node icon (#119)
adamnel Sep 2, 2020
4d840f1
Merge branch 'develop' into fix/app-switcher-close
JulieMarie Sep 2, 2020
5c5c09d
Create PULL_REQUEST_TEMPATE.md
JulieMarie Sep 2, 2020
e23dc77
Merge branch 'develop' into fix/app-switcher-close
jeremysmartt Sep 2, 2020
ae53957
fix(app-switcher-close): more change detection
thomaslennan Sep 3, 2020
6d66ca8
Merge branch 'fix/app-switcher-close' of https://github.com/Teradata/…
thomaslennan Sep 3, 2020
e09d5a4
fix(app-switcher-close): updated demo links
thomaslennan Sep 3, 2020
171645c
fix(app-switcher-close): reverted menu component change detection
thomaslennan Sep 3, 2020
4668518
Merge pull request #122 from Teradata/fix/app-switcher-close
JulieMarie Sep 3, 2020
1f6ae9a
feat(): generate changelog and bump to version v1.0.0-beta.5
Sep 3, 2020
b128034
feat(learn-links): support dynamic learn links (#124)
thomaslennan Sep 9, 2020
f30aafe
feat(learn-link-type): include description property (#125)
thomaslennan Sep 9, 2020
da72285
fix(add): code cleanup
Sep 17, 2020
7568bf1
fix(conflicts): resolve conflicts
Sep 17, 2020
724c416
Merge branch 'feature/schematics-ng-add' into fix/schematics-ng-add-scss
aqupriyanka Sep 17, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/PULL_REQUEST_TEMPATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
## Description

<!-- Talk about the great work you've done! -->

### What's included?

<!-- List features included in this PR -->

- One
- Two
- Three

#### Test Steps

<!-- Add instructions on how to test your changes -->

- [ ] `npm ci`
- [ ] In `proxy.conf.js` file, change serverUrl to `https://appcenter.ux.ac.uda.io`
- [ ] `npm run serve`
- [ ] then this
- [ ] finally this

#### General Tests for Every PR

- [ ] `npm run serve:prod` still works.
- [ ] `npm run tslint` passes.
- [ ] `npm run stylelint` passes.
- [ ] `npm test` passes and code coverage is not lower.
- [ ] `npm run build:lib` still works.

##### Screenshots or link to StackBlitz/Plunker
6 changes: 4 additions & 2 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,13 @@
"serve": {
"builder": "@angular-builders/custom-webpack:dev-server",
"options": {
"browserTarget": "docs-ui:build"
"browserTarget": "docs-ui:build",
"proxyConfig": "./proxy.conf.js"
},
"configurations": {
"production": {
"browserTarget": "docs-ui:build:production"
"browserTarget": "docs-ui:build:production",
"proxyConfig": "./proxy.conf.js"
}
}
},
Expand Down
33 changes: 33 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,36 @@
<a name="1.0.0-beta.5"></a>

# [1.0.0-beta.5](https://github.com/Teradata/vantage-ui-platform/compare/v1.0.0-beta.4...v1.0.0-beta.5) (2020-09-03)

### Bug Fixes

- firefox bfCache caching ([#113](https://github.com/Teradata/vantage-ui-platform/issues/113)) ([7b10c04](https://github.com/Teradata/vantage-ui-platform/commit/7b10c04))
- **app-switcher-close:** close exp panel on menu close, detect changes ([dec8642](https://github.com/Teradata/vantage-ui-platform/commit/dec8642))
- **app-switcher-close:** more change detection ([ae53957](https://github.com/Teradata/vantage-ui-platform/commit/ae53957))
- **app-switcher-close:** reverted menu component change detection ([171645c](https://github.com/Teradata/vantage-ui-platform/commit/171645c))
- **app-switcher-close:** updated demo links ([e09d5a4](https://github.com/Teradata/vantage-ui-platform/commit/e09d5a4))
- **build:** missing directory ([#118](https://github.com/Teradata/vantage-ui-platform/issues/118)) ([6b437a7](https://github.com/Teradata/vantage-ui-platform/commit/6b437a7))
- **color:** set body color based on mode ([3409f1f](https://github.com/Teradata/vantage-ui-platform/commit/3409f1f))
- **query:** update data iinterface ([#111](https://github.com/Teradata/vantage-ui-platform/issues/111)) ([c9e55f7](https://github.com/Teradata/vantage-ui-platform/commit/c9e55f7))

### Features

- **app-switcher:** Allow for open in new tab ([#108](https://github.com/Teradata/vantage-ui-platform/issues/108)) ([20bced8](https://github.com/Teradata/vantage-ui-platform/commit/20bced8))
- **assets-url-change:** relocated assets service url ([#121](https://github.com/Teradata/vantage-ui-platform/issues/121)) ([01227c8](https://github.com/Teradata/vantage-ui-platform/commit/01227c8))
- **num-vals-as-str:** result set numeric values as strings ([#106](https://github.com/Teradata/vantage-ui-platform/issues/106)) ([778bddf](https://github.com/Teradata/vantage-ui-platform/commit/778bddf))
- **nums-as-strings:** define interface for column metadata ([#109](https://github.com/Teradata/vantage-ui-platform/issues/109)) ([89bbca7](https://github.com/Teradata/vantage-ui-platform/commit/89bbca7))
- **query:** add column types ([#112](https://github.com/Teradata/vantage-ui-platform/issues/112)) ([68ec52e](https://github.com/Teradata/vantage-ui-platform/commit/68ec52e))
- **vui-user-profile:** add component ([#104](https://github.com/Teradata/vantage-ui-platform/issues/104)) ([8cc090c](https://github.com/Teradata/vantage-ui-platform/commit/8cc090c))
- add notification node icon ([#119](https://github.com/Teradata/vantage-ui-platform/issues/119)) ([df9aa62](https://github.com/Teradata/vantage-ui-platform/commit/df9aa62))
- assets service ([#120](https://github.com/Teradata/vantage-ui-platform/issues/120)) ([2740953](https://github.com/Teradata/vantage-ui-platform/commit/2740953))
- long form small scale styles and markdown update ([#117](https://github.com/Teradata/vantage-ui-platform/issues/117)) ([2e3c114](https://github.com/Teradata/vantage-ui-platform/commit/2e3c114))
- new icons and icon view ([#116](https://github.com/Teradata/vantage-ui-platform/issues/116)) ([3b608d5](https://github.com/Teradata/vantage-ui-platform/commit/3b608d5))
- update createsession method with default payload param ([#107](https://github.com/Teradata/vantage-ui-platform/issues/107)) ([36a5b8f](https://github.com/Teradata/vantage-ui-platform/commit/36a5b8f))

### Reverts

- **account-profile:** depracting account-profile for covalent version ([#103](https://github.com/Teradata/vantage-ui-platform/issues/103)) ([f66cf1d](https://github.com/Teradata/vantage-ui-platform/commit/f66cf1d))

<a name="1.0.0-beta.4"></a>

# [1.0.0-beta.4](https://github.com/Teradata/vantage-ui-platform/compare/v1.0.0-beta.3...v1.0.0-beta.4) (2020-06-02)
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@td-vantage/ui-platform",
"version": "1.0.0-beta.4",
"version": "1.0.0-beta.5",
"description": "Teradata Vantage Angular Platform for easy integration and usage",
"keywords": [
"teradata",
Expand Down Expand Up @@ -111,4 +111,4 @@
"tsickle": "0.35.0",
"typescript": "~3.7.5"
}
}
}
5 changes: 5 additions & 0 deletions proxy.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ const PROXY_CONFIG = {
secure: false,
changeOrigin: true,
},
'/ui-assets': {
target: serverUrl,
secure: false,
changeOrigin: true,
},
};

module.exports = PROXY_CONFIG;
3 changes: 3 additions & 0 deletions scripts/test-schematics.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ npm link
cd /tmp
rm -rf testxyz
ng new testxyz
cd testxyz
ng add @angular/material
ng add @covalent/core

# Run covalent schematics
cd testxyz
Expand Down
18 changes: 9 additions & 9 deletions src/docs-ui/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,29 @@ export class AppComponent {
products: IVantageAppSwitcherItem[] = [
{
text: 'Vantage Launcher',
href: 'http://teradata.com',
href: 'https://www.teradata.com',
svgIcon: 'td-logo:logo-mark',
divider: true,
},
{
text: 'Editor',
href: 'http://teradata.com',
href: 'https://www.teradata.com',
icon: 'settings',
},
{
text: 'Analyst',
href: 'http://teradata.com',
href: 'https://www.teradata.com',
icon: 'settings',
},
{
text: 'App Center',
href: 'http://teradata.com',
href: 'https://www.teradata.com',
newTab: false,
},

{
text: 'Console',
href: 'http://teradata.com',
href: 'https://www.teradata.com',
icon: 'settings',
newTab: true,
},
Expand All @@ -44,24 +44,24 @@ export class AppComponent {
otherProducts: IVantageAppSwitcherItem[] = [
{
text: 'Jupyter',
href: 'http://teradata.com',
href: 'https://www.teradata.com',
icon: 'settings',
newTab: true,
},
{
text: 'Something else',
href: 'http://teradata.com',
href: 'https://www.teradata.com',
icon: 'settings',
},
{
text: 'Another thing',
href: 'http://teradata.com',
href: 'https://www.teradata.com',
icon: 'settings',
newTab: false,
},
];

exploreMoreLink: string = 'http://teradata.com/products';
exploreMoreLink: string = 'https://www.teradata.com/products';

constructor(
private _iconRegistry: MatIconRegistry,
Expand Down
6 changes: 6 additions & 0 deletions src/docs-ui/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,14 @@ import { MatSortModule } from '@angular/material/sort';
import { MatPaginatorModule } from '@angular/material/paginator';

import { CovalentCommonModule } from '@covalent/core/common';
import { CovalentDynamicMenuModule } from '@covalent/core/dynamic-menu';
import { CovalentLayoutModule } from '@covalent/core/layout';
import { CovalentMessageModule } from '@covalent/core/message';
import { CovalentLoadingModule } from '@covalent/core/loading';
import { CovalentDialogsModule } from '@covalent/core/dialogs';
import { CovalentMediaModule } from '@covalent/core/media';
import { CovalentBreadcrumbsModule } from '@covalent/core/breadcrumbs';
import { CovalentJsonFormatterModule } from '@covalent/core/json-formatter';

import { CovalentMarkdownNavigatorModule } from '@covalent/markdown-navigator';

Expand All @@ -53,6 +55,7 @@ import { VantageUserFeedbackModule } from '@td-vantage/ui-platform/utilities';
import { VantageUserModule } from '@td-vantage/ui-platform/user';
import { VantageAuthenticationModule } from '@td-vantage/ui-platform/auth';
import { VantageAccessModule } from '@td-vantage/ui-platform/access';
import { VantageAssetsModule } from '@td-vantage/ui-platform/assets';
import { VantageThemeModule } from '@td-vantage/ui-platform/theme';
import { VantageSQLEModule } from '@td-vantage/ui-platform/sqle';
import { VantageAppSwitcherModule } from '@td-vantage/ui-platform/app-switcher';
Expand Down Expand Up @@ -123,20 +126,23 @@ import { IconsDemoComponent } from './icons-demo/icons-demo.component';
MatPaginatorModule,
/** Covalent Modules */
CovalentCommonModule,
CovalentDynamicMenuModule,
CovalentLayoutModule,
CovalentBreadcrumbsModule,
CovalentMediaModule,
CovalentDialogsModule,
CovalentLoadingModule,
CovalentMessageModule,
CovalentMarkdownNavigatorModule,
CovalentJsonFormatterModule,
TranslateModule.forRoot(),
CovalentHttpModule.forRoot(),

VantageUserFeedbackModule,
VantageUserModule,
VantageAuthenticationModule,
VantageAccessModule,
VantageAssetsModule,
VantageThemeModule,
VantageAppSwitcherModule,
VantageSQLEModule,
Expand Down
10 changes: 10 additions & 0 deletions src/docs-ui/app/demos/demos.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,16 @@ <h4>Connections:</h4>
</button>
</div>

<div class="pad">
<h2>Assets Module</h2>
<h4>Help JSON</h4>
<button mat-raised-button (click)="getHelpJSON()">
Get
</button>
<h4 *ngIf="helpJSON">Help Contents:</h4>
<td-json-formatter *ngIf="helpJSON" [data]="helpJSON" [levelsOpen]="6"></td-json-formatter>
</div>

<div class="pad">
<h2>Utilities Module</h2>
<h4>Error Dialog</h4>
Expand Down
10 changes: 10 additions & 0 deletions src/docs-ui/app/demos/demos.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { VantageCredentialsDialogComponent, VantageConnectionService } from '@td
import { VantageErrorService } from '@td-vantage/ui-platform/utilities';
import { Subject } from 'rxjs';
import { takeUntil } from 'rxjs/operators';
import { VantageAssetsService, IHelpAssets } from '@td-vantage/ui-platform/assets';

@Component({
selector: 'app-demos',
Expand All @@ -14,11 +15,14 @@ import { takeUntil } from 'rxjs/operators';
export class DemosComponent implements OnInit, OnDestroy {
private unsubscribe: Subject<void> = new Subject();

helpJSON: IHelpAssets;

constructor(
public _themeService: VantageThemeService,
private _dialog: MatDialog,
private _errorService: VantageErrorService,
public connectionService: VantageConnectionService,
public assetsService: VantageAssetsService,
) {}

ngOnInit(): void {
Expand Down Expand Up @@ -62,4 +66,10 @@ export class DemosComponent implements OnInit, OnDestroy {
error,
});
}

getHelpJSON(): void {
this.assetsService.getHelpJSON().subscribe((helpJSON: IHelpAssets) => {
this.helpJSON = helpJSON;
});
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
</mat-action-list>
<mat-divider class="push-top-sm"></mat-divider>
<mat-expansion-panel
#expansionPanel
*ngIf="otherProducts?.length; else explorerMore"
class="other-products"
(afterExpand)="scrollToBottom()"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { ChangeDetectionStrategy, Component, Input, ElementRef } from '@angular/core';
import { ChangeDetectionStrategy, Component, Input, ElementRef, ViewChild } from '@angular/core';

import { MatExpansionPanel } from '@angular/material/expansion';

import { IVantageAppSwitcherItem } from '../services/products.service';

Expand All @@ -13,6 +15,8 @@ export class VantageAppSwitcherMenuComponent {
@Input() otherProducts: IVantageAppSwitcherItem[];
@Input() exploreMoreLink: string;

@ViewChild('expansionPanel') expansionPanel: MatExpansionPanel;

constructor(private elRef: ElementRef) {}

_blockEvent(event: Event): void {
Expand Down
3 changes: 2 additions & 1 deletion src/lib/app-switcher/app-switcher.component.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<button mat-icon-button [matMenuTriggerFor]="applicationMenu">
<mat-icon>apps</mat-icon>
</button>
<mat-menu #applicationMenu="matMenu" [overlapTrigger]="false">
<mat-menu #applicationMenu="matMenu" [overlapTrigger]="false" (closed)="menuClosed()">
<vui-app-switcher-menu
#appSwitcherMenu
[products]="products"
[otherProducts]="otherProducts"
[exploreMoreLink]="exploreMoreLink"
Expand Down
11 changes: 10 additions & 1 deletion src/lib/app-switcher/app-switcher.component.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
import { ChangeDetectionStrategy, Component, Input, ViewChild, ChangeDetectorRef } from '@angular/core';

import { IVantageAppSwitcherItem } from './services/products.service';
import { VantageAppSwitcherMenuComponent } from './app-switcher-menu/app-switcher-menu.component';

@Component({
selector: 'vui-app-switcher',
Expand All @@ -12,4 +13,12 @@ export class VantageAppSwitcherComponent {
@Input() products: IVantageAppSwitcherItem[];
@Input() otherProducts: IVantageAppSwitcherItem[];
@Input() exploreMoreLink: string;
@ViewChild('appSwitcherMenu', { static: true }) appSwitcherMenu: VantageAppSwitcherMenuComponent;

constructor(private _changeDetectorRef: ChangeDetectorRef) {}

menuClosed(): void {
this.appSwitcherMenu.expansionPanel.close();
this._changeDetectorRef.detectChanges();
}
}
9 changes: 9 additions & 0 deletions src/lib/assets/assets.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { VANTAGE_ASSETS_PROVIDER } from './assets.service';

@NgModule({
imports: [CommonModule],
providers: [VANTAGE_ASSETS_PROVIDER],
})
export class VantageAssetsModule {}
Loading