gcx/frontend/admin-web
hailin 7c8b79161a feat(upload): parse=upload+save+metadata, register=JSON only — no double upload
Previously the flow uploaded the 53MB file twice:
  1. POST /parse  → parse metadata (file discarded)
  2. POST /upload → parse again + save (file sent again)

New flow — file sent exactly once:
  1. POST /parse  → upload file, save to disk, parse metadata
                    returns {versionName, versionCode, minSdkVersion, storageKey, fileSize, fileSha256}
  2. POST /register → JSON only (no file), creates DB record using storageKey

Frontend:
- handleFileChange: async, immediately uploads to /parse with progress bar (0-100%)
- handleSubmit: calls /register with storageKey + form metadata (instant)
- Upload modal: real-time progress bar, "confirm" button disabled until parse complete
- Console logs at every step for debugging

Backend:
- POST /parse: saves file after parsing, returns storageKey in response
- POST /register: new endpoint, accepts JSON + storageKey, creates version record

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-07 07:19:28 -08:00
..
nginx chore: Switch domain from admin.gogenex.com to admin.gogenex.cn 2026-02-11 05:18:22 -08:00
public fix(branding): 统一Logo色调与App主色调 #6C5CE7 2026-02-23 18:12:35 -08:00
src feat(upload): parse=upload+save+metadata, register=JSON only — no double upload 2026-03-07 07:19:28 -08:00
.dockerignore chore: Add Next.js project config and app entry for admin-web 2026-02-11 01:35:19 -08:00
.env.development feat(infra): use oss.gogenex.com for app version download URLs 2026-03-07 00:42:05 -08:00
.env.production feat(infra): use oss.gogenex.com for app version download URLs 2026-03-07 00:42:05 -08:00
.gitignore chore: Add Next.js project config and app entry for admin-web 2026-02-11 01:35:19 -08:00
DEPLOY.md chore: Switch domain from admin.gogenex.com to admin.gogenex.cn 2026-02-11 05:18:22 -08:00
Dockerfile fix: Make Dockerfile tolerant of missing package-lock.json 2026-02-11 01:39:14 -08:00
deploy.sh chore: Switch domain from admin.gogenex.com to admin.gogenex.cn 2026-02-11 05:18:22 -08:00
docker-compose.yml chore: Add Docker deployment config for admin-web 2026-02-11 01:22:22 -08:00
eslint.config.mjs feat(admin-web): add ESLint flat config with Clean Architecture layer boundary enforcement 2026-03-06 11:23:00 -08:00
next.config.ts fix(admin-web): 部署版本守卫,彻底防止 stale bundle 崩溃 2026-03-04 18:57:12 -08:00
package-lock.json feat: Wire all view components to Next.js App Router routes 2026-02-11 05:37:28 -08:00
package.json feat(admin-web): add ESLint flat config with Clean Architecture layer boundary enforcement 2026-03-06 11:23:00 -08:00
tsconfig.json chore: Add Next.js project config and app entry for admin-web 2026-02-11 01:35:19 -08:00