diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index b701ccd2..04adc79f 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -11,7 +11,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v6 with: - node-version: '20' + node-version: '25.7.0' - name: Install dependencies run: npm ci - name: Run prettier @@ -25,7 +25,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v6 with: - node-version: '20' + node-version: '25.7.0' - name: Install dependencies run: npm ci - name: Run eslint @@ -40,7 +40,7 @@ jobs: # - name: Set up Node.js # uses: actions/setup-node@v6 # with: - # node-version: '20' + # node-version: '25.7.0' # - name: Install dependencies # run: npm ci # - name: Run unit tests @@ -52,6 +52,10 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v6 + - name: Set up Node.js + uses: actions/setup-node@v6 + with: + node-version: '25.7.0' - name: Install dependencies run: npm ci - name: Execute API tests diff --git a/.nvmrc b/.nvmrc index 2bd5a0a9..82a97dd3 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -22 +25.7.0 diff --git a/Dockerfile b/Dockerfile index 009363db..5e7dc1fd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:22-alpine AS base +FROM node:25.7.0-alpine AS base # Install dependencies only when needed FROM base AS deps diff --git a/app/components/icons.tsx b/app/components/icons.tsx index 6ecfa719..fcfc71da 100644 --- a/app/components/icons.tsx +++ b/app/components/icons.tsx @@ -55,6 +55,14 @@ export const CyborgTestIcon: FC = ({ size = 40, width, height, ... ); }; +export const SlackIcon: FC = ({ size = 40, width, height, ...props }) => { + return ( + + + + ); +}; + export const TelegramIcon: FC = ({ size = 40, width, height, ...props }) => { return ( diff --git a/app/lib/storage/fs.ts b/app/lib/storage/fs.ts index c957b7e4..3f552258 100644 --- a/app/lib/storage/fs.ts +++ b/app/lib/storage/fs.ts @@ -219,19 +219,28 @@ export async function readReports(input?: ReadReportsInput): Promise !entry.isDirectory() && entry.name === 'index.html' && !(entry as any).path.endsWith('trace')) - .filter((entry) => (input?.ids ? input.ids.some((id) => (entry as any).path.includes(id)) : entry)) - .filter((entry) => (input?.project ? (entry as any).path.includes(input.project) : entry)); + const reportEntries = entries.filter((entry) => { + const entryPath = (entry as any).path ?? (entry as any).parentPath; + return ( + !entry.isDirectory() && + entry.name === 'index.html' && + entryPath != null && + !entryPath.endsWith('trace') && + (input?.ids ? input.ids.some((id: string) => entryPath.includes(id)) : true) && + (input?.project ? entryPath.includes(input.project) : true) + ); + }); const stats = await processBatch( {}, reportEntries, 20, async (file) => { - const stat = await fs.stat((file as any).path); + const filePath = (file as any).path ?? (file as any).parentPath; + + const stat = await fs.stat(filePath); - return Object.assign(stat, { filePath: (file as any).path, createdAt: stat.birthtime }); + return Object.assign(stat, { filePath, createdAt: stat.birthtime }); }, ); diff --git a/package-lock.json b/package-lock.json index 3d1ab135..0c61bfe9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "playwright-reports-server", - "version": "5.7.4", + "version": "5.8.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "playwright-reports-server", - "version": "5.7.4", + "version": "5.8.0", "dependencies": { "@heroui/link": "2.2.12", "@heroui/navbar": "2.2.13", @@ -73,7 +73,7 @@ "typescript": "5.2.2" }, "engines": { - "node": ">=22.0.0" + "node": ">=22" } }, "node_modules/@alloc/quick-lru": { @@ -13565,7 +13565,6 @@ "version": "2.3.2", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", - "dev": true, "hasInstallScript": true, "license": "MIT", "optional": true, diff --git a/package.json b/package.json index c272d16a..25a5d7f5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "playwright-reports-server", - "version": "5.7.4", + "version": "5.8.0", "description": "Playwright Reports Server: Can be used to accept blobs, merge them, store and view Playwright reports", "scripts": { "build": "next build", @@ -78,6 +78,6 @@ "typescript": "5.2.2" }, "engines": { - "node": ">=22.0.0" + "node": ">=22" } }