Skip to content
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

feat: Further enhance the plugin header items extension point #554

Merged
merged 1 commit into from
Sep 14, 2023

Conversation

phantomjinx
Copy link
Member

@phantomjinx phantomjinx commented Sep 13, 2023

  • core.ts

    • Some plugins require their header items to remain displayed on the
      header navbar, even though the plugin is not displayed, eg. when
      click 'connect' in hawtio-online with the discover plugin, a new window
      displays hawtio-app showing the connection JMX data. This new window
      still benefits from having the discover plugin dropdown list present so
      that other pods or console can be accessed without returing to the
      discover plugin.
    • Adds a 'universal' property to Plugin structure so that an individual
      plugin can state whether its header items should remain on the header
      toolbar even if the rest of the plugin is not the focused-on display
  • HawtioHeader.tsx

    • Find all header items that are either from the focused plugin or
      are marked as 'universal' to build the customized toolbar

@github-actions
Copy link

github-actions bot commented Sep 13, 2023

Test Results

    8 files  +  1      8 suites  +1   52m 34s ⏱️ + 2m 22s
  56 tests  -   3    54 ✔️ ±  0  1 💤  -   4  1 +1 
444 runs  +48  428 ✔️ +53  8 💤  - 13  8 +8 

For more details on these failures, see this check.

Results for commit 722d77d. ± Comparison against base commit 03ea6c9.

This pull request removes 4 and adds 1 tests. Note that renamed tests count towards both.
Check whether all data is presented and displayed correctly in About modal window. ‑ Check that the titles are presented in Quarkus About modal window - Names of Hawtio's Components - Example #1.1
Check whether all data is presented and displayed correctly in About modal window. ‑ Check that the titles are presented in Quarkus About modal window - Names of Hawtio's Components - Example #1.2
Check whether all data is presented and displayed correctly in About modal window. ‑ Check that the titles are presented in Spring Boot About modal window - Names of Hawtio's Components - Example #1.1
Check whether all data is presented and displayed correctly in About modal window. ‑ Check that the titles are presented in Spring Boot About modal window - Names of Hawtio's Components - Example #1.2
Check whether all data is presented and displayed correctly in About modal window. ‑ Check that the titles are presented in About modal window - Names of Hawtio's Components - Example #1.1

♻️ This comment has been updated with latest results.

@phantomjinx phantomjinx force-pushed the plugin-header branch 2 times, most recently from b9ccb48 to 21f1e07 Compare September 13, 2023 12:48
@hawtio-ci
Copy link

hawtio-ci bot commented Sep 13, 2023

Test results

Run attempt: 368
Detailed summary

NAME TESTS PASSED ✅ SKIPPED 💤 FAILED ❌ ERRORS 🚫 TIME 🕖
results-quarkus-node(16)-java(11)-firefox 56 54 1 1 0 419.775
results-quarkus-node(16)-java(17)-firefox 56 54 1 1 0 389.225
results-quarkus-node(18)-java(11)-firefox 56 54 1 1 0 368.943
results-quarkus-node(18)-java(17)-firefox 56 54 1 1 0 364.238
results-springboot-node(16)-java(11)-firefox 55 53 1 1 0 443.465
results-springboot-node(16)-java(17)-firefox 55 53 1 1 0 386.471
results-springboot-node(18)-java(11)-firefox 55 53 1 1 0 380.564
results-springboot-node(18)-java(17)-firefox 55 53 1 1 0 401.96

@phantomjinx
Copy link
Member Author

Tests seem to be all failing :-|

packages/hawtio/src/core/core.ts Show resolved Hide resolved
packages/hawtio/src/ui/page/HawtioHeader.tsx Outdated Show resolved Hide resolved
packages/hawtio/src/ui/page/HawtioHeader.tsx Outdated Show resolved Hide resolved
@tadayosi
Copy link
Member

Tests seem to be all failing :-|

It's because of hawtio/hawtio#2937. Can you talk to @nstefeko @mmuzikar @jsolovjo to resolve the test failures as well?

@jsolovjo
Copy link

Tests seem to be all failing :-|

It's because of hawtio/hawtio#2937. Can you talk to @nstefeko @mmuzikar @jsolovjo to resolve the test failures as well?

Hello,
Nina is OOO today, I can check the test failures and try to fix it
Thanks for letting me know

* core.ts
 * Some plugins require their header items to remain displayed on the
   header navbar, even though the plugin is not displayed, eg. when
   click 'connect' in hawtio-online with the discover plugin, a new window
   displays hawtio-app showing the connection JMX data. This new window
   still benefits from having the discover plugin dropdown list present so
   that other pods or console can be accessed without returing to the
   discover plugin.
* Adds a 'universal' property to Plugin structure so that an individual
  plugin can state whether its header items should remain on the header
  toolbar even if the rest of the plugin is not the focused-on display

* HawtioHeader.tsx
 * Find all header items that are either from the focused plugin or
   are marked as 'universal' to build the customized toolbar
@phantomjinx phantomjinx merged commit 61b3d7f into hawtio:main Sep 14, 2023
6 of 31 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.

3 participants