Skip to content

Commit 6580d7b

Browse files
committed
fixing issues
1 parent a85a6e8 commit 6580d7b

File tree

5 files changed

+233
-24
lines changed

5 files changed

+233
-24
lines changed

docs/GIT-TEST-MANUALLY.md

Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,141 @@
1+
2+
3+
4+
## Test Results Summary
5+
6+
| Test | Web (Clone) | Web (Open) | Electron (Clone) | Electron (Open) | Status |
7+
|------|-------------|------------|----------------|---------------|--------|
8+
| 1. Clone Repository ||||| Pending |
9+
| 2. Open Clone File ||||| Pending |
10+
| 3. Open Repository ||||| Pending |
11+
| 4. Subdirectory Files ||||| Pending |
12+
| 5. Git Status ||||| Pending |
13+
| 6. Save & Stage ||||| Pending |
14+
| 7. Commit ||||| Pending |
15+
| 8. Push ||||| Pending |
16+
| 9. Error Handling ||||| Pending |
17+
18+
Legend:
19+
- ⬜ Pending
20+
- ✅ Pass
21+
- ❌ Fail
22+
- ⚠️ Warning
23+
24+
Notes:
25+
- Even knowing that it requested Git credential to unlock the repository, it failed to push.
26+
- I needed to unlock Menu --> Git --> Authenticate --> Authenticate before push worked
27+
- Recommend Push, Fetch, Save & Stage, Stage, Commit & Push buttons disabled / grayed out until authenticated
28+
---
29+
30+
31+
Network: https://192.168.0.69:3024/ open repository
32+
```
33+
react-dom_client.js?v=85caefde:17995 Download the React DevTools for a better development experience: https://react.dev/link/react-devtools
34+
App.tsx:487 Running in browser mode - some features disabled
35+
App.tsx:487 Running in browser mode - some features disabled
36+
insertSave.ts:256 [OpenRepository] Selected directory: EasyEdit
37+
insertSave.ts:151 [GitDetection] Found .git directory in: EasyEdit
38+
insertSave.ts:262 [OpenRepository] Git repository detected
39+
App.tsx:1628 [App] Repository opened: EasyEdit
40+
App.tsx:1361 Failed to update git status: Error: No repository directory set
41+
at GitManager.getCurrentBranch (gitManager.ts:790:13)
42+
at async updateGitStatus (App.tsx:1351:22)
43+
updateGitStatus @ App.tsx:1361
44+
await in updateGitStatus
45+
(anonymous) @ App.tsx:1486
46+
react_stack_bottom_frame @ react-dom_client.js?v=85caefde:17486
47+
runWithFiberInDEV @ react-dom_client.js?v=85caefde:1485
48+
commitHookEffectListMount @ react-dom_client.js?v=85caefde:8460
49+
commitHookPassiveMountEffects @ react-dom_client.js?v=85caefde:8518
50+
commitPassiveMountOnFiber @ react-dom_client.js?v=85caefde:9887
51+
recursivelyTraversePassiveMountEffects @ react-dom_client.js?v=85caefde:9868
52+
commitPassiveMountOnFiber @ react-dom_client.js?v=85caefde:9984
53+
recursivelyTraversePassiveMountEffects @ react-dom_client.js?v=85caefde:9868
54+
commitPassiveMountOnFiber @ react-dom_client.js?v=85caefde:9899
55+
flushPassiveEffects @ react-dom_client.js?v=85caefde:11302
56+
(anonymous) @ react-dom_client.js?v=85caefde:11060
57+
performWorkUntilDeadline @ react-dom_client.js?v=85caefde:36
58+
insertSave.ts:270 [OpenRepository] Found 35 markdown files
59+
App.tsx:1636 [App] Files found: 35
60+
61+
```
62+
63+
Network: https://192.168.0.69:3024/ save & stage file
64+
```
65+
App.tsx:1311 Save error: Error: No repository directory set
66+
at GitManager.writeFile (gitManager.ts:1036:13)
67+
at async handleGitSave (App.tsx:1300:7)
68+
```
69+
70+
Network: https://192.168.0.69:3024/ clone repository
71+
```
72+
react-dom_client.js?v=85caefde:17995 Download the React DevTools for a better development experience: https://react.dev/link/react-devtools
73+
App.tsx:487 Running in browser mode - some features disabled
74+
App.tsx:487 Running in browser mode - some features disabled
75+
CloneModal.tsx:95 Cannot resolve full path (browser security): TypeError: Failed to execute 'resolve' on 'FileSystemDirectoryHandle': 1 argument required, but only 0 present.
76+
at handleSelectDirectory (CloneModal.tsx:88:57)
77+
CloneModal.tsx:98 Selected directory handle: FileSystemDirectoryHandle
78+
CloneModal.tsx:99 Directory name: EasyEditGit
79+
CloneModal.tsx:100 Display path: EasyEditGit
80+
App.tsx:1020 === Clone Submit Handler ===
81+
App.tsx:1021 URL: https://github.com/gcclinux/EasyOffice.git
82+
App.tsx:1022 Target Dir: EasyEditGit
83+
App.tsx:1023 Branch: undefined
84+
App.tsx:1031 Dir handle available: true
85+
App.tsx:1036 Dir handle set in gitManager
86+
App.tsx:1040 Calling gitManager.clone()...
87+
gitManager.ts:193 === Git Clone Started ===
88+
gitManager.ts:194 URL: https://github.com/gcclinux/EasyOffice.git
89+
gitManager.ts:195 Target Dir: EasyEditGit
90+
gitManager.ts:196 Is Browser: true
91+
gitManager.ts:197 Has dirHandle: true
92+
gitManager.ts:198 Options: Object
93+
gitManager.ts:199 Path module type: object has join: true
94+
gitManager.ts:204 Repo name extracted: EasyOffice
95+
gitManager.ts:211 Clone Dir (with repo subdirectory): /EasyOffice
96+
gitManager.ts:215 Cleaning up existing LightningFS data for: /EasyOffice
97+
gitManager.ts:423 Could not delete directory: /EasyOffice Error: ENOENT: /EasyOffice
98+
at CacheFS._lookup (@isomorphic-git_lightning-fs.js?v=85caefde:409:27)
99+
at CacheFS.readdir (@isomorphic-git_lightning-fs.js?v=85caefde:452:24)
100+
at DefaultBackend.readdir (@isomorphic-git_lightning-fs.js?v=85caefde:1017:28)
101+
at PromisifiedFS.readdir (@isomorphic-git_lightning-fs.js?v=85caefde:1230:30)
102+
at PromisifiedFS.readdir (@isomorphic-git_lightning-fs.js?v=85caefde:1184:29)
103+
at async GitManager.recursiveDelete (gitManager.ts:402:23)
104+
at async GitManager.clone (gitManager.ts:217:11)
105+
at async handleCloneSubmit (App.tsx:1041:7)
106+
recursiveDelete @ gitManager.ts:423
107+
gitManager.ts:218 Cleanup completed
108+
gitManager.ts:236 Using CORS proxy: https://cors.isomorphic-git.org
109+
gitManager.ts:253 No credentials available - attempting anonymous clone
110+
gitManager.ts:256 Starting git.clone()...
111+
cors.isomorphic-git.org/github.com/gcclinux/EasyOffice.git/info/refs?service=git-upload-pack:1 Failed to load resource: the server responded with a status of 401 ()
112+
gitManager.ts:271 === Git Clone Failed ===
113+
clone @ gitManager.ts:271
114+
gitManager.ts:272 Error details: HttpError: HTTP Error: 401
115+
at GitRemoteHTTP.discover (isomorphic-git.js?v=85caefde:12703:17)
116+
at async _fetch (isomorphic-git.js?v=85caefde:13243:26)
117+
at async _clone (isomorphic-git.js?v=85caefde:13536:46)
118+
at async Object.clone (isomorphic-git.js?v=85caefde:13613:16)
119+
at async GitManager.clone (gitManager.ts:257:7)
120+
at async handleCloneSubmit (App.tsx:1041:7)
121+
clone @ gitManager.ts:272
122+
gitManager.ts:273 Error name: HttpError
123+
clone @ gitManager.ts:273
124+
gitManager.ts:274 Error message: HTTP Error: 401
125+
clone @ gitManager.ts:274
126+
gitManager.ts:275 Error stack: HttpError: HTTP Error: 401
127+
at GitRemoteHTTP.discover (https://192.168.0.69:3024/node_modules/.vite/deps/isomorphic-git.js?v=85caefde:12703:17)
128+
at async _fetch (https://192.168.0.69:3024/node_modules/.vite/deps/isomorphic-git.js?v=85caefde:13243:26)
129+
at async _clone (https://192.168.0.69:3024/node_modules/.vite/deps/isomorphic-git.js?v=85caefde:13536:46)
130+
at async Object.clone (https://192.168.0.69:3024/node_modules/.vite/deps/isomorphic-git.js?v=85caefde:13613:16)
131+
at async GitManager.clone (https://192.168.0.69:3024/src/gitManager.ts:191:7)
132+
at async handleCloneSubmit (https://192.168.0.69:3024/src/App.tsx:805:7)
133+
clone @ gitManager.ts:275
134+
App.tsx:1063 === Clone Failed in Handler ===
135+
handleCloneSubmit @ App.tsx:1063
136+
App.tsx:1064 Error: Error: Failed to clone repository: Authentication failed (HTTP 401): This is a private repository. Please set up Git credentials first (Git menu → Setup Credentials) or use a public repository.
137+
at GitManager.clone (gitManager.ts:290:13)
138+
at async handleCloneSubmit (App.tsx:1041:7)
139+
handleCloneSubmit @ App.tsx:1064
140+
141+
```

docs/TEST-GIT-OPERATIONS.md

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -245,23 +245,28 @@
245245

246246
## Test Results Summary
247247

248-
| Test | Web (Clone) | Web (Open) | Electron | Status |
249-
|------|-------------|------------|----------|--------|
250-
| 1. Clone Repository || N/A || Pending |
251-
| 2. Open Repository | N/A ||| Pending |
252-
| 3. Subdirectory Files |||| Pending |
253-
| 4. Git Status |||| Pending |
254-
| 5. Save & Stage |||| Pending |
255-
| 6. Commit |||| Pending |
256-
| 7. Push |||| Pending |
257-
| 8. Error Handling |||| Pending |
248+
| Test | Web (Clone) | Web (Open) | Electron (Clone) | Electron (Open) | Status |
249+
|------|-------------|------------|----------------|---------------|--------|
250+
| 1. Clone Repository ||||| Pending |
251+
| 2. Open Clone File ||||| Pending |
252+
| 3. Open Repository ||||| Pending |
253+
| 4. Subdirectory Files ||||| Pending |
254+
| 5. Git Status ||||| Pending |
255+
| 6. Save & Stage ||||| Pending |
256+
| 7. Commit ||||| Pending |
257+
| 8. Push ||||| Pending |
258+
| 9. Error Handling ||||| Pending |
258259

259260
Legend:
260261
- ⬜ Pending
261262
- ✅ Pass
262263
- ❌ Fail
263264
- ⚠️ Warning
264265

266+
Notes:
267+
- Even knowing that it requested Git credential to unlock the repository, it failed to push.
268+
- I needed to unlock Menu --> Git --> Authenticate --> Authenticate before push worked
269+
- Recommend Push, Fetch, Save & Stage, Stage, Commit & Push buttons disabled / grayed out until authenticated
265270
---
266271

267272
## Quick Smoke Test

package-lock.json

Lines changed: 5 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"dev": "vite",
88
"server": "vite --host --port 3024",
99
"setup-https": "./setup-https.sh",
10+
"setup-https-windows": "powershell -ExecutionPolicy Bypass -File ./setup-https.ps1",
1011
"app": "concurrently \"vite\" \"wait-on http://localhost:3024 && electron .\"",
1112
"build": "tsc && vite build",
1213
"build:web": "tsc && vite build --config vite.config.web.ts",

0 commit comments

Comments
 (0)