From 34d4e5e58feda5519aae1a7bbb98061f086e5123 Mon Sep 17 00:00:00 2001
From: Lucy Cifferello <12953208+elvece@users.noreply.github.com>
Date: Thu, 16 Jan 2025 09:22:26 -0500
Subject: [PATCH 01/16] fix web manifest format error
---
web/projects/ui/src/manifest.webmanifest | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/projects/ui/src/manifest.webmanifest b/web/projects/ui/src/manifest.webmanifest
index 984106d74..9dca24b6a 100644
--- a/web/projects/ui/src/manifest.webmanifest
+++ b/web/projects/ui/src/manifest.webmanifest
@@ -20,5 +20,5 @@
"type": "image/png",
"purpose": "any"
}
- ],
+ ]
}
From 490231d9b2b9dc2fa65edf926b4fedfdb71b53be Mon Sep 17 00:00:00 2001
From: Lucy Cifferello <12953208+elvece@users.noreply.github.com>
Date: Mon, 20 Jan 2025 17:54:08 -0500
Subject: [PATCH 02/16] fix setting optional dependencies
---
.../Systems/SystemForEmbassy/index.ts | 21 ++++++++++++-------
container-runtime/src/index.ts | 4 ++--
2 files changed, 16 insertions(+), 9 deletions(-)
diff --git a/container-runtime/src/Adapters/Systems/SystemForEmbassy/index.ts b/container-runtime/src/Adapters/Systems/SystemForEmbassy/index.ts
index bc2da8871..db839266e 100644
--- a/container-runtime/src/Adapters/Systems/SystemForEmbassy/index.ts
+++ b/container-runtime/src/Adapters/Systems/SystemForEmbassy/index.ts
@@ -709,6 +709,7 @@ export class SystemForEmbassy implements System {
([key, value]): T.Dependencies => {
const dependency = this.manifest.dependencies?.[key]
if (!dependency) return []
+ // if from manifest.dependencies
if (value == null) {
const versionRange = dependency.version
if (dependency.requirement.type === "required") {
@@ -721,14 +722,20 @@ export class SystemForEmbassy implements System {
},
]
}
- return [
- {
- kind: "exists",
- id: key,
- versionRange,
- },
- ]
+ // current dep since default in config
+ if (dependency.requirement.type === "opt-out") {
+ return [
+ {
+ id: key,
+ versionRange,
+ kind: "exists",
+ },
+ ]
+ }
+ // if opt-in, not a current dep, only changed through config
+ return []
}
+ // if from rawDepends (ie. config)
const versionRange = dependency.version
const kind = "running"
return [
diff --git a/container-runtime/src/index.ts b/container-runtime/src/index.ts
index ec6a998f4..38c0aec1e 100644
--- a/container-runtime/src/index.ts
+++ b/container-runtime/src/index.ts
@@ -11,7 +11,7 @@ new RpcListener(getDependencies)
/**
-So, this is going to be sent into a running comtainer along with any of the other node modules that are going to be needed and used.
+So, this is going to be sent into a running container along with any of the other node modules that are going to be needed and used.
Once the container is started, we will go into a loading/ await state.
This is the init system, and it will always be running, and it will be waiting for a command to be sent to it.
@@ -38,5 +38,5 @@ There are
/**
TODO:
-Should I seperate those adapter in/out?
+Should I separate those adapter in/out?
*/
From 35c34b6e1576f66c683dc34776a5fe729b9fd55a Mon Sep 17 00:00:00 2001
From: Lucy Cifferello <12953208+elvece@users.noreply.github.com>
Date: Mon, 20 Jan 2025 23:17:36 -0500
Subject: [PATCH 03/16] rework dependency actions to be nested
---
.../apps-routes/app-show/app-show.module.ts | 2 +
.../apps-routes/app-show/app-show.page.html | 3 +
.../apps-routes/app-show/app-show.page.ts | 4 +-
.../app-show-action-requests.component.html | 12 ----
.../app-show-action-requests.component.scss | 12 ----
.../app-show-action-requests.component.ts | 40 ++---------
.../app-show-dependencies.component.html | 6 ++
.../app-show-dependencies.component.ts | 16 +++++
.../dep-action-requests.component.html | 31 ++++++++
.../dep-action-requests.component.scss | 8 +++
.../dep-action-requests.component.ts | 71 +++++++++++++++++++
.../ui/src/app/services/api/api.fixures.ts | 64 ++++++++++++++++-
.../ui/src/app/services/api/api.types.ts | 6 +-
.../ui/src/app/services/api/mock-patch.ts | 64 ++++++++++++++++-
.../ui/src/app/services/dep-error.service.ts | 7 +-
15 files changed, 274 insertions(+), 72 deletions(-)
create mode 100644 web/projects/ui/src/app/pages/apps-routes/app-show/components/app-show-dependencies/dep-action-requests/dep-action-requests.component.html
create mode 100644 web/projects/ui/src/app/pages/apps-routes/app-show/components/app-show-dependencies/dep-action-requests/dep-action-requests.component.scss
create mode 100644 web/projects/ui/src/app/pages/apps-routes/app-show/components/app-show-dependencies/dep-action-requests/dep-action-requests.component.ts
diff --git a/web/projects/ui/src/app/pages/apps-routes/app-show/app-show.module.ts b/web/projects/ui/src/app/pages/apps-routes/app-show/app-show.module.ts
index 5787948d6..bbfbbaeda 100644
--- a/web/projects/ui/src/app/pages/apps-routes/app-show/app-show.module.ts
+++ b/web/projects/ui/src/app/pages/apps-routes/app-show/app-show.module.ts
@@ -20,6 +20,7 @@ import { AppShowHealthChecksComponent } from './components/app-show-health-check
import { AppShowAdditionalComponent } from './components/app-show-additional/app-show-additional.component'
import { AppShowErrorComponent } from './components/app-show-error/app-show-error.component'
import { AppShowActionRequestsComponent } from './components/app-show-action-requests/app-show-action-requests.component'
+import { DepActionRequestsComponent } from './components/app-show-dependencies/dep-action-requests/dep-action-requests.component'
import { HealthColorPipe } from './pipes/health-color.pipe'
import { ToHealthChecksPipe } from './pipes/to-health-checks.pipe'
import { ToButtonsPipe } from './pipes/to-buttons.pipe'
@@ -47,6 +48,7 @@ const routes: Routes = [
AppShowAdditionalComponent,
AppShowErrorComponent,
AppShowActionRequestsComponent,
+ DepActionRequestsComponent,
],
imports: [
CommonModule,
diff --git a/web/projects/ui/src/app/pages/apps-routes/app-show/app-show.page.html b/web/projects/ui/src/app/pages/apps-routes/app-show/app-show.page.html
index 286f3ef5b..e5a34972d 100644
--- a/web/projects/ui/src/app/pages/apps-routes/app-show/app-show.page.html
+++ b/web/projects/ui/src/app/pages/apps-routes/app-show/app-show.page.html
@@ -35,6 +35,9 @@
- Service:
-
- Reason:
{{ request.reason || 'no reason provided' }}
{{ request.actionName }}
-
- {{ request.dependency.title }}
-
- Service:
-
- {{ request.dependency.title }}
-
- Reason: {{ request.reason || 'no reason provided' }}
+ {{ request.reason || 'no reason provided' }} | + + {{ request.severity === 'critical' ? 'Required' : 'Requested' }} + +
+{{ dep.version }}
-
-
{{ dep.version }}
+
+
+
{{ request.reason || 'no reason provided' }} |
Date: Thu, 23 Jan 2025 13:10:04 -0700
Subject: [PATCH 05/16] fix styles
---
.../app-show-action-requests.component.scss | 2 +-
.../dep-action-requests/dep-action-requests.component.html | 4 ++--
.../dep-action-requests/dep-action-requests.component.scss | 2 ++
3 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/web/projects/ui/src/app/pages/apps-routes/app-show/components/app-show-action-requests/app-show-action-requests.component.scss b/web/projects/ui/src/app/pages/apps-routes/app-show/components/app-show-action-requests/app-show-action-requests.component.scss
index f892ec9fe..d67c2994f 100644
--- a/web/projects/ui/src/app/pages/apps-routes/app-show/components/app-show-action-requests/app-show-action-requests.component.scss
+++ b/web/projects/ui/src/app/pages/apps-routes/app-show/components/app-show-action-requests/app-show-action-requests.component.scss
@@ -4,5 +4,5 @@
}
ion-icon {
- margin-right: 17px;
+ margin-right: 32px;
}
\ No newline at end of file
diff --git a/web/projects/ui/src/app/pages/apps-routes/app-show/components/app-show-dependencies/dep-action-requests/dep-action-requests.component.html b/web/projects/ui/src/app/pages/apps-routes/app-show/components/app-show-dependencies/dep-action-requests/dep-action-requests.component.html
index 7601f366b..4177538de 100644
--- a/web/projects/ui/src/app/pages/apps-routes/app-show/components/app-show-dependencies/dep-action-requests/dep-action-requests.component.html
+++ b/web/projects/ui/src/app/pages/apps-routes/app-show/components/app-show-dependencies/dep-action-requests/dep-action-requests.component.html
@@ -11,7 +11,7 @@
[name]="
request.severity === 'critical' ? 'warning-outline' : 'play-outline'
"
- color="warning"
+ [color]="request.severity === 'critical' ? 'warning' : 'dark'"
>
- {{ request.reason || 'no reason provided' }}
-
- {{ request.reason || 'no reason provided' }}
-
+ {{ request.reason || 'no reason provided' }} |
+
+ {{ request.severity === 'critical' ? 'Required' : 'Requested' }}
+
+ {{ request.actionName }}
@@ -23,7 +23,7 @@ {{ request.actionName }}
color:
request.severity === 'critical'
? 'var(--ion-color-warning)'
- : 'var(--ion-color-primary)'
+ : 'var(--ion-color-dark)'
}"
>
{{ request.severity === 'critical' ? 'Required' : 'Requested' }}
diff --git a/web/projects/ui/src/app/pages/apps-routes/app-show/components/app-show-dependencies/dep-action-requests/dep-action-requests.component.scss b/web/projects/ui/src/app/pages/apps-routes/app-show/components/app-show-dependencies/dep-action-requests/dep-action-requests.component.scss
index d5c28fa8d..b046b70d5 100644
--- a/web/projects/ui/src/app/pages/apps-routes/app-show/components/app-show-dependencies/dep-action-requests/dep-action-requests.component.scss
+++ b/web/projects/ui/src/app/pages/apps-routes/app-show/components/app-show-dependencies/dep-action-requests/dep-action-requests.component.scss
@@ -5,6 +5,8 @@
.severity {
font-variant-caps: all-small-caps;
+ font-weight: bold;
+ letter-spacing: 0.2px;
}
.line {
From 99e154c8f86aaf27cd1ef4641f99647b5247e347 Mon Sep 17 00:00:00 2001
From: Lucy Cifferello <12953208+elvece@users.noreply.github.com>
Date: Thu, 23 Jan 2025 14:15:30 -0700
Subject: [PATCH 06/16] combine action requests into same component
---
.../apps-routes/app-show/app-show.module.ts | 2 -
.../apps-routes/app-show/app-show.page.html | 7 +-
.../apps-routes/app-show/app-show.page.ts | 4 +-
.../app-show-action-requests.component.html | 67 ++++++++---------
.../app-show-action-requests.component.scss | 34 ++++++++-
.../app-show-action-requests.component.ts | 66 +++++++++++------
.../app-show-dependencies.component.html | 6 +-
.../app-show-dependencies.component.scss | 9 ---
.../app-show-dependencies.component.ts | 2 +-
.../dep-action-requests.component.html | 34 ---------
.../dep-action-requests.component.scss | 29 --------
.../dep-action-requests.component.ts | 71 -------------------
.../ui/src/app/services/api/api.types.ts | 6 +-
.../ui/src/app/services/dep-error.service.ts | 7 +-
14 files changed, 132 insertions(+), 212 deletions(-)
delete mode 100644 web/projects/ui/src/app/pages/apps-routes/app-show/components/app-show-dependencies/dep-action-requests/dep-action-requests.component.html
delete mode 100644 web/projects/ui/src/app/pages/apps-routes/app-show/components/app-show-dependencies/dep-action-requests/dep-action-requests.component.scss
delete mode 100644 web/projects/ui/src/app/pages/apps-routes/app-show/components/app-show-dependencies/dep-action-requests/dep-action-requests.component.ts
diff --git a/web/projects/ui/src/app/pages/apps-routes/app-show/app-show.module.ts b/web/projects/ui/src/app/pages/apps-routes/app-show/app-show.module.ts
index bbfbbaeda..5787948d6 100644
--- a/web/projects/ui/src/app/pages/apps-routes/app-show/app-show.module.ts
+++ b/web/projects/ui/src/app/pages/apps-routes/app-show/app-show.module.ts
@@ -20,7 +20,6 @@ import { AppShowHealthChecksComponent } from './components/app-show-health-check
import { AppShowAdditionalComponent } from './components/app-show-additional/app-show-additional.component'
import { AppShowErrorComponent } from './components/app-show-error/app-show-error.component'
import { AppShowActionRequestsComponent } from './components/app-show-action-requests/app-show-action-requests.component'
-import { DepActionRequestsComponent } from './components/app-show-dependencies/dep-action-requests/dep-action-requests.component'
import { HealthColorPipe } from './pipes/health-color.pipe'
import { ToHealthChecksPipe } from './pipes/to-health-checks.pipe'
import { ToButtonsPipe } from './pipes/to-buttons.pipe'
@@ -48,7 +47,6 @@ const routes: Routes = [
AppShowAdditionalComponent,
AppShowErrorComponent,
AppShowActionRequestsComponent,
- DepActionRequestsComponent,
],
imports: [
CommonModule,
diff --git a/web/projects/ui/src/app/pages/apps-routes/app-show/app-show.page.html b/web/projects/ui/src/app/pages/apps-routes/app-show/app-show.page.html
index e5a34972d..62811e702 100644
--- a/web/projects/ui/src/app/pages/apps-routes/app-show/app-show.page.html
+++ b/web/projects/ui/src/app/pages/apps-routes/app-show/app-show.page.html
@@ -20,6 +20,11 @@
{{ request.actionName }}
- {{ request.actionName }}
- {{ request.actionName }}
+
- {{ request.reason || 'no reason provided' }} | - - {{ request.severity === 'critical' ? 'Required' : 'Requested' }} - -
-