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-128457 / 24.10 / Reorganizing enclosure pages #10064

Merged
merged 7 commits into from
May 17, 2024
Merged

NAS-128457 / 24.10 / Reorganizing enclosure pages #10064

merged 7 commits into from
May 17, 2024

Conversation

undsoft
Copy link
Collaborator

@undsoft undsoft commented May 14, 2024

Reorganizes enclosure pages using router into different views, which can be seen by clicking in Elements menu.

@undsoft undsoft requested a review from a team as a code owner May 14, 2024 16:44
@undsoft undsoft requested review from AlexKarpov98, RehanY147 and a team and removed request for a team May 14, 2024 16:44
@bugclerk bugclerk changed the title NAS-128457: Reorganizing enclosure pages NAS-128457 / 24.10 / Reorganizing enclosure pages May 14, 2024
@bugclerk
Copy link
Contributor

Copy link

codecov bot commented May 14, 2024

Codecov Report

Attention: Patch coverage is 57.60870% with 39 lines in your changes are missing coverage. Please review.

Project coverage is 73.88%. Comparing base (8601c66) to head (d4c9332).
Report is 3 commits behind head on master.

Files Patch % Lines
...mponents/views/elements-view/elements.component.ts 0.00% 14 Missing ⚠️
...s/views/enclosure-view/enclosure-view.component.ts 0.00% 13 Missing ⚠️
...pages/system/enclosure/services/enclosure.store.ts 27.27% 8 Missing ⚠️
...nts/enclosure-header/enclosure-header.component.ts 94.73% 1 Missing ⚠️
...re-view/disks-overview/disks-overview.component.ts 0.00% 1 Missing ⚠️
...ges/system/enclosure/tests/mocks/m60-with-es102.ts 0.00% 1 Missing ⚠️
...pages/system/enclosure/utils/enclosure-mappings.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #10064      +/-   ##
==========================================
+ Coverage   73.84%   73.88%   +0.03%     
==========================================
  Files        1526     1529       +3     
  Lines       53428    53484      +56     
  Branches     6387     6390       +3     
==========================================
+ Hits        39452    39514      +62     
+ Misses      13976    13970       -6     

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

Copy link
Contributor

@RehanY147 RehanY147 left a comment

Choose a reason for hiding this comment

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

Architecture looks good. A couple issues in code pointed out. Also, when elements select changes value, the "Disks" option stays highlighted.

] as const;

return supportedViews
.filter((view) => this.enclosure().elements[view])
Copy link
Contributor

Choose a reason for hiding this comment

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

Should declare a constant at the start and save the value and reuse it so it's clear this is a dependency for the computed signal.

component: EnclosureViewComponent,
data: { title: T('View Enclosure'), breadcrumb: null },
},
{
Copy link
Contributor

Choose a reason for hiding this comment

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

duplicate

Copy link
Contributor

@RehanY147 RehanY147 left a comment

Choose a reason for hiding this comment

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

Please address the above suggestions. Otherwise looks good.

@undsoft undsoft enabled auto-merge (squash) May 15, 2024 14:50
@undsoft
Copy link
Collaborator Author

undsoft commented May 15, 2024

Doesn't seem like there is an easy solution to item highlighting in the menu.

Copy link
Contributor

@AlexKarpov98 AlexKarpov98 left a comment

Choose a reason for hiding this comment

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

Screenshot 2024-05-16 at 13 26 52

# Conflicts:
#	src/assets/i18n/fr.json
#	src/assets/i18n/nl.json
#	src/assets/i18n/zh-hans.json
@undsoft undsoft merged commit b0526d8 into master May 17, 2024
10 checks passed
@undsoft undsoft deleted the NAS-128457 branch May 17, 2024 07:47
@bugclerk
Copy link
Contributor

This PR has been merged and conversations have been locked.
If you would like to discuss more about this issue please use our forums or raise a Jira ticket.

@truenas truenas locked as resolved and limited conversation to collaborators May 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
4 participants