From a104d6597870cfb7c172eb4c9c138c908a1c3ee7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zo=C3=AB=20Kooijmans?= Date: Fri, 9 Oct 2026 19:06:07 +0200 Subject: [PATCH] feat: labels/milestones CRUD, issue filters+sort, workflow enable/disable, package link/unlink - labels screen (create/edit/delete) and milestones screen (create/close/delete) - repo issues: label + milestone server-side filters and client-side sorting - Actions settings: list workflows with enable/disable toggle - packages: link/unlink to a repository - endpoints/hooks/i18n (en/nl) --- src/core/api/endpoints.ts | 131 ++++++++++++ src/features/issues/queries.ts | 17 +- src/features/profile/queries.ts | 28 +++ .../profile/screens/packages-screen.tsx | 93 ++++++++- src/features/repositories/settings-queries.ts | 115 +++++++++++ .../screens/actions-settings-screen.tsx | 30 +++ .../repository/screens/labels-screen.tsx | 172 ++++++++++++++++ .../repository/screens/milestones-screen.tsx | 166 +++++++++++++++ .../repository/screens/repo-issues-screen.tsx | 192 ++++++++++++++---- .../screens/repo-settings-screen.tsx | 10 + src/i18n/locales/en.json | 36 +++- src/i18n/locales/nl.json | 36 +++- src/navigation/repository-navigator.tsx | 12 ++ src/navigation/types.ts | 2 + 14 files changed, 996 insertions(+), 44 deletions(-) create mode 100644 src/features/repository/screens/labels-screen.tsx create mode 100644 src/features/repository/screens/milestones-screen.tsx diff --git a/src/core/api/endpoints.ts b/src/core/api/endpoints.ts index e4278e3..6588874 100644 --- a/src/core/api/endpoints.ts +++ b/src/core/api/endpoints.ts @@ -909,6 +909,8 @@ export interface ListRepoIssuesParams extends PageParams { state?: 'open' | 'closed' | 'all'; q?: string; labels?: string; + /** Comma-separated milestone names. */ + milestones?: string; } export function listRepoIssues( @@ -926,6 +928,7 @@ export function listRepoIssues( state: params.state ?? 'open', q: params.q?.trim() || undefined, labels: params.labels, + milestones: params.milestones, type: 'issues', }, }); @@ -1781,3 +1784,131 @@ export function deletePackageVersion( options, ); } + +// --------------------------------------------------------------------------- +// Labels & milestones (CRUD) +// --------------------------------------------------------------------------- + +export interface LabelInput { + name: string; + color?: string; + description?: string; + exclusive?: boolean; +} + +export function createLabel( + client: GiteaClient, + owner: string, + repo: string, + input: LabelInput, + options?: RequestOptions, +): Promise