diff --git a/packages/renderer/src/lib/task-manager/task-manager.ts b/packages/renderer/src/lib/task-manager/task-manager.ts
new file mode 100644
index 00000000000..e3bef24d9e4
--- /dev/null
+++ b/packages/renderer/src/lib/task-manager/task-manager.ts
@@ -0,0 +1,53 @@
+/**********************************************************************
+ * Copyright (C) 2023 Red Hat, Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ ***********************************************************************/
+
+import type { Task } from '/@/stores/tasks';
+
+import humanizeDuration from 'humanize-duration';
+
+export interface TaskUI extends Task {
+ age: string;
+ progress?: number;
+ hasGotoTask: boolean;
+ gotoTask?: () => void;
+}
+
+export class TaskManager {
+ toTaskUi(task: Task): TaskUI {
+ const taskUI: TaskUI = {
+ id: task.id,
+ name: task.name,
+ started: task.started,
+ state: task.state,
+ status: task.status,
+ hasGotoTask: false,
+ age: `${humanizeDuration(new Date().getTime() - task.started, { round: true, largest: 1 })} ago`,
+ };
+
+ if (task.status === 'in-progress') {
+ taskUI.progress = task.progress;
+ if (task.gotoTask) {
+ taskUI.hasGotoTask = true;
+ taskUI.gotoTask = task.gotoTask;
+ } else {
+ taskUI.hasGotoTask = false;
+ }
+ }
+ return taskUI;
+ }
+}
diff --git a/packages/renderer/src/stores/tasks.ts b/packages/renderer/src/stores/tasks.ts
new file mode 100644
index 00000000000..e56f330ac0f
--- /dev/null
+++ b/packages/renderer/src/stores/tasks.ts
@@ -0,0 +1,66 @@
+/**********************************************************************
+ * Copyright (C) 2023 Red Hat, Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ ***********************************************************************/
+
+import type { Writable } from 'svelte/store';
+import { writable } from 'svelte/store';
+
+export interface Task {
+ id: string;
+ name: string;
+ started: number;
+ state: 'running' | 'completed';
+ status: 'in-progress' | 'success' | 'failure';
+ progress?: number;
+ gotoTask?: () => void;
+}
+
+/**
+ * Defines the store used to define the tasks.
+ */
+export const tasksInfo: Writable = writable([]);
+
+// refresh the array every second
+setInterval(() => {
+ tasksInfo.update(tasks => [...tasks]);
+}, 1000);
+
+// remove element from the store
+export function removeTask(id: string) {
+ tasksInfo.update(tasks => tasks.filter(task => task.id !== id));
+}
+
+// remove element from the store that are completed
+export function clearCompletedTasks() {
+ tasksInfo.update(tasks => tasks.filter(task => task.state !== 'completed'));
+}
+
+let taskId = 0;
+
+// create a new task
+export function createTask(name: string): Task {
+ taskId++;
+ const task: Task = {
+ id: `${taskId}`,
+ name,
+ started: new Date().getTime(),
+ state: 'running',
+ status: 'in-progress',
+ };
+ tasksInfo.update(tasks => [...tasks, task]);
+ return task;
+}