feat(phase5): deploy keys, profile editing, organization creation
- API: repo deploy keys (list/add/delete), user settings GET/PATCH, org create - hooks: useRepoKeys/useAddRepoKey/useDeleteRepoKey; useUserSettings, useUpdateUserSettings, useCreateOrg - screens: DeployKeys, Profile (edit), CreateOrg; wired into RepoSettings, Settings and Organizations - endpoint body-shape tests for repo update, release, deploy key, user settings, org create and Action run filters (120 tests total)
This commit is contained in:
1 parent
fa1ebc9184
commit
6d0b536009
17 files changed
+738
-8
No files matched your search
@@ -13,6 +13,7 @@ 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 { DeployKeysScreen } from '@/features/repository/screens/deploy-keys-screen';
|
||||
import { FileEditScreen } from '@/features/repository/screens/file-edit-screen';
|
||||
import { FileViewerScreen } from '@/features/repository/screens/file-viewer-screen';
|
||||
import { FilesScreen } from '@/features/repository/screens/files-screen';
|
||||
@@ -187,6 +188,11 @@ export function RepositoryNavigator() {
|
||||
component={ProtectionsScreen}
|
||||
options={{ title: t('repoSettings.protections') }}
|
||||
/>
|
||||
<Stack.Screen
|
||||
name="DeployKeys"
|
||||
component={DeployKeysScreen}
|
||||
options={{ title: t('repoSettings.deployKeys') }}
|
||||
/>
|
||||
<Stack.Screen
|
||||
name="Actions"
|
||||
component={ActionsScreen}
|
||||
|
||||
@@ -2,9 +2,11 @@ import { createNativeStackNavigator } from '@react-navigation/native-stack';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
import { CredentialsScreen } from '@/features/profile/screens/credentials-screen';
|
||||
import { CreateOrgScreen } from '@/features/profile/screens/create-org-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 { ProfileScreen } from '@/features/profile/screens/profile-screen';
|
||||
import { SettingsScreen } from '@/features/settings/screens/settings-screen';
|
||||
import { useStackScreenOptions } from '@/navigation/header-options';
|
||||
import type { SettingsStackParamList } from '@/navigation/types';
|
||||
@@ -42,6 +44,16 @@ export function SettingsNavigator() {
|
||||
component={CredentialsScreen}
|
||||
options={{ title: t('credentials.title') }}
|
||||
/>
|
||||
<Stack.Screen
|
||||
name="Profile"
|
||||
component={ProfileScreen}
|
||||
options={{ title: t('profile.title') }}
|
||||
/>
|
||||
<Stack.Screen
|
||||
name="CreateOrg"
|
||||
component={CreateOrgScreen}
|
||||
options={{ title: t('organizations.create') }}
|
||||
/>
|
||||
</Stack.Navigator>
|
||||
);
|
||||
}
|
||||
@@ -60,6 +60,7 @@ export type RepositoryStackParamList = {
|
||||
Collaborators: { owner: string; name: string };
|
||||
Webhooks: { owner: string; name: string };
|
||||
Protections: { owner: string; name: string };
|
||||
DeployKeys: { owner: string; name: string };
|
||||
Actions: { owner: string; name: string };
|
||||
ActionRunDetail: { owner: string; name: string; id: number };
|
||||
};
|
||||
@@ -75,6 +76,8 @@ export type SettingsStackParamList = {
|
||||
OrgRepos: { org: string };
|
||||
Packages: undefined;
|
||||
Credentials: undefined;
|
||||
Profile: undefined;
|
||||
CreateOrg: undefined;
|
||||
};
|
||||
|
||||
export type AccountsStackParamList = {
|
||||
|
||||
Reference in new issue
Block a user