Skip to content

Improve Simple UI - #2554

Merged
strailov merged 25 commits into
eclipse-hawkbit:masterfrom
flobz:feat/improve_ui
Jul 28, 2025
Merged

strailov merged 25 commits into
eclipse-hawkbit:masterfrom
flobz:feat/improve_ui

Conversation

@flobz

@flobz flobz commented Jul 16, 2025

Copy link
Copy Markdown
Contributor

This PR improve and fix some issue of the Simeple-UI.

Major improvement:

  • for each action show step aka MgmtActionStatus
  • add DS metadata
  • add sort for all view
  • access to a specific ds by query url
  • add link between target version and DS view
  • local date format

I can split this PR in smaller one if you want.

@flobz
flobz force-pushed the feat/improve_ui branch 4 times, most recently from ce161ef to 6976c51 Compare July 17, 2025 10:15
Comment thread hawkbit-simple-ui/pom.xml
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-oauth2-client</artifactId>
</dependency>
<dependency>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we want a dev mode bu default?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the doc says : Repackaged archives do not contain devtools by default so it seems ok to add it to the pom.

grid.addColumn(MgmtDistributionSet::getName).setHeader(Constants.NAME).setAutoWidth(true);
grid.addColumn(MgmtDistributionSet::getVersion).setHeader(Constants.VERSION).setAutoWidth(true);
grid.addColumn(MgmtDistributionSet::getTypeName).setHeader(Constants.TYPE).setAutoWidth(true);
var createdAtCol = grid.addColumn(Utils.localDateTimeRenderer(MgmtDistributionSet::getCreatedAt)).setHeader(Constants.CREATED_AT).setAutoWidth(true).setKey("createdAt").setSortable(true);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is the change? createdAtCol os never used?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's used to sort :

grid.sort(List.of(new GridSortOrder<>(createdAtCol, SortDirection.DESCENDING)));

Comment thread docker/build/build_dev.sh
#

#set -xe
set -xe

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this uncommented intentionally?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

return pollIcon;
// todo change /targets api to reduce api calls ?
@EqualsAndHashCode(callSuper = true)
public static class MgmtTargetVersioned extends MgmtTarget{

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe TargetWithDs ?

  1. MgmtSomething pattern is used for management rest classes and is little bit confusing here
  2. Target version is not used as a term in hawkBit , and actually this is the installed DS

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done !
Wdyt about adding installed DS name and version in /targets endpoint ?

Comment thread docker/build/build_dev.sh Resolved
@flobz
flobz force-pushed the feat/improve_ui branch 7 times, most recently from b58233f to 28e4283 Compare July 23, 2025 09:42
@flobz
flobz requested a review from strailov July 23, 2025 10:03
Comment thread pom.xml Resolved
@flobz
flobz force-pushed the feat/improve_ui branch from 28e4283 to d213f5e Compare July 25, 2025 06:28
@sonarqubecloud

Copy link
Copy Markdown

@strailov
strailov merged commit d2b8e74 into eclipse-hawkbit:master Jul 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants