diff --git a/CHANGELOG.unreleased.md b/CHANGELOG.unreleased.md index 90d05256c38..79359b10327 100644 --- a/CHANGELOG.unreleased.md +++ b/CHANGELOG.unreleased.md @@ -27,6 +27,7 @@ For upgrade instructions, please check the [migration guide](MIGRATIONS.released - Fixed incorrect position of WEBKNOSSOS logo in screenshots. [#7726](https://github.com/scalableminds/webknossos/pull/7726) - Fixed that invisible nodes could be selected when using the skeleton tool. [#7732](https://github.com/scalableminds/webknossos/pull/7732) - Fixed a bug where users that have no team memberships were omitted from the user list. [#7721](https://github.com/scalableminds/webknossos/pull/7721) +- Added an appropriate placeholder to be rendered in case the timetracking overview is otherwise empty. [#7736](https://github.com/scalableminds/webknossos/pull/7736) ### Removed diff --git a/frontend/javascripts/admin/statistic/time_tracking_overview.tsx b/frontend/javascripts/admin/statistic/time_tracking_overview.tsx index 5c7434435d5..bf4728d01b1 100644 --- a/frontend/javascripts/admin/statistic/time_tracking_overview.tsx +++ b/frontend/javascripts/admin/statistic/time_tracking_overview.tsx @@ -113,6 +113,15 @@ function TimeTrackingOverview() { { label: "Last 30 Days", value: [dayjs().subtract(30, "d").startOf("day"), currentTime] }, ]; + const renderPlaceholder = () => { + return ( +

+ There is no user activity recorded for the selected time span. Please adjust the time range + and filters above. +

+ ); + }; + return mayUserAccessView ? (