vikunja/frontend/src
kolaente 2cc7c0b6f0 fix(frontend): auto-refresh relative dates as time passes
Relative dates ("5 minutes ago", "in 2 hours") were computed once via
dayjs().fromNow() and never recomputed, so a view left open kept showing
the value from the moment it was rendered.

Compute the relative string against the shared, ticking `now` from
useGlobalNow() instead. This makes every reactive caller — <TimeDisplay>,
direct formatDateSince() calls, and formatDisplayDate() when the user's
date display is set to relative — re-render on the existing 60s tick.
Absolute date formats don't read `now`, so they never needlessly
re-render.

useGlobalNow can now be initialised from a plain helper rather than only
from a component, so its route-update hook is guarded with
getCurrentInstance().
2026-06-17 20:10:21 +00:00
..
assets feat: add subsets for all supported languages 2025-08-17 23:11:30 +02:00
components fix(gantt): preserve horizontal scroll when focusing a task bar 2026-06-17 18:17:29 +00:00
composables fix(frontend): auto-refresh relative dates as time passes 2026-06-17 20:10:21 +00:00
constants refactor(config): add PRO_FEATURE constants for licensed features 2026-06-08 13:54:09 +00:00
directives fix(tooltip): show tooltips in top layer when inside modal dialog 2026-05-18 18:09:38 +00:00
helpers fix(frontend): auto-refresh relative dates as time passes 2026-06-17 20:10:21 +00:00
i18n chore(i18n): update translations via Crowdin 2026-06-17 00:35:30 +00:00
message feat: merge duplicate notifications (#2056) 2026-01-06 17:36:29 +00:00
modelSchema/common chore: fix indentation 2025-06-19 10:53:35 +02:00
modelTypes feat(time-tracking): configure the smart-fill start time in settings 2026-06-08 13:54:09 +00:00
models feat(frontend): add bot settings page and services 2026-05-01 14:44:10 +00:00
modules refactor(frontend): replace for...in usages and forbid via lint rule 2026-04-15 11:44:47 +00:00
router feat(time-tracking): add the time-tracking view 2026-06-08 13:54:09 +00:00
services feat(time-tracking): add the v2 time-entry service 2026-06-08 13:54:09 +00:00
stores feat(time-tracking): add the time-tracking store 2026-06-08 13:54:09 +00:00
styles fix(frontend): fix buttons alignments in rtl direction 2026-06-11 19:45:57 +00:00
types feat(frontend): add configurable quick entry shortcut setting 2026-04-01 21:38:38 +00:00
views fix(frontend): fix buttons alignments in rtl direction 2026-06-11 19:45:57 +00:00
App.vue feat(a11y): add skip navigation link and main landmark on auth pages 2026-04-21 11:44:36 +00:00
histoire.setup.ts feat(frontend): upgrade Tailwind CSS from v3 to v4 2026-03-03 11:46:18 +01:00
main.ts fix: respect allow_icon_changes config on web and desktop 2026-06-01 09:40:37 +00:00
pinia.ts chore: move frontend files 2024-02-07 14:56:56 +01:00
registerServiceWorker.ts fix: lint issues 2024-10-29 09:57:53 +00:00
sentry.ts feat: use offical vite plugin for sentry (#873) 2026-03-03 12:30:49 +01:00
sw.ts fix(frontend): Make sw.ts respect to frontend base URL 2026-04-20 14:28:23 +00:00
urls.ts feat: add utm tag to powered by link 2024-09-23 12:07:06 +02:00
version.json chore: add missing eof newlines (#969) 2025-06-17 09:11:32 +00:00