diff --git a/changelog.md b/changelog.md index f805052c2..daf62bc2c 100644 --- a/changelog.md +++ b/changelog.md @@ -33,6 +33,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * Work with [githubator-plugin](https://github.com/ditrit/githubator-plugin/tree/0.3.0) version 0.3.0. * Improve performance on git add. * Replace OIDC authentication by Leto-Modelizer-Api, see [this issue](https://github.com/ditrit/leto-modelizer/issues/425). +* Separating git-related functions into a dedicated composable. ### Fixed diff --git a/cypress/e2e/RoundTrips/TextEditor.feature b/cypress/e2e/RoundTrips/TextEditor.feature index f63e41ea2..98ffa0a72 100644 --- a/cypress/e2e/RoundTrips/TextEditor.feature +++ b/cypress/e2e/RoundTrips/TextEditor.feature @@ -627,6 +627,7 @@ Feature: Test roundtrip of the application: text editor When I set on '[data-cy="rename-file-form"] [data-cy="name-input"]' text 'infra-rename' And I click on '[data-cy="rename-file-form"] [data-cy="submit-button"]' + And I wait 2 seconds Then I expect 'positive' toast to appear with text 'Folder is renamed.' And I expect '[data-cy="file-explorer"] [data-cy="folder_infra-rename"]' exists And I expect '[data-cy="file-explorer"] [data-cy="folder_infra"]' not exists diff --git a/src/components/FileExplorer.vue b/src/components/FileExplorer.vue index dedc09d29..e776d9f12 100644 --- a/src/components/FileExplorer.vue +++ b/src/components/FileExplorer.vue @@ -66,7 +66,8 @@ import GitEvent from 'src/composables/events/GitEvent'; import FileExplorerActionButton from 'src/components/FileExplorerActionButton.vue'; import FileName from 'src/components/FileName.vue'; import { getTree, updateFileInformation } from 'src/composables/FileExplorer'; -import { getProjectFiles, getStatus } from 'src/composables/Project'; +import { getProjectFiles } from 'src/composables/Project'; +import { getStatus } from 'src/composables/Git'; import { FileInformation } from 'leto-modelizer-plugin-core'; import FileStatus from 'src/models/git/FileStatus'; import { useRoute } from 'vue-router'; diff --git a/src/components/NavigationBar.vue b/src/components/NavigationBar.vue index 7bc7e61a7..0e8209176 100644 --- a/src/components/NavigationBar.vue +++ b/src/components/NavigationBar.vue @@ -69,10 +69,8 @@ import { useI18n } from 'vue-i18n'; import ModelizerSettingsMenu from 'components/menu/ModelizerSettingsMenu.vue'; import FileEvent from 'src/composables/events/FileEvent'; import { Notify } from 'quasar'; -import { - getProjectById, - gitGlobalUpload, -} from 'src/composables/Project'; +import { getProjectById } from 'src/composables/Project'; +import { gitGlobalUpload } from 'src/composables/Git'; import GitEvent from 'src/composables/events/GitEvent'; import { useRoute, useRouter } from 'vue-router'; diff --git a/src/components/card/GitBranchCard.vue b/src/components/card/GitBranchCard.vue index 1c47c7974..50b7693ff 100644 --- a/src/components/card/GitBranchCard.vue +++ b/src/components/card/GitBranchCard.vue @@ -19,7 +19,7 @@