feat: 오늘 탭 아이콘 줄 — 오늘 타로·오늘 코디는 창으로, 단풍 지도·쇼츠·동네 이야기는 페이지로, 내 각은 그 줄로

- 오늘 한 장 칸을 오늘 타로 창으로 옮김. 안 뽑았으면 빨간 점, 뽑았으면 n일째 (로그인 안 하면 기기 기록으로 계산)
- 오늘 코디: 오늘 피드에 올린 코디 카드를 창으로 (GET /v1/card/latest?template=ootd), 오늘 처음 보면 빨간 점
- 단풍 지도 아이콘은 단풍철에만, 아이콘 4개 추가 (Fluent 3D)
- GA4 today_icon
This commit is contained in:
minaChoi committed 2026-10-28 14:37:55 +09:00
1 parent c37773f48f
commit 045d8d6cf0
20 files changed
+347 -70

No files matched your search

+13
View File
@@ -142,3 +142,16 @@ async def test_instagram_requires_token(offline, admin_key, monkeypatch):
made = (await c.post("/v1/card", json=body(), headers=admin_key)).json()
res = (await c.post(f"/v1/card/{made['card_id']}/instagram", headers=admin_key)).json()
assert res["result"]["success"] is False and "INSTAGRAM" in res["msg"]
@pytest.mark.anyio
async def test_latest_card_by_template_is_public(offline, admin_key):
async with client() as c:
assert "post_id" not in (await c.get("/v1/card/latest", params={"template": "ootd"})).json()
ootd = (await c.post("/v1/card", json=body(template="ootd", title="오늘 코디", publish=True), headers=admin_key)).json()
await c.post("/v1/card", json=body(template="ootd", title="승인 대기 코디"), headers=admin_key)
await c.post("/v1/card", json=body(publish=True), headers=admin_key)
# 그 틀로 피드에 올린 것 중 가장 최근 (승인 대기·다른 틀은 빼고)
latest = (await c.get("/v1/card/latest", params={"template": "ootd"})).json()
assert latest["post_id"] == ootd["post_id"] and latest["published_at"]
assert (await c.get("/v1/card/latest", params={"template": "../x"})).status_code == 422