feat(performance): 직접 추가 쇼핑몰(수동 입력)·쇼핑몰 그룹·설정 드래그 순서

- 마이그레이션 009: perf_marketplaces.is_custom·is_group·parent_code
- 설정: [+ 쇼핑몰 추가(수동 입력)]·[+ 그룹 추가], 이름 변경·삭제, 직접 추가 쇼핑몰 그룹 select
- custom_ 코드는 registry.get_adapter 가 수동 입력 전용 어댑터(CustomManualAdapter)로
- 매출 실적 표: 그룹 열 = 보이는 하위 쇼핑몰 합계(일 합계엔 안 더함), ▾/▸ 하위 열 접기(localStorage)
- 설정 표 ⠿ 드래그 → PUT /api/marketplace-order → sort_order, 화면 순서는 ordered_marketplaces 한 곳
- 테스트: test_custom_groups.py, perf_groups.browser.test.js

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-22 10:57:03 +09:00
parent 5ef9a55d91
commit e3a8649b41
18 changed files with 948 additions and 44 deletions
+22
View File
@@ -385,3 +385,25 @@ td.is-link:hover { background: #eef2ff; text-decoration: underline; }
/* [매출 업데이트] — 업데이트 중이면 "업데이트 중 · 진행 보기"(눌러서 진행 창 다시 열기), 살짝 깜박임 */
#perf-sync-btn.is-running, #perf-ad-sync-btn.is-running { animation: perf-sync-pulse 1.6s ease-in-out infinite; }
@keyframes perf-sync-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .72; } }
/* 쇼핑몰 그룹(2026-10-22) — 그룹 열 = 하위 쇼핑몰 합계(굵게·옅은 보라), 하위 열은 ▾/▸ 로 접기/펴기 */
.perf-main th.perf-th-group { background: #f1edfb; color: #4c2a9a; white-space: nowrap; }
.perf-main .perf-row-day td.perf-td-group, .perf-main .perf-row-month td.perf-td-group { background: #f8f6fd; font-weight: 600; }
.perf-main .perf-row-week td.perf-td-group { background: #ebe6f8; }
.perf-main th.perf-th-child { color: #5b4a86; font-weight: 500; box-shadow: inset 0 -2px 0 #d9cff3; }
.perf-gtoggle { border: 0; background: none; padding: 0 5px 0 0; margin: 0; font: inherit; font-size: 15px; color: inherit; cursor: pointer; line-height: 1; vertical-align: -1px; }
.perf-gtoggle:hover { color: #1a56db; }
.perf-main .is-gfolded[data-group-child] { display: none; }
/* 설정 — 직접 추가·그룹·드래그 순서 */
.perf-drag { display: inline-block; width: 14px; margin-right: 6px; color: #b5b5b5; cursor: grab; user-select: none; touch-action: none; }
.perf-drag:hover { color: var(--color-deep-black); }
body.perf-dragging, body.perf-dragging * { cursor: grabbing !important; user-select: none; }
.perf-set-table .is-dragging > tr > *, .perf-set-table tr.is-dragging > * { background: #eef3ff; }
.perf-set-table tbody.perf-sort-block + tbody.perf-sort-block > tr:first-child > * { border-top: 1px solid var(--perf-line); }
.perf-group-row > * { background: #f8f6fd; }
.perf-group-name { font-weight: 600; color: #4c2a9a; }
.perf-child-row .perf-td-label { padding-left: 22px; }
.perf-child-mark { color: #b5b5b5; margin-right: 4px; }
.perf-group-sel { width: auto; min-width: 110px; height: 28px; padding: 2px 6px; font-size: 12.5px; margin-right: 4px; }
.perf-del-btn { color: var(--perf-down); }
.perf-add-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }