fix(performance): 일자별 표 제목·기간 합계 행 — 페이지 스크롤에 고정(매출·광고비), 스크롤 막대 배경 투명

- 10-26 판은 표 상자 안 세로 스크롤이라 진짜 ERP 셸에서 상자 아래가 화면 밖에 잘리고 휠이 페이지로 안 넘어갔다
- 표 상자 세로 스크롤 없앰 → stickyHead 가 .erp-page 스크롤마다 제목 행·기간 합계 행 칸을 translateY 로 내림(표 끝에서 멈춤),
  내려온 동안 제목 칸이 아래 1px 선을 직접 그림(border-collapse 선 틈으로 뒤 줄이 비침 방지)
- 스크롤 막대 트랙 투명(scrollbar-color, 표 상자·실적 화면)
- perf_sticky.browser.test.js 를 진짜 erp_base.html 셸 렌더(perf_*_shell.html)로 — 휠 스크롤·가로 고정·표 끝 멈춤

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-26 14:17:25 +09:00
parent 906633a884
commit de5a8a3d0a
8 changed files with 129 additions and 68 deletions
+12 -3
View File
@@ -94,11 +94,20 @@ def main() -> None:
html = e.get_template("performance/index.html").render(**base, active_tab="dashboard", metric="net", **ctx)
with open(os.path.join(OUT_DIR, "perf_dash.html"), "w", encoding="utf-8") as f:
f.write(html)
# 이번달 보기(기본, 2026-10-26) — 맨 위 기간 합계 행이 있는 표(제목·합계 행 스크롤 고정 확인용)
# 이번달 보기(기본) + 진짜 ERP 셸(erp_base.html — .erp-page 가 스크롤 상자) — 제목·기간 합계 행 스크롤 고정 확인용(2026-10-27)
shell = jinja2.Environment(loader=jinja2.FileSystemLoader([
os.path.join(ROOT, "app", "templates"), os.path.join(ROOT, "app", "modules", "performance", "templates")]), autoescape=True)
sbase = {**base, "user": {"email": "me@test.local", "name": "Me", "picture": ""}}
mctx = build_dashboard(FakeStore(), kind="month", anchor=date(2026, 10, 7), today=date(2026, 10, 7))
mctx["auto_sync"] = ctx["auto_sync"]
html = e.get_template("performance/index.html").render(**base, active_tab="dashboard", metric="net", **mctx)
with open(os.path.join(OUT_DIR, "perf_dash_month.html"), "w", encoding="utf-8") as f:
html = shell.get_template("performance/index.html").render(**sbase, active_tab="dashboard", metric="net", **mctx)
with open(os.path.join(OUT_DIR, "perf_dash_shell.html"), "w", encoding="utf-8") as f:
f.write(html)
sactx = build_ad_dashboard(FakeStore(), kind="month", anchor=date(2026, 10, 7), today=date(2026, 10, 7),
sales_codes=["cafe24", "coupang"])
sactx["auto_sync"] = ctx["auto_sync"]
html = shell.get_template("performance/ads.html").render(**sbase, active_tab="ads", **sactx)
with open(os.path.join(OUT_DIR, "perf_ads_shell.html"), "w", encoding="utf-8") as f:
f.write(html)
actx =build_ad_dashboard(FakeStore(), kind="month", anchor=date(2026, 10, 7), today=date(2026, 10, 7),
sales_codes=["cafe24", "coupang"])