Skip to content

Commit e08c813

Browse files
ndbroadbentclaude
andcommitted
Add knip to pre-commit hooks, adjust UI copy and window height
- Add knip for unused code detection (uses PR fork knip@991) - Increase default window height to 820px - Shorten open source footer copy 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 345c7e6 commit e08c813

File tree

6 files changed

+98
-3
lines changed

6 files changed

+98
-3
lines changed

bun.lock

Lines changed: 83 additions & 0 deletions
Large diffs are not rendered by default.

knip.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"entry": ["src/main.ts", "src/screenshot.ts", "src/analytics.ts", "src/debug.ts"],
3+
"project": ["src/**/*.ts"],
4+
"ignore": ["src/**/*.test.ts", "src/**/*.spec.ts", "src/env.d.ts"],
5+
"ignoreDependencies": ["@tauri-apps/cli", "@vitest/coverage-v8", "@biomejs/biome"],
6+
"ignoreBinaries": ["task"]
7+
}

lefthook.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ pre-commit:
2323
glob: "*.{ts,tsx}"
2424
run: bunx jscpd src/
2525

26+
knip:
27+
glob: "*.{ts,tsx}"
28+
run: bunx knip
29+
2630
file-length:
2731
run: ./scripts/check_file_length.sh {staged_files}
2832

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"@biomejs/biome": "^1.9.4",
1919
"@tauri-apps/cli": "^2.9.6",
2020
"jscpd": "^4.0.5",
21+
"knip": "https://pkg.pr.new/knip@991",
2122
"lefthook": "^1.9.2",
2223
"typescript": "^5.7.2",
2324
"vite": "^7.3.0",

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
{
1616
"title": "ChatToMap - Export iMessage",
1717
"width": 600,
18-
"height": 800,
18+
"height": 820,
1919
"resizable": true,
2020
"minWidth": 400,
2121
"minHeight": 500,

src/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,10 @@ <h2>Something went wrong</h2>
193193
<footer>
194194
<p>Only text is uploaded — no images or videos. Processing happens securely in the cloud.</p>
195195
<p class="open-source-notice">
196-
This app is open source. View the code:
196+
View the source code:
197197
<a href="https://github.com/DocSpring/chat_to_map_desktop" target="_blank" rel="noopener">Desktop App</a>
198198
·
199-
<a href="https://github.com/DocSpring/chat_to_map" target="_blank" rel="noopener">Core Engine</a>
199+
<a href="https://github.com/DocSpring/chat_to_map" target="_blank" rel="noopener">Processing Engine</a>
200200
</p>
201201
</footer>
202202
</div>

0 commit comments

Comments
 (0)