From e2a8bf768b8104179f47dace6f907599a4e10dc5 Mon Sep 17 00:00:00 2001 From: Rebeka Dekany <50901361+rebekadekany@users.noreply.github.com> Date: Tue, 7 Jul 2026 14:38:41 +0200 Subject: [PATCH] Merge intermediate component wrappers into OL-prefixed components (#34996) * Merge intermediate component wrappers into OL-prefixed components * Replace all intermediate wrapper consumers with OL-prefixed components directly * Fix jsx/js files still importing deleted shim components * Remove duplicate OLNotification imports left by first pass * Rename OLTagIcon to TagIcon, remove OL prefix * Rename OLDropdownMenuItem to DropdownMenuItem, remove OL prefix * Remove OLNotification, use Notification directly * Move Notification to the main shared component folder * Update tag-icon import path out of ol/ * Move TagIcon to the main shared component folder * Update dropdown-menu-item import path out of ol/ * Move DropdownMenuItem to the main shared component folder * Fix dropdown-menu-item import path to dropdown/ subfolder * Remove BS5 alias prefixes from shared components * Restore notification-list wrapper in Notification component * Add translation for loading button * Remove redundant import aliasing * Resolve conflicts * Restore notification container `notification-list` GitOrigin-RevId: 24a5af18599a3e02ac6fd61c09cf5a49ef6e0020 --- .../chat/components/chat-fallback-error.tsx | 6 +- .../components/clone-project-tag.tsx | 6 +- .../components/dictionary-modal-content.tsx | 14 +- .../file-tree-create/danger-message.tsx | 8 +- .../file-tree-create-name-input.tsx | 53 ++-- .../file-tree-modal-create-file-body.tsx | 38 +-- .../modals/file-tree-modal-delete.tsx | 14 +- .../components/file-view-refresh-error.tsx | 20 +- .../components/add-seats/add-seats.tsx | 19 +- .../components/add-seats/po-number.tsx | 4 +- .../components/back-button.tsx | 4 +- .../group-management/components/card.tsx | 4 +- .../components/error-alert.tsx | 16 +- .../components/group-members.tsx | 14 +- .../components/group-users.tsx | 54 ++-- .../manually-collected-subscription.tsx | 52 ++-- .../components/members-table/list-alert.tsx | 282 +++++++++--------- .../offboard-managed-user-modal.tsx | 6 +- .../remove-managed-user-modal.tsx | 6 +- .../missing-billing-information.tsx | 42 +-- .../components/request-status.tsx | 10 +- .../components/subtotal-limit-exceeded.tsx | 30 +- .../upgrade-subscription.tsx | 15 +- .../dropdown/menu-item/add-label.tsx | 10 +- .../menu-item/compare-dropdown-item.tsx | 6 +- .../dropdown/menu-item/download.tsx | 6 +- .../dropdown/menu-item/restore-project.tsx | 6 +- .../components/change-list/modal-error.tsx | 26 +- .../components/change-list/tag-tooltip.tsx | 6 +- .../history/components/diff-view/main.tsx | 6 +- .../ide-react/components/alerts/alerts.tsx | 46 +-- .../alerts/lost-connection-alert.tsx | 42 +-- .../components/toolbar/download-project.tsx | 10 +- .../components/toolbar/duplicate-project.tsx | 6 +- .../export-project-with-conversion-button.tsx | 6 +- .../components/toolbar/project-title.tsx | 6 +- .../toolbar/review-mode-options.tsx | 14 +- .../unsaved-docs/unsaved-docs-alert.tsx | 18 +- .../unsaved-docs-locked-alert.tsx | 22 +- .../rolling-compile-image-changed-alert.tsx | 20 +- .../components/pdf-zoom-dropdown.tsx | 4 +- .../rolling-build-selected-reminder.tsx | 16 +- .../import-document-modal.tsx | 54 ++-- .../groups/group-sso-setup-success.tsx | 2 +- .../components/notifications/notification.tsx | 6 +- .../components/project-list-ds-nav.tsx | 2 +- .../components/table/cells/inline-tags.tsx | 6 +- .../menu-items/copy-project-menu-item.tsx | 6 +- .../menu-items/rename-project-menu-item.tsx | 6 +- .../components/review-mode-switcher.tsx | 14 +- .../components/review-panel-change-action.tsx | 5 +- .../components/account-info-section.tsx | 22 +- .../email-preferences-form.tsx | 29 +- .../settings/components/emails-section.tsx | 12 +- .../components/emails/add-email/layout.tsx | 12 +- .../components/emails/reconfirmation-info.tsx | 86 +++--- .../settings/components/emails/sso-alert.tsx | 94 +++--- .../emails/unlink-commons-sso-modal.tsx | 12 +- .../components/leave/modal-form-error.tsx | 32 +- .../settings/components/linking-section.tsx | 22 +- .../settings/components/password-section.tsx | 74 ++--- .../components/edit-member.tsx | 22 +- .../share-project-modal/components/invite.tsx | 10 +- .../components/project-access.tsx | 14 +- .../components/send-invites-notice.tsx | 38 +-- .../components/share-modal-body.tsx | 14 +- .../share-project-modal-content.tsx | 16 +- .../components/transfer-ownership-modal.tsx | 14 +- .../components/diagnostic-component.tsx | 8 +- .../figure-modal/figure-modal-body.tsx | 6 +- .../figure-modal/file-name-input.tsx | 18 +- .../components/math-preview-tooltip.tsx | 10 +- .../canceled-subscription/canceled.tsx | 26 +- .../dashboard/generic-error-alert.tsx | 26 +- .../dashboard/institution-memberships.tsx | 24 +- .../components/dashboard/pause-modal.tsx | 10 +- .../personal-subscription-sync-email.tsx | 12 +- .../dashboard/personal-subscription.tsx | 44 +-- .../components/dashboard/redirect-alerts.tsx | 6 +- .../dashboard/states/active/add-ons.tsx | 10 +- .../modals/cancel-ai-add-on-modal.tsx | 26 +- .../modals/change-to-group-modal.tsx | 24 +- .../modals/keep-current-plan-modal.tsx | 26 +- .../writefull-bundle-management-modal.tsx | 6 +- .../states/active/confirm-unpause-modal.tsx | 25 +- .../dashboard/subscription-dashboard.tsx | 92 +++--- .../trial-disabled-notification.tsx | 16 +- .../shared/payment-error-notification.tsx | 8 +- .../redirected-payment-error-notification.tsx | 32 +- .../successful-subscription.tsx | 90 +++--- .../components/word-count-error.tsx | 6 +- .../components/word-counts-client.tsx | 20 +- .../components/word-counts.tsx | 19 +- .../js/shared/components/badge/badge-link.tsx | 2 +- .../js/shared/components/badge/badge.tsx | 23 -- .../js/shared/components/button/button.tsx | 77 ----- .../shared/components/button/icon-button.tsx | 46 --- .../dropdown-menu-item.tsx} | 4 +- .../shared/components/ds/ds-form-feedback.tsx | 6 +- .../components/error-boundary-fallback.tsx | 6 +- .../shared/components/form/form-control.tsx | 45 --- .../shared/components/form/form-feedback.tsx | 23 -- .../js/shared/components/form/form-group.tsx | 14 - .../js/shared/components/form/form-text.tsx | 81 ----- .../labs/labs-experiments-widget.tsx | 2 +- .../js/shared/components/notification.tsx | 6 +- .../js/shared/components/ol/ol-badge.tsx | 24 +- .../js/shared/components/ol/ol-button.tsx | 75 ++++- .../shared/components/ol/ol-form-checkbox.tsx | 2 +- .../shared/components/ol/ol-form-control.tsx | 55 +++- .../shared/components/ol/ol-form-feedback.tsx | 24 +- .../js/shared/components/ol/ol-form-group.tsx | 10 +- .../js/shared/components/ol/ol-form-text.tsx | 86 +++++- .../shared/components/ol/ol-icon-button.tsx | 43 ++- .../shared/components/ol/ol-notification.tsx | 11 - .../js/shared/components/ol/ol-table.tsx | 42 ++- .../js/shared/components/ol/ol-tag.tsx | 72 ++++- .../components/ol/ol-toast-container.tsx | 6 +- .../js/shared/components/ol/ol-toast.tsx | 11 +- .../js/shared/components/ol/ol-tooltip.tsx | 117 +++++++- .../frontend/js/shared/components/select.tsx | 6 +- .../frontend/js/shared/components/table.tsx | 43 --- .../{ol/ol-tag-icon.tsx => tag-icon.tsx} | 2 +- .../web/frontend/js/shared/components/tag.tsx | 74 ----- .../frontend/js/shared/components/tooltip.tsx | 118 -------- .../components/full-project-search-button.tsx | 2 +- .../js/components/full-project-search-ui.tsx | 6 +- .../shared/components/notification.test.tsx | 2 +- 128 files changed, 1712 insertions(+), 1661 deletions(-) delete mode 100644 services/web/frontend/js/shared/components/badge/badge.tsx delete mode 100644 services/web/frontend/js/shared/components/button/button.tsx delete mode 100644 services/web/frontend/js/shared/components/button/icon-button.tsx rename services/web/frontend/js/shared/components/{ol/ol-dropdown-menu-item.tsx => dropdown/dropdown-menu-item.tsx} (81%) delete mode 100644 services/web/frontend/js/shared/components/form/form-control.tsx delete mode 100644 services/web/frontend/js/shared/components/form/form-feedback.tsx delete mode 100644 services/web/frontend/js/shared/components/form/form-group.tsx delete mode 100644 services/web/frontend/js/shared/components/form/form-text.tsx delete mode 100644 services/web/frontend/js/shared/components/ol/ol-notification.tsx delete mode 100644 services/web/frontend/js/shared/components/table.tsx rename services/web/frontend/js/shared/components/{ol/ol-tag-icon.tsx => tag-icon.tsx} (72%) delete mode 100644 services/web/frontend/js/shared/components/tag.tsx delete mode 100644 services/web/frontend/js/shared/components/tooltip.tsx diff --git a/services/web/frontend/js/features/chat/components/chat-fallback-error.tsx b/services/web/frontend/js/features/chat/components/chat-fallback-error.tsx index 8dd18824e1..6668ed20fa 100644 --- a/services/web/frontend/js/features/chat/components/chat-fallback-error.tsx +++ b/services/web/frontend/js/features/chat/components/chat-fallback-error.tsx @@ -1,5 +1,5 @@ import { useTranslation } from 'react-i18next' -import OLNotification from '@/shared/components/ol/ol-notification' +import Notification from '@/shared/components/notification' import OLButton from '@/shared/components/ol/ol-button' import RailPanelHeader from '@/features/ide-react/components/rail/rail-panel-header' @@ -16,7 +16,9 @@ function ChatFallbackError({ reconnect }: ChatFallbackErrorProps) {
-
+
{t('unlink_commons_sso_lose_licence')}
} {!hasPassword &&{t('unlink_commons_sso_no_login')}
} {isError && ( -{t('this_project_already_has_maximum_collaborators')}
-- {t( - 'please_ask_the_project_owner_to_upgrade_more_collaborators' - )} -
-{t('this_project_already_has_maximum_collaborators')}
++ {t( + 'please_ask_the_project_owner_to_upgrade_more_collaborators' + )} +
+{t('project_ownership_transfer_confirmation_2')}
{error && ( -