From 4c2cf95d9717f604978240d1c653cd3726b3183b Mon Sep 17 00:00:00 2001 From: Charlie Drage Date: Thu, 5 Sep 2024 15:43:57 -0400 Subject: [PATCH] feat: adds log page for builds ### What does this PR do? * Adds a log action button that will show the logs in real-time in a separate page * Automatically refreshes / appends to the output * Uses terminal settings from Podman Desktop to match what the user has setup. ### Screenshot / video of UI ### What issues does this PR fix or reference? Closes https://github.com/containers/podman-desktop-extension-bootc/issues/677 ### How to test this PR? 1. Start a build 2. Click the "logs" button on the dashboard 3. Watch logs propagate Signed-off-by: Charlie Drage --- packages/backend/src/api-impl.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/backend/src/api-impl.ts b/packages/backend/src/api-impl.ts index 4dae6874..d3889d0f 100644 --- a/packages/backend/src/api-impl.ts +++ b/packages/backend/src/api-impl.ts @@ -28,6 +28,8 @@ import { telemetryLogger } from './extension'; import { checkPrereqs, isLinux, getUidGid } from './machine-utils'; import * as fs from 'node:fs'; import path from 'node:path'; +import * as fs from 'node:fs'; +import path from 'node:path'; import { getContainerEngine } from './container-utils'; export class BootcApiImpl implements BootcApi {