Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
7c6b56c
Remove two orphan component SCSS files
norman-abramovitz May 20, 2026
d856ca4
Migrate 35 Class-A SCSS files to Tailwind utilities
norman-abramovitz May 20, 2026
e431428
Remove six dead-rule Class B SCSS files
norman-abramovitz May 20, 2026
621f8e7
Flatten entity-summary-title BEM to template utilities
norman-abramovitz May 20, 2026
e11ee12
Remove three more dead-rule Class B SCSS files
norman-abramovitz May 20, 2026
47fa9ca
Migrate seven Class B SCSS files in kubernetes package
norman-abramovitz May 20, 2026
bf18b15
Migrate three Class B SCSS files in cf-autoscaler package
norman-abramovitz May 20, 2026
31ade96
Remove dead-rule table-cell-select-org SCSS
norman-abramovitz May 20, 2026
e9298f6
Migrate five Class B SCSS files in cloud-foundry (batch 1)
norman-abramovitz May 20, 2026
43f12ce
Migrate five more Class B SCSS files in cloud-foundry (batch 2)
norman-abramovitz May 20, 2026
8cf4c82
Migrate four more Class B SCSS files in cloud-foundry (batch 3)
norman-abramovitz May 20, 2026
7ec6400
Migrate five more Class B SCSS files in cloud-foundry (batch 4)
norman-abramovitz May 21, 2026
87417a2
Migrate three final Class B SCSS files in cloud-foundry (batch 5)
norman-abramovitz May 21, 2026
e309956
Migrate 4 mostly-dead Class B SCSS files in core (batch 1)
norman-abramovitz May 21, 2026
70adb0c
Migrate 5 Class B SCSS files in core endpoints (batch 2)
norman-abramovitz May 21, 2026
0dd2438
Migrate 5 Class B SCSS files in core (batch 3)
norman-abramovitz May 21, 2026
0093467
Migrate 5 Class B SCSS files in core (batch 4)
norman-abramovitz May 21, 2026
1742efb
Migrate 5 Class B SCSS files in core (batch 5)
norman-abramovitz May 21, 2026
ad8e49c
Migrate 3 Class B SCSS files in core (batch 6)
norman-abramovitz May 21, 2026
c0eb1f9
Migrate 3 Class B SCSS files in core (batch 7)
norman-abramovitz May 21, 2026
dd64850
Migrate 2 Class B SCSS files in core (batch 8)
norman-abramovitz May 21, 2026
84ff72b
Migrate 3 Class B SCSS files in core (batch 9)
norman-abramovitz May 21, 2026
0b1d524
Migrate 2 Class B SCSS files in core (batch 10)
norman-abramovitz May 21, 2026
af000c7
Migrate 4 final Class B SCSS files in core (batch 11)
norman-abramovitz May 21, 2026
0eddc65
Migrate 21 cf :host SCSS files to host utility classes (batch 12)
norman-abramovitz May 21, 2026
cf38bf1
Migrate 10 Class A SCSS files in core+k8s (batch 13)
norman-abramovitz May 21, 2026
a7fe88d
Fix entity-favorite-star spec selector after class rename
norman-abramovitz May 21, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import { AutoscalerConstants } from '../../core/autoscaler-helpers/autoscaler-ut
@Component({
selector: 'app-autoscaler-metric-page',
templateUrl: './autoscaler-metric-page.component.html',
styleUrls: ['./autoscaler-metric-page.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush,
standalone: true,
imports: [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
<app-page-sub-nav>
@if (appAutoscalerPolicy$ | async; as policy) {
<button class="btn nav-button-with-text" name="edit" (click)="updatePolicyPage()">
<span class="nav-button-with-text__span">
<app-custom-icon class="nav-button-with-text__icon">edit</app-custom-icon> Edit Policy
<button class="btn my-0 mr-2.5 ml-0 py-0 px-1.5" name="edit" (click)="updatePolicyPage()">
<span class="flex items-center">
<app-custom-icon class="mr-1.5">edit</app-custom-icon> Edit Policy
</span>
</button>
<button class="btn nav-button-with-text" name="delete" (click)="disableAutoscaler()">
<span class="nav-button-with-text__span">
<app-custom-icon class="nav-button-with-text__icon">delete</app-custom-icon> Delete Policy
<button class="btn my-0 mr-2.5 ml-0 py-0 px-1.5" name="delete" (click)="disableAutoscaler()">
<span class="flex items-center">
<app-custom-icon class="mr-1.5">delete</app-custom-icon> Delete Policy
</span>
</button>
@if (canManageCredentials()) {
<button class="btn nav-button-with-text" name="credential" (click)="manageCredentialPage()">
<span class="nav-button-with-text__span">
<app-custom-icon class="nav-button-with-text__icon">vpn_key</app-custom-icon> Manage Credentials
<button class="btn my-0 mr-2.5 ml-0 py-0 px-1.5" name="credential" (click)="manageCredentialPage()">
<span class="flex items-center">
<app-custom-icon class="mr-1.5">vpn_key</app-custom-icon> Manage Credentials
</span>
</button>
}
} @else {
<button class="btn nav-button-with-text" name="add" (click)="updatePolicyPage(true)">
<span class="nav-button-with-text__span">
<app-custom-icon class="nav-button-with-text__icon">add</app-custom-icon> Create Policy
<button class="btn my-0 mr-2.5 ml-0 py-0 px-1.5" name="add" (click)="updatePolicyPage(true)">
<span class="flex items-center">
<app-custom-icon class="mr-1.5">add</app-custom-icon> Create Policy
</span>
</button>
}
</app-page-sub-nav>
<div class="autoscaler-tab">
<app-tile-grid class="app-autoscaler-tile-grid-100">
<div class="flex relative w-full">
<app-tile-grid class="w-full">
@if (appAutoscalerPolicy$ | async; as policy) {
<app-tile-group>
@if (policy.enabled) {
Expand All @@ -35,7 +35,7 @@
</app-tile>
}
@if (policy.enabled) {
<app-tile class="autoscaler-tab__latest-metrics">
<app-tile class="flex-[2] min-h-[200px]">
@if (policy.scaling_rules.length === 0) {
<app-card-app-usage></app-card-app-usage>
}
Expand All @@ -45,10 +45,10 @@
<app-card-title>Latest Metrics</app-card-title>
</app-card-header>
<app-card-content>
<div class="app-metadata">
<div class="flex flex-row">
@for (metric of appAutoscalerAppMetricNames$ | async; track metric) {
<div class="app-metadata__two-cols">
<app-metadata-item label={{metric.name}}>
<div class="pr-10">
<app-metadata-item class="my-0" label={{metric.name}}>
@if (appAutoscalerAppMetrics[metric.name] | async; as metricData) {
<canvas baseChart [type]="'doughnut'"
[data]="getGaugeData(metricData)"
Expand All @@ -61,7 +61,7 @@
}
</div>
</app-card-content>
<app-card-actions class="autoscaler-tab__actions">
<app-card-actions class="absolute bottom-2.5 right-6 pt-0 text-right">
<app-polling-indicator [manualPoll]="true" (poll)="loadLatestMetricsUponPolicy()">
</app-polling-indicator>
<button (click)="metricChartPage()" class="btn btn-icon" aria-label="Open metric chart">
Expand All @@ -84,7 +84,7 @@
<app-card-title>Scaling Rules </app-card-title>
</app-card-header>
<app-card-content>
<div class="app-metadata app-metadata-table">
<div class="block pb-2">
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200 dark:divide-gray-700">
<thead class="bg-gray-50 dark:bg-gray-800">
Expand Down Expand Up @@ -120,7 +120,7 @@
</table>
</div>
@if (policy && policy.scaling_rules_form && policy.scaling_rules_form.length === 0) {
<div class="autoscaler-tab-table-no-record text-center py-8 text-gray-500 dark:text-gray-400"
<div class="mt-2 text-center py-8 text-gray-500 dark:text-gray-400"
>No scaling rules.
</div>
}
Expand All @@ -141,7 +141,7 @@
</app-card-title>
</app-card-header>
<app-card-content>
<div class="app-metadata app-metadata-table autoscaler-table-policy-specific">
<div class="block pb-2 autoscaler-table-policy-specific">
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200 dark:divide-gray-700">
<thead class="bg-gray-50 dark:bg-gray-800">
Expand Down Expand Up @@ -188,13 +188,13 @@
</table>
</div>
@if (policy && policy.schedules && policy.schedules.specific_date && policy.schedules.specific_date.length === 0) {
<div class="autoscaler-tab-table-no-record text-center py-8 text-gray-500 dark:text-gray-400"
<div class="mt-2 text-center py-8 text-gray-500 dark:text-gray-400"
>
No specific date schedule.</div>
}
</div>
<br />
<div class="app-metadata app-metadata-table autoscaler-table-policy-recurring">
<div class="block pb-2 autoscaler-table-policy-recurring">
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200 dark:divide-gray-700">
<thead class="bg-gray-50 dark:bg-gray-800">
Expand Down Expand Up @@ -253,7 +253,7 @@
</table>
</div>
@if (policy && policy.schedules && policy.schedules.specific_date && policy.schedules.recurring_schedule.length === 0) {
<div class="autoscaler-tab-table-no-record text-center py-8 text-gray-500 dark:text-gray-400"
<div class="mt-2 text-center py-8 text-gray-500 dark:text-gray-400"
>
No recurring schedule.</div>
}
Expand All @@ -266,20 +266,20 @@
</div>
}
@if (showAutoscalerHistory$ | async) {
<app-tile-group class="autoscaler-tile-events">
<app-tile-group class="flex-col">
@if ((appAutoscalerPolicy$ | async) === false) {
<span class="autoscaler-tile-events__no-policy">
<span class="flex items-center mb-3 p-3.5">
{{noPolicyMessageFirstLine}}. {{noPolicyMessageSecondLine.text}}
</span>
}
@if (appAutoscalerScalingHistory$ | async; as scalingHistory) {
<app-tile>
<app-card>
<app-card-header class="autoscaler-tile-events__header">
<app-card-header class="flex flex-1 h-10 justify-between pt-0">
<app-card-title>Latest Events </app-card-title>
</app-card-header>
<app-card-content>
<div class="app-metadata app-metadata-table">
<div class="block pb-2">
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200 dark:divide-gray-700">
<thead class="bg-gray-50 dark:bg-gray-800">
Expand Down Expand Up @@ -320,13 +320,13 @@
</table>
</div>
@if (scalingHistory.length === 0) {
<div class="autoscaler-tab-table-no-record text-center py-8 text-gray-500 dark:text-gray-400"
<div class="mt-2 text-center py-8 text-gray-500 dark:text-gray-400"
>
No events.</div>
}
</div>
</app-card-content>
<app-card-actions class="autoscaler-tab__actions">
<app-card-actions class="absolute bottom-2.5 right-6 pt-0 text-right">
<app-polling-indicator (poll)="fetchScalingHistory()"
[manualPoll]="(scalingHistoryLoading$ | async) === false"
[isPolling]="(scalingHistoryLoading$ | async)">
Expand All @@ -346,4 +346,4 @@
</app-no-content-message>
}
</app-tile-grid>
</div>
</div>

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ interface AutoscalerTabPaginationParams {
@Component({
selector: 'app-autoscaler-tab-extension',
templateUrl: './autoscaler-tab-extension.component.html',
styleUrls: ['./autoscaler-tab-extension.component.scss'],
providers: [
ApplicationMonitorService
],
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { CommonModule } from '@angular/common';
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, OnInit, inject } from '@angular/core';
import { AbstractControl, FormBuilder, FormControl, FormGroup, ReactiveFormsModule, ValidatorFn, Validators } from '@angular/forms';
import { ActivatedRoute } from '@angular/router';

Check warning on line 4 in src/frontend/packages/cf-autoscaler/src/features/edit-autoscaler-policy/edit-autoscaler-policy-step1/edit-autoscaler-policy-step1.component.ts

View workflow job for this annotation

GitHub Actions / Lint Check

'ActivatedRoute' is defined but never used. Allowed unused vars must match /^_/u
import { Observable, of as observableOf } from 'rxjs';
import { map, startWith } from 'rxjs/operators';
import { TailwindErrorStateMatcher, TailwindShowOnDirtyErrorStateMatcher } from '@stratosui/core';
Expand All @@ -11,7 +11,7 @@
import { PolicyAlert } from '../../../core/autoscaler-helpers/autoscaler-util';
import { numberWithFractionOrExceedRange } from '../../../core/autoscaler-helpers/autoscaler-validation';
import { EditAutoscalerPolicyDirective } from '../edit-autoscaler-policy-base-step';
import { EditAutoscalerPolicyService } from '../edit-autoscaler-policy-service';

Check warning on line 14 in src/frontend/packages/cf-autoscaler/src/features/edit-autoscaler-policy/edit-autoscaler-policy-step1/edit-autoscaler-policy-step1.component.ts

View workflow job for this annotation

GitHub Actions / Lint Check

'EditAutoscalerPolicyService' is defined but never used. Allowed unused vars must match /^_/u

interface EditLimitForm {
instance_min_count: FormControl<number>;
Expand All @@ -22,7 +22,6 @@
@Component({
selector: 'app-edit-autoscaler-policy-step1',
templateUrl: './edit-autoscaler-policy-step1.component.html',
styleUrls: ['./edit-autoscaler-policy-step1.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush,
providers: [
{ provide: TailwindErrorStateMatcher, useClass: TailwindShowOnDirtyErrorStateMatcher }
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, OnDestroy, OnInit, inject } from '@angular/core';
import { AbstractControl, FormBuilder, FormControl, FormGroup, ReactiveFormsModule, ValidatorFn, Validators } from '@angular/forms';
import { TailwindErrorStateMatcher, TailwindShowOnDirtyErrorStateMatcher } from '@stratosui/core';
import { ActivatedRoute } from '@angular/router';

Check warning on line 4 in src/frontend/packages/cf-autoscaler/src/features/edit-autoscaler-policy/edit-autoscaler-policy-step2/edit-autoscaler-policy-step2.component.ts

View workflow job for this annotation

GitHub Actions / Lint Check

'ActivatedRoute' is defined but never used. Allowed unused vars must match /^_/u
import { BehaviorSubject, Observable, Subscription } from 'rxjs';
import { map, startWith } from 'rxjs/operators';
import { CommonModule } from '@angular/common';
Expand All @@ -22,7 +22,7 @@
} from '../../../core/autoscaler-helpers/autoscaler-validation';
import { AppAutoscalerInvalidPolicyError, AppAutoscalerPolicyLocal } from '../../../store/app-autoscaler.types';
import { EditAutoscalerPolicyDirective } from '../edit-autoscaler-policy-base-step';
import { EditAutoscalerPolicyService } from '../edit-autoscaler-policy-service';

Check warning on line 25 in src/frontend/packages/cf-autoscaler/src/features/edit-autoscaler-policy/edit-autoscaler-policy-step2/edit-autoscaler-policy-step2.component.ts

View workflow job for this annotation

GitHub Actions / Lint Check

'EditAutoscalerPolicyService' is defined but never used. Allowed unused vars must match /^_/u

interface EditTriggerForm {
metric_type: FormControl<string>;
Expand All @@ -38,7 +38,6 @@
@Component({
selector: 'app-edit-autoscaler-policy-step2',
templateUrl: './edit-autoscaler-policy-step2.component.html',
styleUrls: ['./edit-autoscaler-policy-step2.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush,
providers: [
{ provide: TailwindErrorStateMatcher, useClass: TailwindShowOnDirtyErrorStateMatcher }
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, OnInit, inject } from '@angular/core';
import { AbstractControl, FormBuilder, FormControl, FormGroup, ReactiveFormsModule, ValidatorFn, Validators } from '@angular/forms';
import { CommonModule } from '@angular/common';
import { ActivatedRoute } from '@angular/router';

Check warning on line 4 in src/frontend/packages/cf-autoscaler/src/features/edit-autoscaler-policy/edit-autoscaler-policy-step3/edit-autoscaler-policy-step3.component.ts

View workflow job for this annotation

GitHub Actions / Lint Check

'ActivatedRoute' is defined but never used. Allowed unused vars must match /^_/u
import { addDays, format } from 'date-fns';
import { BehaviorSubject } from 'rxjs';

Expand All @@ -16,7 +16,7 @@
} from '../../../core/autoscaler-helpers/autoscaler-validation';
import { AppAutoscalerInvalidPolicyError, AppAutoscalerPolicyLocal, AppRecurringSchedule } from '../../../store/app-autoscaler.types';
import { EditAutoscalerPolicyDirective } from '../edit-autoscaler-policy-base-step';
import { EditAutoscalerPolicyService } from '../edit-autoscaler-policy-service';

Check warning on line 19 in src/frontend/packages/cf-autoscaler/src/features/edit-autoscaler-policy/edit-autoscaler-policy-step3/edit-autoscaler-policy-step3.component.ts

View workflow job for this annotation

GitHub Actions / Lint Check

'EditAutoscalerPolicyService' is defined but never used. Allowed unused vars must match /^_/u
import {
validateRecurringSpecificMax,
validateRecurringSpecificMin,
Expand All @@ -39,7 +39,6 @@
@Component({
selector: 'app-edit-autoscaler-policy-step3',
templateUrl: './edit-autoscaler-policy-step3.component.html',
styleUrls: ['./edit-autoscaler-policy-step3.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush,
providers: [
{ provide: TailwindErrorStateMatcher, useClass: TailwindShowOnDirtyErrorStateMatcher }
Expand Down
Loading
Loading