Skip to content

fix: [M3-10394] - Use human readable date/time for maintenance window#12605

Merged
jaalah-akamai merged 4 commits intolinode:developfrom
jaalah-akamai:M3-10394
Jul 30, 2025
Merged

fix: [M3-10394] - Use human readable date/time for maintenance window#12605
jaalah-akamai merged 4 commits intolinode:developfrom
jaalah-akamai:M3-10394

Conversation

@jaalah-akamai
Copy link
Copy Markdown
Contributor

@jaalah-akamai jaalah-akamai commented Jul 30, 2025

Description 📝

This PR improves the user experience by converting the maintenance window date/time display in the LinodeMaintenanceText component from a database format to a more readable format. Instead of showing dates like "2024-01-15T14:30", the component now displays "2024-01-15 14:30"

Changes 🔄

  • Slightly better formatting instead of T being in string

Target release date 🗓️

N/A

Preview 📷

Note

Focus on the format, not the times in the screenshots

Before After
Screenshot 2025-07-30 at 9 06 13 AM Screenshot 2025-07-30 at 11 33 08 AM

How to test 🧪

Verification steps

  • You can manually enable these buttons in the code OR

Alternative

  • Enable MSW
  • Use MSW Dev Tools "Maintenance Preset" to create some different statuses
  • Setup Maintenance & Notification Presets
  • Ensure you have a maintenance that's pending and scheduled
458186223-2992b625-2dba-47d5-98f2-749ce27fd27b
Author Checklists

As an Author, to speed up the review process, I considered 🤔

👀 Doing a self review
❔ Our contribution guidelines
🤏 Splitting feature into small PRs
➕ Adding a changeset
🧪 Providing/improving test coverage
🔐 Removing all sensitive information from the code and PR description
🚩 Using a feature flag to protect the release
👣 Providing comprehensive reproduction steps
📑 Providing or updating our documentation
🕛 Scheduling a pair reviewing session
📱 Providing mobile support
♿ Providing accessibility support


  • I have read and considered all applicable items listed above.

As an Author, before moving this PR from Draft to Open, I confirmed ✅

  • All tests and CI checks are passing
  • TypeScript compilation succeeded without errors
  • Code passes all linting rules

@jaalah-akamai jaalah-akamai requested a review from a team as a code owner July 30, 2025 15:46
@jaalah-akamai jaalah-akamai requested review from bill-akamai and dwiley-akamai and removed request for a team July 30, 2025 15:46
@jaalah-akamai jaalah-akamai self-assigned this Jul 30, 2025
@jaalah-akamai jaalah-akamai added Bug Fixes for regressions or bugs Host & VM Maintenance labels Jul 30, 2025
@@ -12,7 +14,13 @@ export const LinodeMaintenanceText = ({
return (
<>
This Linode&rsquo;s maintenance window {isOpened ? 'opened' : 'opens'} at{' '}
Copy link
Copy Markdown
Contributor

@bill-akamai bill-akamai Jul 30, 2025

Choose a reason for hiding this comment

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

I think this could lead to awkward phrasing like "This Linode's maintenance window opened at 2 hours ago".

Perhaps we could add a conditional check on whether or not the time is relative to display the "at" string.

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.

I removed the humanizeCuttoff option so this shouldn't happen - good catch

@github-project-automation github-project-automation bot moved this from Review to Approved in Cloud Manager Jul 30, 2025
@linode-gh-bot
Copy link
Copy Markdown
Collaborator

Cloud Manager UI test results

🎉 701 passing tests on test run #4 ↗︎

❌ Failing✅ Passing↪️ Skipped🕐 Duration
0 Failing701 Passing4 Skipped118m 48s

@jaalah-akamai jaalah-akamai merged commit 3ec0ccc into linode:develop Jul 30, 2025
35 checks passed
@github-project-automation github-project-automation bot moved this from Approved to Merged in Cloud Manager Jul 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Fixes for regressions or bugs Host & VM Maintenance

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants