[Streams] EditIlmPhasesFlyout and EditDslStepsFlyout UI fixes#254930
Conversation
|
Pinging @elastic/kibana-management (Team:Kibana Management) |
SoniaSanzV
left a comment
There was a problem hiding this comment.
Everything works really well, thank you for addressing this!
CoenWarmer
left a comment
There was a problem hiding this comment.
Hi, these are my findings:
1. Naming / content mismatch for format_size_units.ts
The file is called format_size_units but the contents of the file only deal with time conversions. The naming suggests it contains other unit conversions as well (i.e. byte/kb/mb). You might want to consider naming the file format_time_units.ts to help humans / LLMs find the file faster.
2. Don't use MS_IN_SECOND * MS_IN_SECOND as a unit
I would suggest not using MS_IN_SECOND * MS_IN_SECOND as a unit, but instead make it explicit:
const MS_IN_SECOND = 1000;
const SECONDS_IN_MINUTE = 60;
const MINUTES_IN_HOUR = 60;
const HOURS_IN_DAY = 24;
const MICROS_IN_MS = 1_000;
const NANOS_IN_MS = 1_000_000;
const getMsPerUnit = (unit: string): number | undefined => {
switch (unit) {
case 'nanos':
return 1 / (NANOS_IN_MS);
case 'micros':
return 1 / MS_IN_SECOND;
...
};
3. Tests
splitSizeAndUnits, getTimeUnitLabel, and isZeroAge are all exported from the source file, but none appear in the test file. Since isZeroAge in particular has non-trivial logic (guards against non-finite numbers), it warrants coverage.
flash1293
left a comment
There was a problem hiding this comment.
Most changes are small, left a comment about one part
|
Hey @CoenWarmer, regarding your feedback - I'm only changing the regex in |
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Async chunks
History
|
|
@flash1293 Good catch! This happens because To solve this we could chose one of these solutions:
I’d suggest we handle it in a separate issue (#256018) so we don’t block this PR further. |
…c#254930) Closes elastic#254188 Closes elastic#254852 ## Summary This PR fixes issues with `EditIlmPhasesFlyout` and `EditDslStepsFlyout` components listed below: - (ILM/DSL) Remove overflow fade effect in tabs row, - (ILM/DSL) When different tab is selected externally, scroll to the newly selected tab, - (ILM/DSL) Update fixed_interval help text - elastic#253393 (comment), - (ILM/DSL) Show help text when error is present - elastic#253393 (comment). - (ILM/DSL) Update copy - elastic#254852,
…c#254930) Closes elastic#254188 Closes elastic#254852 ## Summary This PR fixes issues with `EditIlmPhasesFlyout` and `EditDslStepsFlyout` components listed below: - (ILM/DSL) Remove overflow fade effect in tabs row, - (ILM/DSL) When different tab is selected externally, scroll to the newly selected tab, - (ILM/DSL) Update fixed_interval help text - elastic#253393 (comment), - (ILM/DSL) Show help text when error is present - elastic#253393 (comment). - (ILM/DSL) Update copy - elastic#254852,
…c#254930) Closes elastic#254188 Closes elastic#254852 ## Summary This PR fixes issues with `EditIlmPhasesFlyout` and `EditDslStepsFlyout` components listed below: - (ILM/DSL) Remove overflow fade effect in tabs row, - (ILM/DSL) When different tab is selected externally, scroll to the newly selected tab, - (ILM/DSL) Update fixed_interval help text - elastic#253393 (comment), - (ILM/DSL) Show help text when error is present - elastic#253393 (comment). - (ILM/DSL) Update copy - elastic#254852,
…c#254930) Closes elastic#254188 Closes elastic#254852 ## Summary This PR fixes issues with `EditIlmPhasesFlyout` and `EditDslStepsFlyout` components listed below: - (ILM/DSL) Remove overflow fade effect in tabs row, - (ILM/DSL) When different tab is selected externally, scroll to the newly selected tab, - (ILM/DSL) Update fixed_interval help text - elastic#253393 (comment), - (ILM/DSL) Show help text when error is present - elastic#253393 (comment). - (ILM/DSL) Update copy - elastic#254852,

Closes #254188
Closes #254852
Summary
This PR fixes issues with
EditIlmPhasesFlyoutandEditDslStepsFlyoutcomponents listed below:How to test
View and test the component in Storybook:
Checklist
Check the PR satisfies following conditions.
Reviewers should verify this PR satisfies this list as well.
release_note:breakinglabel should be applied in these situations.release_note:*label is applied per the guidelinesbackport:*labels.