Skip to content

Commit

Permalink
ARTESCA-13969 // Migration to React 18
Browse files Browse the repository at this point in the history
ARTESCA-13969 // Migration to React 18

refactor: update NotificationCenter styles and improve test assertions

refactor: migrate to React 18's createRoot for rendering

refactor: implement external store for WebFingers context and update related hooks

refactor: remove console logs and simplify state update logic in WebFingersStore

refactor: update dependencies to React 18 and related packages

Add ShellHooksProvider and integrate shell hooks into FederableApp

Add shell hooks integration and update useAlerts function to accept optional filters

Pass shellHooks and shellAlerts as props to FederatedComponent in ProtectedFederatedRoute

Add @types/react-router-dom to package.json

Refactor to useShellHooks for improved context integration across components

Refactor context creation to eliminate reliance on window.shellContexts

Update module-federation dependency and enhance shell hooks integration in FederatedApp

Update @scality/module-federation dependency to latest version

refactor: update history management and fix type errors across components

Add routing support and refactor PrivateRoute component

Refactor history type definitions and update package versions

Add patch for react-query and refactor ShellHooksContext imports

Add TextEncoder and TextDecoder polyfills to setupTests

Refactor AlertPage and VolumePageRSP to use dynamic base paths for navigation

Update @scality/core-ui dependency to latest version and refactor tests for improved readability

Add TextEncoder and TextDecoder polyfills, refactor App component to pass location prop, and update @scality/core-ui dependency

Remove obsolete patch for react-query and update QueryClientProvider type definition

Refactor QueryClientProvider usage and remove redundant imports in tests

Update ShellHistoryProvider to use react-router's NavigateFunction and upgrade @scality/core-ui to version 0d55701c

Update Node.js version to 20-alpine3.19 in versions.py

Update navigation in DashboardInventory to use dynamic base path from state

Update Node.js version to 20.11.1 in versions.py

Update @scality/module-federation dependency to a newer commit hash

Expose useNotificiationCenter hook

Test fix cypress

Fix tabs issue

Fix routing issues

Mocked useCurrentAPp

Fix navigation issues

revert cypress conf

Fix nodelist.spec.js

Fix node tests

Fix volumes tests

bump runner memory

Add a selector to wait for nodes retrieval

Bump cyress

fix cypress

Add missing deps

delete cypress cucumber

Update Cypress integration test command and add missing querystring dependency

Enable experimental memory management and update Cypress integration test command to use Chrome browser

Refactor volume creation form commands to use role-based selectors for improved accessibility

update package-lock

Revert "update package-lock"

This reverts commit f98732d.

Update Node.js setup script to use version 20.x

Update @scality/module-federation dependency to a newer commit hash

Update Node.js setup script to use version 16.x

Update @scality/core-ui and @scality/module-federation dependencies to stable versions

Refactor imports to use @scality/module-federation instead of local ShellHooksContext

Remove unused TypeScript definitions and update JSX element return types to use the new import syntax

Refactor useConfig call in FederableApp and update mock implementation in setupTests

Rename e2e test script to integration in package.json

Update mock implementation of @scality/module-federation to use react-router's useNavigate

Update default test filter from e2e to integration in GitHub Actions

Rename cypress.config.ts to cypress.config.js and update export syntax
  • Loading branch information
hervedombya committed Jan 21, 2025
1 parent dfcd83c commit 08195cf
Show file tree
Hide file tree
Showing 222 changed files with 6,071 additions and 16,092 deletions.
2 changes: 1 addition & 1 deletion .github/actions/bastion-ui-tests/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ inputs:
TEST_FILTERS:
description: "The test filter to use"
required: false
default: "e2e"
default: "integration"
TARGET_URL:
description: "The URL to reach the UI"
required: false
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pre-merge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ jobs:
tags: ghcr.io/${{ github.repository_owner }}/metalk8s-nginx-integration-tests:${{ github.sha }}

integration_tests_ui:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04-8core
needs:
- build_integration_container_nginx
- changed-files
Expand Down Expand Up @@ -456,7 +456,7 @@ jobs:
- name: Install Cypress and its dependencies
run: |
cd ui
PKGS="har-validator cypress cypress-cucumber-preprocessor cypress-wait-until @testing-library/cypress"
PKGS="har-validator cypress cypress-wait-until @testing-library/cypress querystring"
for pkg in $PKGS; do
npm install --no-save --no-package-lock --legacy-peer-deps $pkg@$(node -p \
-e "require('./package-lock.json').dependencies['$pkg'].version" \
Expand Down
2 changes: 1 addition & 1 deletion buildchain/buildchain/versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def load_version_information() -> None:
ETCD_VERSION: str = "3.5.15"
ETCD_IMAGE_VERSION: str = f"{ETCD_VERSION}-0"
NGINX_IMAGE_VERSION: str = "1.27.2-alpine"
NODEJS_IMAGE_VERSION: str = "16.14.0"
NODEJS_IMAGE_VERSION: str = "20.11.1"
KEEPALIVED_VERSION: str = "2.3.1"
CERT_MANAGER_VERSION: str = "1.16.1"

Expand Down
Loading

0 comments on commit 08195cf

Please sign in to comment.