Skip to content

[PER-10569] Show downtime banner for scheduled maintenance#1098

Merged
aasandei-vsp merged 1 commit into
mainfrom
PER-10569-outage-banner
Jul 23, 2026
Merged

[PER-10569] Show downtime banner for scheduled maintenance#1098
aasandei-vsp merged 1 commit into
mainfrom
PER-10569-outage-banner

Conversation

@aasandei-vsp

@aasandei-vsp aasandei-vsp commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Add an announcement event to display a site-wide maintenance banner during the scheduled downtime on July 28th, 1:00-3:00 PM CDT. Reuses the existing time-window-driven Announcement mechanism, so the banner appears and disappears automatically for the window; no feature flag or component changes needed.

Issue: PER-10569

The way I tested this was just to modify the start/end dates locally in the code.

  • I changed the start date to be 1 min before the current time, to see that the banner appears.

  • Then I modified the end date to be 1 hour in the past, to make sure the banner won't appear after the window is finished.

It is worth mentioning that this banner only appears on a few screens:
image

For example, it does not appear when you go to an archive's profile:
image

@aasandei-vsp aasandei-vsp self-assigned this Jul 22, 2026
@codecov

codecov Bot commented Jul 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 52.17%. Comparing base (17c0975) to head (9a5abe9).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1098      +/-   ##
==========================================
+ Coverage   52.15%   52.17%   +0.02%     
==========================================
  Files         354      354              
  Lines       12090    12090              
  Branches     2186     2186              
==========================================
+ Hits         6305     6308       +3     
+ Misses       5560     5557       -3     
  Partials      225      225              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@cecilia-donnelly
cecilia-donnelly force-pushed the PER-10569-outage-banner branch from 497e113 to f023065 Compare July 22, 2026 20:08

@cecilia-donnelly cecilia-donnelly 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.

I changed the exact wording and the start time, @aasandei-vsp, so I will still leave it to you to have a final look before merging. Thank you for finding where this belongs and making the change! Sorry for the unclear ticket.

Add an announcement event to display a site-wide maintenance banner
warning about a scheduled downtime on July 28th, 1:00-3:00 PM
CDT. Reuses the existing time-window-driven Announcement mechanism, so
the banner appears and disappears automatically for the window; no
feature flag or component changes needed. Note that this will be
active immediately upon deployment.

Issue: PER-10569

Co-authored-by: Andreea Asandei <andreea.asandei@vspartners.us>
Co-authored-by: Cecilia Krum <cecilia@permanent.org>
@aasandei-vsp
aasandei-vsp force-pushed the PER-10569-outage-banner branch from f023065 to 9a5abe9 Compare July 23, 2026 10:27
@aasandei-vsp
aasandei-vsp merged commit 6b24dc3 into main Jul 23, 2026
16 checks passed
@aasandei-vsp
aasandei-vsp deleted the PER-10569-outage-banner branch July 23, 2026 12:26
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.

2 participants