fix: admin URL labels + topics-empty 안내문 + README 테스트 수

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
th-kim0823
2026-04-27 20:31:24 +09:00
parent a0774ff0d3
commit 50615e0069
2 changed files with 8 additions and 3 deletions

View File

@@ -86,7 +86,7 @@ docker cp tests/e2e.py hackathon-vote:/tmp/e2e.py
docker exec hackathon-vote python3 /tmp/e2e.py
```
12개 시나리오 검증 (로드, 마감 토글, winner, priority, 동률, 추첨, UNIQUE, 제목, archive, atomic, clear).
19개 시나리오 검증 (로드, 마감 토글, winner, priority, 동률, 추첨, UNIQUE, 제목, archive, atomic, clear).
## 시상 매핑

9
app.py
View File

@@ -597,7 +597,8 @@ def render_admin():
with st.expander("🔗 다른 페이지 URL"):
st.markdown(
f"""
- 👥 **참가자 투표**: [/](/)
- 🖥 **큰 화면 (발표자)**: [/](/)
- 📱 **모바일 투표 (QR target)**: [/?mode=vote](?mode=vote)
- 🎉 **시상식 (큰 화면)**: [/?mode=ceremony&token=...](?mode=ceremony&token={ADMIN_TOKEN})
- 📦 **JSON 원본 조회**: [/?mode=raw&token=...](?mode=raw&token={ADMIN_TOKEN})
@@ -688,7 +689,11 @@ def render_admin():
st.subheader("🗒 주제 편집")
cur_topics = get_topics()
if not cur_topics:
st.warning("주제 시드 비어있음. 컨테이너 재시작 시 시드 자동 적용됨.")
st.warning(
"주제 비어있음. 어드민에서 직접 입력하거나, "
"데이터 파일을 통째로 재시드하려면: "
"`rm data/hackathon.json && docker compose restart vote`"
)
else:
edit_mode = st.radio(
"편집 모드", ["Form", "JSON 직접 편집"], horizontal=True, key="topics_mode"