Skip to content

Commit b335d35

Browse files
committed
chore: resolve conflicts
1 parent c405900 commit b335d35

File tree

14 files changed

+1252
-3120
lines changed

14 files changed

+1252
-3120
lines changed

src/Resources/app/administration/package-lock.json

Lines changed: 1207 additions & 1667 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Resources/app/administration/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,13 @@
1212
"format": "prettier --check \"src/**/*.{js,ts}\" --config ../../../../.prettierrc.json --cache",
1313
"format:fix": "prettier --write \"src/**/*.{js,ts}\" --config ../../../../.prettierrc.json --cache"
1414
},
15+
"dependencies": {
16+
"@shopware-ag/meteor-tokens": "1.3.0"
17+
},
1518
"devDependencies": {
1619
"@eslint/js": "^9.18.0",
1720
"@shopware-ag/eslint-config-base": "^2.0.0",
18-
"@shopware-ag/stylelint-plugin-meteor": "^1.1.0",
21+
"@shopware-ag/stylelint-plugin-meteor": "^4.0.0",
1922
"@types/node": "^22.10.10",
2023
"@typescript-eslint/eslint-plugin": "^7.9.0",
2124
"@typescript-eslint/parser": "^7.9.0",
@@ -28,6 +31,7 @@
2831
"eslint-plugin-file-progress": "^1.4.0",
2932
"eslint-plugin-filename-rules": "^1.3.1",
3033
"eslint-plugin-html": "^8.1.1",
34+
"eslint-plugin-import": "2.31.0",
3135
"eslint-plugin-inclusive-language": "^2.2.1",
3236
"eslint-plugin-jest": "^28.5.0",
3337
"vue-eslint-parser": "9.4.3",

src/Resources/app/administration/src/core/service/api/swag-migration.api.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const MIGRATION_API_SERVICE = 'migrationApiService';
2828
export const MIGRATION_STEP = {
2929
IDLE: 'idle',
3030
FETCHING: 'fetching',
31-
ERROR_RESOLUTION: 'error-resolution',
31+
ERROR_RESOLUTION: 'apply-fixes',
3232
WRITING: 'writing',
3333
MEDIA_PROCESSING: 'media-processing',
3434
CLEANUP: 'cleanup',
@@ -248,7 +248,7 @@ export default class MigrationApiService extends ApiService {
248248
});
249249
}
250250

251-
async resumeMigrationAfterFixes(): Promise<ApiResponse<unknown>> {
251+
async continueAfterErrorResolution(): Promise<ApiResponse<unknown>> {
252252
// @ts-ignore
253253
const headers = this.getBasicHeaders();
254254

src/Resources/app/administration/src/module/swag-migration/component/loading-screen/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@
44
*/
55
Shopware.Component.register('swag-migration-loading-screen', () => import('./swag-migration-loading-screen'));
66
Shopware.Component.register('swag-migration-result-screen', () => import('./swag-migration-result-screen'));
7-
Shopware.Component.register('swag-migration-apply-fixes', () => import('./swag-migration-apply-fixes'));

src/Resources/app/administration/src/module/swag-migration/component/loading-screen/swag-migration-apply-fixes/index.ts

Lines changed: 0 additions & 20 deletions
This file was deleted.

src/Resources/app/administration/src/module/swag-migration/component/loading-screen/swag-migration-apply-fixes/swag-migration-apply-fixes.html.twig

Lines changed: 0 additions & 32 deletions
This file was deleted.

src/Resources/app/administration/src/module/swag-migration/component/swag-migration-error-resolution/swag-migration-error-resolution-modal/swag-migration-error-resolution-modal.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
&-header {
7373
// fixed padding needed for alignment with left side (top border)
7474
/* stylelint-disable-next-line meteor/prefer-sizing-token */
75-
padding: 1.1rem var(--scale-size-24);
75+
padding: 1.1rem var(--scale-size-24);fixedpaddingneededforalignmentwithleftsidepadding
7676
border-bottom: 1px solid var(--color-border-primary-default);
7777

7878

src/Resources/app/administration/src/module/swag-migration/component/swag-migration-error-resolution/swag-migration-error-resolution-step/index.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export interface SwagMigrationErrorResolutionStepData {
2929
tableTotal: number;
3030
openContinueModal: boolean;
3131
openErrorResolutionModal: boolean;
32+
continueLoading: boolean;
3233
migrationStore: MigrationStore;
3334
migrationApiService: MigrationApiService;
3435
}
@@ -56,6 +57,7 @@ export default Shopware.Component.wrapComponentConfig({
5657
tableTotal: 145,
5758
openContinueModal: false,
5859
openErrorResolutionModal: false,
60+
continueLoading: false,
5961
migrationStore: Shopware.Store.get(MIGRATION_STORE_ID),
6062
migrationApiService: Shopware.Service(MIGRATION_API_SERVICE),
6163
};
@@ -163,6 +165,22 @@ export default Shopware.Component.wrapComponentConfig({
163165
},
164166

165167
methods: {
168+
async onContinueMigration() {
169+
this.continueLoading = true;
170+
171+
return this.migrationApiService
172+
.continueAfterErrorResolution()
173+
.catch(() => {
174+
this.createNotificationError({
175+
message: this.$tc('swag-migration.index.error-resolution.errors.continueMigrationFailed'),
176+
});
177+
})
178+
.finally(() => {
179+
this.continueLoading = false;
180+
this.openContinueModal = false;
181+
});
182+
},
183+
166184
async onDownloadLogs() {
167185
// TODO: fetch latest !?
168186
const runId = this.migrationStore.latestRun?.id;

src/Resources/app/administration/src/module/swag-migration/component/swag-migration-error-resolution/swag-migration-error-resolution-step/swag-migration-error-resolution-step.html.twig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
class="swag-migration-error-resolution-step__continue-modal-confirm"
3131
variant="critical"
3232
size="small"
33+
:is-loading="continueLoading"
34+
@click="onContinueMigration"
3335
>
3436
{{ $tc('swag-migration.index.error-resolution.step.header.continue') }}
3537
</mt-button>

src/Resources/app/administration/src/module/swag-migration/snippet/de.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,6 @@
377377
"flowChart": {
378378
"premapping": "Prüfen",
379379
"fetchData": "Lesen",
380-
"applyFixes": "Fehler beheben",
381380
"writeData": "Schreiben",
382381
"processMedia": "Download",
383382
"cleanup": "Aufräumen",
@@ -423,10 +422,6 @@
423422
"caption": "Die Medien werden weiter im Hintergrund heruntergeladen. Große Dateien können etwas Zeit in Anspruch nehmen.",
424423
"logSummary": "Logbuch",
425424
"historyHint": "Du kannst diese Informationen jederzeit in der Migrations-Historie einsehen. Es kann sein, dass zu einem späteren Zeitpunkt noch mehr Log-Nachrichten hinzukommen, weil der Mediendownload noch im Hintergrund läuft."
426-
},
427-
"applyFixes": {
428-
"title": "Fehler beheben",
429-
"resumeButton": "Migration fortsetzen"
430425
}
431426
},
432427
"confirmAbortDialog": {

0 commit comments

Comments
 (0)