-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
K8s: More resource support - refinements (#4822)
* Allow k8s namespaces to be added as favourites * k8s: Add support for more resource types in a generic way * Improve the home page * Fix lint issue * Tweaks and refactoring * Add separator to layout menu * Improve incremental loading * Various tidyups and improvements * Tidy ups and improvemts to async loading * Fix progress spinner alignment * Unscubribe * Minor bug fixes and a few tidy ups * Further tidy ups * Fix front end unit tests * Unit test fix * Further unit tests fixes * Endpoint card unit test fixes * Fix unit tests * Tidy up favorite card * Further refinement to the UI * Fix missing dates from recents on CF view * Get app deploy from home screen working * Add message for when no connected endpoints * Unit test fixes * Kubernetes Home Card unit test fixes * Fix unit test error * Move components to remove dependency on large shared module * Fix unit test and add deploy tiles to CF Home Card * Fix word wrap on favorite name * Add tool tip * Style tidy ups * Minor tidy ups * Check favorites exists before navigating to them * Fix test imports * First round of tidy ups of the user favorites code * Further refactor to reduce the complexity of user favorites * Fix unit tests * Allow Kubernetes namespaces to be favorited * Fix duplicate import * Tidy ups * e2e Debugging * Fix for org delete e2e test * E2e Test fix * Refactor out common entity operator * Slight refactor * Fix frontend unit tests * Unit test fix * Address PR feedback so far * Address PR feedback * Fix connected endpoint state check on home screen * Address PR feedback * Restore apps link * Improve typing * Fix undefined error * Fix unit test * Fix ordering issue * Add a default home card * Fix frong end lint issues * Merge fixes * Fix unit tests * WIP * Fixes for pods view * Tidy ups * Add more resource types * Fix lint issue * Fix lint issue * Fix unit test * Fix lint issues * Fix build issue * Fix unit test * Unit test fix * Fix unit tests * More improvements * Numerous improvements * Fix lint issue * RE-arrange kube entity creation - now assign directly to kube entity catalog - to access custom kube generator resources have to do some funnies in kubernetes-tab-base.component.ts * Fix services in namespace view - kube guid and namespace was mixed up - now follow standard pattern of kube guid then namespace in ctor * Fix merge issues * Changes following review * Fix unit tests * Fix merge issue * Fix merge issues * Changes following merge * Changes following merge * Fix merge conflicts * Only show analysis link when enabled * Fix issue favoriting from side panel * Fix expression changed error * Fix expression changed errors * Fix a few minor issues and unit test * Remove old namespace components * Remvoe TODO * Delete fixes - fixes to delete action param - added to delete pods - successEntityHandler doesn't run, so have to manually clear pagination sections * Fix delete ns - ensure delete action has correct guid - ensure response has kube guid * Fix expanding pod row * Fix show of analysis in namespace resource viewer * Fix fav namespace link * Fix PR issues Co-authored-by: Richard Cox <richard.cox@suse.com>
- Loading branch information
1 parent
48e97e7
commit 646692e
Showing
49 changed files
with
642 additions
and
288 deletions.
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
src/frontend/packages/core/src/core/entity-favorite-star/entity-favorite-star.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,4 +1,5 @@ | ||
<div *ngIf="!(endpointsService.disablePersistenceFeatures$ | async)" class="favorite-star" [ngSwitch]="isFavorite$ | async" (click)="toggleFavorite($event)"> | ||
<div *ngIf="!(endpointsService.disablePersistenceFeatures$ | async)" class="favorite-star" [ngSwitch]="isFavorite$ | async" (click)="toggleFavorite($event)" | ||
[ngClass]="{'favorite-star__small': small}"> | ||
<mat-icon *ngSwitchCase="true" matTooltip="Unset as favorite" aria-label="Set as Favorite">star</mat-icon> | ||
<mat-icon *ngSwitchCase="false" matTooltip="Set as favorite" aria-label="Unset as Favorite">star_border</mat-icon> | ||
</div> |
11 changes: 11 additions & 0 deletions
11
src/frontend/packages/core/src/core/entity-favorite-star/entity-favorite-star.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 |
---|---|---|
@@ -1,8 +1,19 @@ | ||
$size: 24px; | ||
$small: 20px; | ||
.favorite-star { | ||
align-items: center; | ||
cursor: pointer; | ||
display: flex; | ||
height: $size; | ||
width: $size; | ||
&__small { | ||
height: $small; | ||
width: $small; | ||
mat-icon { | ||
font-size: $small; | ||
height: $small; | ||
line-height: $small; | ||
width: $small; | ||
} | ||
} | ||
} |
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
2 changes: 1 addition & 1 deletion
2
src/frontend/packages/core/src/shared/components/json-viewer/json-viewer.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
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
4 changes: 4 additions & 0 deletions
4
...nd/packages/core/src/shared/components/sidepanel-preview/sidepanel-preview.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
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
2 changes: 1 addition & 1 deletion
2
.../kubernetes-namespace-analysis-report/kubernetes-namespace-analysis-report.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
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
1 change: 0 additions & 1 deletion
1
...s/kubernetes-namespace/kubernetes-namespace-pods/kubernetes-namespace-pods.component.html
This file was deleted.
Oops, something went wrong.
Empty file.
17 changes: 0 additions & 17 deletions
17
...tes/kubernetes-namespace/kubernetes-namespace-pods/kubernetes-namespace-pods.component.ts
This file was deleted.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
...rnetes-namespace/kubernetes-namespace-preview/kubernetes-namespace-preview.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,4 @@ | ||
<div class="namespace-preview" *ngIf="showAnalysis$ | async"> | ||
<mat-icon>assignment</mat-icon> | ||
<a [routerLink]="link">Namespace Analysis</a> | ||
<div> |
14 changes: 14 additions & 0 deletions
14
...rnetes-namespace/kubernetes-namespace-preview/kubernetes-namespace-preview.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,14 @@ | ||
.namespace-preview { | ||
align-items: center; | ||
display: flex; | ||
margin: 10px 0; | ||
|
||
mat-icon { | ||
font-size: 18px; | ||
height: 18px; | ||
line-height: 18px; | ||
margin-right: 5px; | ||
opacity: 0.7; | ||
width: 18px;; | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...tes-namespace/kubernetes-namespace-preview/kubernetes-namespace-preview.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,28 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { KubernetesBaseTestModules } from '../../kubernetes.testing.module'; | ||
import { KubernetesNamespacePreviewComponent } from './kubernetes-namespace-preview.component'; | ||
|
||
describe('KubernetesNamespacePreviewComponent', () => { | ||
let component: KubernetesNamespacePreviewComponent; | ||
let fixture: ComponentFixture<KubernetesNamespacePreviewComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [ KubernetesNamespacePreviewComponent ], | ||
imports: [...KubernetesBaseTestModules], | ||
|
||
}) | ||
.compileComponents(); | ||
}); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(KubernetesNamespacePreviewComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
Oops, something went wrong.