Tom Boullay
f53f606daa
fix: support gitea git remote uploads
2026-05-15 01:08:44 +02:00
Tom Boullay
f6ac71dad2
refactor: tighten upload and viewer contracts
2026-05-13 17:50:26 +02:00
Tom Boullay
606df93b69
fix: harden upload resilience and contracts
2026-05-12 23:49:30 +02:00
Tom Boullay
498765db61
refactor: clean upload pipeline and restore draco delivery
2026-04-29 16:29:32 +02:00
Tom Boullay
dddecbb11c
chore: prepare v1.0.0 release
2026-04-27 23:43:16 +02:00
Tom Boullay
b084c0e20e
fix: batch Git LFS uploads
2026-04-27 23:17:56 +02:00
Tom Boullay
382b28103e
fix: avoid hiding remote lookup errors
2026-04-27 17:22:26 +02:00
Tom Boullay
d049318a73
refactor: consolidate upload helpers
2026-04-27 17:20:54 +02:00
Tom Boullay
8bbc0dc0eb
fix: push files via Git LFS instead of raw blobs
...
Binary files (.glb, .gltf, .png, .jpg, .jpeg, .webp) were pushed as raw
Git blobs via Octokit, bypassing Git LFS. This caused LFS-tracked repos
to see all files as modified after git pull, requiring spurious commits.
Now the bot uploads binaries to the LFS server via the Batch API and
stores LFS pointer files in the Git tree. Also fixes getRemoteFolder()
to read the real file size from LFS pointers instead of the pointer size.
2026-04-15 09:38:05 +02:00
Tom Boullay
78f4aa83e0
refactor: full codebase audit — extract modules, fix type safety, clean dead code
...
- Extract API helpers from UploadZone into lib/upload-api.ts (FormData builder, checkFolderDiffs, uploadDrive, uploadGit)
- Extract upload orchestration into hooks/useUploadOrchestrator.ts (UploadZone: 489 → 162 lines)
- Extract file diff classification into lib/diff-files.ts (from git route)
- Extract shared SVG icons into components/ui/icons.tsx (7 icons, 0 duplication)
- Extract shared modal wrapper into components/ui/Modal.tsx + ModalActions
- Extract DriveStatusLine sub-component from FolderCard
- Fix checkFolderDiffs silently swallowing auth/network errors (now throws)
- Fix type safety: remove as never casts, add isHttpError type guard, use discriminated union for validateFolder
- Fix nextcloud: cache getConfig, add max bound to findNextVersion, optimize mkdirRecursive (skip PROPFIND)
- Fix drive route: remove req.clone(), extend parseMultiUpload to return extra fields
- Fix commit message: model shown as unchanged with ↔️ on updates (not falsely marked as modified)
- Clean dead code: unused folderExists import, FileStatus/DriveStatus exports, ParsedFile.textureName, getConfig basePath
- Add security headers in next.config.ts (HSTS, X-Content-Type-Options, X-Frame-Options, etc.)
- Update README with new project structure
2026-04-14 17:19:10 +02:00
Tom Boullay
3a7a5e2eea
upadte: clean code + add next cloud
2026-04-14 16:21:37 +02:00
Tom Boullay
91eaa5d186
fix: replace SHA comparison with file size for LFS compatibility + add NoChangesModal
...
Git LFS stores pointer files whose SHA differs from the actual blob SHA,
causing false-positive diffs on every upload. Switching to file size
comparison resolves this for LFS-enabled repos.
Also replaces the inline error message with a dedicated NoChangesModal
when no differences are detected, offering cancel (reset) or modify
(close modal) actions.
2026-04-14 14:39:19 +02:00
Tom Boullay
e9ae6ffc41
debut refacto
2026-04-14 14:18:40 +02:00