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-132759 / 25.04 / Rework Installed Apps #11120

Merged
merged 3 commits into from
Dec 6, 2024
Merged

NAS-132759 / 25.04 / Rework Installed Apps #11120

merged 3 commits into from
Dec 6, 2024

Conversation

bvasilenko
Copy link
Contributor

@bvasilenko bvasilenko commented Dec 2, 2024

Changes:

Used new master-detail view component on installed apps page

Testing:

Double check that all features of the installed Apps page work

@bvasilenko bvasilenko requested a review from a team as a code owner December 2, 2024 06:53
@bvasilenko bvasilenko requested review from RehanY147 and removed request for a team December 2, 2024 06:53
@bugclerk bugclerk changed the title NAS-132759: Rework Installed Apps NAS-132759 / 25.04 / Rework Installed Apps Dec 2, 2024
@bugclerk
Copy link
Contributor

bugclerk commented Dec 2, 2024

Copy link

codecov bot commented Dec 2, 2024

Codecov Report

Attention: Patch coverage is 79.55272% with 64 lines in your changes missing coverage. Please review.

Project coverage is 82.56%. Comparing base (28145e9) to head (fc0c751).
Report is 28 commits behind head on master.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...stalled-apps-list/installed-apps-list.component.ts 77.45% 62 Missing ⚠️
...ponents/installed-apps/installed-apps.component.ts 85.71% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #11120      +/-   ##
==========================================
+ Coverage   82.38%   82.56%   +0.18%     
==========================================
  Files        1648     1650       +2     
  Lines       57694    58008     +314     
  Branches     5944     5954      +10     
==========================================
+ Hits        47532    47896     +364     
+ Misses      10162    10112      -50     

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

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.

Looks good overall but can be improved.

#masterDetailView="masterDetailViewContext"
[selectedItem]="selectedApp"
>
<ng-container master>
Copy link
Contributor

Choose a reason for hiding this comment

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

Would be good to rework that to have a separate component for installed-apps-list, so the installed-apps component html may become smaller.

As example:

<ix-page-header>
  <ix-all-instances-header></ix-all-instances-header>
</ix-page-header>

<ix-master-detail-view
  #masterDetailView="masterDetailViewContext"
  [selectedItem]="selectedInstance()"
>
  <ix-instance-list
    master
    [isMobileView]="masterDetailView.isMobileView()"
    [showMobileDetails]="masterDetailView.showMobileDetails()"
    (toggleShowMobileDetails)="masterDetailView.toggleShowMobileDetails($event)"
  ></ix-instance-list>

  <ng-container detail-name>
    {{ selectedInstance()?.name }}
  </ng-container>

  <ng-container detail>
    @if (selectedInstance()) {
      <ix-instance-details
        [instance]="selectedInstance()"
      ></ix-instance-details>
    }
  </ng-container>
</ix-master-detail-view>

Copy link
Contributor

Choose a reason for hiding this comment

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

As well would be good to extract bulk actions to the separate component
Example:

@if (checkedInstances?.length > 0) {
    <ix-instance-list-bulk-actions
      [checkedInstances]="checkedInstances"
      (resetBulkSelection)="resetSelection()"
    ></ix-instance-list-bulk-actions>
  }

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.

Seems to be working the same as before

@bvasilenko bvasilenko merged commit 38f2f0e into master Dec 6, 2024
9 checks passed
@bvasilenko bvasilenko deleted the NAS-132759 branch December 6, 2024 06:47
@bugclerk
Copy link
Contributor

bugclerk commented Dec 6, 2024

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 Dec 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants