From c975a98b3356b296e685fc1488d0507fc33a29ff Mon Sep 17 00:00:00 2001 From: Perside Rosalie Date: Fri, 14 Aug 2026 15:10:09 +0200 Subject: [PATCH 1/4] Update banners to current ToU version and previous ToU version - Add alert for outdated version of policy - Move the alert to apear under the page title Bug: T434193 --- .../Pages/HostingPolicy/HostingPolicyRenderer.vue | 15 +++++++++++++++ .../HostingPolicy/hosting-policy/version-1.vue | 5 ----- .../Pages/TermsOfUse/TermsOfUseRenderer.vue | 15 +++++++++++++++ .../Pages/TermsOfUse/terms-of-use/version-1.vue | 5 ----- .../Pages/TermsOfUse/terms-of-use/version-2.vue | 5 ----- 5 files changed, 30 insertions(+), 15 deletions(-) diff --git a/src/components/Pages/HostingPolicy/HostingPolicyRenderer.vue b/src/components/Pages/HostingPolicy/HostingPolicyRenderer.vue index cc402003..95385023 100644 --- a/src/components/Pages/HostingPolicy/HostingPolicyRenderer.vue +++ b/src/components/Pages/HostingPolicy/HostingPolicyRenderer.vue @@ -10,10 +10,21 @@ +
+

Hosting Policy

+

+ Effective: {{ formattedActiveFrom }} +

+
+ This is an upcoming version. You can find the current version here. + + This is an outdated version. You can find the + current version here. +
@@ -45,6 +56,10 @@ export default { isCurrentRoute: function () { return this.policyActiveFrom === undefined }, + formattedActiveFrom: function () { + if (!this.policyMetadata || !this.policyMetadata.active_from) return null + return new Date(this.policyMetadata.active_from).toLocaleDateString('en-GB', { year: 'numeric', month: 'long', day: 'numeric', timeZone: 'UTC' }) + }, }, data () { return { diff --git a/src/components/Pages/HostingPolicy/hosting-policy/version-1.vue b/src/components/Pages/HostingPolicy/hosting-policy/version-1.vue index 729e5363..55d1f741 100644 --- a/src/components/Pages/HostingPolicy/hosting-policy/version-1.vue +++ b/src/components/Pages/HostingPolicy/hosting-policy/version-1.vue @@ -2,11 +2,6 @@ -
-

Hosting Policy for Wikibase Cloud

-

Effective: {{ formattedActiveFrom }}

-
-

1. Purpose and Scope

This policy defines Wikimedia Deutschland’s (WMDE) expectations and criteria for hosting on Wikibase Cloud. It explains what kinds of datasets and use cases are supported by WMDE and how those decisions are made and implemented.

The policy exists to ensure that Wikibase Cloud technical and financial resources, as well as staff capacity are used responsibly, intentionally, in alignment with WMDE’s mission. Wikibase Cloud is not intended to be a generic free hosting service for any purpose. The policy helps us maintain visibility into how the platform is used and provides a framework to support and encourage use cases aligned with the role we want Wikibase Cloud to play in the Wikibase Ecosystem, and to address cases that clearly fall outside that role.

diff --git a/src/components/Pages/TermsOfUse/TermsOfUseRenderer.vue b/src/components/Pages/TermsOfUse/TermsOfUseRenderer.vue index e26447f8..9d922a80 100644 --- a/src/components/Pages/TermsOfUse/TermsOfUseRenderer.vue +++ b/src/components/Pages/TermsOfUse/TermsOfUseRenderer.vue @@ -10,10 +10,21 @@
+
+

Terms Of Use

+

+ Effective: {{ formattedActiveFrom }} +

+
+ This is an upcoming version. You can find the current version here. + + This is an outdated version. You can find the + current version here. +
@@ -45,6 +56,10 @@ export default { isCurrentRoute: function () { return this.policyActiveFrom === undefined }, + formattedActiveFrom: function () { + if (!this.policyMetadata || !this.policyMetadata.active_from) return null + return new Date(this.policyMetadata.active_from).toLocaleDateString('en-GB', { year: 'numeric', month: 'long', day: 'numeric', timeZone: 'UTC' }) + }, }, data () { return { diff --git a/src/components/Pages/TermsOfUse/terms-of-use/version-1.vue b/src/components/Pages/TermsOfUse/terms-of-use/version-1.vue index 6351706b..944d8988 100644 --- a/src/components/Pages/TermsOfUse/terms-of-use/version-1.vue +++ b/src/components/Pages/TermsOfUse/terms-of-use/version-1.vue @@ -1,10 +1,5 @@