Skip to content

SimpleUI: support target's tags edition, display installed & assigned distribution sets, and action history #2409

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jun 4, 2025

Conversation

zeapo
Copy link
Contributor

@zeapo zeapo commented May 19, 2025

Contains a lot of UI improvement and a fix to a flaky behavior;

  • After multiple deployements to our test environment, we noticed that sometimes the OAuth2TokenManager is not initalized all the time; by making it conditioned on the same property as the customizer, it's always there and working fine.

  • Details view transformed into tabs
    target_tab_details

  • Display the installed and assigned distribution sets
    target_tab_assigned

  • Add tags listing; assigning, unassigning, and creation
    target_tag_1
    target_tag_2
    target_tag_3

I didn't add tag deletion of tags, it will need a new modal to list & manage existing tags.

  • Add Action History view
Screenshot 2025-05-21 at 13 42 44

@hawkbit-bot
Copy link

Can one of the admins verify this patch?

@zeapo zeapo marked this pull request as draft May 20, 2025 08:22
@zeapo
Copy link
Contributor Author

zeapo commented May 20, 2025

switching to draft as I'm adding Actions history tab; this way this PR will contain all intended features rather than part of it :)

@zeapo zeapo force-pushed the feature/actions-history branch from 9400950 to 4e8bc96 Compare May 20, 2025 08:26
zeapo added 3 commits May 21, 2025 14:13
This is inspired by the original hawkbit interface; however, as we've got more space it merges both Assigned and Installed into the same tab
@zeapo zeapo force-pushed the feature/actions-history branch 3 times, most recently from f68ea6b to e27a569 Compare May 21, 2025 12:37
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.
@zeapo zeapo force-pushed the feature/actions-history branch from e27a569 to c33efe5 Compare May 21, 2025 12:48
@zeapo zeapo marked this pull request as ready for review May 21, 2025 13:11
@zeapo zeapo changed the title SimpleUI: support target's tags edition and display installed & assigned distribution sets SimpleUI: support target's tags edition, display installed & assigned distribution sets, and action history May 21, 2025
@zeapo
Copy link
Contributor Author

zeapo commented May 21, 2025

@strailov dunno if you want me to split this into two PR, one to fix the flaky OAuth2TokenManager and the rest as UI features?

@maass-hamburg
Copy link
Contributor

@zeapo great work you are doing with the SimpleUI lately.

@zeapo
Copy link
Contributor Author

zeapo commented May 27, 2025

Thank you @maass-hamburg 😊

@strailov
Copy link
Contributor

strailov commented Jun 3, 2025

Hello @zeapo. Sorry I missed this. Will check this PR asap :)

@zeapo
Copy link
Contributor Author

zeapo commented Jun 3, 2025

Thanks, just le me know if you need further improvements. I'll be working on another subject and be back to this once Spring Boot 3.5 is merged.

if (isActive()) {
icon = new SpinnerIcon();
} else {
icon = VaadinIcon.CHECK_CIRCLE.create();
Copy link
Contributor

Choose a reason for hiding this comment

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

Would this also mean that if the action is in ERROR state still the CHECK_CIRCLE will be present? It is quite confusing this with the Status column in the grid. I would unify this Active column with the Status in the target grid maybe, what do you think ? Like when it is pending there is a yellow half full circle

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Absolutely, I struggled to get a clear separation of the status / type concepts;
I wanted to keep a sort of similarity with the previous UI
image

I'll try to merge them and see how it ends up 👍🏼

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just updated it; here are the four cases, half_circle + orange is pending as target status; half_circle + red is canceling ; the others are the same
Screenshot 2025-06-03 at 19 15 42
Screenshot 2025-06-03 at 19 17 13
Screenshot 2025-06-03 at 19 16 50
Screenshot 2025-06-03 at 19 16 20

Copy link
Contributor Author

Choose a reason for hiding this comment

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

PS: also extracted the force quit so that it's cleaner as it was confusing close to the other two actions

@zeapo
Copy link
Contributor Author

zeapo commented Jun 3, 2025

FYI, a4e4ea9
I had to create a custom theme, as since I started working on this PR, something weird happened and the badges stopped working with new builds. Seems like we've got to explicitly import the badge into the theme, hence the custom theme :)

Copy link

sonarqubecloud bot commented Jun 3, 2025

Copy link
Contributor

@strailov strailov left a comment

Choose a reason for hiding this comment

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

Looks good! Thanks @zeapo !

@strailov strailov merged commit d3341f7 into eclipse-hawkbit:master Jun 4, 2025
5 checks passed
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.

4 participants