Skip to content

IBX-12195: Added global JS time diff mechanism - #1992

Merged
dew326 merged 3 commits into
6.0from
IBX-12195-js-time-diff
Aug 24, 2026
Merged

IBX-12195: Added global JS time diff mechanism#1992
dew326 merged 3 commits into
6.0from
IBX-12195-js-time-diff

Conversation

@albozek

@albozek albozek commented Aug 4, 2026

Copy link
Copy Markdown
Contributor
🎫 Issue IBX-12195

Description:

Added a global time diff mechanism to admin-ui (common/time-diff/) — needed for the live "Edited X ago" labels in the new segmentation audience picker, but placed here with future reuse in mind. It provides formatTimeDiff (vanilla JS, localized natively via Intl.RelativeTimeFormat — no translation keys needed).

For QA:

Documentation:

@albozek
albozek requested a review from a team August 4, 2026 13:48
@ibexa-workflow-automation-1
ibexa-workflow-automation-1 Bot requested review from GrabowskiM, OstafinL, alekmick, dew326 and tischsoic and removed request for a team August 4, 2026 13:48
@albozek
albozek force-pushed the IBX-12195-js-time-diff branch 2 times, most recently from f6ca317 to cbfef2b Compare August 13, 2026 09:46
Comment thread src/bundle/ui-dev/src/modules/common/time-diff/time.diff.helper.ts Outdated
Comment thread src/bundle/ui-dev/src/modules/common/time-diff/useTimeDiffLabel.ts
Comment thread src/bundle/ui-dev/src/modules/common/time-diff/useTimeDiffLabel.ts Outdated
Comment thread src/bundle/ui-dev/src/modules/common/time-diff/useTimeDiffLabel.ts Outdated
@albozek
albozek force-pushed the IBX-12195-js-time-diff branch from 24f2f17 to 7cfe1df Compare August 18, 2026 10:12
@albozek
albozek force-pushed the IBX-12195-js-time-diff branch from 7cfe1df to 086742c Compare August 18, 2026 10:47
@albozek
albozek requested a review from GrabowskiM August 18, 2026 10:47
@albozek
albozek force-pushed the IBX-12195-js-time-diff branch from 086742c to ecf2468 Compare August 18, 2026 10:56
@albozek
albozek force-pushed the IBX-12195-js-time-diff branch from 72dd05f to ee63642 Compare August 21, 2026 10:40
@albozek
albozek force-pushed the IBX-12195-js-time-diff branch from ee63642 to 0f93e42 Compare August 24, 2026 12:14
@sonarqubecloud

Copy link
Copy Markdown

@dew326
dew326 merged commit 88a7d83 into 6.0 Aug 24, 2026
27 checks passed
@dew326
dew326 deleted the IBX-12195-js-time-diff branch August 24, 2026 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants