Skip to content

Conversation

@rStelmach
Copy link
Contributor

@rStelmach rStelmach commented Oct 15, 2025

Closes: #237023

Summary πŸ“š

This PR improves processing warnings by adding truncation logic with wrapping the text so it doesn't go out of the component.

Additional change ❗

This PR also removes the icon from the warning :
Screenshot 2025-10-16 at 10 59 49

How to Test πŸ§ͺ

Steps:

  1. Streams β†’ Stream details β†’ Processing β†’ Create a Processor( grok for example).
  2. Add a pattern that produces warnings.
  3. Look for long warnings and check for the truncation logic.

Demo πŸŽ₯

demo-truncate.mov

Note πŸ““

I also had an idea of dynamically adjusting truncation based on the size of the warning and adding useResizeObserver but I though that's a bit overkill. If you think otherwise I'm happy to discuss about it !

@rStelmach rStelmach requested a review from a team as a code owner October 15, 2025 16:26
@rStelmach rStelmach added release_note:enhancement backport:skip This PR does not require backporting Team:obs-onboarding Observability Onboarding Team labels Oct 16, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-logs-team (Team:obs-ux-logs)

@rStelmach rStelmach added Feature:Streams This is the label for the Streams Project v9.2.0 v9.3.0 labels Oct 16, 2025
@rStelmach rStelmach changed the title 237023 streams improve processing warnings [Streams 🌊 ] Improve processing warnings Oct 16, 2025
Copy link
Contributor

@flash1293 flash1293 left a comment

Choose a reason for hiding this comment

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

LGTM

@elasticmachine
Copy link
Contributor

πŸ’› Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #50 / serverless observability UI - Cases and Rules Serverless Observability Cases Case View properties Severity field changes the severity level from the selector

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
streamsApp 900.6KB 901.3KB +724.0B

History

@rStelmach rStelmach merged commit 27eec99 into elastic:main Oct 16, 2025
12 checks passed
nickpeihl pushed a commit to nickpeihl/kibana that referenced this pull request Oct 23, 2025
Closes: elastic#237023

## Summary πŸ“š 
This PR improves processing warnings by adding truncation logic with
wrapping the text so it doesn't go out of the component.

## Additional change ❗ 

This PR also removes the icon from the warning :
<img width="714" height="765" alt="Screenshot 2025-10-16 at 10 59 49"
src="https://github.com/user-attachments/assets/967b7870-732e-46fc-a2dc-f89dcad37fb4"
/>


## How to Test πŸ§ͺ 
Steps:

1. Streams β†’ Stream details β†’ Processing β†’ Create a Processor( grok for
example).
2. Add a pattern that produces warnings.
3. Look for long warnings and check for the truncation logic.


## Demo πŸŽ₯ 


https://github.com/user-attachments/assets/e64d39a5-6849-4b14-b3c0-55c598db5a89

## Note πŸ““ 

I also had an idea of dynamically adjusting truncation based on the size
of the warning and adding `useResizeObserver` but I though that's a bit
overkill. If you think otherwise I'm happy to discuss about it !

---------

Co-authored-by: kibanamachine <[email protected]>
NicholasPeretti pushed a commit to NicholasPeretti/kibana that referenced this pull request Oct 27, 2025
Closes: elastic#237023

## Summary πŸ“š 
This PR improves processing warnings by adding truncation logic with
wrapping the text so it doesn't go out of the component.

## Additional change ❗ 

This PR also removes the icon from the warning :
<img width="714" height="765" alt="Screenshot 2025-10-16 at 10 59 49"
src="https://github.com/user-attachments/assets/967b7870-732e-46fc-a2dc-f89dcad37fb4"
/>


## How to Test πŸ§ͺ 
Steps:

1. Streams β†’ Stream details β†’ Processing β†’ Create a Processor( grok for
example).
2. Add a pattern that produces warnings.
3. Look for long warnings and check for the truncation logic.


## Demo πŸŽ₯ 


https://github.com/user-attachments/assets/e64d39a5-6849-4b14-b3c0-55c598db5a89

## Note πŸ““ 

I also had an idea of dynamically adjusting truncation based on the size
of the warning and adding `useResizeObserver` but I though that's a bit
overkill. If you think otherwise I'm happy to discuss about it !

---------

Co-authored-by: kibanamachine <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting Feature:Streams This is the label for the Streams Project release_note:enhancement Team:obs-onboarding Observability Onboarding Team v9.2.0 v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Streams] Improve processing warnings

4 participants