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
@@ -1,5 +1,5 @@
import { useTranslation, Trans } from 'react-i18next'
import OLNotification from '@/shared/components/ol/ol-notification'
import Notification from '@/shared/components/notification'
import {
OLModalBody,
OLModalFooter,
@@ -7,7 +7,7 @@ import {
import OLButton from '@/shared/components/ol/ol-button'
import { ProjectSyncState } from '../../types/git-sync-types'
type GitSyncNeedPermissionModalProps = {
type GitSyncCannotExportModalProps = {
projectSyncState: ProjectSyncState
handleHide: () => void
}
@@ -17,7 +17,7 @@ const GitSyncCannotExportModal = ({ projectSyncState, handleHide }: GitSyncCanno
return (
<>
<OLModalBody>
<OLNotification
<Notification
type="warning"
content={(
<Trans
@@ -3,7 +3,7 @@ import useAsync from '@/shared/hooks/use-async'
import { deleteJSON } from '@/infrastructure/fetch-json'
import { OLModalBody, OLModalFooter } from '@/shared/components/ol/ol-modal'
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 { ProjectSyncState, GitSyncModalStatus } from '../../types/git-sync-types'
import getMeta from '@/utils/meta'
@@ -20,7 +20,7 @@ const GitSyncUnlinkModal = ({
setModalStatus,
projectSyncState,
projectId,
}: GitSyncInitModalProps) => {
}: GitSyncUnlinkModalProps) => {
const { t } = useTranslation()
const {
@@ -55,12 +55,12 @@ const GitSyncUnlinkModal = ({
<hr />
{!error ? (
<OLNotification
<Notification
type="warning"
content={t('unlink_the_project_from_the_current_gitlab_repo')}
/>
) : (
<OLNotification
<Notification
type="error"
content={
error.info?.statusCode === 403 ? (
@@ -5,7 +5,7 @@ import {
OLModalFooter,
} from '@/shared/components/ol/ol-modal'
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'
@@ -22,7 +22,7 @@ const GitSyncConflictModal = ({ projectSyncState, handleHide, setModalStatus }:
return (
<>
<OLModalBody>
<OLNotification
<Notification
type="warning"
content={t('gitlab_merge_failed_error', { appName })}
/>
@@ -10,7 +10,7 @@ import {
OLModalBody,
OLModalFooter,
} 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 OLForm from '@/shared/components/ol/ol-form'
import OLFormGroup from '@/shared/components/ol/ol-form-group'
@@ -89,14 +89,14 @@ const GitSyncExportModal = ({
<p>{t('project_not_linked_to_gitlab')}</p>
{error && (
<OLNotification
<Notification
type="error"
content={error}
/>
)}
{errorUserAndOrgs && (
<OLNotification
<Notification
type="error"
content={t('something_went_wrong_server')}
/>
@@ -4,7 +4,7 @@ import {
OLModalFooter,
} from '@/shared/components/ol/ol-modal'
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'
type GitSyncLoadingModalProps = {
@@ -25,7 +25,7 @@ const GitSyncLoadingModal = ({ handleHide, setModalStatus, errorMessage }: GitSy
</OLModalBody>
{errorMessage && (
<OLNotification
<Notification
type="error"
content={errorMessage}
/>
@@ -9,7 +9,7 @@ import {
OLModalFooter,
} from '@/shared/components/ol/ol-modal'
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 { useReferencesContext } from '@/features/ide-react/context/references-context'
@@ -108,7 +108,7 @@ const GitSyncMergeModal = ({
</OLModalBody>
{error && (
<OLNotification
<Notification
type="error"
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 OLButton from '@/shared/components/ol/ol-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 { ProjectSyncState, GitSyncModalStatus } from '../../types/git-sync-types'
import getMeta from '@/utils/meta'
@@ -114,7 +114,7 @@ const GitSyncMergeOverviewModal = ({
<hr />
{data.diverged && (
<OLNotification
<Notification
type="warning"
content={t('gitlab_repository_diverged')}
/>
@@ -194,7 +194,7 @@ const GitSyncMergeOverviewModal = ({
)}
{error && (
<OLNotification
<Notification
type="error"
content={t('generic_something_went_wrong')}
/>
@@ -1,5 +1,5 @@
import { useTranslation, Trans } from 'react-i18next'
import OLNotification from '@/shared/components/ol/ol-notification'
import Notification from '@/shared/components/notification'
import {
OLModalBody,
OLModalFooter,
@@ -13,14 +13,14 @@ type GitSyncNeedPermissionModalProps = {
handleHide: () => void
}
const GitSyncNeedPermissionModal = ({ projectSyncState, handleHide }: GitSyncConflictModalProps) => {
const GitSyncNeedPermissionModal = ({ projectSyncState, handleHide }: GitSyncNeedPermissionModalProps) => {
const { t } = useTranslation()
let gitlabUrl = getMeta('ol-ExposedSettings').gitlabUrl || ''
gitlabUrl = gitlabUrl.endsWith('/') ? gitlabUrl.slice(0, -1) : gitlabUrl
return (
<>
<OLModalBody>
<OLNotification
<Notification
type="warning"
content={(
<Trans
@@ -3,7 +3,7 @@ import useAsync from '@/shared/hooks/use-async'
import { deleteJSON } from '@/infrastructure/fetch-json'
import { OLModalBody, OLModalFooter } from '@/shared/components/ol/ol-modal'
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 { GitSyncModalStatus } from '../../types/git-sync-types'
@@ -17,7 +17,7 @@ const GitSyncUnlinkUnavailableModal = ({
handleHide,
setModalStatus,
projectId,
}: GitSyncInitModalProps) => {
}: GitSyncUnlinkUnavailableModalProps) => {
const { t } = useTranslation()
const {
@@ -35,13 +35,13 @@ const GitSyncUnlinkUnavailableModal = ({
return (
<>
<OLModalBody>
<OLNotification
<Notification
type="error"
content={t('gitlab_sync_repository_not_found_description')}
/>
{error && (
<OLNotification
<Notification
type="error"
content={
error.info?.statusCode === 403 ? (