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

Tidy up and refactor user favorites #4757

Merged
merged 90 commits into from
Nov 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
f437245
Allow k8s namespaces to be added as favourites
nwmac Oct 13, 2020
8b166f0
Merge remote-tracking branch 'origin/master' into fav-namespace
nwmac Oct 19, 2020
24f0c86
Improve the home page
nwmac Nov 3, 2020
1c7c0fe
Fix lint issue
nwmac Nov 3, 2020
0b04ae4
Tweaks and refactoring
nwmac Nov 3, 2020
f20a801
Add separator to layout menu
nwmac Nov 4, 2020
6033b91
Improve incremental loading
nwmac Nov 5, 2020
19fcdc8
Various tidyups and improvements
nwmac Nov 5, 2020
5aa01ba
Tidy ups and improvemts to async loading
nwmac Nov 5, 2020
6371a82
Fix progress spinner alignment
nwmac Nov 5, 2020
00a6c5b
Unscubribe
nwmac Nov 6, 2020
c715a0c
Minor bug fixes and a few tidy ups
nwmac Nov 6, 2020
d2b24d9
Further tidy ups
nwmac Nov 6, 2020
b4a2855
Fix front end unit tests
nwmac Nov 6, 2020
cd1fa93
Unit test fix
nwmac Nov 6, 2020
7417f85
Further unit tests fixes
nwmac Nov 6, 2020
979d1bb
Endpoint card unit test fixes
nwmac Nov 6, 2020
4012488
Fix unit tests
nwmac Nov 6, 2020
6d9d94a
Tidy up favorite card
nwmac Nov 6, 2020
36915fa
Further refinement to the UI
nwmac Nov 6, 2020
67c0a1c
Fix missing dates from recents on CF view
nwmac Nov 6, 2020
a28fa61
Get app deploy from home screen working
nwmac Nov 6, 2020
869d270
Add message for when no connected endpoints
nwmac Nov 6, 2020
e975018
Unit test fixes
nwmac Nov 7, 2020
72fb252
Kubernetes Home Card unit test fixes
nwmac Nov 7, 2020
5d2a5b5
Fix unit test error
nwmac Nov 7, 2020
2d4627b
Move components to remove dependency on large shared module
nwmac Nov 7, 2020
1bb7d8a
Fix unit test and add deploy tiles to CF Home Card
nwmac Nov 7, 2020
1e71204
Fix word wrap on favorite name
nwmac Nov 7, 2020
a393647
Add tool tip
nwmac Nov 7, 2020
7c3e90f
Merge remote-tracking branch 'origin/master' into fav-namespace
nwmac Nov 8, 2020
a291548
Style tidy ups
nwmac Nov 8, 2020
dcbd011
Minor tidy ups
nwmac Nov 8, 2020
b55abe2
Check favorites exists before navigating to them
nwmac Nov 9, 2020
5665e6a
Fix test imports
nwmac Nov 9, 2020
7873670
First round of tidy ups of the user favorites code
nwmac Nov 9, 2020
ff7b50d
Further refactor to reduce the complexity of user favorites
nwmac Nov 9, 2020
3afeeda
Fix unit tests
nwmac Nov 9, 2020
3156725
Merge branch 'fav-namespace' into favs-check-validity
nwmac Nov 9, 2020
69a7598
Allow Kubernetes namespaces to be favorited
nwmac Nov 9, 2020
9e51fc3
Fix duplicate import
nwmac Nov 9, 2020
83173cb
Tidy ups
nwmac Nov 9, 2020
4e67ee9
e2e Debugging
nwmac Nov 10, 2020
e0006cf
Merge remote-tracking branch 'origin/master' into fav-namespace
nwmac Nov 10, 2020
ac7858d
Fix for org delete e2e test
nwmac Nov 10, 2020
4578240
E2e Test fix
nwmac Nov 10, 2020
41e0363
Merge remote-tracking branch 'origin/fav-namespace' into favs-check-v…
nwmac Nov 10, 2020
859316f
Refactor out common entity operator
nwmac Nov 10, 2020
1fa7d8c
Slight refactor
nwmac Nov 10, 2020
7a030f4
Fix frontend unit tests
nwmac Nov 10, 2020
dcb84a8
Address PR feedback so far
nwmac Nov 13, 2020
8b7f60e
Merge remote-tracking branch 'origin/master' into fav-namespace
nwmac Nov 13, 2020
a3f98d3
Address PR feedback
nwmac Nov 13, 2020
3084f68
Fix connected endpoint state check on home screen
nwmac Nov 13, 2020
834ad4f
Address PR feedback
nwmac Nov 13, 2020
17f67fd
Restore apps link
nwmac Nov 13, 2020
893ae5b
Merge remote-tracking branch 'origin/fav-namespace' into favs-check-v…
nwmac Nov 13, 2020
b9e1c88
Improve typing
nwmac Nov 13, 2020
93e1c9e
Fix undefined error
nwmac Nov 13, 2020
d65ed30
Fix unit test
nwmac Nov 13, 2020
21d0dec
Merge remote-tracking branch 'origin/fav-namespace' into favs-check-v…
nwmac Nov 14, 2020
a320652
Fix ordering issue
nwmac Nov 14, 2020
e4334ae
Add a default home card
nwmac Nov 16, 2020
0195383
Merge remote-tracking branch 'origin/master' into favs-check-validity
nwmac Nov 16, 2020
86dd500
Fix frong end lint issues
nwmac Nov 16, 2020
fbecdf5
Merge fixes
nwmac Nov 16, 2020
ecc6d09
Merge remote-tracking branch 'origin/master' into favs-check-validity
nwmac Nov 16, 2020
8ce178f
Fix unit tests
nwmac Nov 17, 2020
04829a8
Merge remote-tracking branch 'origin/master' into favs-check-validity
nwmac Nov 17, 2020
73322d0
Fix lint issue
nwmac Nov 17, 2020
885d582
Fix lint issue
nwmac Nov 17, 2020
8cbfabb
Merge remote-tracking branch 'origin/fix-lint-issue' into favs-check-…
nwmac Nov 17, 2020
bc682ea
Merge remote-tracking branch 'origin/master' into favs-check-validity
nwmac Nov 18, 2020
34cf9cd
Fix unit test
nwmac Nov 18, 2020
c8bc1e1
Merge remote-tracking branch 'origin/master' into favs-check-validity
nwmac Nov 23, 2020
cd23257
Fix merge issue
nwmac Nov 23, 2020
5eb6eb0
Fix merge issue
nwmac Nov 23, 2020
c8928e2
Fix kube favorites not showing and sizing issue
nwmac Nov 23, 2020
203db49
Fix kube endpoint card shortcuts
nwmac Nov 23, 2020
40d2164
Reinstate entity validation checks for CF app/org/space
nwmac Nov 23, 2020
3160d6f
Fix favorite validation
nwmac Nov 23, 2020
4b9a2d5
Tidy ups
nwmac Nov 24, 2020
a12470c
Merge remote-tracking branch 'origin/master' into favs-check-validity
nwmac Nov 24, 2020
fef76be
Fix merge issue
nwmac Nov 24, 2020
6c5b0f4
Remove unrelated change
nwmac Nov 24, 2020
3c5c0a8
Address PR feedback
nwmac Nov 24, 2020
f02d8c6
Merge branch 'favs-check-validity' of github.com:cloudfoundry/stratos…
nwmac Nov 24, 2020
7cb342f
Bug fixes
nwmac Nov 24, 2020
ec1d114
Address PR feedback
nwmac Nov 25, 2020
d9d1e38
Fix link for kubernetes endpoints
nwmac Nov 25, 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
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { IOrgFavMetadata } from '../../../cloud-foundry/src/cf-metadata-types';
import {
StratosBaseCatalogEntity,
StratosCatalogEntity,
Expand Down Expand Up @@ -114,5 +113,5 @@ function generateMetricEntity(endpointDefinition: IStratosEndpointDefinition) {
labelPlural: 'Autoscaler Metrics',
endpoint: endpointDefinition,
};
return new StratosCatalogEntity<IOrgFavMetadata, APIResource<any>>(definition);
return new StratosCatalogEntity<IFavoriteMetadata, APIResource<any>>(definition);
}
53 changes: 27 additions & 26 deletions src/frontend/packages/cloud-foundry/src/cf-entity-catalog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {
StratosCatalogEndpointEntity,
} from '../../store/src/entity-catalog/entity-catalog-entity/entity-catalog-entity';
import { APIResource } from '../../store/src/types/api.types';
import { IFavoriteMetadata } from '../../store/src/types/user-favorites.types';
import {
IService,
IServiceBinding,
Expand All @@ -29,7 +30,7 @@ import {
ISpaceQuotaDefinition,
IStack,
} from './cf-api.types';
import { IAppFavMetadata, IBasicCFMetaData, IOrgFavMetadata, ISpaceFavMetadata } from './cf-metadata-types';
import { ISpaceFavMetadata } from './cf-metadata-types';
import { AppEnvVarActionBuilders } from './entity-action-builders/application-env-var.action-builders';
import { AppStatsActionBuilders } from './entity-action-builders/application-stats.action-builders';
import { AppSummaryActionBuilders } from './entity-action-builders/application-summary.action-builders';
Expand Down Expand Up @@ -65,132 +66,132 @@ export class CfEntityCatalog {
public cfEndpoint: StratosCatalogEndpointEntity;

public quotaDefinition: StratosBaseCatalogEntity<
IBasicCFMetaData,
IFavoriteMetadata,
APIResource<IOrgQuotaDefinition>,
QuotaDefinitionActionBuilder
>;

public appEnvVar: StratosBaseCatalogEntity<
IBasicCFMetaData,
IFavoriteMetadata,
APIResource,
AppEnvVarActionBuilders
>;

public appSummary: StratosBaseCatalogEntity<
IBasicCFMetaData,
IFavoriteMetadata,
IAppSummary,
AppSummaryActionBuilders
>;

public spaceQuota: StratosBaseCatalogEntity<
IBasicCFMetaData,
IFavoriteMetadata,
APIResource<ISpaceQuotaDefinition>,
SpaceQuotaDefinitionActionBuilders
>;

public privateDomain: StratosBaseCatalogEntity<
IBasicCFMetaData,
IFavoriteMetadata,
APIResource<IPrivateDomain>
>;

public cfInfo: StratosBaseCatalogEntity<
IBasicCFMetaData,
IFavoriteMetadata,
APIResource<ICfV2Info>,
CfInfoDefinitionActionBuilders
>;

public appStats: StratosBaseCatalogEntity<
IBasicCFMetaData,
IFavoriteMetadata,
AppStat,
AppStatsActionBuilders
>;

public buildPack: StratosBaseCatalogEntity<
IBasicCFMetaData,
IFavoriteMetadata,
APIResource<IBuildpack>,
BuildpackActionBuilders
>;

public serviceBroker: StratosBaseCatalogEntity<
IBasicCFMetaData,
IFavoriteMetadata,
APIResource<IServiceBroker>,
ServiceBrokerActionBuilders
>;

public servicePlanVisibility: StratosBaseCatalogEntity<
IBasicCFMetaData,
IFavoriteMetadata,
APIResource<IServicePlanVisibility>,
ServicePlanVisibilityActionBuilders
>;

public securityGroup: StratosBaseCatalogEntity<
IBasicCFMetaData,
IFavoriteMetadata,
APIResource<ISecurityGroup>,
SecurityGroupBuilders
>;

public serviceBinding: StratosBaseCatalogEntity<
IBasicCFMetaData,
IFavoriteMetadata,
APIResource<IServiceBinding>,
ServiceBindingActionBuilders
>;

public service: StratosBaseCatalogEntity<
IBasicCFMetaData,
IFavoriteMetadata,
APIResource<IService>,
ServiceActionBuilders
>;

public servicePlan: StratosBaseCatalogEntity<
IBasicCFMetaData,
IFavoriteMetadata,
APIResource<IServicePlan>,
ServicePlanActionBuilders
>;

public serviceInstance: StratosBaseCatalogEntity<
IBasicCFMetaData,
IFavoriteMetadata,
APIResource<IServiceInstance>,
ServiceInstanceActionBuilders
>;

public user: StratosBaseCatalogEntity<
IBasicCFMetaData,
IFavoriteMetadata,
APIResource<CfUser>,
UserActionBuilders
>;

public domain: StratosBaseCatalogEntity<
IBasicCFMetaData,
IFavoriteMetadata,
APIResource<IDomain>,
DomainActionBuilders
>;

public event: StratosBaseCatalogEntity<
IBasicCFMetaData,
IFavoriteMetadata,
APIResource<CfEvent>,
CfEventActionBuilders
>;

public route: StratosBaseCatalogEntity<
IBasicCFMetaData,
IFavoriteMetadata,
APIResource<IRoute>,
RoutesActionBuilders
>;

public stack: StratosBaseCatalogEntity<
IBasicCFMetaData,
IFavoriteMetadata,
APIResource<IStack>,
StackActionBuilders
>;

public featureFlag: StratosBaseCatalogEntity<
IBasicCFMetaData,
IFavoriteMetadata,
IFeatureFlag,
FeatureFlagActionBuilders
>;

public application: StratosBaseCatalogEntity<
IAppFavMetadata,
IFavoriteMetadata,
APIResource<IApp>,
ApplicationActionBuilders
>;
Expand All @@ -202,17 +203,17 @@ export class CfEntityCatalog {
>;

public org: StratosBaseCatalogEntity<
IOrgFavMetadata,
IFavoriteMetadata,
APIResource<IOrganization>,
OrganizationActionBuilders
>;

public metric: StratosBaseCatalogEntity<
IBasicCFMetaData
IFavoriteMetadata
>;

public userProvidedService: StratosBaseCatalogEntity<
IBasicCFMetaData,
IFavoriteMetadata,
APIResource<IUserProvidedServiceInstance>,
UserProvidedServiceActionBuilder
>;
Expand Down
Loading