Skip to content

Commit f68ea6b

Browse files
committed
simple-ui: add action history tab
This allows tracking the actions, see their status, and cancel / force / force cancel them; just like the previous ui This has some limitations though; the previous UI had access to the Action's main class, whereas we're dealing with the rest dto; hence we're missing some information to make the ui simpler to create.
1 parent 5a08ba6 commit f68ea6b

File tree

4 files changed

+280
-25
lines changed

4 files changed

+280
-25
lines changed

hawkbit-simple-ui/pom.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@
6565
<dependency>
6666
<groupId>com.vaadin</groupId>
6767
<artifactId>vaadin-core</artifactId>
68-
<exclusions>
69-
<exclusion>
70-
<groupId>com.vaadin</groupId>
71-
<artifactId>vaadin-dev</artifactId>
72-
</exclusion>
73-
</exclusions>
68+
<!-- <exclusions>-->
69+
<!-- <exclusion>-->
70+
<!-- <groupId>com.vaadin</groupId>-->
71+
<!-- <artifactId>vaadin-dev</artifactId>-->
72+
<!-- </exclusion>-->
73+
<!-- </exclusions>-->
7474
</dependency>
7575
<dependency>
7676
<groupId>com.vaadin</groupId>

hawkbit-simple-ui/src/main/java/org/eclipse/hawkbit/ui/simple/HawkbitMgmtClient.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
import feign.FeignException;
1515
import lombok.Getter;
16+
import org.eclipse.hawkbit.mgmt.rest.api.MgmtActionRestApi;
1617
import org.eclipse.hawkbit.mgmt.rest.api.MgmtDistributionSetRestApi;
1718
import org.eclipse.hawkbit.mgmt.rest.api.MgmtDistributionSetTagRestApi;
1819
import org.eclipse.hawkbit.mgmt.rest.api.MgmtDistributionSetTypeRestApi;
@@ -45,6 +46,7 @@ public class HawkbitMgmtClient {
4546
private final MgmtTargetFilterQueryRestApi targetFilterQueryRestApi;
4647
private final MgmtRolloutRestApi rolloutRestApi;
4748
private final MgmtTenantManagementRestApi tenantManagementRestApi;
49+
private final MgmtActionRestApi actionRestApi;
4850

4951
HawkbitMgmtClient(final Tenant tenant, final HawkbitClient hawkbitClient) {
5052
this.tenant = tenant;
@@ -61,6 +63,7 @@ public class HawkbitMgmtClient {
6163
targetFilterQueryRestApi = service(MgmtTargetFilterQueryRestApi.class);
6264
rolloutRestApi = service(MgmtRolloutRestApi.class);
6365
tenantManagementRestApi = service(MgmtTenantManagementRestApi.class);
66+
actionRestApi = service(MgmtActionRestApi.class);
6467
}
6568

6669
boolean hasSoftwareModulesRead() {
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/**
2+
* Copyright (c) 2025 Contributors to the Eclipse Foundation
3+
*
4+
* This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at
5+
* https://www.eclipse.org/legal/epl-2.0/
6+
*
7+
* SPDX-License-Identifier: EPL-2.0
8+
*/
9+
package org.eclipse.hawkbit.ui.simple.components;
10+
11+
import com.vaadin.flow.component.icon.Icon;
12+
import com.vaadin.flow.component.icon.VaadinIcon;
13+
14+
public class SpinnerIcon extends Icon {
15+
16+
public SpinnerIcon() {
17+
super(VaadinIcon.SPINNER_THIRD);
18+
getStyle().set("animation", "v-spin 1s linear infinite");
19+
}
20+
}

0 commit comments

Comments
 (0)