Skip to content

Use stale value instance status#4448

Open
arbulu89 wants to merge 5 commits into
mainfrom
use-stale-value-instance-status
Open

Use stale value instance status#4448
arbulu89 wants to merge 5 commits into
mainfrom
use-stale-value-instance-status

Conversation

@arbulu89

@arbulu89 arbulu89 commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Description

Use staleAt and timezone in InstanceStatus components.

Depends on: #4441

image

How was this tested?

UT

Documentation changes

No

import CollapsibleTableRow from './CollapsibleTableRow';

const defaultCellRender = (content) => (
<p className="text-gray-900 whitespace-no-wrap">{content}</p>

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.

This change is done to give the option to render cells text color dynamically. The default color now is in the table class

@arbulu89 arbulu89 requested a review from skrech July 2, 2026 10:21
@dpulls

dpulls Bot commented Jul 2, 2026

Copy link
Copy Markdown

🎉 All dependencies have been resolved !

@arbulu89 arbulu89 force-pushed the use-stale-value-instance-status branch from df44233 to b1d9340 Compare July 2, 2026 14:18
@arbulu89 arbulu89 requested a review from Copilot July 2, 2026 15:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR wires the new “stale” metadata (from the dependent PR #4441) into the UI by passing staleAt and the user/profile timezone down to InstanceStatus, and by applying a shared “stale row” styling across several instance tables/rows.

Changes:

  • Propagate timezone from getUserProfile (and from HostDetails props) into multiple overview/detail components and table configs.
  • Pass stale_at + timezone into InstanceStatus so the tooltip can show “Stale since …” in the intended timezone.
  • Introduce a shared STALE_ROW class and apply it to rows; adjust default Table text color handling.

Reviewed changes

Copilot reviewed 16 out of 16 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
assets/js/pages/SapSystemsOverviewPage/SapSystemsOverviewPage.jsx Pulls timezone from profile and passes it into the overview page component.
assets/js/pages/SapSystemsOverviewPage/SapSystemsOverview.jsx Accepts userTimezone and passes it to the SAP system item details renderer.
assets/js/pages/SapSystemDetails/tableConfigs.jsx Applies STALE_ROW/absent styling at row-level; passes staleAt + timezone into InstanceStatus; adds host-row stale styling.
assets/js/pages/SapSystemDetails/SapSystemDetails.jsx Pulls timezone from profile and forwards it into system details.
assets/js/pages/SapSystemDetails/GenericSystemDetails.jsx Plumbs userTimezone into the instances table configuration.
assets/js/pages/SapSystemDetails/GenericSystemDetails.test.jsx Adds UT coverage for stale-row styling in the instances table.
assets/js/pages/InstanceOverview/InstanceOverview.jsx Uses STALE_ROW and passes staleAt + timezone into InstanceStatus.
assets/js/pages/InstanceOverview/InstanceOverview.test.jsx Adds UT coverage for stale styling in the instance overview row.
assets/js/pages/HostDetailsPage/tableConfigs.jsx Converts SAP instances table config to a factory so it can inject userTimezone; passes staleAt + timezone into InstanceStatus.
assets/js/pages/HostDetailsPage/HostDetails.jsx Switches to the new SAP instances table config factory and supplies the timezone.
assets/js/pages/DatabasesOverview/DatabasesOverviewPage.jsx Pulls timezone from profile and passes it into the databases overview.
assets/js/pages/DatabasesOverview/DatabasesOverview.jsx Accepts userTimezone and forwards it to per-database item overviews.
assets/js/pages/DatabasesOverview/DatabaseItemOverview.jsx Threads userTimezone down into InstanceOverview for database instances.
assets/js/pages/DatabaseDetails/DatabaseDetails.jsx Pulls timezone from profile and forwards it into database details.
assets/js/lib/tables/index.js Introduces shared STALE_ROW class constant.
assets/js/common/Table/Table.jsx Centralizes default text color on <tbody> and simplifies the default cell renderer.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread assets/js/pages/SapSystemsOverviewPage/SapSystemsOverview.jsx
Comment thread assets/js/pages/SapSystemDetails/tableConfigs.jsx Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 17 out of 17 changed files in this pull request and generated 2 comments.

Comment thread assets/js/pages/InstanceOverview/InstanceOverview.jsx
Comment thread assets/js/lib/tables/index.js
@arbulu89 arbulu89 marked this pull request as ready for review July 2, 2026 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants