GitLab Synchronization: Fixed v6.3.0 rebase related errors

This commit is contained in:
Florian Porrmann
2026-10-09 16:50:10 +02:00
parent fcb3d06f24
commit 565b793055
12 changed files with 35 additions and 35 deletions
@@ -12,7 +12,7 @@ import {
OLModalHeader, OLModalHeader,
OLModalTitle, OLModalTitle,
} from '@/shared/components/ol/ol-modal' } from '@/shared/components/ol/ol-modal'
import OLNotification from '@/shared/components/ol/ol-notification' import Notification from '@/shared/components/notification'
import GitLabLogo from '@/shared/svgs/gitlab-logo' import GitLabLogo from '@/shared/svgs/gitlab-logo'
export const GitLabSyncWidget = function GitLabSyncWidget() { export const GitLabSyncWidget = function GitLabSyncWidget() {
@@ -89,14 +89,14 @@ export const GitLabSyncWidget = function GitLabSyncWidget() {
</p> </p>
{isErrorConnCheck && ( {isErrorConnCheck && (
<OLNotification <Notification
type="error" type="error"
content={t('gitlab_sync_error')} content={t('gitlab_sync_error')}
/> />
)} )}
{isErrorUnlink && ( {isErrorUnlink && (
<OLNotification <Notification
type="error" type="error"
content={t('generic_something_went_wrong')} content={t('generic_something_went_wrong')}
/> />
@@ -1,12 +1,12 @@
import React from 'react' import React from 'react'
import { useTranslation } from 'react-i18next' import { useTranslation } from 'react-i18next'
import { DropdownItem } from '@/shared/components/dropdown/dropdown-menu' import { OLDropdownItem } from '@/shared/components/ol/ol-dropdown-menu'
export default function ImportFromGitLabMenu({ onClick }: { onClick: (e: React.MouseEvent) => void }) { export default function ImportFromGitLabMenu({ onClick }: { onClick: (e: React.MouseEvent) => void }) {
const { t } = useTranslation() const { t } = useTranslation()
return ( return (
<DropdownItem onClick={onClick}> <OLDropdownItem onClick={onClick}>
{t('import_from_gitlab')} {t('import_from_gitlab')}
</DropdownItem> </OLDropdownItem>
) )
} }
@@ -16,7 +16,7 @@ import {
} from '@/shared/components/ol/ol-modal' } from '@/shared/components/ol/ol-modal'
import OLButton from '@/shared/components/ol/ol-button' import OLButton from '@/shared/components/ol/ol-button'
import OLSpinner from '@/shared/components/ol/ol-spinner' import OLSpinner from '@/shared/components/ol/ol-spinner'
import OLNotification from '@/shared/components/ol/ol-notification' import Notification from '@/shared/components/notification'
type GitSyncRepo = { type GitSyncRepo = {
name: string name: string
@@ -103,7 +103,7 @@ function ImportFromGitLabModalContent({ handleHide }: { handleHide: () => void }
{isError && ( {isError && (
<div className="notification-list"> <div className="notification-list">
<OLNotification <Notification
type="error" type="error"
content={t('something_went_wrong_server')} content={t('something_went_wrong_server')}
/> />
@@ -172,7 +172,7 @@ function ImportFromGitLabModalContent({ handleHide }: { handleHide: () => void }
{isErrorImport && ( {isErrorImport && (
<div className="notification-list"> <div className="notification-list">
<OLNotification <Notification
type="error" type="error"
content={t('something_went_wrong_server')} content={t('something_went_wrong_server')}
/> />
@@ -1,5 +1,5 @@
import { useTranslation, Trans } from 'react-i18next' import { useTranslation, Trans } from 'react-i18next'
import OLNotification from '@/shared/components/ol/ol-notification' import Notification from '@/shared/components/notification'
import { import {
OLModalBody, OLModalBody,
OLModalFooter, OLModalFooter,
@@ -7,7 +7,7 @@ import {
import OLButton from '@/shared/components/ol/ol-button' import OLButton from '@/shared/components/ol/ol-button'
import { ProjectSyncState } from '../../types/git-sync-types' import { ProjectSyncState } from '../../types/git-sync-types'
type GitSyncNeedPermissionModalProps = { type GitSyncCannotExportModalProps = {
projectSyncState: ProjectSyncState projectSyncState: ProjectSyncState
handleHide: () => void handleHide: () => void
} }
@@ -17,7 +17,7 @@ const GitSyncCannotExportModal = ({ projectSyncState, handleHide }: GitSyncCanno
return ( return (
<> <>
<OLModalBody> <OLModalBody>
<OLNotification <Notification
type="warning" type="warning"
content={( content={(
<Trans <Trans
@@ -3,7 +3,7 @@ import useAsync from '@/shared/hooks/use-async'
import { deleteJSON } from '@/infrastructure/fetch-json' import { deleteJSON } from '@/infrastructure/fetch-json'
import { OLModalBody, OLModalFooter } from '@/shared/components/ol/ol-modal' import { OLModalBody, OLModalFooter } from '@/shared/components/ol/ol-modal'
import OLButton from '@/shared/components/ol/ol-button' import OLButton from '@/shared/components/ol/ol-button'
import OLNotification from '@/shared/components/ol/ol-notification' import Notification from '@/shared/components/notification'
import { debugConsole } from '@/utils/debugging' import { debugConsole } from '@/utils/debugging'
import { ProjectSyncState, GitSyncModalStatus } from '../../types/git-sync-types' import { ProjectSyncState, GitSyncModalStatus } from '../../types/git-sync-types'
import getMeta from '@/utils/meta' import getMeta from '@/utils/meta'
@@ -20,7 +20,7 @@ const GitSyncUnlinkModal = ({
setModalStatus, setModalStatus,
projectSyncState, projectSyncState,
projectId, projectId,
}: GitSyncInitModalProps) => { }: GitSyncUnlinkModalProps) => {
const { t } = useTranslation() const { t } = useTranslation()
const { const {
@@ -55,12 +55,12 @@ const GitSyncUnlinkModal = ({
<hr /> <hr />
{!error ? ( {!error ? (
<OLNotification <Notification
type="warning" type="warning"
content={t('unlink_the_project_from_the_current_gitlab_repo')} content={t('unlink_the_project_from_the_current_gitlab_repo')}
/> />
) : ( ) : (
<OLNotification <Notification
type="error" type="error"
content={ content={
error.info?.statusCode === 403 ? ( error.info?.statusCode === 403 ? (
@@ -5,7 +5,7 @@ import {
OLModalFooter, OLModalFooter,
} from '@/shared/components/ol/ol-modal' } from '@/shared/components/ol/ol-modal'
import OLButton from '@/shared/components/ol/ol-button' import OLButton from '@/shared/components/ol/ol-button'
import OLNotification from '@/shared/components/ol/ol-notification' import Notification from '@/shared/components/notification'
import { ProjectSyncState, GitSyncModalStatus } from '../../types/git-sync-types' import { ProjectSyncState, GitSyncModalStatus } from '../../types/git-sync-types'
@@ -22,7 +22,7 @@ const GitSyncConflictModal = ({ projectSyncState, handleHide, setModalStatus }:
return ( return (
<> <>
<OLModalBody> <OLModalBody>
<OLNotification <Notification
type="warning" type="warning"
content={t('gitlab_merge_failed_error', { appName })} content={t('gitlab_merge_failed_error', { appName })}
/> />
@@ -10,7 +10,7 @@ import {
OLModalBody, OLModalBody,
OLModalFooter, OLModalFooter,
} from '@/shared/components/ol/ol-modal' } from '@/shared/components/ol/ol-modal'
import OLNotification from '@/shared/components/ol/ol-notification' import Notification from '@/shared/components/notification'
import OLButton from '@/shared/components/ol/ol-button' import OLButton from '@/shared/components/ol/ol-button'
import OLForm from '@/shared/components/ol/ol-form' import OLForm from '@/shared/components/ol/ol-form'
import OLFormGroup from '@/shared/components/ol/ol-form-group' import OLFormGroup from '@/shared/components/ol/ol-form-group'
@@ -89,14 +89,14 @@ const GitSyncExportModal = ({
<p>{t('project_not_linked_to_gitlab')}</p> <p>{t('project_not_linked_to_gitlab')}</p>
{error && ( {error && (
<OLNotification <Notification
type="error" type="error"
content={error} content={error}
/> />
)} )}
{errorUserAndOrgs && ( {errorUserAndOrgs && (
<OLNotification <Notification
type="error" type="error"
content={t('something_went_wrong_server')} content={t('something_went_wrong_server')}
/> />
@@ -4,7 +4,7 @@ import {
OLModalFooter, OLModalFooter,
} from '@/shared/components/ol/ol-modal' } from '@/shared/components/ol/ol-modal'
import OLButton from '@/shared/components/ol/ol-button' import OLButton from '@/shared/components/ol/ol-button'
import OLNotification from '@/shared/components/ol/ol-notification' import Notification from '@/shared/components/notification'
import { GitSyncModalStatus } from '../../types/git-sync-types' import { GitSyncModalStatus } from '../../types/git-sync-types'
type GitSyncLoadingModalProps = { type GitSyncLoadingModalProps = {
@@ -25,7 +25,7 @@ const GitSyncLoadingModal = ({ handleHide, setModalStatus, errorMessage }: GitSy
</OLModalBody> </OLModalBody>
{errorMessage && ( {errorMessage && (
<OLNotification <Notification
type="error" type="error"
content={errorMessage} content={errorMessage}
/> />
@@ -9,7 +9,7 @@ import {
OLModalFooter, OLModalFooter,
} from '@/shared/components/ol/ol-modal' } from '@/shared/components/ol/ol-modal'
import OLButton from '@/shared/components/ol/ol-button' import OLButton from '@/shared/components/ol/ol-button'
import OLNotification from '@/shared/components/ol/ol-notification' import Notification from '@/shared/components/notification'
import { GitSyncModalStatus, ProjectSyncState } from '../../types/git-sync-types' import { GitSyncModalStatus, ProjectSyncState } from '../../types/git-sync-types'
import { useReferencesContext } from '@/features/ide-react/context/references-context' import { useReferencesContext } from '@/features/ide-react/context/references-context'
@@ -108,7 +108,7 @@ const GitSyncMergeModal = ({
</OLModalBody> </OLModalBody>
{error && ( {error && (
<OLNotification <Notification
type="error" type="error"
content={t('generic_something_went_wrong')} content={t('generic_something_went_wrong')}
/> />
@@ -10,7 +10,7 @@ import OLRow from '@/shared/components/ol/ol-row'
import OLCol from '@/shared/components/ol/ol-col' import OLCol from '@/shared/components/ol/ol-col'
import OLButton from '@/shared/components/ol/ol-button' import OLButton from '@/shared/components/ol/ol-button'
import OLIconButton from '@/shared/components/ol/ol-icon-button' import OLIconButton from '@/shared/components/ol/ol-icon-button'
import OLNotification from '@/shared/components/ol/ol-notification' import Notification from '@/shared/components/notification'
import { debugConsole } from '@/utils/debugging' import { debugConsole } from '@/utils/debugging'
import { ProjectSyncState, GitSyncModalStatus } from '../../types/git-sync-types' import { ProjectSyncState, GitSyncModalStatus } from '../../types/git-sync-types'
import getMeta from '@/utils/meta' import getMeta from '@/utils/meta'
@@ -114,7 +114,7 @@ const GitSyncMergeOverviewModal = ({
<hr /> <hr />
{data.diverged && ( {data.diverged && (
<OLNotification <Notification
type="warning" type="warning"
content={t('gitlab_repository_diverged')} content={t('gitlab_repository_diverged')}
/> />
@@ -194,7 +194,7 @@ const GitSyncMergeOverviewModal = ({
)} )}
{error && ( {error && (
<OLNotification <Notification
type="error" type="error"
content={t('generic_something_went_wrong')} content={t('generic_something_went_wrong')}
/> />
@@ -1,5 +1,5 @@
import { useTranslation, Trans } from 'react-i18next' import { useTranslation, Trans } from 'react-i18next'
import OLNotification from '@/shared/components/ol/ol-notification' import Notification from '@/shared/components/notification'
import { import {
OLModalBody, OLModalBody,
OLModalFooter, OLModalFooter,
@@ -13,14 +13,14 @@ type GitSyncNeedPermissionModalProps = {
handleHide: () => void handleHide: () => void
} }
const GitSyncNeedPermissionModal = ({ projectSyncState, handleHide }: GitSyncConflictModalProps) => { const GitSyncNeedPermissionModal = ({ projectSyncState, handleHide }: GitSyncNeedPermissionModalProps) => {
const { t } = useTranslation() const { t } = useTranslation()
let gitlabUrl = getMeta('ol-ExposedSettings').gitlabUrl || '' let gitlabUrl = getMeta('ol-ExposedSettings').gitlabUrl || ''
gitlabUrl = gitlabUrl.endsWith('/') ? gitlabUrl.slice(0, -1) : gitlabUrl gitlabUrl = gitlabUrl.endsWith('/') ? gitlabUrl.slice(0, -1) : gitlabUrl
return ( return (
<> <>
<OLModalBody> <OLModalBody>
<OLNotification <Notification
type="warning" type="warning"
content={( content={(
<Trans <Trans
@@ -3,7 +3,7 @@ import useAsync from '@/shared/hooks/use-async'
import { deleteJSON } from '@/infrastructure/fetch-json' import { deleteJSON } from '@/infrastructure/fetch-json'
import { OLModalBody, OLModalFooter } from '@/shared/components/ol/ol-modal' import { OLModalBody, OLModalFooter } from '@/shared/components/ol/ol-modal'
import OLButton from '@/shared/components/ol/ol-button' import OLButton from '@/shared/components/ol/ol-button'
import OLNotification from '@/shared/components/ol/ol-notification' import Notification from '@/shared/components/notification'
import { debugConsole } from '@/utils/debugging' import { debugConsole } from '@/utils/debugging'
import { GitSyncModalStatus } from '../../types/git-sync-types' import { GitSyncModalStatus } from '../../types/git-sync-types'
@@ -17,7 +17,7 @@ const GitSyncUnlinkUnavailableModal = ({
handleHide, handleHide,
setModalStatus, setModalStatus,
projectId, projectId,
}: GitSyncInitModalProps) => { }: GitSyncUnlinkUnavailableModalProps) => {
const { t } = useTranslation() const { t } = useTranslation()
const { const {
@@ -35,13 +35,13 @@ const GitSyncUnlinkUnavailableModal = ({
return ( return (
<> <>
<OLModalBody> <OLModalBody>
<OLNotification <Notification
type="error" type="error"
content={t('gitlab_sync_repository_not_found_description')} content={t('gitlab_sync_repository_not_found_description')}
/> />
{error && ( {error && (
<OLNotification <Notification
type="error" type="error"
content={ content={
error.info?.statusCode === 403 ? ( error.info?.statusCode === 403 ? (