Skip to content

Conversation

@luannmoreira
Copy link
Member

Description

This PR simplifies the logic for displaying the container addition component in the Containers.vue view. Key changes include:

Replaced the conditional ConnectorAdd slot with a direct ContainerAdd component.

Removed the now-unnecessary refresh method and its 10-second delay logic.

Cleaned up unused imports: ConnectorAdd and handleError.

This refactor removes legacy connector logic, improves clarity, and reduces unused code.

Why:

The conditional rendering based on envVariables.hasConnector is no longer needed, and maintaining legacy ConnectorAdd logic created unnecessary complexity.

Impact:

Only affects the UI logic related to adding containers. No backend or data-fetching logic is impacted.

Replaced ConnectorAdd with ContainerAdd component unconditionally.
Removed related refresh logic and ConnectorAdd import. Cleaned up
unused error handling.
@luannmoreira luannmoreira self-assigned this Jun 5, 2025
@luannmoreira luannmoreira requested a review from a team as a code owner June 5, 2025 12:59
@gustavosbarreto gustavosbarreto merged commit 47fcc9f into master Jun 5, 2025
16 checks passed
@gustavosbarreto gustavosbarreto deleted the refactor/container-add-cleanup branch June 5, 2025 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants