diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 10538d1..dcf7204 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,6 +8,10 @@ on: - develop pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: test: runs-on: ubuntu-latest @@ -30,6 +34,9 @@ jobs: - name: Check code formatting run: npx prettier --check . + - name: Lint TypeScript code + run: npm run lint + - name: Lint commit messages run: | if [ "${{ github.event_name }}" = "pull_request" ]; then @@ -44,7 +51,14 @@ jobs: - name: Run tests with coverage run: npm run ci:test - - name: Install Playwright Chromium + - name: Cache Playwright Chromium + uses: actions/cache@v4 + id: playwright-cache + with: + path: ~/.cache/ms-playwright + key: ${{ runner.os }}-playwright-${{ hashFiles('package-lock.json') }} + + - name: Install Playwright Chromium dependencies run: npx playwright install --with-deps chromium - name: Run Playwright smoke test diff --git a/guide.html b/guide.html index 73d87ca..b09ccb0 100644 --- a/guide.html +++ b/guide.html @@ -3,215 +3,7 @@
Click the extension icon on the toolbar. Contains:
- Click the Refresh button (↻). The extension retries up to 5 times (each - 250ms apart) to load APIs. + Click Refresh captured requests in the header or the refresh action beside + the captured-request filters. The icon spins and is temporarily disabled while the current + API snapshot is loaded. If the list is empty, the extension retries automatically.
-+ Click Open user guide in the header. The complete guide opens in a separate + browser tab, so the popup or DevTools panel remains available. +
+ +APIs are grouped by resource type: XHR, Fetch, JS, CSS, Img, Media, Font, Doc, WS, Manifest, EventSource, TextTrack, Other.
Click a group header to collapse/expand. Collapse state is persisted in storage.
-When a request is overridden, the extension adds these response headers:
x-network-overrides: true<all_urls> — to attach the debugger to any tab.Rule operations now report their result in a notification at the top-right:
++ Validation errors inside the Override editor appear directly above + Save Override. The editor stays open and focuses the field that needs to be + corrected. While persistence is running, the button displays Saving… and + cannot be pressed twice. +
+domain field says it was exported from — but if that
- field doesn't match the current domain, a confirm dialog warns you first, so the mismatch
- isn't silent.
+ field doesn't match the current domain, an import dialog warns you first, so the mismatch
+ isn't silent. If rules already exist, the next dialog provides explicit
+ Append rules and Replace rules choices.