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-131978 / 25.04 / Instances table and layout #10971

Merged
merged 5 commits into from
Nov 6, 2024
Merged

Conversation

denysbutenko
Copy link
Member

Changes:

Implement instances table and layout

Testing:

Go to Containers. Check original ticket.

@denysbutenko denysbutenko requested a review from a team as a code owner November 4, 2024 18:28
@denysbutenko denysbutenko requested review from bvasilenko and removed request for a team November 4, 2024 18:28
@bugclerk bugclerk changed the title NAS-131978: Instances table and layout NAS-131978 / 25.04 / Instances table and layout Nov 4, 2024
@bugclerk
Copy link
Contributor

bugclerk commented Nov 4, 2024

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.

Looks good overall.

  • The controls column could use more breathing room, right now everything is very glued to the right.
  • When I use search and there are no results, the empty text should be updated.

@@ -0,0 +1,17 @@
import { marker as T } from '@biesbjerg/ngx-translate-extract-marker';

export enum DockerNvidiaStatus {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should part of a different PR because we would need to backport it.

Copy link
Member Author

Choose a reason for hiding this comment

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

Wrong branch. Changes were reverted

this.selectFirstApp();
}

private selectFirstApp(): void {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Method needs to be renamed.

this.showMobileDetails.set(false);
}

restart(instanceId: string): void {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Any particular reason to do it here and not in the child component?

Copy link
Member Author

Choose a reason for hiding this comment

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

The idea is to separate logic from ix-instance-row using it solely for representation purposes.

<div class="container">
<div class="table-container">
<div class="table-header">
<h2>{{ 'Instances' | translate }}</h2>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's try without header here and in details.

Copy link

codecov bot commented Nov 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.92%. Comparing base (8b74fc7) to head (bfc5711).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #10971      +/-   ##
==========================================
- Coverage   81.94%   81.92%   -0.03%     
==========================================
  Files        1609     1612       +3     
  Lines       56692    56848     +156     
  Branches     5868     5881      +13     
==========================================
+ Hits        46459    46573     +114     
- Misses      10233    10275      +42     

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

@denysbutenko denysbutenko merged commit c636124 into master Nov 6, 2024
13 checks passed
@denysbutenko denysbutenko deleted the NAS-131978 branch November 6, 2024 07:52
@bugclerk
Copy link
Contributor

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

Successfully merging this pull request may close these issues.

3 participants