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

Redesign the SCA table from agent's dashboard #4512

Merged
merged 23 commits into from Oct 24, 2022

Conversation

chantal-kelm
Copy link
Member

@chantal-kelm chantal-kelm commented Sep 14, 2022

With the redesign of this section, the user accesses the information in a much more direct way.

This PR closes this issue.

For testing

Check the new SCA Lastest scans table in the Agent Dashboard

  1. Select Agent and go to Agent Dashboard
  2. Check table style in the SCA: Lastest scans card.
  3. Click on the table row and check if redirect to the SCA > Inventory to the selected policy.

Check the SCA > Inventory behavior

  1. Select Agent and go to Agent Dashboard
  2. Click on the SCA title in the Header navigation ( SCA > Inventory)
  3. Check the Policies table is rendered on the Inventory Tab.
  4. Click in the Policy Table Row and check if is redirected to the Policy Checks view

@chantal-kelm chantal-kelm changed the title SCA table: Latest scans Redesign the agent's dashboard Sep 14, 2022
@chantal-kelm chantal-kelm self-assigned this Sep 14, 2022
@chantal-kelm chantal-kelm linked an issue Sep 14, 2022 that may be closed by this pull request
Copy link
Member

@asteriscos asteriscos left a comment

Choose a reason for hiding this comment

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

There's a lot of commented code, please delete all unnecessary code. It would also be useful to improve the PR description to know exactly what to test.

public/components/agents/sca/inventory.tsx Outdated Show resolved Hide resolved
public/components/agents/sca/inventory.tsx Show resolved Hide resolved
public/components/agents/sca/inventory.tsx Outdated Show resolved Hide resolved
@Machi3mfl
Copy link
Member

Machi3mfl commented Oct 17, 2022

Current behavior in this solution

The same SCA Policies table is used in two views: Agent Welcome and SCA Inventory. We need to modify this because if if change a layout for one it will modify for both views.
image
image

Next Steps

  • Create a new component to reuse in the sections mentioned above
  • Verify correct redirection when the row is clicked. From Agent Dashboard and SCA Inventory.
  • Fixes the Agent Welcome SCA style (Resolve the review comments)

@Machi3mfl Machi3mfl marked this pull request as ready for review October 18, 2022 16:50
@Machi3mfl Machi3mfl requested a review from a team as a code owner October 18, 2022 16:50
Mayons95
Mayons95 previously approved these changes Oct 19, 2022
Copy link
Contributor

@Mayons95 Mayons95 left a comment

Choose a reason for hiding this comment

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

TR: ✔️

Screencast.from.19-10-22.11.59.02.webm

Copy link
Member

@asteriscos asteriscos left a comment

Choose a reason for hiding this comment

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

CR: ✔️
Test: ❌
There's an error in the console when clicking a row.

Peek 2022-10-19 17-16

Copy link
Member

@AlexRuiz7 AlexRuiz7 left a comment

Choose a reason for hiding this comment

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

  • Changelog entry missing
  • Conflicts

Copy link
Member

@asteriscos asteriscos left a comment

Choose a reason for hiding this comment

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

When there are many rows in the table the cards grow too much. Maybe you could paginate the results to a max of 5 rows.

image

@Machi3mfl Machi3mfl changed the title Redesign the agent's dashboard Added agent's dashboard redesign Oct 19, 2022
@Machi3mfl
Copy link
Member

Machi3mfl commented Oct 19, 2022

CR: heavy_check_mark Test: x There's an error in the console when clicking a row.

Peek 2022-10-19 17-16

Solved ✔️

@Machi3mfl
Copy link
Member

  • Changelog entry missing
  • Conflicts

Solved ✔️

@Machi3mfl
Copy link
Member

Machi3mfl commented Oct 19, 2022

When there are many rows in the table the cards grow too much. Maybe you could paginate the results to a max of 5 rows.

image

Solved ✔️

image

Solution details:

  • Used TableWzApi inside SCAPoliciesTable instead EuiBasicTable
  • Table in SCA Dashboard with PageSize 4 to prevent the scroll.
  • Added pagination.

@AlexRuiz7 AlexRuiz7 changed the title Added agent's dashboard redesign Redesign the SCA table from agent's dashboard Oct 20, 2022
@Mayons95 Mayons95 self-requested a review October 20, 2022 15:12
Copy link
Contributor

@Mayons95 Mayons95 left a comment

Choose a reason for hiding this comment

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

LGTM

@github-actions
Copy link
Contributor

Code coverage (Jest) % values
Statements 7.37% ( 2677 / 36320 )
Branches 3.19% ( 892 / 27998 )
Functions 5.13% ( 454 / 8856 )
Lines 7.46% ( 2593 / 34772 )

Copy link
Member

@AlexRuiz7 AlexRuiz7 left a comment

Choose a reason for hiding this comment

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

  • Code review: ✔️
  • Test: ✔️

Copy link
Member

@asteriscos asteriscos left a comment

Choose a reason for hiding this comment

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

CR: ✔️
Test: ✔️

Peek 2022-10-21 18-33

@AlexRuiz7 AlexRuiz7 merged commit 138893d into 4.4-7.10 Oct 24, 2022
@AlexRuiz7 AlexRuiz7 deleted the 4238-Redesign-the-agents-dashboard branch October 24, 2022 07:59
github-actions bot pushed a commit that referenced this pull request Oct 24, 2022
* SCA table: Latest scans

* redirect and states

* params url

* the tables are working properly

* styles

* inventory test

* styles euiFlexGroup

* SCA test, back button and parameter renaming

* load for tables

* Added new policies table for reuse in agent welcome and sca

* Fixed table redirection on row clicked

* Solved review comments

* Fixed policy row redirect, renaming and remove it unused code

* Updated CHANGELOG

* Added pagination

* Updated snapshots to fix unit tests

* Updated CHANGELOG

* Fixed lastest scan navigation

Co-authored-by: Maximiliano Ibarra <maximilianoaibarra@gmail.com>
(cherry picked from commit 138893d)
github-actions bot pushed a commit that referenced this pull request Oct 24, 2022
* SCA table: Latest scans

* redirect and states

* params url

* the tables are working properly

* styles

* inventory test

* styles euiFlexGroup

* SCA test, back button and parameter renaming

* load for tables

* Added new policies table for reuse in agent welcome and sca

* Fixed table redirection on row clicked

* Solved review comments

* Fixed policy row redirect, renaming and remove it unused code

* Updated CHANGELOG

* Added pagination

* Updated snapshots to fix unit tests

* Updated CHANGELOG

* Fixed lastest scan navigation

Co-authored-by: Maximiliano Ibarra <maximilianoaibarra@gmail.com>
(cherry picked from commit 138893d)
AlexRuiz7 pushed a commit that referenced this pull request Oct 24, 2022
)

Redesign the SCA table from agent's dashboard (#4512)

* SCA table: Latest scans

* redirect and states

* params url

* the tables are working properly

* styles

* inventory test

* styles euiFlexGroup

* SCA test, back button and parameter renaming

* load for tables

* Added new policies table for reuse in agent welcome and sca

* Fixed table redirection on row clicked

* Solved review comments

* Fixed policy row redirect, renaming and remove it unused code

* Updated CHANGELOG

* Added pagination

* Updated snapshots to fix unit tests

* Updated CHANGELOG

* Fixed lastest scan navigation

Co-authored-by: Maximiliano Ibarra <maximilianoaibarra@gmail.com>
(cherry picked from commit 138893d)

Co-authored-by: Chantal Belén kelm <99441266+chantal-kelm@users.noreply.github.com>
AlexRuiz7 pushed a commit that referenced this pull request Oct 24, 2022
…4749)

Redesign the SCA table from agent's dashboard (#4512)

* SCA table: Latest scans

* redirect and states

* params url

* the tables are working properly

* styles

* inventory test

* styles euiFlexGroup

* SCA test, back button and parameter renaming

* load for tables

* Added new policies table for reuse in agent welcome and sca

* Fixed table redirection on row clicked

* Solved review comments

* Fixed policy row redirect, renaming and remove it unused code

* Updated CHANGELOG

* Added pagination

* Updated snapshots to fix unit tests

* Updated CHANGELOG

* Fixed lastest scan navigation

Co-authored-by: Maximiliano Ibarra <maximilianoaibarra@gmail.com>
(cherry picked from commit 138893d)

Co-authored-by: Chantal Belén kelm <99441266+chantal-kelm@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Redesign the agent's dashboard
5 participants