-
Notifications
You must be signed in to change notification settings - Fork 186
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
Improve Agents preview page load when there are no agents #6185
Conversation
There was a problem hiding this 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
There was a problem hiding this 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
plugins/main/public/controllers/agent/components/agents-preview.js
Outdated
Show resolved
Hide resolved
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
With no registered Agents: Go to Agents from another page
With registered Agents: Go to Agents from another page and click
Deploy new agent
Test
Legend:
⚫: none
🟢: pass
🟡: warning
🔴: fail
⚪: not applicable
UI
Add agent
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
yarn test:jest