Repository navigation
[2.0] Fixes 38200: Show when an asset was last updated at its source in the entity header - #38593
Conversation
…in the entity header Backport of #38201 and #38268 to 2.0 as one change. The header metadata row shows lifeCycle.updated as "Updated at source" after the other header fields, as relative time with the exact time on hover, and hides it when the source reported no update time or stored the year-0001 placeholder. Spreadsheet Created Time shows without its UTC offset; the full time shows on hover.
✅ PR checks passedThe linked issue has a description and all required Shipping project fields set. Thanks! |
2.0's Typography wraps an ellipsis tooltip in a button, which centres its text, so a value narrower than its label (Updated at source) sat off the label's left edge.
Code Review ✅ Approved 🟡 Medium riskShowing source-update timestamps and changing spreadsheet creation-time formatting alters displayed asset metadata, which could affect how users judge freshness and creation time. Adds an Updated at source field to the data asset header metadata row, showing relative time (for example "2 hours ago") with the exact time on hover. The field is hidden when no update time is reported or when the year-0001 placeholder is stored, and spreadsheet Created Time drops its UTC offset while keeping the full time on hover. No issues found. VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
Backport of #38201 and #38268 to
2.0in one PR. Both are already onmainand2.1.Fixes #38200
What changes
lifeCycle.updated) after the other header fields, laid out like them (Fixes 38200: Show the source update time as a header field and created time without its UTC offset #38268's position). The value is relative time, for example "2 hours ago", and the exact time shows on hover.isRecordedLifeCycleTimestamp).updated-at-sourcelabel is added to every locale on 2.0.Differences from main
2.0 predates main's header redesign, so I ported the final behaviour by hand instead of cherry-picking:
Typographyhas notooltipprop.ExtraInfoLabelpasses the hover time throughellipsis={{ tooltip }}instead. This is an app-level change only; core components are untouched.TableCreationTime.spec.ts) is not on 2.0, so only the spreadsheet Created Time change applies.it-it.jsondoes not exist on 2.0.ExtraInfoLabelcolumn now left-aligns it (tw:[&_button]:text-left).Tests
DataAssetsHeader.test.tsxcovers shown + hover tooltip, hidden when absent, and hidden for the placeholder.DataAssetsHeader.utils.test.tsxcovers spreadsheet Created Time without its UTC offset and the full time on hover. Both suites pass locally (69 tests).SourceUpdatedTime.spec.ts(from main) covers table, dashboard and pipeline, with and without a source update time. I have not run it locally.--checkis up to date).Screenshots
Taken on the 2.0 UI against a local 2.0 server with sample data (
sample_data.ecommerce_db.shopify.agent_performance_summary).Updated at source in the header metadata row, after the other fields:
Hovering it shows the exact time:
🤖 Generated with Claude Code