[Alerting] [Incident Management] Show "Created" column for alerts#223972
[Alerting] [Incident Management] Show "Created" column for alerts#223972baileycash-elastic wants to merge 17 commits intoelastic:mainfrom
Conversation
|
Pinging @elastic/obs-ux-management-team (Team:obs-ux-management) |
d9da3c2 to
697f53e
Compare
…urce-definitions/scripts/fix-location-collection.ts'
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Public APIs missing exports
Page load bundle
Unknown metric groupsAPI count
History
|
|
🤖 Jobs for this PR can be triggered through checkboxes. 🚧
ℹ️ To trigger the CI, please tick the checkbox below 👇
|
…obs plugin] (#225193) ## Summary Implements #218172 Adds a "triggered" column for related alerts that shows either a relative time value or an absolute timestamp of when the alert was triggered/created if the duration is greater than 2 hours. This PR also sets up the time duration display logic to be separated out into a reusable component. This component was inserted into the common folder of the observability plugin and is exported for use in other packages. Note: There is a [draft PR](#223972) where the elapsed time tooltip component was created as a kibana package. This PR encourages wider use across the app, but it fragments the design of observability formatters by moving the datetime formatter to the package. <img width="679" alt="Screenshot 2025-06-13 at 4 01 27 PM" src="https://github.com/user-attachments/assets/9150ffc5-f6f4-4760-b5ea-7cc91d60ea3f" />
Summary
Implements #218172
Adds a "created" column for related alerts that shows either a relative time value or an absolute timestamp of when the alert was triggered/created if the duration is greater than 2 hours. This PR also sets up the time duration display logic to be separated out into a reusable component. Note that the issue asks for the column to be labeled "Triggered," but following a discussion with @nastasha-solomon on a this PR, I used the word "Created".
New Package
Implements the formatted date string as a reusable package.
The package has two new functions:
This package replaces the datetime formatter from the observability plugin utils, which is its own exported member.