feat(phase3): comments, issue compose, PR diff viewer, reviews, merge, checks
- API: comments CRUD, create/edit issue, milestones, collaborators, pull files, raw unified diff (getText), reviews, merge, combined commit status - hooks: comment thread + composer mutations, issue compose mutations, pull files/diff/reviews, create review, merge, combined status - UI: TextArea, ChipSelect, CommentItem, CommentComposer, native DiffView (parseDiff), StatusChecks - screens: IssueCompose (create/edit), PullFiles, PullDiff, PullReview; issue detail gains thread + close/reopen; PR detail gains reviews, merge, files, checks; commit detail shows checks - navigation/types + i18n (en/nl) updated; centralized safeHost helper - tests: diff parser, endpoint body shapes (merge capitalisation), client getText
This commit is contained in:
1 parent
f641238b6f
commit
ddd834b7ac
32 files changed
+2546
-68
No files matched your search
@@ -69,28 +69,69 @@ export const queryKeys = {
|
||||
[...queryKeys.repo(accountId, owner, name), 'commit', sha] as const,
|
||||
|
||||
// --- issues & pull requests ------------------------------------------------
|
||||
issueSearchRoot: (accountId: string) =>
|
||||
[...queryKeys.account(accountId), 'issues', 'search'] as const,
|
||||
|
||||
issueSearch: (accountId: string, params: Record<string, unknown>) =>
|
||||
[...queryKeys.account(accountId), 'issues', 'search', params] as const,
|
||||
[...queryKeys.issueSearchRoot(accountId), params] as const,
|
||||
|
||||
repoIssuesRoot: (accountId: string, owner: string, name: string) =>
|
||||
[...queryKeys.repo(accountId, owner, name), 'issues'] as const,
|
||||
|
||||
repoIssues: (
|
||||
accountId: string,
|
||||
owner: string,
|
||||
name: string,
|
||||
params: Record<string, unknown>,
|
||||
) => [...queryKeys.repo(accountId, owner, name), 'issues', params] as const,
|
||||
) => [...queryKeys.repoIssuesRoot(accountId, owner, name), params] as const,
|
||||
|
||||
issue: (accountId: string, owner: string, name: string, index: number) =>
|
||||
[...queryKeys.repo(accountId, owner, name), 'issue', index] as const,
|
||||
|
||||
issueCommentsRoot: (accountId: string, owner: string, name: string, index: number) =>
|
||||
[...queryKeys.issue(accountId, owner, name, index), 'comments'] as const,
|
||||
|
||||
issueComments: (
|
||||
accountId: string,
|
||||
owner: string,
|
||||
name: string,
|
||||
index: number,
|
||||
params: Record<string, unknown>,
|
||||
) => [...queryKeys.issueCommentsRoot(accountId, owner, name, index), params] as const,
|
||||
|
||||
repoMilestones: (accountId: string, owner: string, name: string) =>
|
||||
[...queryKeys.repo(accountId, owner, name), 'milestones'] as const,
|
||||
|
||||
repoCollaborators: (accountId: string, owner: string, name: string) =>
|
||||
[...queryKeys.repo(accountId, owner, name), 'collaborators'] as const,
|
||||
|
||||
repoLabels: (accountId: string, owner: string, name: string) =>
|
||||
[...queryKeys.repo(accountId, owner, name), 'labels'] as const,
|
||||
|
||||
pullsRoot: (accountId: string, owner: string, name: string) =>
|
||||
[...queryKeys.repo(accountId, owner, name), 'pulls'] as const,
|
||||
|
||||
pulls: (accountId: string, owner: string, name: string, params: Record<string, unknown>) =>
|
||||
[...queryKeys.repo(accountId, owner, name), 'pulls', params] as const,
|
||||
[...queryKeys.pullsRoot(accountId, owner, name), params] as const,
|
||||
|
||||
pull: (accountId: string, owner: string, name: string, index: number) =>
|
||||
[...queryKeys.repo(accountId, owner, name), 'pull', index] as const,
|
||||
|
||||
pullFiles: (accountId: string, owner: string, name: string, index: number) =>
|
||||
[...queryKeys.pull(accountId, owner, name, index), 'files'] as const,
|
||||
|
||||
pullDiff: (accountId: string, owner: string, name: string, index: number) =>
|
||||
[...queryKeys.pull(accountId, owner, name, index), 'diff'] as const,
|
||||
|
||||
pullReviews: (accountId: string, owner: string, name: string, index: number) =>
|
||||
[...queryKeys.pull(accountId, owner, name, index), 'reviews'] as const,
|
||||
|
||||
combinedStatus: (accountId: string, owner: string, name: string, ref: string) =>
|
||||
[...queryKeys.repo(accountId, owner, name), 'status', ref] as const,
|
||||
|
||||
commitsRoot: (accountId: string, owner: string, name: string) =>
|
||||
[...queryKeys.repo(accountId, owner, name), 'commits'] as const,
|
||||
|
||||
// --- notifications ---------------------------------------------------------
|
||||
notificationsRoot: (accountId: string) =>
|
||||
[...queryKeys.account(accountId), 'notifications'] as const,
|
||||
|
||||
Reference in new issue
Block a user