-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature flag details page overview header left code changes (#1601)
* feature flag header left code changes * addressed the review cmts
- Loading branch information
Showing
7 changed files
with
100 additions
and
13 deletions.
There are no files selected for viewing
13 changes: 12 additions & 1 deletion
13
...g-overview-details-section-card/feature-flag-overview-details-section-card.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
52 changes: 49 additions & 3 deletions
52
...lag-overview-details-section-card/feature-flag-overview-details-section-card.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 |
---|---|---|
@@ -1,13 +1,59 @@ | ||
import { ChangeDetectionStrategy, Component } from '@angular/core'; | ||
import { CommonSectionCardComponent } from '../../../../../../../shared-standalone-component-lib/components'; | ||
import { | ||
CommonSectionCardComponent, | ||
CommonSectionCardTitleHeaderComponent, | ||
} from '../../../../../../../shared-standalone-component-lib/components'; | ||
import { FeatureFlagOverviewDetailsFooterComponent } from './feature-flag-overview-details-footer/feature-flag-overview-details-footer.component'; | ||
import { FeatureFlag } from '../../../../../../../core/feature-flags/store/feature-flags.model'; | ||
import { FEATURE_FLAG_STATUS, FILTER_MODE } from 'upgrade_types'; | ||
import { FeatureFlagsService } from '../../../../../../../core/feature-flags/feature-flags.service'; | ||
|
||
@Component({ | ||
selector: 'app-feature-flag-overview-details-section-card', | ||
standalone: true, | ||
imports: [CommonSectionCardComponent, FeatureFlagOverviewDetailsFooterComponent], | ||
imports: [ | ||
CommonSectionCardComponent, | ||
CommonSectionCardTitleHeaderComponent, | ||
FeatureFlagOverviewDetailsFooterComponent, | ||
], | ||
templateUrl: './feature-flag-overview-details-section-card.component.html', | ||
styleUrl: './feature-flag-overview-details-section-card.component.scss', | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
}) | ||
export class FeatureFlagOverviewDetailsSectionCardComponent {} | ||
export class FeatureFlagOverviewDetailsSectionCardComponent { | ||
//temp mock data | ||
featureFlag: FeatureFlag = { | ||
createdAt: '2021-09-08T08:00:00.000Z', | ||
updatedAt: '2021-09-08T08:00:00.000Z', | ||
versionNumber: 1, | ||
id: '1', | ||
name: 'Feature Flag 1', | ||
key: 'feature_flag_1', | ||
description: 'Feature Flag 1 Description', | ||
status: FEATURE_FLAG_STATUS.DISABLED, | ||
filterMode: FILTER_MODE.INCLUDE_ALL, | ||
context: ['context1', 'context2'], | ||
tags: ['tag1', 'tag2'], | ||
featureFlagSegmentInclusion: null, | ||
featureFlagSegmentExclusion: null, | ||
}; | ||
flagName: string; | ||
flagHeaderSubtitle: string; | ||
flagCreatedAt: string; | ||
flagUpdatedAt: string; | ||
flagStatus: FEATURE_FLAG_STATUS; | ||
|
||
constructor(private featureFlagService: FeatureFlagsService) {} | ||
|
||
ngOnInit() { | ||
this.flagName = this.featureFlag.name; | ||
this.flagCreatedAt = this.featureFlag.createdAt; | ||
this.flagUpdatedAt = this.featureFlag.updatedAt; | ||
this.flagStatus = this.featureFlag.status; | ||
} | ||
|
||
viewLogsClicked(event) { | ||
console.log('viewLogs Clicked'); | ||
console.log(event); | ||
} | ||
} |
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