Skip to content

Commit d80510a

Browse files
doublegateclaude
andcommitted
chore: Release v1.5.2 - Technical Debt Remediation
Major technical debt remediation release focused on code quality, security, testing, and maintainability improvements. ## Code Quality - Fixed all 25 ESLint warnings (16 unused vars, 9 any types) - Applied Prettier formatting to 63 files - Replaced vulnerable cpx package with copyfiles ## Security - Reduced vulnerabilities from 10 to 2 (80% reduction) - Updated vite to fix moderate CVE - Updated @eslint/json to fix vulnerability ## Refactoring - Extracted network interception from main.ts to src/electron/network/interceptor.ts - main.ts reduced from 810 to 372 lines (54% reduction) - Split DiagnosticsPanel into reusable components: - src/overlay/components/diagnostics/StatusIndicator.tsx - src/overlay/components/diagnostics/TabButton.tsx ## Testing - Added Vitest testing framework with vitest.config.ts - Created 8 passing tests for tryPatchBody function - New scripts: test, test:watch, test:coverage ## CI/CD - Added .github/workflows/ci.yml for PR validation - Runs: Prettier check, ESLint, Build, Tests ## Technical Metrics | Metric | Before | After | Improvement | |---------------------------|--------|-------|-------------| | ESLint Warnings | 25 | 0 | 100% | | Security Vulnerabilities | 10 | 2 | 80% | | Test Coverage | 0% | 8 | New suite | | main.ts Lines | 810 | 372 | 54% | 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 2999275 commit d80510a

73 files changed

Lines changed: 23343 additions & 6870 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintrc.cjs

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
module.exports = {
2-
parser: "@typescript-eslint/parser",
3-
parserOptions: {
4-
ecmaVersion: 2024,
5-
sourceType: "module",
6-
},
7-
env: {
8-
browser: true,
9-
node: true,
10-
},
11-
plugins: ["@typescript-eslint"],
12-
extends: [
13-
"eslint:recommended",
14-
"plugin:@typescript-eslint/recommended",
15-
"prettier",
16-
],
17-
rules: {
18-
"no-console": "off",
19-
},
2+
parser: "@typescript-eslint/parser",
3+
parserOptions: {
4+
ecmaVersion: 2024,
5+
sourceType: "module",
6+
},
7+
env: {
8+
browser: true,
9+
node: true,
10+
},
11+
plugins: ["@typescript-eslint"],
12+
extends: [
13+
"eslint:recommended",
14+
"plugin:@typescript-eslint/recommended",
15+
"prettier",
16+
],
17+
rules: {
18+
"no-console": "off",
19+
},
2020
};

.github/workflows/bump-version.yml

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,49 @@
11
name: Bump Version
22

33
on:
4-
workflow_dispatch:
5-
inputs:
6-
release_type:
7-
description: "Release type"
8-
required: true
9-
default: "patch"
10-
type: choice
11-
options:
12-
- patch
13-
- minor
14-
- major
4+
workflow_dispatch:
5+
inputs:
6+
release_type:
7+
description: "Release type"
8+
required: true
9+
default: "patch"
10+
type: choice
11+
options:
12+
- patch
13+
- minor
14+
- major
1515

1616
permissions:
17-
contents: write
17+
contents: write
1818

1919
jobs:
20-
bump:
21-
runs-on: ubuntu-latest
20+
bump:
21+
runs-on: ubuntu-latest
2222

23-
steps:
24-
- name: 🧾 Checkout repository
25-
uses: actions/checkout@v4
26-
with:
27-
fetch-depth: 0
23+
steps:
24+
- name: 🧾 Checkout repository
25+
uses: actions/checkout@v4
26+
with:
27+
fetch-depth: 0
2828

29-
- name: 🛠️ Setup Bun
30-
uses: oven-sh/setup-bun@v1
29+
- name: 🛠️ Setup Bun
30+
uses: oven-sh/setup-bun@v1
3131

32-
- name: 🔧 Setup Git
33-
run: |
34-
git config user.name "GitHub Actions"
35-
git config user.email "actions@github.com"
32+
- name: 🔧 Setup Git
33+
run: |
34+
git config user.name "GitHub Actions"
35+
git config user.email "actions@github.com"
3636
37-
- name: ➕ Add standard-version
38-
run: bun add -d standard-version
37+
- name: ➕ Add standard-version
38+
run: bun add -d standard-version
3939

40-
- name: 🔼 Bump version without tag
41-
run: |
42-
bunx standard-version --release-as ${{ github.event.inputs.release_type }} --skip.tag --skip.changelog
40+
- name: 🔼 Bump version without tag
41+
run: |
42+
bunx standard-version --release-as ${{ github.event.inputs.release_type }} --skip.tag --skip.changelog
4343
44-
- name: 🚀 Push commit
45-
run: |
46-
git push origin release
44+
- name: 🚀 Push commit
45+
run: |
46+
git push origin release
4747
48-
env:
49-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48+
env:
49+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [master, main]
6+
pull_request:
7+
branches: [master, main]
8+
9+
jobs:
10+
lint-and-build:
11+
runs-on: ubuntu-24.04
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
17+
- name: Setup Bun
18+
uses: oven-sh/setup-bun@v2
19+
20+
- name: Set up Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: "22"
24+
25+
- name: Install dependencies
26+
run: bun install
27+
28+
- name: Check formatting
29+
run: bunx prettier --check .
30+
31+
- name: Run ESLint
32+
run: bun run lint
33+
34+
- name: Build application
35+
run: bun run build
36+
37+
- name: Run tests
38+
run: bun run test

.github/workflows/release.yml

Lines changed: 60 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,79 @@
11
name: Build & Release
22

33
on:
4-
push:
5-
tags:
6-
- "v*"
7-
workflow_dispatch:
4+
push:
5+
tags:
6+
- "v*"
7+
workflow_dispatch:
88

99
permissions:
10-
contents: write
10+
contents: write
1111

1212
jobs:
13-
release:
14-
runs-on: ubuntu-24.04
15-
permissions:
16-
contents: write
13+
release:
14+
runs-on: ubuntu-24.04
15+
permissions:
16+
contents: write
1717

18-
strategy:
19-
matrix:
20-
os: [ubuntu-24.04]
18+
strategy:
19+
matrix:
20+
os: [ubuntu-24.04]
2121

22-
steps:
23-
- name: 🧾 Checkout repository
24-
uses: actions/checkout@v4
22+
steps:
23+
- name: 🧾 Checkout repository
24+
uses: actions/checkout@v4
2525

26-
- name: 🛠️ Setup Bun
27-
uses: oven-sh/setup-bun@v1
26+
- name: 🛠️ Setup Bun
27+
uses: oven-sh/setup-bun@v1
2828

29-
- name: ⚙️ Set up Node.js
30-
uses: actions/setup-node@v4
31-
with:
32-
node-version: "22"
29+
- name: ⚙️ Set up Node.js
30+
uses: actions/setup-node@v4
31+
with:
32+
node-version: "22"
3333

34-
- name: 🔧 Install build dependencies
35-
run: |
36-
sudo apt update
37-
sudo apt install -y build-essential python3 python3-dev
38-
npm install -g node-gyp node-gyp-build
34+
- name: 🔧 Install build dependencies
35+
run: |
36+
sudo apt update
37+
sudo apt install -y build-essential python3 python3-dev
38+
npm install -g node-gyp node-gyp-build
3939
40-
- name: 🧰 Install dependencies
41-
run: bun install
40+
- name: 🧰 Install dependencies
41+
run: bun install
4242

43-
- name: 🔧 Install app dependencies
44-
run: bunx electron-builder install-app-deps
43+
- name: 🔧 Install app dependencies
44+
run: bunx electron-builder install-app-deps
4545

46-
- name: 🔧 Install system dependencies
47-
run: |
48-
sudo apt update
49-
sudo apt install -y libarchive-tools libgtk-3-dev libnss3 libxss1 libasound2-plugins xvfb fakeroot dpkg rpm fakeroot
46+
- name: 🔧 Install system dependencies
47+
run: |
48+
sudo apt update
49+
sudo apt install -y libarchive-tools libgtk-3-dev libnss3 libxss1 libasound2-plugins xvfb fakeroot dpkg rpm fakeroot
5050
51-
- name: Install Wine
52-
run: |
53-
sudo dpkg --add-architecture i386
54-
sudo apt update
55-
sudo apt install -y wine32 wine64
51+
- name: Install Wine
52+
run: |
53+
sudo dpkg --add-architecture i386
54+
sudo apt update
55+
sudo apt install -y wine32 wine64
5656
57-
- name: 🏗️ Build application
58-
run: bun run build
57+
- name: 🏗️ Build application
58+
run: bun run build
5959

60-
- name: 🔨 Build & package with Electron Builder
61-
run: bun run dist
62-
env:
63-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60+
- name: 🔨 Build & package with Electron Builder
61+
run: bun run dist
62+
env:
63+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6464

65-
- name: 📦 Upload release assets to GitHub
66-
uses: softprops/action-gh-release@v2
67-
with:
68-
name: "Release v${{ github.ref_name }}"
69-
tag_name: ${{ github.ref_name }}
70-
draft: true
71-
prerelease: false
72-
files: |
73-
builds/*.AppImage
74-
builds/*.deb
75-
builds/*.rpm
76-
builds/*.zip
77-
builds/*.exe
78-
env:
79-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
65+
- name: 📦 Upload release assets to GitHub
66+
uses: softprops/action-gh-release@v2
67+
with:
68+
name: "Release v${{ github.ref_name }}"
69+
tag_name: ${{ github.ref_name }}
70+
draft: true
71+
prerelease: false
72+
files: |
73+
builds/*.AppImage
74+
builds/*.deb
75+
builds/*.rpm
76+
builds/*.zip
77+
builds/*.exe
78+
env:
79+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)