Skip to content

Conversation

@asteriscos
Copy link
Member

@asteriscos asteriscos commented Sep 12, 2025

Description

This pull request changes the navigation menu category to Explore.

Issue:
#7

@asteriscos asteriscos self-assigned this Sep 12, 2025
@asteriscos asteriscos linked an issue Sep 12, 2025 that may be closed by this pull request
@guidomodarelli

This comment was marked as resolved.

Machi3mfl
Machi3mfl previously approved these changes Sep 12, 2025
Copy link
Member

@Machi3mfl Machi3mfl 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: ✅

Image

@guidomodarelli
Copy link
Member

guidomodarelli commented Sep 15, 2025

🟢 Test Legend

Symbol Meaning
The test hasn't started yet.
🟢 All checks passed.
🟡 There is at least one expected fail or skipped test and no failures.
🔴 There is at least one failed check.
Doesn't apply.
🔧 Request changes.
Needs more information.

🧪 Test 2025/09/15

CR 🟢
TEST 🟢

image

@asteriscos asteriscos merged commit 3246061 into 4.14.0 Sep 15, 2025
3 of 4 checks passed
@asteriscos asteriscos deleted the enhancement/7-navigation-menu-category branch September 15, 2025 14:18
yenienserrano pushed a commit that referenced this pull request Nov 5, 2025
* Fix navigation menu category

* Add changelog

* Remove unnecessary spaces
asteriscos added a commit that referenced this pull request Nov 14, 2025
* Add repository bumper and workflows to 5.0.0 (#3)

* Add repository bumper workflow 4.x to main (#8)

* Apply suggestions from code review

Co-authored-by: Guido Modarelli <[email protected]>
Signed-off-by: Antonio <[email protected]>

* Fix package building workflow (#5)

* Manage the registration of AI models involved in the AI dashboard assistant (#6)

feat: Add model management features including creation, deletion, and… … retrieval

- Introduced ModelsComposed interface for structured model data representation.
- Created UpdateModelDto interface extending CreateModelDto for partial updates.
- Implemented ModelStateMapper for mapping model states to statuses.
- Defined ModelRepository interface for model data operations.
- Developed use cases for creating, deleting, and retrieving models.
- Added hooks for managing model state and interactions in the UI.
- Integrated OpenSearch for model data storage and retrieval.
- Implemented model prediction validation to ensure response integrity.
- Established navigation service for dashboard assistant.
- Configured model provider settings for various AI models.

refactor http client to simplify proxy requests replace custom proxy request methods with standard HTTP verbs in «proxyRequest» to streamline usage and reduce redundancy.

update all repository usages to call «get», «put», and «delete» directly on «proxyRequest».

introduce «HttpMethod» enum for consistency and migrate dependencies.

remove legacy generic request logic and require core HTTP provider for improved reliability.

simplify «subscribe» signature to accept only next callback removes support for observer objects in «subscribe»
reduces API complexity and enforces a single subscription pattern

remove export for unused type streamline type exports to reduce unused imports and improve code maintainability

move number formatting utility for better code reuse replace import of «formatUINumber» with «formatNumber» from a shared location to promote consistency and reuse across the project

remove unused agent and model use-case logic eliminate use-case functions related to agent-model operations and direct model deletion to streamline setup and focus on composite entity deletion logic

refactor «updateFormDataOnChange» for cleaner event handling streamline input «onChange» logic by converting «updateFormDataOnChange» to a curried function, improving code readability and reducing repetitive code across form fields

refactor navigation and use-case setup for dashboard assistant Replaces legacy navigation and use-case setup with centralized services and dependency injection.

Introduces «AssistantNavigationService» and «NavigationService» for improved routing management and URL handling.

Refactors use-case initialization to leverage «getUseCases» and repository service, enabling more flexible dependency management.

Removes static setup files to reduce coupling and simplify configuration.

Updates codebase to consistently use new navigation and use-case interfaces.

replace custom proxy HTTP client with cleaner abstraction refactor HTTP client implementation to remove embedded «proxyRequest» logic
introduce «ProxyHttpClient» and «AxiosHttpClient» for improved separation of concerns
update repository constructors to accept both direct and proxy clients for clarity and flexibility
simplify interface by removing unnecessary methods and legacy client code

improve documentation formatting for architecture and folder structure Refines visual consistency in architecture and folder diagrams
by aligning indentation and spacing. Enhances readability and
clarifies code organization for future contributors.

remove dashboard assistant overview component Eliminates the overview UI and related toast functionality from the dashboard assistant. Simplifies codebase by removing unused or obsolete interface components.

refactor providers and add global toast support replace nested context providers with a new «Providers» component for cleaner composition.

add «ToastProvider» to enable application-wide toast notifications using «EuiGlobalToastList».

rename file extension to .tsx for consistency and update function naming from «removeToast» to «dismissToast» for clarity.

remove legacy navigation and toast logic Simplifies component by replacing old navigation and toast implementations with updated services.

Removes unnecessary dependencies and higher-order components to streamline usage and maintenance.

refactor navigation service usage in model table replace direct access to navigation service property with «getRegisterModelUrl» method
improve code consistency and clarity by standardizing navigation API
rename «home» to «goHome» for clearer intent

add «axios» and «history» dependencies with resolutions adds «axios» and «history» as dependencies to support HTTP requests and navigation functionality
adds «@types/history» for TypeScript support
enforces «axios» version resolution to address potential version conflicts
updates «yarn.lock» to reflect new and updated packages

improve header layout and add model/refresh actions replace static title with flexible group layout for better alignment. add buttons for model creation and data refresh to enhance usability. prepare for navigation integration in future updates.

add toast notifications for query success and error Integrates optional toast callbacks to display success and error messages when data queries resolve or fail.
Improves user feedback for asynchronous operations by leveraging «useToast» and customizable toasts configuration.

make «reload» asynchronous to await data loading ensure «reload» properly waits for «loadData» completion
improves reliability when triggering reload in async workflows

add hook for activating agents and enhance deletion toasts Introduce a new hook for agent activation, including success and error toasts for better feedback.
Improve deletion logic by adding detailed toast notifications for success and failure, increasing user clarity and responsiveness.

add model activation, testing, and deletion actions to monitoring UI Enhances monitoring interface by integrating model activation, testing, and deletion functionality.
Adds support for triggering model tests via flyout, displays test results, and improves user feedback on model management operations.
Updates imports to incorporate new hooks and components for a smoother, more interactive workflow.

add model metadata fields to preview panel Display additional metadata such as «version», «agentId», «inUse», and «createdAt» in the preview panel for enhanced visibility and context when reviewing model details.

add model usage, version, agent info, and actions to table Enhances model deployment table with new columns for version,
agent ID, usage status, and creation date to improve visibility.

Introduces action buttons for using, testing, and deleting models,
enabling more direct management from the table. Updates «onChange»
handlers to support these actions and disables actions based on
model state for better UX.

refactor deployment flow and improve callback handling simplify deployment status and registration components by
removing unused props, renaming callbacks for clarity, and
delegating navigation logic to parent components. improve
error and success handling by unifying callback usage and
streamlining button visibility logic for deployment actions.

migrate routing logic to React, enhance navigation convert routing file to JSX and wrap «ModelRegister» with navigation handlers using «useHistory» to enable redirect on cancel and deploy actions; improves user flow and code consistency with React Router.

replace add model button navigation with router link wrap the add model button in a «Link» component and use «routerPaths» for navigation
improves routing consistency and prepares for future navigation service integration

standardize model status values casing Update «ModelStatus» enum to use capitalized strings to ensure consistency with status checks in UI logic.
Prevent mismatches by aligning status comparisons with updated enum values.

route all HTTP methods through POST requests standardize proxying of GET, PUT, and DELETE methods by sending POST requests instead of their respective HTTP verbs to improve compatibility with the proxy backend

replace status icon with agent status component and unify dash usage unify display of missing values by replacing Unicode dash with «LONGDASH» constant

replace «StatusIcon» with «AgentStatus» for clearer agent status display

remove unused exports and improve code readability by updating render logic

enrich deployed models with agent info and metadata merge data from assistant use cases to include agent, usage, version, and creation date for deployed models
improve monitoring detail and enable richer model insights
fallback gracefully if composed model data is unavailable

remove models table component from dashboard assistant eliminate unused or deprecated UI logic to simplify codebase

removal helps reduce maintenance burden and potential confusion
by discarding a redundant feature from the dashboard assistant

add agent status mapping to model deployment data Derives agent state from composed model data and maps it to deployment items,
enabling clearer tracking of model status (active, inactive, error).
Refactors agent attachment logic for improved maintainability and consistency.

remove assistant config hooks and related exports Eliminates unused assistant configuration hooks and cleans up exports to streamline module structure. Reduces complexity and removes unnecessary code.

remove agent register command functionality Eliminates support for generating agent registration commands to simplify the codebase and reduce unused logic. Cleans up related UI components, use cases, and repository methods.

replace Axios HTTP client with native fetch implementation removes dependency on Axios and related packages for HTTP requests

introduces a new HTTP client using native «window.fetch» for improved bundle size and alignment with browser APIs

updates initialization logic to use the new client and cleans up package dependencies

remove custom navigation service and related setup Eliminates redundant navigation logic to simplify codebase.
Leverages core platform navigation utilities instead of maintaining separate abstractions.
Reduces maintenance overhead and potential for inconsistencies.

simplify error handling for permission checks remove dependency on AxiosError and refactor error handling logic
to directly check for status codes, making permission-related error
responses more straightforward and decoupled from Axios-specific errors

remove unused history dependency and types Eliminates redundant dependencies to reduce bundle size and simplify maintenance. Ensures only required packages are included for improved project hygiene.

add empty dependencies section to config ensures explicit declaration of dependencies for clarity
prepares for future additions or updates to dependencies

reduce flyout size for model test and deployment Improve UI experience by switching flyout size from medium to small for model testing and deployment dialogs, allowing more focused user interactions and better use of screen space.

remove unused assistant config use case Eliminates the assistant config retrieval logic and related exports to simplify the codebase and remove unused dependencies.

rename and refactor model-agent data composition logic Update function and variable names for clarity, changing «getModelsComposed» to «retrieveModelsWithAgentData» and «getModelsComposedUseCase» to «composeModelsWithAgentDataUseCase». Improve code readability by making terminology consistent around models and agent data enrichment. Simplify integration across related modules to better reflect actual behavior.

rename file to clarify agent data usage improve naming consistency by replacing 'info' with 'data'
to better reflect the file's purpose and align with domain terminology

rename and unify model and assistant installation use cases Align naming conventions across model validation and assistant installation flows for improved clarity and maintainability.

Rename model connection and assistant install functions and exports, update usages in service layer and hooks, and remove redundant exports.

Ensure function names clearly reflect their intent, reducing ambiguity in usage throughout the codebase.

remove assistant repository and centralize agent config handling Streamline agent configuration access by removing the assistant repository abstraction and related code. Refactor logic to retrieve active agent directly through the agent repository, simplifying dependencies and reducing redundancy.

improve header handling in HTTP client centralize addition of default and content-type headers in «fetch»
ensure HTTP method is always specified
simplify header logic in «get», «post», «put», and «delete» functions
prevents missing or incorrect headers for requests

refactor model-agent mapping and data composition logic streamline model and agent data association by replacing redundant types and mappers with a unified mapping approach

remove legacy hooks and DTOs to reduce duplication and simplify codebase

update data composition logic to use improved mapping strategy for clearer separation between models and agents

remove dependency on @osd/config-schema in model form validation replace schema-based validation with custom browser-safe logic in «validateModelForm»
improves compatibility and simplifies validation by handling input checks and provider-specific rules directly
removes reliance on server-side libraries for client-side form validation

add Docker-based test runner and integration/unit tests Introduce a Docker Compose test runner with supporting scripts to standardize local build and test execution. Add comprehensive unit and integration tests for HTTP clients, OpenSearch repositories, installation manager steps, and related mappers. Update the test command set and adjust return values to improve reliability of installation orchestration. Enhance maintainability and test coverage for core assistant setup and OpenSearch integration logic.

add comprehensive unit tests and repository mocks Introduce unit tests for model, agent, connector, and settings modules to improve code reliability and coverage. Add reusable repository mocks for consistent test isolation. Refactor tests to use mock factories and enhance maintainability. Replace manual spies with standardized mocks in HTTP client tests for clarity and consistency.

handle errors when deleting model group wrap call to delete model group in try-catch to prevent unhandled exceptions if deletion fails. improves robustness when the target does not exist or deletion encounters errors.

add delete confirmation modal for model deletion Introduce a confirmation modal requiring exact model name input before deletion to prevent accidental removals. Update related tests and table logic to ensure the delete button remains enabled even when the model is in use, shifting actual deletion to the confirmation step. Adjust test utilities for proper context and routing support.

extract and reuse model delete confirmation modal Refactors the model delete confirmation logic into a dedicated, reusable modal component. Simplifies the monitoring page by removing inline modal code and related state, and updates usage to leverage the new component. Adds focused unit tests for the new modal and removes legacy tests tied to the previous implementation. Improves code maintainability and encourages reuse of the delete confirmation UI.

set «delay» to null in «userEvent.setup» for tests ensure «userEvent» actions run without artificial delays to improve test speed and reliability

fix async handling in unit test with await ensure «waitFor» is properly awaited to avoid potential race conditions and improve reliability of asynchronous test assertions

add «--verbose» flag to Jest arguments ensure test output includes detailed information by default, improving test debugging and visibility without requiring manual flag entry

improve tests for «reload» and page status handling ensure «reload» in tests is awaited for proper async behavior
reset mocks and refine data source context to prevent false positives
add explicit checks that «search» is not called during data source fetching
improve test reliability and accuracy around loading state

add module-level documentation for dashboard assistant Introduce comprehensive README files for each core module, detailing structure, purpose, configuration points, and integration guidelines. Improve onboarding for new contributors and clarify where to modify prompts, agent tools, and provider settings. Facilitate consistent development and easier maintenance by outlining best practices and usage tips for each module.

improve documentation with prompt and troubleshooting examples add prompt customization examples and detailed troubleshooting guidance to clarify usage, provider integration, and common error resolution
include targeted before/after prompt patterns and updated recommendations for configuring providers and tool responses
enhance clarity for new custom provider integration and response handling

update docs to reflect architecture and API changes Revise documentation to align with recent architecture updates, including renaming classes, updating repository and use case interfaces, and clarifying component responsibilities. Remove outdated references to deprecated components, adjust examples for new API signatures, and improve installation and usage instructions for custom model tables and agent status. Clarify the installer flow and update configuration and request examples for consistency.

add quick index and module docs to improve navigation Enhances documentation by introducing a quick index and dedicated module documentation section, making it easier for users and contributors to navigate and understand the project structure.

add documentation for dashboard assistant components and services Introduce comprehensive README files detailing the purpose, structure, and usage patterns of UI components and service modules for the dashboard assistant. Improve onboarding and maintainability by clarifying available exports, integration points, and extension guidance. Facilitate faster development and easier understanding for new contributors.

improve model activation with polling and add tests Enhances activation logic by updating «registerAgentQuery» to poll for model readiness, preventing premature actions caused by eventual consistency. Adds comprehensive unit tests to verify polling behavior, success callbacks, and error handling for model use and test actions.

refactor actions column to use built-in table actions Simplifies the actions column by replacing custom button rendering and tooltips with the table's built-in «actions» configuration. Improves code maintainability and UI consistency while retaining all existing functionality.

improve test robustness for monitoring component Refactors tests to interact with the "View status details" action via the "All actions" menu instead of relying on button order, enhancing reliability and alignment with user behavior. Updates «userEvent.setup» configuration and test setup/teardown for clearer mock management. Removes unused mock function «updateDeployedModel».

improve test robustness for model action buttons Refactors tests to interact with action buttons within their table context, handling scenarios where actions may be presented either directly or in a popover menu. Ensures accurate validation of enabled and disabled states, and triggers corresponding handlers reliably. Enhances test resilience to changes in UI rendering and interaction patterns.

update tests and table layout for action button flexibility Refactors tests to support action buttons appearing inline or within an "All actions" popover, improving resilience to UI layout variations. Updates column indices and descriptions in tests to match the removal of the "Version" and "Created" columns from the table. Simplifies table structure by removing unnecessary columns for a cleaner interface.

prevent state updates on unmounted provider add «isMountedRef» to guard «addToast» and «dismissToast» against updating state after unmount
avoids potential memory leaks and React warnings from calling «setToasts» on unmounted components

export «AllTheProviders» for external use enable reuse of «AllTheProviders» in other test modules by exporting it, improving test setup consistency and flexibility

improve tests for «useModel» by adding provider and refactoring wrap hook in «AllTheProviders» to ensure proper context and refactor tests for reliability and clarity. streamline timer handling and async flows, avoiding redundant test cases while maintaining core coverage of activation and polling logic.

lint: fix lint errors

simplify agent registration logic and ensure propagation delay remove polling logic from agent activation and introduce a fixed delay after agent registration in «registerAgentUseCase» to handle eventual consistency. streamline «useModel» by delegating success handling to toast callbacks and removing unnecessary hooks.

simplify unit test and refactor «registerAgentUseCase» formatting Removes unnecessary test logic and mocks to streamline the unit test for agent registration, focusing only on core success flow. Refactors the formatting of «registerAgentUseCase» for improved readability.

Merge branch '4.14.0' into enhancement/7621-create-ai-assistant-manag… …er-plugin

improve error handling for permission errors in agent registration clarify and unify permission error detection by checking both «err.status» and «err.response.status»

add actionable guidance to the permission error message in agent registration to help users resolve access issues

ensure consistent error handling between agent retrieval and registration operations

add permission error handling for model monitoring Detects insufficient permissions when fetching deployed models and displays a user-friendly message instead of the model table. Updates «useMonitoring» to expose «permissionError» and «permissionErrorMessage», and updates the UI to conditionally render based on these values. Improves clarity and user feedback when access is restricted.

introduce specific error for ML config permission issues replace generic permission errors with a dedicated «PermissionMLConfigError» to provide clearer, actionable feedback when access to ML configuration is denied due to insufficient permissions. improves maintainability and user guidance for permission-related failures.

improve ML permission error handling and user feedback Refactors ML permission errors by introducing a unified «PermissionMLError» hierarchy, enabling more granular error detection and messaging for different ML resources. Updates UI to present clearer callouts when permissions are insufficient, and ensures permission errors are surfaced and handled consistently in the monitoring workflow. Enhances user guidance and robustness by refining when and how permission-related actions are displayed.

reorganize and centralize error exports for permissions Consolidates permission-related error exports by introducing index files and relocating agent error definitions. Simplifies imports and improves module organization for easier maintenance.

handle permission errors in «getAll» for connectors Improve error handling in «getAll» by throwing a custom permission error when access to ML Connector resources is denied. Add utility to detect permission-related errors and introduce a specific error class for clearer feedback. Simplify usage in monitoring by removing redundant try/catch logic.

improve ML model permissions error handling introduce «PermissionMLModelError» to provide clearer feedback for permission-related failures when accessing ML model APIs

refactor monitoring logic to rely on a single «permissionErrorMessage» for permission state, simplifying error checks and UI handling

improve error reporting consistency and maintainability for model operations

improve error display with popover and copy option replace tooltip with popover for error messages during deployment steps, allowing users to view full details and copy error text for easier debugging and support. enhances usability and accessibility of error handling in the deployment status view.

make «getAll» and «search» async with explicit await update «getAll» and «search» to use async/await for clarity and consistent error handling
returns are now explicitly awaited before returning, improving readability and potential stack trace accuracy

improve layout and styling for model registration form refactor structure of model registration form to simplify flex usage and apply custom class for targeted styling. add main stylesheet and introduce a new CSS rule to ensure proper layout within the app wrapper, enhancing consistency and alignment across the interface.

conditionally hide refresh interval in monitoring header add optional «showRefreshInterval» prop to control display of the refresh interval in the monitoring page header
hide the refresh interval when «permissionErrorMessage» is present to prevent unnecessary UI elements for users without sufficient permissions

replace «EuiCallOut» with «EuiEmptyPrompt» for permission errors improves UI consistency by using «EuiEmptyPrompt» instead of «EuiCallOut» to display permission error messages, ensuring a more standard and visually integrated error state

remove unused "Learn more" links from onboarding UI Simplifies onboarding components by removing non-functional "Learn more" links and related configuration. Reduces UI clutter and improves clarity for users during model registration and deployment status steps.

update copyright to Wazuh and clean up formatting Switches copyright notices from OpenSearch to Wazuh across source files
for proper attribution. Adds missing headers where needed and unifies
header formatting. Also cleans up minor code formatting inconsistencies
and simplifies some JSX structures for readability.

improve test to handle missing agent scenario Update test to simulate missing agent by resolving to null instead of throwing an error, ensuring «composeModelsWithAgentDataUseCase» correctly handles absent agent data and improves test clarity.

fix unit tests to mock error shape from HTTP client Update test error mocks to use «response.status» property, matching the actual error structure returned by the HTTP client. Improves test accuracy for permission and not-found error scenarios.

improve test reliability and mock external dependencies Add missing mocks for external service calls to ensure isolation and stability in unit tests. Update test expectations for asynchronous operations and clarify behavior when external connector retrieval fails, preventing unnecessary API calls and ensuring empty state handling. Reset shared API provider between tests to avoid state leakage.

update changelog for model config and AI assistant management Document new features for managing model configurations and AI assistants, including enhanced models table columns and selection of active configurations in the overview.

remove trailing periods from changelog entries improve consistency in documentation formatting by omitting unnecessary trailing periods in list items

* Change navigation menu category (#9)

* Fix navigation menu category

* Add changelog

* Remove unnecessary spaces

* Refine AI chatbot registration process (#11)

* improve error popover readability in «DeploymentStatus»

Enhance the error popover by adding a «panelStyle» property with word-wrapping. This ensures long text breaks properly, improving readability and preventing layout issues.

* improve error handling and enrich contextual information

Enhance error propagation and contextual data in HTTP client operations by introducing a detailed «HttpError» utility. Update test cases to validate enriched error messages, including status text and request details.

Refactor installation steps to incorporate structured error handling using «StepError», providing detailed context and possible causes for failures. Improve diagnostic messaging during installation, including step-specific details and enriched error descriptions.

Add utility functions to extract status codes and derive potential causes for issues, improving debugging capabilities. Update related unit tests to ensure comprehensive coverage of new behaviors.

* add rollback support to installation steps

Introduce rollback functionality to the installation process, enabling the reversal of completed steps upon failure. Extend «InstallationAIAssistantStep» with a new «rollback» method and update «InstallationProgressManager» to manage rollback execution. Add rollback handling for agent, connector, and model creation steps, ensuring created resources are cleaned up if subsequent steps fail.

Enhance integration tests to validate rollback behavior and update the «InstallationResult» structure to include «rollbackErrors» for improved error reporting.

* update error message in «TestModelConnectionStep» test

Refine the error message in the «TestModelConnectionStep» test to improve clarity and match the updated phrasing. This ensures the test provides more precise feedback when the step validation fails.

* remove handling of response body in «HttpError»

Simplify the «HttpError» implementation by removing all logic related to determining and handling the presence of a response body. Eliminate the «responseBodyOmitted» property, the «hasMeaningfulBody» function, and associated references.

This change reduces complexity and aligns with a security-focused approach by avoiding reliance on response body content.

* update tests to validate additional error details

Enhance the test for «WindowFetchHttpClient» by adding assertions for «status» and «statusText» in propagated HTTP errors, ensuring more comprehensive error validation.

Simplify the failure message validation in «InstallationProgressManager» tests by removing redundant details, improving clarity and focus on the core error message.

* refactor formatting and interface definitions

Simplify code structure by normalizing formatting for better readability across files. Replace «RollbackError» type with an «interface» for consistency. Update multiline constructs to align with style guidelines.

These changes improve code maintainability and adhere to standardized practices.

* add rollback handling and error collection in tests

Introduce an optional «onRollback» callback to the «TestStep» class, enabling custom rollback logic during test execution. Update the «rollback» method to invoke this callback if provided.

Add a new test case to verify proper rollback execution order for failed and completed steps. Ensure rollback errors are collected and validated.

Enhances test coverage and ensures consistent behavior during rollback scenarios.

* add unit test for «ModelRegister» component

Introduce a unit test to verify the behavior of the «ModelRegister» component during installation failure. Mock dependencies like «ModelForm» and «useAssistantInstallation» to simulate scenarios, ensuring proper handling of error states and absence of success messages.

* add rollback handling and summary display for installation errors

Introduce rollback tracking in the installation process to record reverted steps during failures. Update the response structure to include a «rollbacks» field and propagate this data through the installation workflow.

Enhance the UI to display rollback summaries using «addInfoToast» when installation errors occur. Modify tests to verify rollback behavior and ensure accurate reporting of reverted steps.

Improve error handling and state management by adding a reference to track the last rollback summary and avoid duplicate toasts.

* refactor test imports and rollback methods for consistency

Standardize imports across test files by replacing inline React imports with named imports. Simplify code structure for readability by reformatting multiline arrays and conditionals.

Remove the «override» keyword from rollback methods in multiple classes to align with TypeScript conventions and ensure compatibility.

Improve readability in «derivePossibleCauses» by reformatting conditional checks for network issues.

These changes enhance code consistency, maintainability, and readability.

* replace named imports with explicit «React» references in mocks

Update mocked components and hooks to use explicit «React» references
instead of named imports. This change ensures compatibility with Jest's
module mocking and avoids potential conflicts with React's internal
APIs.

Additionally, replace JSX syntax with «React.createElement» in the
mocked «MockModelForm» for consistency and clarity in the mock's
implementation.

* Add --admin flag (#19)

* feat: bump 4.14.0

---------

Signed-off-by: Antonio <[email protected]>
Co-authored-by: Federico Rodriguez <[email protected]>
Co-authored-by: Guido Modarelli <[email protected]>
Co-authored-by: Nicolas Agustin Guevara Pihen <[email protected]>
Co-authored-by: wazuhci <[email protected]>
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.

Create AI assistant manager plugin

4 participants