Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hana details sites frontend #2278

Merged
merged 5 commits into from
Feb 13, 2024
Merged

Hana details sites frontend #2278

merged 5 commits into from
Feb 13, 2024

Conversation

arbulu89
Copy link
Contributor

@arbulu89 arbulu89 commented Feb 8, 2024

Description

Depends on: #2277
Pending to rebase it once it is merged

Implement the frontend part of the sites improvement in the HANA details view.
Check the new style in storybook.

Sneak peak:
image

@jagabomb I have only added the table header with its object in this PR. Changing the bottom rounded style, details button, new columns, etc are not implemented here.

How was this tested?

Tested with UT, e2e and storybook

@arbulu89 arbulu89 added the enhancement New feature or request label Feb 8, 2024
@arbulu89 arbulu89 force-pushed the hana-details-sites-frontend branch 2 times, most recently from f103e6d to 5184ef2 Compare February 8, 2024 14:30
@arbulu89 arbulu89 marked this pull request as ready for review February 12, 2024 13:00
Copy link
Contributor

@abravosuse abravosuse left a comment

Choose a reason for hiding this comment

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

Code apart, it looks good to me Xabi

Copy link
Member

@EMaksy EMaksy left a comment

Choose a reason for hiding this comment

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

Hey man, great job!
I just left some ideas open, just curious what you think about it.
From my side, the code looks great to me! 👍

assets/js/lib/test-utils/factories/clusters.js Outdated Show resolved Hide resolved
import AttributesDetails from './AttributesDetails';
import ReplicationStatusPill from './ReplicationStatusPill';

const getSiteHealth = (srHealthStatus) => {
Copy link
Member

Choose a reason for hiding this comment

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

What do you think about replacing switch case with object literal as an alternative?

const getSiteHealth = (srHealthStatus) => {
  const healthStatus = {
    '4': 'passing',
    '1': 'critical',
  };

  return healthStatus[srHealthStatus] || 'unknown';
};

Copy link
Contributor Author

@arbulu89 arbulu89 Feb 13, 2024

Choose a reason for hiding this comment

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

Honestly, i prefer the switch/case 😝

Copy link
Contributor

@jagabomb jagabomb left a comment

Choose a reason for hiding this comment

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

Looks good so far. 😄

@arbulu89 arbulu89 merged commit aa6c5dd into main Feb 13, 2024
24 checks passed
@arbulu89 arbulu89 deleted the hana-details-sites-frontend branch February 13, 2024 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

None yet

5 participants