feat: 오늘 탭 아이콘 줄에 날씨 게임(/game) 연결, 오늘 코디 빼기, 오늘 타로는 잠시 숨김

- feat/weather-game(구름 합치기) 브랜치를 합쳐 아이콘에서 바로 열림
- 오늘 코디 아이콘·창과 그걸 위해 넣은 GET /v1/card/latest 를 걷어냄
- 오늘 타로는 features.ts HIDDEN 으로 숨김 (아이콘 줄·각 모으는 법에서 빠짐, 안내 문구에서도 타로를 뺌)
This commit is contained in:
minaChoi committed 2026-10-28 15:55:00 +09:00
1 parent 4cfcbcf7ea
commit e4834fd24e
15 files changed
+18 -183

No files matched your search

-12
View File
@@ -143,15 +143,3 @@ async def test_instagram_requires_token(offline, admin_key, monkeypatch):
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