Skip to content

Add HostingPolicyRenderer Component#1151

Merged
tarrow merged 6 commits into
mainfrom
T432340-2
Jul 23, 2026
Merged

Add HostingPolicyRenderer Component#1151
tarrow merged 6 commits into
mainfrom
T432340-2

Conversation

@tarrow

@tarrow tarrow commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

This commit introduces the HostingPolicyRenderer component which calls the Platform API to render the hosting-policy routes looking like /hosting-policy/:activeFrom

It follows a similar pattern to the TermsOfUseRenderer but doesn't include a navigation component since we do not have multiple versions to consider yet.

It also introduces a stub hosting policy content for viewing on staging. This won't be visible on production because there is not a corresponding Policy object in the production DB

This commit also adjusts the TermsOfUseRenderer to determine the vue component to load using the content_vue_file key from the API response rather than by trying to determine it from the active_from date.

Bug: T432340

This commit introduces the HostingPolicyRenderer component which calls the Platform API
to render the hosting-policy routes looking like /hosting-policy/:activeFrom

It follows a similar pattern to the TermsOfUseRenderer but doesn't include
a navigation component since we do not have multiple versions to consider yet.

It also introduces a stub hosting policy content for
viewing on staging. This won't be visible on production because
there is not a corresponding Policy object in the production DB

This commit also adjusts the TermsOfUseRenderer to determine the
vue component to load using the content_vue_file key from the
API response rather than by trying to determine it from the
active_from date.

Bug: T432340
@github-actions

Copy link
Copy Markdown

Deployment previews on netlify for branch refs/pull/1151/merge will be at the following locations (when build is done):

Comment thread src/components/Pages/HostingPolicy/HostingPolicyRenderer.vue
Comment thread src/components/Pages/HostingPolicy/HostingPolicyRenderer.vue Outdated
Comment thread src/components/Pages/HostingPolicy/HostingPolicyRenderer.vue Outdated
Comment thread src/components/Pages/HostingPolicy/HostingPolicyRenderer.vue Outdated
@deer-wmde

Copy link
Copy Markdown
Contributor

apart from the already noted points this looks good to me

@tarrow

tarrow commented Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

Also looks fine to me, I guess we should ship this.

@tarrow
tarrow merged commit 7f8839a into main Jul 23, 2026
7 checks passed
@tarrow
tarrow deleted the T432340-2 branch July 23, 2026 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants