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 @@ Network Overrides — User Guide - +
@@ -280,7 +72,8 @@

3.1. Popup

Click the extension icon on the toolbar. Contains:

+
Q: I clicked Save Override, but nothing appeared to happen?
+
+ Check the message above the Save button and the notification in the top-right corner. A red + message means the rule was not stored. A yellow notification means the rule was stored but + could not be applied to the active tab; close any competing DevTools/debugger session and + click Retry in that notification. +
+
Q: Turned off overrides but requests are still being modified?
Try refreshing the page. If the issue persists, disable and re-enable the extension. @@ -837,8 +667,8 @@

11. FAQ

Q: APIs are not showing up in Captured APIs?
- Click the Refresh button (↻). The extension retries 5 times over 1.25 - seconds. If still empty: + Click Refresh captured requests. The extension retries automatically for a + short period. If the list is still empty:
  1. Verify the toggle is ON.
  2. Check the Network tab to confirm requests are being sent.
  3. @@ -862,8 +692,9 @@

    11. FAQ

    Yes. Import always writes into the domain that's currently active in the panel, regardless of which domain the file's 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.

    diff --git a/panel.html b/panel.html index 36823fb..38b4bf5 100644 --- a/panel.html +++ b/panel.html @@ -9,8 +9,35 @@

    Network Overrides API

    - - +
    + + +
    @@ -30,107 +57,159 @@

    Network Overrides API