Github Sync: fix for 6.3.0

This commit is contained in:
yu-i-i
2026-09-27 18:11:27 +02:00
parent 404623dc25
commit ccc1c57ccd
12 changed files with 32 additions and 32 deletions
@@ -12,7 +12,7 @@ import {
OLModalHeader,
OLModalTitle,
} from '@/shared/components/ol/ol-modal'
import OLNotification from '@/shared/components/ol/ol-notification'
import Notification from '@/shared/components/notification'
import GithubLogo from '@/shared/svgs/github-logo'
export const GitHubSyncWidget = function GitHubSyncWidget() {
@@ -89,14 +89,14 @@ export const GitHubSyncWidget = function GitHubSyncWidget() {
</p>
{isErrorConnCheck && (
<OLNotification
<Notification
type="error"
content={t('github_sync_error')}
/>
)}
{isErrorUnlink && (
<OLNotification
<Notification
type="error"
content={t('generic_something_went_wrong')}
/>
@@ -1,12 +1,12 @@
import React from 'react'
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 ImportFromGitHubMenu({ onClick }: { onClick: (e: React.MouseEvent) => void }) {
const { t } = useTranslation()
return (
<DropdownItem onClick={onClick}>
<OLDropdownItem onClick={onClick}>
{t('import_from_github')}
</DropdownItem>
</OLDropdownItem>
)
}
}
@@ -16,7 +16,7 @@ import {
} from '@/shared/components/ol/ol-modal'
import OLButton from '@/shared/components/ol/ol-button'
import OLSpinner from '@/shared/components/ol/ol-spinner'
import OLNotification from '@/shared/components/ol/ol-notification'
import Notification from '@/shared/components/notification'
type GitSyncRepo = {
name: string
@@ -100,7 +100,7 @@ function ImportFromGitHubModalContent({ handleHide }: { handleHide: () => void }
{isError && (
<div className="notification-list">
<OLNotification
<Notification
type="error"
content={t('something_went_wrong_server')}
/>
@@ -169,7 +169,7 @@ function ImportFromGitHubModalContent({ handleHide }: { handleHide: () => void }
{isErrorImport && (
<div className="notification-list">
<OLNotification
<Notification
type="error"
content={t('something_went_wrong_server')}
/>
@@ -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,
@@ -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'
@@ -51,12 +51,12 @@ const GitSyncUnlinkModal = ({
<hr />
{!error ? (
<OLNotification
<Notification
type="warning"
content={t('unlink_the_project_from_the_current_github_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('github_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_github')}</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'
@@ -110,7 +110,7 @@ const GitSyncMergeOverviewModal = ({
<hr />
{data.diverged && (
<OLNotification
<Notification
type="warning"
content={t('github_repository_diverged')}
/>
@@ -190,7 +190,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,
@@ -17,7 +17,7 @@ const GitSyncNeedPermissionModal = ({ projectSyncState, handleHide }: GitSyncCon
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'
@@ -35,13 +35,13 @@ const GitSyncUnlinkUnavailableModal = ({
return (
<>
<OLModalBody>
<OLNotification
<Notification
type="error"
content={t('github_sync_repository_not_found_description')}
/>
{error && (
<OLNotification
<Notification
type="error"
content={
error.info?.statusCode === 403 ? (