chore(web): rename /memory to /memories

This commit is contained in:
Ben Beckford
2026-07-01 21:12:49 -07:00
parent d305287ef9
commit 7f79ad9a2a
8 changed files with 14 additions and 4 deletions
+10
View File
@@ -62,4 +62,14 @@ export const setupMemoryMockApiRoutes = async (
await route.fallback();
});
await context.route('**/api/memories/statistics*', async (route) => {
return route.fulfill({
status: 200,
contentType: 'application/json',
json: {
total: memories.length,
},
});
});
};
+3 -3
View File
@@ -2,7 +2,7 @@ import type { AssetResponseDto } from '@immich/sdk';
import { expect, Page } from '@playwright/test';
function getAssetIdFromUrl(url: URL): string | null {
const pathMatch = url.pathname.match(/\/memory\/photos\/([^/]+)/);
const pathMatch = url.pathname.match(/\/memories\/photos\/([^/]+)/);
if (pathMatch) {
return pathMatch[1];
}
@@ -20,12 +20,12 @@ export const memoryViewerUtils = {
},
async openMemoryPage(page: Page) {
await page.goto('/memory');
await page.goto('/memories');
await this.waitForMemoryLoad(page);
},
async openMemoryPageWithAsset(page: Page, assetId: string) {
await page.goto(`/memory?id=${assetId}`);
await page.goto(`/memories?id=${assetId}`);
await this.waitForMemoryLoad(page);
},
};
+1 -1
View File
@@ -87,7 +87,7 @@ export const Route = {
'/map' + (point ? `#${point.zoom}/${point.lat}/${point.lng}` : ''),
// memories
memories: (params?: { id?: string }) => '/memory' + asQueryString(params),
memories: (params?: { id?: string }) => '/memories' + asQueryString(params),
// partners
viewPartner: ({ id }: { id: string }) => `/partners/${id}`,