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

Improve Agents preview page load when there are no agents #6185

Conversation

lucianogorza
Copy link
Contributor

@lucianogorza lucianogorza commented Nov 30, 2023

Description

When there are no registered agents and the Agents preview page is loaded, the component with the dashboard and the list of agents is always shown first for a moment, and then the component to register an agent is displayed. This PR fixes in the case where there are no registered agents so that the component with the dashboard and the list is not shown first but directly displays the component to register an agent.

Issues Resolved

#6175

Evidence

With no registered Agents: Go to Modules -> Modules directory. Click Add agent

No Agents - Module directory

With no registered Agents: Go to Agents from another page

No Agents - Agents

With registered Agents: Go to Agents from another page and click Deploy new agent

With Agents - Agents

Test

Legend:
⚫: none
🟢: pass
🟡: warning
🔴: fail
⚪: not applicable

UI

Test Chrome Firefox Safari
With no registered Agents: Go to Modules -> Modules directory. Click Add agent
With no registered Agents: Go to Agents from another page
With registered Agents: Go to Agents from another page and click Deploy new agent

Details

⚫ With no registered Agents: Go to Modules -> Modules directory. Click `Add agent`

Chrome - ⚫

Firefox - ⚫

Safari - ⚫

⚫ With no registered Agents: Go to Agents from another page

Chrome - ⚫

Firefox - ⚫

Safari - ⚫

⚫ With registered Agents: Go to Agents from another page and click `Deploy new agent`

Chrome - ⚫

Firefox - ⚫

Safari - ⚫

Check List

  • All tests pass
    • yarn test:jest
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

@lucianogorza lucianogorza self-assigned this Nov 30, 2023
@lucianogorza lucianogorza marked this pull request as ready for review December 4, 2023 20:12
@lucianogorza lucianogorza requested a review from a team as a code owner December 4, 2023 20:12
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: ❌ Changelog entry should be placed in fixed. As it's not something new o a change in the behaviour of a feature.

Test: ✔️

The agent's dashboard is not seen as it loads.

Overview -> Register Agent

Peek.2023-12-05.18-44.mp4

Agents initial load

Peek.2023-12-05.18-45.mp4

Copy link
Member

@yenienserrano yenienserrano left a comment

Choose a reason for hiding this comment

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

Test: ✅
CR: Comment

Without agents
Screencast.from.2023-12-07.10-32-47.webm
With agents
Screencast.from.2023-12-07.10-35-14.webm

Copy link
Contributor

github-actions bot commented Dec 7, 2023

Code coverage (Jest) % values
Statements 11.73% ( 4048 / 34496 )
Branches 7.95% ( 1853 / 23293 )
Functions 11.27% ( 930 / 8251 )
Lines 11.91% ( 3937 / 33036 )

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: ✔️

Works as expected. When there are no registered agents, the agents-summary view loads the register agent wizard without showing the dashboard first.

Peek 2023-12-07 15-33

Peek 2023-12-07 15-33

@asteriscos asteriscos merged commit 38a58b9 into 4.7.2 Dec 11, 2023
2 checks passed
@asteriscos asteriscos deleted the enhancement/6175/improve-agent-preview-page-load-when-there-is-are-agents branch December 11, 2023 12:56
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.

The agents dashboard is displayed when using the Add agent button from plugin home
3 participants