feat: repo list search, header sort, pagination (stage 6)

- list_repos: Pulp next 페이지 끝까지 순회 (첫-페이지-only 누락 수정)
- BFF 메모리 검색(이름)·정렬(이름/검증/버전/패키지/동기화)·페이지네이션(20/페이지)
- GET /repos/table 조각: 검색창은 표 밖(포커스 유지), 정렬헤더/페이저는 표 안,
  hx-include 로 검색어·정렬상태 상호 전송
- 폰트 재조정: 데이터 셀 14px, 헤더 13px, 배지/액션버튼 14px (동기화 버튼 대비 균형)
- 버전 페이지 제목↔검증상세 마진, 데모 저장소 26개로 확장

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-17 14:04:54 +09:00
parent 15bb0994be
commit abf8654b52
11 changed files with 477 additions and 158 deletions

View File

@@ -63,6 +63,25 @@ def test_get_task_returns_state():
assert task["state"] == "running"
@respx.mock
def test_list_repos_follows_pagination():
first = f"{PULP_TEST_URL}/pulp/api/v3/repositories/rpm/rpm/?limit=100"
second = f"{PULP_TEST_URL}/pulp/api/v3/repositories/rpm/rpm/?limit=100&offset=100"
respx.get(first).mock(
return_value=httpx.Response(
200, json={"results": [{"name": "a"}], "next": second}
)
)
respx.get(second).mock(
return_value=httpx.Response(
200, json={"results": [{"name": "b"}], "next": None}
)
)
with PulpClient() as pulp:
repos = pulp.list_repos()
assert [r["name"] for r in repos] == ["a", "b"]
@respx.mock
def test_create_publication_posts_version_and_returns_task():
import json