feat: 작업본·게시 기록 목록을 번호로 오간다
「다음」 버튼 하나뿐이라 뒤로 넘어가면 앞쪽으로 돌아올 수 없었다. 커서 페이지네이션이라 앞으로만 갈 수 있었기 때문이다. 서버가 총 쪽수를 주고(StudioPageMetadata) 목록은 `‹ 1 2 3 ›` 을 그린다. 쪽이 많으면 현재 쪽 좌우 2개씩만 그리고 첫·끝은 늘 남긴다 — 어디에 있든 처음과 끝으로 한 번에 갈 수 있다. 게시 기록은 페이지 이동이 아예 없었다(limit 100 으로 한 번에 다 가져왔다). 작업본과 같은 20개 단위로 맞춘다. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011nAjrqNHGPNngN4aUbcyvJ
This commit is contained in:
co-authored by
Claude Opus 5
parent
77125d1c7c
commit
df371d38bd
@@ -12,9 +12,12 @@ export type ListDocumentsQuery = {
|
||||
publicationStatus?: "NEVER_PUBLISHED" | "PUBLISHED" | "UNPUBLISHED";
|
||||
nextAction?: "CONTINUE_EDITING" | "VALIDATE" | "FIX_VALIDATION" | "CREATE_PREVIEW" | "PUBLISH" | "NONE";
|
||||
projectId?: string; sort?: "UPDATED_DESC" | "UPDATED_ASC" | "TITLE_ASC";
|
||||
cursor?: string; limit?: number;
|
||||
cursor?: string;
|
||||
/** 1부터 세는 페이지 번호. 목록 화면이 번호를 그리려면 앞뒤로 오갈 수 있어야 한다. */
|
||||
page?: number;
|
||||
limit?: number;
|
||||
};
|
||||
export type ListPublicationsQuery = { q?: string; type?: "PUBLISHED" | "REPUBLISHED" | "UNPUBLISHED"; cursor?: string; limit?: number };
|
||||
export type ListPublicationsQuery = { q?: string; type?: "PUBLISHED" | "REPUBLISHED" | "UNPUBLISHED"; cursor?: string; page?: number; limit?: number };
|
||||
export type CatalogQuery = { type: "TOPIC" | "PROJECT" | "RELATION" | "EVIDENCE"; q?: string; cursor?: string; limit?: number };
|
||||
|
||||
export interface StudioGateway {
|
||||
|
||||
Reference in New Issue
Block a user