Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add card view to endpoint list #3422

Merged
merged 23 commits into from
Mar 14, 2019
Merged

Add card view to endpoint list #3422

merged 23 commits into from
Mar 14, 2019

Conversation

richard-cox
Copy link
Contributor

  • depends on Fix exception thrown on home page #3420
  • Add card view to the endpoints list, including endpoint type icon
  • Move endpoint specific fields, like cf username and admin bool, into custom 'details' step

@cfdreddbot
Copy link

✅ Hey richard-cox! The commit authors and yourself have already signed the CLA.

@richard-cox richard-cox changed the title Endpoint list cards Add card view to endpoint list Mar 5, 2019
@codecov
Copy link

codecov bot commented Mar 7, 2019

Codecov Report

Merging #3422 into v2-master will decrease coverage by 25.74%.
The diff coverage is 26.03%.

@@              Coverage Diff               @@
##           v2-master    #3422       +/-   ##
==============================================
- Coverage      51.69%   25.95%   -25.75%     
==============================================
  Files            678      682        +4     
  Lines          18620    18711       +91     
  Branches        3242     3258       +16     
==============================================
- Hits            9626     4856     -4770     
- Misses          8994    13855     +4861

- There may be other places where this magically worked and now correctly won't
@nwmac nwmac removed the blocked-pr label Mar 8, 2019
@@ -2,6 +2,9 @@ import { Type } from '@angular/core';
import { FormGroup } from '@angular/forms';
import { Schema, schema } from 'normalizr';

import { EndpointModel } from '../../../../store/src/types/endpoint.types';
import { TableCellCustom } from '../../shared/components/list/list.types';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The intent with the extensions folder/package was that it should not import anything else in the Stratos code base - thus it could be a separate package and extensions would only need to import the extensions package - they would not need to import anything else.

Is there a way to loosen the typing on listDetailsComponent and check it at runtime for compatibility?

if (!this.cell) {
const componentFactory = this.componentFactoryResolver.resolveComponentFactory(e.listDetailsComponent);
const componentRef = this.target.createComponent(componentFactory);
this.cell = componentRef.instance as TableCellCustom<EndpointModel>;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you need a destroy function to clear this custom component up when this component is destroyed.

nwmac and others added 2 commits March 13, 2019 14:37
- Ensure extensions/extension-types.ts remains free from other imports
- Now check endpoint detail type is correct at runtime
- Cf Endpoint Type is now registered in cf package
- Ensure cf package tests & lint execute correctly
- Ensure endpoint details components are destroyed correctly
@richard-cox richard-cox force-pushed the endpoint-list-cards branch from 650988a to 0b457fb Compare March 14, 2019 12:09
Copy link
Contributor

@nwmac nwmac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nwmac nwmac merged commit b8a83c2 into v2-master Mar 14, 2019
@nwmac nwmac deleted the endpoint-list-cards branch March 14, 2019 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants