Skip to content

policies: add outdated version info banners and fix banner rendering - #1173

Merged
dati18 merged 5 commits into
mainfrom
T434193
Aug 21, 2026
Merged

policies: add outdated version info banners and fix banner rendering#1173
dati18 merged 5 commits into
mainfrom
T434193

Conversation

@rosalieper

@rosalieper rosalieper commented Aug 14, 2026

Copy link
Copy Markdown
Contributor
  • Add info banner for outdated versions of a policy.
  • Move the shared page title logic into the "Policy Renderer" files. "Policy Version" files now contain only the version-specific content.
  • Add a small top margin to the "upcoming" and "outdated" info banners so that, when the Effective: subheading isn't displayed, the spacing between the title heading and the info banners is visually similar to the spacing between the title heading and the Effective: subheading, when it is displayed.

Bug: T434193

@dati18
dati18 force-pushed the T434193 branch 4 times, most recently from c04bf07 to 1702611 Compare August 19, 2026 12:11

@rosalieper rosalieper left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I will still appreciate another eye on this as I have commits on this PR.

Comment thread src/components/Pages/HostingPolicy/HostingPolicyRenderer.vue Outdated

@outdooracorn outdooracorn left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have tested that this works as I expect locally, and the code looks good.

  • Please update the PR title and description so I can review the commit message.
  • Looks like this PR needs updating with changes from main.

After that, I think it's good to go for an approval and merge.

rosalieper and others added 4 commits August 20, 2026 11:33
- Add alert for outdated version of policy
- Move the alert to apear under the page title

Bug: T434193
- Add `Effective` date in the subheader of the HP and ToU pages
- In the policy navigation panel, the ToU versions' titles are formatted
to `<DD Month YYYY> (current)` (e.g., `1 January 2022 (current)` or `1
January 2021`, not `Current version` or `2021-01-01`)

Bug: T434191

---------

Co-authored-by: Ollie <43674967+outdooracorn@users.noreply.github.com>
- Add `Effective` date in the subheader of the HP and ToU pages
- In the policy navigation panel, the ToU versions' titles are formatted
to `<DD Month YYYY> (current)` (e.g., `1 January 2022 (current)` or `1
January 2021`, not `Current version` or `2021-01-01`)

Bug: T434191

---------

Co-authored-by: Ollie <43674967+outdooracorn@users.noreply.github.com>
@dati18 dati18 changed the title Update banners to current ToU version and previous ToU version Add outdated alert banner and fix version banner rendering Aug 20, 2026
@outdooracorn outdooracorn changed the title Add outdated alert banner and fix version banner rendering policies: add outdated version info banners and fix banner rendering Aug 21, 2026

@outdooracorn outdooracorn left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! :shipit:

Have tweaked the commit title and body slightly.

REMINDER: When squash & merging, don't forget to make sure the commit message is correct. GitHub likes to mess up our Bug: git trailers when it adds co-authored-by: git trailers.

@dati18
dati18 merged commit 92b4eca into main Aug 21, 2026
7 checks passed
@dati18
dati18 deleted the T434193 branch August 21, 2026 10:19
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