feat: detail page attachments, preview, and file metadata

Add file displayName/sortOrder APIs, result preview with Excel/video support,
unified attachment/link editing, feedback modal, and AuthProvider fix.
Run prisma migrate deploy on Render builds.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
EENE Dashboard
2026-06-05 18:32:56 +09:00
parent c3f620a7ac
commit 9abb58e5c8
22 changed files with 1477 additions and 292 deletions

View File

@@ -1,14 +1,24 @@
@echo off
chcp 65001 > nul
title EENE Dashboard Start
cd /d "%~dp0"
echo ================================
echo EENE Dashboard - Server Start
echo ================================
echo.
:: 1. PostgreSQL 서비스 확인 (직접 설치 시 자동 실행됨)
echo [1/3] Checking Database...
:: 0. 기존 서버 종료 (title 설정 전에 실행 — 자기 자신 종료 방지)
echo [1/4] Stopping old servers...
taskkill /fi "WindowTitle eq EENE Dashboard - Running*" /f > nul 2>&1
powershell -NoProfile -ExecutionPolicy Bypass -Command "Get-NetTCPConnection -State Listen -ErrorAction SilentlyContinue | Where-Object { @(4000,3000,3001) -contains $_.LocalPort } | ForEach-Object { Stop-Process -Id $_.OwningProcess -Force -ErrorAction SilentlyContinue }" > nul 2>&1
timeout /t 2 /nobreak > nul
echo Done.
echo.
title EENE Dashboard - Running
:: 1. PostgreSQL 서비스 확인
echo [2/4] Checking Database...
sc query postgresql-x64-16 | find "RUNNING" > nul 2>&1
if %errorlevel% neq 0 (
echo Starting PostgreSQL service...
@@ -17,29 +27,38 @@ if %errorlevel% neq 0 (
echo Database is ready.
echo.
:: 2. 백엔드 서버
echo [2/3] Starting Backend Server...
start "EENE-Backend" cmd /k "cd /d "%~dp0backend" && npm run dev"
timeout /t 3 /nobreak > nul
:: 2. DB 마이그레이션 + Prisma 클라이언트 갱신
echo [3/4] DB migrate + Prisma generate...
cd /d "%~dp0backend"
call npx prisma migrate deploy
if errorlevel 1 (
echo Migration failed. backend\.env DATABASE_URL 확인
pause
exit /b 1
)
call npx prisma generate
if errorlevel 1 (
echo Prisma generate failed. 다른 터미널/서버가 켜져 있으면 종료 후 다시 시도하세요.
pause
exit /b 1
)
cd /d "%~dp0"
echo Done.
echo.
:: 3. 프론트엔드 서버
echo [3/3] Starting Frontend Server...
start "EENE-Frontend" cmd /k "cd /d "%~dp0frontend" && npm run dev"
echo Done.
:: 3. 백엔드 + 프론트엔드
echo [4/4] Starting Backend + Frontend...
echo.
echo Dashboard : http://localhost:3000
echo Detail : http://localhost:3000/detail
echo Team : http://172.16.8.248:3000
echo.
echo 종료: Ctrl+C
echo ================================
echo.
echo ================================
echo All servers are running!
echo.
echo [This PC]
echo Dashboard : http://localhost:3000
echo Detail : http://localhost:3000/detail
echo.
echo [Team Access]
echo Dashboard : http://172.16.8.248:3000
echo Detail : http://172.16.8.248:3000/detail
echo ================================
npx --yes concurrently -k -n "API,WEB" -c "cyan,green" "cd /d %~dp0backend && npm run dev" "cd /d %~dp0frontend && npm run dev"
echo.
echo Server stopped.
pause