feat(phase5): actions, repo settings, collaborators, webhooks, protections, orgs, packages, credentials, release management

- API: Actions (workflows/runs/jobs/logs getText), repo create/edit/delete,
  collaborators, webhooks, branch protections, orgs, packages, user keys/GPG
  keys/tokens, release create/edit/delete
- hooks: features/actions, repositories/settings-queries, features/profile
- screens: Actions + run detail (expandable job logs), RepoSettings,
  Collaborators, Webhooks, Protections, CreateRepo, Organizations, OrgRepos,
  Packages, Credentials, ReleaseCompose; releases list/detail management
- navigation + i18n (en/nl) wired for all new screens
This commit is contained in:
JustZoe101 committed 2026-10-09 18:10:04 +02:00
1 parent 5e8c9492b3
commit fa1ebc9184
30 files changed
+3001 -9

No files matched your search

+49
View File
@@ -7,7 +7,10 @@ import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { useTranslation } from 'react-i18next';
import { HeaderAccountAndSettings } from '@/components/layout/header-buttons';
import { ActionsScreen } from '@/features/repository/screens/actions-screen';
import { ActionRunDetailScreen } from '@/features/repository/screens/action-run-detail-screen';
import { BranchesScreen } from '@/features/repository/screens/branches-screen';
import { CollaboratorsScreen } from '@/features/repository/screens/collaborators-screen';
import { CommitDetailScreen } from '@/features/repository/screens/commit-detail-screen';
import { CommitsScreen } from '@/features/repository/screens/commits-screen';
import { FileEditScreen } from '@/features/repository/screens/file-edit-screen';
@@ -15,16 +18,20 @@ import { FileViewerScreen } from '@/features/repository/screens/file-viewer-scre
import { FilesScreen } from '@/features/repository/screens/files-screen';
import { IssueComposeScreen } from '@/features/repository/screens/issue-compose-screen';
import { IssueDetailScreen } from '@/features/repository/screens/issue-detail-screen';
import { ProtectionsScreen } from '@/features/repository/screens/protections-screen';
import { PullDetailScreen } from '@/features/repository/screens/pull-detail-screen';
import { PullDiffScreen } from '@/features/repository/screens/pull-diff-screen';
import { PullFilesScreen } from '@/features/repository/screens/pull-files-screen';
import { PullReviewScreen } from '@/features/repository/screens/pull-review-screen';
import { ReleaseComposeScreen } from '@/features/repository/screens/release-compose-screen';
import { RepoIssuesScreen } from '@/features/repository/screens/repo-issues-screen';
import { RepoOverviewScreen } from '@/features/repository/screens/repo-overview-screen';
import { RepoPullsScreen } from '@/features/repository/screens/repo-pulls-screen';
import { RepoSettingsScreen } from '@/features/repository/screens/repo-settings-screen';
import { ReleaseDetailScreen } from '@/features/repository/screens/release-detail-screen';
import { ReleasesScreen } from '@/features/repository/screens/releases-screen';
import { TagsScreen } from '@/features/repository/screens/tags-screen';
import { WebhooksScreen } from '@/features/repository/screens/webhooks-screen';
import { shortSha } from '@/core/utils/format';
import { useStackScreenOptions } from '@/navigation/header-options';
import type { RepositoryStackParamList } from '@/navigation/types';
@@ -148,6 +155,48 @@ export function RepositoryNavigator() {
: t('pulls.comment'),
})}
/>
<Stack.Screen
name="ReleaseCompose"
component={ReleaseComposeScreen}
options={({ route }) => ({
title: route.params.id ? t('releases.edit') : t('releases.create'),
})}
/>
<Stack.Screen
name="RepoIssues"
component={RepoIssuesScreen}
options={{ title: t('repo.issuesTab') }}
/>
<Stack.Screen
name="RepoSettings"
component={RepoSettingsScreen}
options={{ title: t('repoSettings.title') }}
/>
<Stack.Screen
name="Collaborators"
component={CollaboratorsScreen}
options={{ title: t('repoSettings.collaborators') }}
/>
<Stack.Screen
name="Webhooks"
component={WebhooksScreen}
options={{ title: t('repoSettings.webhooks') }}
/>
<Stack.Screen
name="Protections"
component={ProtectionsScreen}
options={{ title: t('repoSettings.protections') }}
/>
<Stack.Screen
name="Actions"
component={ActionsScreen}
options={{ title: t('actions.title') }}
/>
<Stack.Screen
name="ActionRunDetail"
component={ActionRunDetailScreen}
options={{ title: t('actions.runTitle') }}
/>
</Stack.Navigator>
);
}
+24
View File
@@ -1,6 +1,10 @@
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { useTranslation } from 'react-i18next';
import { CredentialsScreen } from '@/features/profile/screens/credentials-screen';
import { OrgReposScreen } from '@/features/profile/screens/org-repos-screen';
import { OrganizationsScreen } from '@/features/profile/screens/organizations-screen';
import { PackagesScreen } from '@/features/profile/screens/packages-screen';
import { SettingsScreen } from '@/features/settings/screens/settings-screen';
import { useStackScreenOptions } from '@/navigation/header-options';
import type { SettingsStackParamList } from '@/navigation/types';
@@ -18,6 +22,26 @@ export function SettingsNavigator() {
component={SettingsScreen}
options={{ title: t('settings.title') }}
/>
<Stack.Screen
name="Organizations"
component={OrganizationsScreen}
options={{ title: t('organizations.title') }}
/>
<Stack.Screen
name="OrgRepos"
component={OrgReposScreen}
options={({ route }) => ({ title: route.params.org })}
/>
<Stack.Screen
name="Packages"
component={PackagesScreen}
options={{ title: t('packages.title') }}
/>
<Stack.Screen
name="Credentials"
component={CredentialsScreen}
options={{ title: t('credentials.title') }}
/>
</Stack.Navigator>
);
}
+6
View File
@@ -12,6 +12,7 @@ import { HomeScreen } from '@/features/home/screens/home-screen';
import { InboxScreen } from '@/features/inbox/screens/inbox-screen';
import { IssuesScreen } from '@/features/issues/screens/issues-screen';
import { PullRequestsScreen } from '@/features/pulls/screens/pull-requests-screen';
import { CreateRepoScreen } from '@/features/repositories/screens/create-repo-screen';
import { RepositoryListScreen } from '@/features/repositories/screens/repository-list-screen';
import { useStackScreenOptions } from '@/navigation/header-options';
import type {
@@ -52,6 +53,11 @@ export function RepositoriesStackNavigator() {
component={RepositoryListScreen}
options={{ title: t('tabs.repositories') }}
/>
<RepositoriesStack.Screen
name="CreateRepo"
component={CreateRepoScreen}
options={{ title: t('createRepo.title') }}
/>
</RepositoriesStack.Navigator>
);
}
+16 -4
View File
@@ -16,10 +16,6 @@ export type HomeStackParamList = {
Home: undefined;
};
export type RepositoriesStackParamList = {
RepositoryList: undefined;
};
export type IssuesStackParamList = {
Issues: undefined;
};
@@ -59,10 +55,26 @@ export type RepositoryStackParamList = {
PullFiles: { owner: string; name: string; index: number };
PullDiff: { owner: string; name: string; index: number; path?: string };
PullReview: { owner: string; name: string; index: number; event: ReviewEvent };
ReleaseCompose: { owner: string; name: string; id?: number };
RepoSettings: { owner: string; name: string };
Collaborators: { owner: string; name: string };
Webhooks: { owner: string; name: string };
Protections: { owner: string; name: string };
Actions: { owner: string; name: string };
ActionRunDetail: { owner: string; name: string; id: number };
};
export type RepositoriesStackParamList = {
RepositoryList: undefined;
CreateRepo: undefined;
};
export type SettingsStackParamList = {
Settings: undefined;
Organizations: undefined;
OrgRepos: { org: string };
Packages: undefined;
Credentials: undefined;
};
export type AccountsStackParamList = {