diff --git a/web/projects/marketplace/src/pages/show/additional/additional.component.scss b/web/projects/marketplace/src/pages/show/additional/additional.component.scss
index 0a8c0e199..c8c41396e 100644
--- a/web/projects/marketplace/src/pages/show/additional/additional.component.scss
+++ b/web/projects/marketplace/src/pages/show/additional/additional.component.scss
@@ -10,7 +10,7 @@
& > * + * {
border-top-width: 1px;
- border-bottom-width: 0px;
+ border-bottom-width: 0;
border-color: rgb(113 113 122);
}
}
diff --git a/web/projects/shared/styles/taiga.scss b/web/projects/shared/styles/taiga.scss
index 5adcc6739..c68065da5 100644
--- a/web/projects/shared/styles/taiga.scss
+++ b/web/projects/shared/styles/taiga.scss
@@ -9,7 +9,7 @@
/* stylelint-disable order/order */
[tuiAppearance][data-appearance='secondary-warning'] {
background: var(--tui-warning-bg);
- color: var(--tui-warning-fill);
+ color: var(--tui-text-01);
@include appearance-hover {
background: var(--tui-warning-bg-hover);
@@ -58,6 +58,7 @@
@include appearance-disabled {
background: #eaecee;
+ color: #333;
}
}
@@ -75,6 +76,7 @@
@include appearance-disabled {
background: #eaecee;
+ color: #333;
}
}
@@ -92,6 +94,7 @@
@include appearance-disabled {
background: #eaecee;
+ color: #333;
}
}
@@ -109,6 +112,7 @@
@include appearance-disabled {
background: #eaecee;
+ color: #333;
}
}
@@ -126,6 +130,7 @@
@include appearance-disabled {
background: #eaecee;
+ color: #333;
}
}
diff --git a/web/projects/ui/src/app/routes/portal/components/form/form-object/form-object.component.html b/web/projects/ui/src/app/routes/portal/components/form/form-object/form-object.component.html
index aa9e85f19..6dccad33a 100644
--- a/web/projects/ui/src/app/routes/portal/components/form/form-object/form-object.component.html
+++ b/web/projects/ui/src/app/routes/portal/components/form/form-object/form-object.component.html
@@ -7,7 +7,7 @@
class="button"
[class.button_open]="open"
[style.border-radius.%]="100"
- [appearance]="invalid ? 'secondary-destructive' : 'secondary'"
+ [appearance]="invalid ? 'danger-solid' : 'secondary'"
>
{{ spec.name }}
diff --git a/web/projects/ui/src/app/routes/portal/routes/service/components/action.component.ts b/web/projects/ui/src/app/routes/portal/routes/service/components/action.component.ts
index 5861b0fd0..fe6e30bec 100644
--- a/web/projects/ui/src/app/routes/portal/routes/service/components/action.component.ts
+++ b/web/projects/ui/src/app/routes/portal/routes/service/components/action.component.ts
@@ -1,5 +1,6 @@
import { ChangeDetectionStrategy, Component, Input } from '@angular/core'
import { TuiSvgModule } from '@taiga-ui/core'
+import { TuiIconModule } from '@taiga-ui/experimental'
interface ActionItem {
readonly icon: string
@@ -10,7 +11,7 @@ interface ActionItem {
@Component({
selector: '[action]',
template: `
-
+
{{ action.name }}
{{ action.description }}
@@ -18,7 +19,7 @@ interface ActionItem {
`,
changeDetection: ChangeDetectionStrategy.OnPush,
standalone: true,
- imports: [TuiSvgModule],
+ imports: [TuiIconModule],
})
export class ServiceActionComponent {
@Input({ required: true })
diff --git a/web/projects/ui/src/app/routes/portal/routes/service/components/actions.component.ts b/web/projects/ui/src/app/routes/portal/routes/service/components/actions.component.ts
index 14889dcad..696c46620 100644
--- a/web/projects/ui/src/app/routes/portal/routes/service/components/actions.component.ts
+++ b/web/projects/ui/src/app/routes/portal/routes/service/components/actions.component.ts
@@ -4,13 +4,16 @@ import {
inject,
Input,
} from '@angular/core'
+import { Manifest } from '@startos'
import { tuiPure } from '@taiga-ui/cdk'
-import { TuiButtonModule } from '@taiga-ui/experimental'
+import {
+ TuiButtonModule,
+ tuiButtonOptionsProvider,
+} from '@taiga-ui/experimental'
import { DependencyInfo } from 'src/app/routes/portal/routes/service/types/dependency-info'
import { ActionsService } from 'src/app/services/actions.service'
import { PackageDataEntry } from 'src/app/services/patch-db/data-model'
import { getManifest } from 'src/app/utils/get-package-data'
-import { Manifest } from '../../../../../../../../../../core/startos/bindings/Manifest'
@Component({
selector: 'service-actions',
@@ -18,7 +21,7 @@ import { Manifest } from '../../../../../../../../../../core/startos/bindings/Ma
@if (pkg.status.main.status === 'running') {
@@ -75,7 +75,7 @@ export class ServiceActionsRoute {
.pipe(filter(pkg => pkg.stateInfo.state === 'installed'))
readonly action = {
- icon: 'tuiIconTrash2Large',
+ icon: 'tuiIconTrash2',
name: 'Uninstall',
description:
'This will uninstall the service from StartOS and delete all data permanently.',
diff --git a/web/projects/ui/src/app/routes/portal/routes/service/routes/service.component.ts b/web/projects/ui/src/app/routes/portal/routes/service/routes/service.component.ts
index a1e4e7001..e67b1f531 100644
--- a/web/projects/ui/src/app/routes/portal/routes/service/routes/service.component.ts
+++ b/web/projects/ui/src/app/routes/portal/routes/service/routes/service.component.ts
@@ -2,8 +2,15 @@ import { CommonModule } from '@angular/common'
import { ChangeDetectionStrategy, Component, inject } from '@angular/core'
import { ActivatedRoute, NavigationExtras, Router } from '@angular/router'
import { isEmptyObject } from '@start9labs/shared'
+import { HealthCheckResult, MainStatus, Manifest } from '@startos'
import { PatchDB } from 'patch-db-client'
import { combineLatest, map, switchMap } from 'rxjs'
+import {
+ ConfigModal,
+ PackageConfigData,
+} from 'src/app/routes/portal/modals/config.component'
+import { ServiceBackupsComponent } from 'src/app/routes/portal/routes/service/components/backups.component'
+import { InstallingProgressPipe } from 'src/app/routes/portal/routes/service/pipes/install-progress.pipe'
import { ConnectionService } from 'src/app/services/connection.service'
import {
DepErrorService,
@@ -21,87 +28,122 @@ import {
StatusRendering,
} from 'src/app/services/pkg-status-rendering.service'
import { DependentInfo } from 'src/app/types/dependent-info'
+import { getManifest } from 'src/app/utils/get-package-data'
import { ServiceActionsComponent } from '../components/actions.component'
-import { ServiceAdditionalComponent } from '../components/additional.component'
import { ServiceDependenciesComponent } from '../components/dependencies.component'
import { ServiceHealthChecksComponent } from '../components/health-checks.component'
import { ServiceInterfaceListComponent } from '../components/interface-list.component'
import { ServiceMenuComponent } from '../components/menu.component'
import { ServiceProgressComponent } from '../components/progress.component'
import { ServiceStatusComponent } from '../components/status.component'
-import {
- PackageConfigData,
- ConfigModal,
-} from 'src/app/routes/portal/modals/config.component'
import { DependencyInfo } from '../types/dependency-info'
-import { getManifest } from 'src/app/utils/get-package-data'
-import { InstallingProgressPipe } from 'src/app/routes/portal/routes/service/pipes/install-progress.pipe'
-import { Manifest } from '../../../../../../../../../../core/startos/bindings/Manifest'
-import { HealthCheckResult } from '../../../../../../../../../../core/startos/bindings/HealthCheckResult'
-import { MainStatus } from '../../../../../../../../../../core/startos/bindings/MainStatus'
@Component({
template: `
@if (service$ | async; as service) {
-
Status
-
-
- @if (
- service.pkg.stateInfo.state === 'installing' ||
- service.pkg.stateInfo.state === 'updating' ||
- service.pkg.stateInfo.state === 'restoring'
- ) {
-
+
Status
+
- {{ phase.name }}
-
- } @else {
- @if (
- service.pkg.stateInfo.state === 'installed' &&
- service.status.primary !== 'backingUp'
- ) {
- @if (connected$ | async) {
-
- }
+ />
+ @if (isInstalled(service) && (connected$ | async)) {
+
+ }
+
+
+ @if (isInstalled(service)) {
+
+
+
+
+
+
+
+
+
+
+
+
+
+ }
- @if (
- service.status.primary === 'running' && (health$ | async);
- as checks
- ) {
-
- }
-
- @if (service.dependencies.length) {
-
- }
-
-
-
+ @if (isInstalling(service.pkg.stateInfo.state)) {
+ @for (
+ item of service.pkg.stateInfo.installingInfo?.progress?.phases;
+ track $index
+ ) {
+ {{ item.name }}
}
}
}
`,
+ styles: `
+ :host {
+ display: grid;
+ grid-template-columns: repeat(12, 1fr);
+ flex-direction: column;
+ gap: 1rem;
+ margin: 1rem -1rem 0;
+ }
+
+ :host-context(tui-root._mobile) {
+ display: flex;
+ }
+
+ section {
+ display: flex;
+ flex-direction: column;
+ width: 100%;
+ padding: 1rem 1.5rem 0.5rem;
+ border-radius: 1rem;
+ background: var(--tui-clear);
+ box-shadow: inset 0 7rem 0 -4rem var(--tui-clear);
+ clip-path: polygon(0 1.5rem, 1.5rem 0, 100% 0, 100% 100%, 0 100%);
+ }
+
+ h3 {
+ margin-bottom: 1.25rem;
+ }
+
+ div {
+ display: flex;
+ flex-direction: column;
+ gap: inherit;
+ grid-column: span 4;
+ }
+ `,
changeDetection: ChangeDetectionStrategy.OnPush,
standalone: true,
imports: [
@@ -113,7 +155,7 @@ import { MainStatus } from '../../../../../../../../../../core/startos/bindings/
ServiceHealthChecksComponent,
ServiceDependenciesComponent,
ServiceMenuComponent,
- ServiceAdditionalComponent,
+ ServiceBackupsComponent,
InstallingProgressPipe,
],
})
@@ -134,13 +176,11 @@ export class ServiceRoute {
this.depErrorService.getPkgDepErrors$(pkgId),
]),
),
- map(([pkg, depErrors]) => {
- return {
- pkg,
- dependencies: this.getDepInfo(pkg, depErrors),
- status: renderPkgStatus(pkg, depErrors),
- }
- }),
+ map(([pkg, depErrors]) => ({
+ pkg,
+ dependencies: this.getDepInfo(pkg, depErrors),
+ status: renderPkgStatus(pkg, depErrors),
+ })),
)
readonly health$ = this.pkgId$.pipe(
@@ -150,6 +190,16 @@ export class ServiceRoute {
map(toHealthCheck),
)
+ isInstalling(state: string): boolean {
+ return (
+ state === 'installing' || state === 'updating' || state === 'restoring'
+ )
+ }
+
+ isInstalled({ pkg, status }: any): boolean {
+ return pkg.stateInfo.state === 'installed' && status.primary !== 'backingUp'
+ }
+
getRendering({ primary }: PackageStatus): StatusRendering {
return PrimaryRendering[primary]
}
diff --git a/web/projects/ui/src/app/routes/portal/routes/system/backups/modals/history.component.ts b/web/projects/ui/src/app/routes/portal/routes/system/backups/modals/history.component.ts
index 1a44c2322..a91bb1a7b 100644
--- a/web/projects/ui/src/app/routes/portal/routes/system/backups/modals/history.component.ts
+++ b/web/projects/ui/src/app/routes/portal/routes/system/backups/modals/history.component.ts
@@ -26,7 +26,7 @@ import { GetBackupIconPipe } from '../pipes/get-backup-icon.pipe'
Past Events
diff --git a/web/projects/ui/src/app/routes/portal/routes/system/notifications/item.component.ts b/web/projects/ui/src/app/routes/portal/routes/system/notifications/item.component.ts
index b1fc15ccd..2a05182e7 100644
--- a/web/projects/ui/src/app/routes/portal/routes/system/notifications/item.component.ts
+++ b/web/projects/ui/src/app/routes/portal/routes/system/notifications/item.component.ts
@@ -2,20 +2,20 @@ import { CommonModule } from '@angular/common'
import {
ChangeDetectionStrategy,
Component,
- Input,
inject,
+ Input,
} from '@angular/core'
import { RouterLink } from '@angular/router'
+import { Manifest } from '@startos'
import { tuiPure } from '@taiga-ui/cdk'
import { TuiSvgModule } from '@taiga-ui/core'
import { TuiLineClampModule } from '@taiga-ui/kit'
import { PatchDB } from 'patch-db-client'
-import { Observable, first } from 'rxjs'
+import { first, Observable } from 'rxjs'
import { ServerNotification } from 'src/app/services/api/api.types'
-import { DataModel } from 'src/app/services/patch-db/data-model'
import { NotificationService } from 'src/app/services/notification.service'
+import { DataModel } from 'src/app/services/patch-db/data-model'
import { toRouterLink } from 'src/app/utils/to-router-link'
-import { Manifest } from '../../../../../../../../../../core/startos/bindings/Manifest'
@Component({
selector: '[notificationItem]',
diff --git a/web/projects/ui/src/app/services/actions.service.ts b/web/projects/ui/src/app/services/actions.service.ts
index 04b187743..613f09f61 100644
--- a/web/projects/ui/src/app/services/actions.service.ts
+++ b/web/projects/ui/src/app/services/actions.service.ts
@@ -1,19 +1,19 @@
import { inject, Injectable } from '@angular/core'
import { ErrorService, LoadingService } from '@start9labs/shared'
+import { Manifest } from '@startos'
import { TuiDialogOptions, TuiDialogService } from '@taiga-ui/core'
import { TUI_PROMPT, TuiPromptData } from '@taiga-ui/kit'
+import { PatchDB } from 'patch-db-client'
import { defaultIfEmpty, filter, firstValueFrom } from 'rxjs'
import {
- PackageConfigData,
ConfigModal,
+ PackageConfigData,
} from 'src/app/routes/portal/modals/config.component'
import { ApiService } from 'src/app/services/api/embassy-api.service'
import { FormDialogService } from 'src/app/services/form-dialog.service'
import { DataModel } from 'src/app/services/patch-db/data-model'
-import { hasCurrentDeps } from 'src/app/utils/has-deps'
import { getAllPackages } from 'src/app/utils/get-package-data'
-import { PatchDB } from 'patch-db-client'
-import { Manifest } from '../../../../../../core/startos/bindings/Manifest'
+import { hasCurrentDeps } from 'src/app/utils/has-deps'
@Injectable({
providedIn: 'root',
diff --git a/web/tsconfig.json b/web/tsconfig.json
index 9b4b79b35..6ea5ae52e 100644
--- a/web/tsconfig.json
+++ b/web/tsconfig.json
@@ -23,7 +23,8 @@
"paths": {
/* These paths are relative to each app base folder */
"@start9labs/marketplace": ["../marketplace/index"],
- "@start9labs/shared": ["../shared/src/public-api"]
+ "@start9labs/shared": ["../shared/src/public-api"],
+ "@startos": ["../../../core/startos/bindings/index"]
},
"typeRoots": ["node_modules/@types"],
"types": ["node"]