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

NAS-133494 / 25.04 / WIP: Enclosure Colors #11345

Open
wants to merge 26 commits into
base: master
Choose a base branch
from
Open

NAS-133494 / 25.04 / WIP: Enclosure Colors #11345

wants to merge 26 commits into from

Conversation

dszidi
Copy link
Collaborator

@dszidi dszidi commented Jan 16, 2025

Changes:

Changes how we apply color coding to

Testing:

Use mock enclosure utility and test for models M60, ES24, ES24F, MINI-R, H-Series, X-Series, ES12, ES102G2. These models were chosen to show a variety of different layouts and drive tray types. Once this PR is approved the other models will be updated.

Downstream

This only touches the enclosure-svg component files and the SVG assets themselves. Assets are updated with some class selectors and CSS. Nothing else should be affected.

This will affect documentation as screen shots of the enclosure visualization will look different now.

@dszidi dszidi requested a review from undsoft January 16, 2025 14:33
@dszidi dszidi requested a review from a team as a code owner January 16, 2025 14:33
@bugclerk bugclerk changed the title WIP: Enclosure Colors NAS-133494 / 25.04 / WIP: Enclosure Colors Jan 16, 2025
@bugclerk
Copy link
Contributor

@dszidi dszidi removed the request for review from a team January 16, 2025 15:07
Copy link

codecov bot commented Jan 16, 2025

Codecov Report

Attention: Patch coverage is 61.53846% with 15 lines in your changes missing coverage. Please review.

Project coverage is 82.93%. Comparing base (fdda7b3) to head (0c888a7).
Report is 25 commits behind head on master.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...sure-side/enclosure-svg/enclosure-svg.component.ts 61.53% 15 Missing ⚠️

❌ Your patch check has failed because the patch coverage (61.53%) is below the target coverage (75.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #11345      +/-   ##
==========================================
+ Coverage   82.92%   82.93%   +0.01%     
==========================================
  Files        1666     1669       +3     
  Lines       59715    59947     +232     
  Branches     6276     6303      +27     
==========================================
+ Hits        49516    49717     +201     
- Misses      10199    10230      +31     

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

Copy link
Collaborator

@undsoft undsoft left a comment

Choose a reason for hiding this comment

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

Overall looks nice, thank you.
Let's clean up some things in code.


this.renderer.removeClass(overlay, 'tinted');
private dimSlot(slotNumber: number, opacity: number): void {
const slotId: string = 'DRIVE_CAGE_' + slotNumber.toString();
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would suggest updating code that initially looks for drives cages in processSvg to store them as class properties and then using that here and below.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@undsoft Updated the file. Please check again.

Copy link
Collaborator

@undsoft undsoft left a comment

Choose a reason for hiding this comment

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

Something is wrong now.

  1. Rear slots on M60 are incorrect.
  2. Front slots on R20 are incorrect.

@dszidi
Copy link
Collaborator Author

dszidi commented Jan 23, 2025

Something is wrong now.

  1. Rear slots on M60 are incorrect.
  2. Front slots on R20 are incorrect.

I reverted the change. R20 is not on the list of updated enclosures for this PR. I only did a cross section of models for review purposes. I will update the others in a separate PR once this gets merged

@undsoft
Copy link
Collaborator

undsoft commented Jan 24, 2025

So, why not forward fix it? We still need to make code updates.

Copy link
Collaborator

@undsoft undsoft left a comment

Choose a reason for hiding this comment

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

Some models, including but not limited to R20, ES24N, ES60, ES102 are broken compared to master.

@dszidi
Copy link
Collaborator Author

dszidi commented Jan 27, 2025

Rackmount models are done. Only the Desktop MINIs should be left

@undsoft undsoft added the backport-25.04-RC.1 Fangtooth RC1 label Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-25.04-RC.1 Fangtooth RC1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants