From f41fc750244cb474d148b6bbfe8af3f50d73e54c Mon Sep 17 00:00:00 2001 From: Alex Inkin Date: Fri, 20 Mar 2026 04:18:25 +0400 Subject: [PATCH] chore: make service icons not round and add wifi lock badge (#3139) * chore: make service icons not round and add wifi lock badge * chore: comments --- .../src/app/routes/portal/portal.component.ts | 46 +++++++++------- .../components/dependencies.component.ts | 2 +- .../services/components/task.component.ts | 2 +- .../services/dashboard/service.component.ts | 22 ++++---- .../services/routes/outlet.component.ts | 9 +++- .../system/routes/wifi/table.component.ts | 53 +++++++++++++------ web/projects/ui/src/styles.scss | 11 ++-- 7 files changed, 93 insertions(+), 52 deletions(-) diff --git a/web/projects/ui/src/app/routes/portal/portal.component.ts b/web/projects/ui/src/app/routes/portal/portal.component.ts index 7d4424f20..91b861124 100644 --- a/web/projects/ui/src/app/routes/portal/portal.component.ts +++ b/web/projects/ui/src/app/routes/portal/portal.component.ts @@ -9,6 +9,7 @@ import { RouterOutlet } from '@angular/router' import { ErrorService } from '@start9labs/shared' import { TuiButton, + TuiCell, TuiIcon, TuiLoader, TuiPopup, @@ -37,24 +38,26 @@ import { HeaderComponent } from './components/header/header.component' @if (update(); as update) { - @if (update === true) { - - Download complete, restart to apply changes - } @else if ( - update.overall && update.overall !== true && update.overall.total - ) { - - Downloading: - {{ getProgress(update.overall.total, update.overall.done) }}% - } @else { - - Calculating download size - } + + @if (update === true) { + + Download complete, restart to apply changes + } @else if ( + update.overall && update.overall !== true && update.overall.total + ) { + + Downloading: + {{ getProgress(update.overall.total, update.overall.done) }}% + } @else { + + Calculating download size + } + @if (update === true) { } @@ -91,6 +94,12 @@ import { HeaderComponent } from './components/header/header.component' filter: none; } } + + [tuiCell] { + padding: 0; + white-space: normal; + text-wrap: balance; + } `, changeDetection: ChangeDetectionStrategy.OnPush, imports: [ @@ -104,6 +113,7 @@ import { HeaderComponent } from './components/header/header.component' TuiIcon, TuiButton, TuiPopup, + TuiCell, ], }) export class PortalComponent { diff --git a/web/projects/ui/src/app/routes/portal/routes/services/components/dependencies.component.ts b/web/projects/ui/src/app/routes/portal/routes/services/components/dependencies.component.ts index 384db648a..3eba51ac7 100644 --- a/web/projects/ui/src/app/routes/portal/routes/services/components/dependencies.component.ts +++ b/web/projects/ui/src/app/routes/portal/routes/services/components/dependencies.component.ts @@ -23,7 +23,7 @@ import { ToManifestPipe } from '../../../pipes/to-manifest' [queryParams]="services[d.key] ? {} : { search: d.key }" [class.error]="getError(d.key)" > - + - + {{ title() || fallback()?.title }} diff --git a/web/projects/ui/src/app/routes/portal/routes/services/dashboard/service.component.ts b/web/projects/ui/src/app/routes/portal/routes/services/dashboard/service.component.ts index 33e028f28..29158f008 100644 --- a/web/projects/ui/src/app/routes/portal/routes/services/dashboard/service.component.ts +++ b/web/projects/ui/src/app/routes/portal/routes/services/dashboard/service.component.ts @@ -6,6 +6,7 @@ import { } from '@angular/core' import { RouterLink } from '@angular/router' import { i18nPipe } from '@start9labs/shared' +import { TuiAvatar } from '@taiga-ui/kit' import { ServiceUptimeComponent } from 'src/app/routes/portal/routes/services/components/uptime.component' import { PkgDependencyErrors } from 'src/app/services/dep-error.service' import { PackageDataEntry } from 'src/app/services/patch-db/data-model' @@ -16,7 +17,9 @@ import { StatusComponent } from './status.component' selector: 'tr[appService]', template: ` - logo + + logo + {{ manifest().title }} @@ -50,13 +53,6 @@ import { StatusComponent } from './status.component' display: none; } - img { - display: block; - height: 2rem; - width: 2rem; - border-radius: 100%; - } - a { color: var(--tui-text-primary); font-weight: bold; @@ -93,7 +89,7 @@ import { StatusComponent } from './status.component' background: none; } - img { + [tuiAvatar] { height: 3rem; width: 3rem; } @@ -141,7 +137,13 @@ import { StatusComponent } from './status.component' } `, changeDetection: ChangeDetectionStrategy.OnPush, - imports: [RouterLink, StatusComponent, ServiceUptimeComponent, i18nPipe], + imports: [ + RouterLink, + StatusComponent, + ServiceUptimeComponent, + i18nPipe, + TuiAvatar, + ], }) export class ServiceComponent { readonly pkg = input.required() diff --git a/web/projects/ui/src/app/routes/portal/routes/services/routes/outlet.component.ts b/web/projects/ui/src/app/routes/portal/routes/services/routes/outlet.component.ts index 31380252c..ab81e3ec4 100644 --- a/web/projects/ui/src/app/routes/portal/routes/services/routes/outlet.component.ts +++ b/web/projects/ui/src/app/routes/portal/routes/services/routes/outlet.component.ts @@ -33,14 +33,19 @@ import { getManifest } from 'src/app/utils/get-package-data' {{ 'Back' | i18n }} - + {{ manifest()?.title }}