feat: release asset upload, transfer, Actions secrets/variables/artifacts, admin, teams/projects, file search, reactions, attachments, package version delete
- client: multipart postForm; expo-document-picker + react-native-webview deps - release assets: upload (DocumentPicker) and delete; run artifacts list - repository transfer; Actions secrets + variables management screen - admin (users/orgs/repos) screen gated on is_admin - org teams, repo projects (read-only); find-file via recursive git tree - issue reactions toggle and attachments list; package version delete - endpoint tests (126 total)
This commit is contained in:
1 parent
b2b44bca73
commit
587bf732b5
31 files changed
+1919
-46
No files matched your search
@@ -13,6 +13,7 @@ import { apiErrorMessage } from '@/core/api/error-text';
|
||||
import { useRepository } from '@/features/repositories/queries';
|
||||
import {
|
||||
useDeleteRepo,
|
||||
useTransferRepo,
|
||||
useUpdateRepo,
|
||||
} from '@/features/repositories/settings-queries';
|
||||
import { useTheme } from '@/theme/theme-provider';
|
||||
@@ -41,6 +42,8 @@ export function RepoSettingsScreen({ navigation, route }: Props) {
|
||||
const repo = repoQuery.data;
|
||||
const updateRepo = useUpdateRepo(owner, name);
|
||||
const deleteRepo = useDeleteRepo(owner, name);
|
||||
const transferRepo = useTransferRepo(owner, name);
|
||||
const [newOwner, setNewOwner] = useState('');
|
||||
|
||||
const [description, setDescription] = useState<string | null>(null);
|
||||
const [website, setWebsite] = useState<string | null>(null);
|
||||
@@ -186,6 +189,45 @@ export function RepoSettingsScreen({ navigation, route }: Props) {
|
||||
/>
|
||||
</Card>
|
||||
|
||||
<AppText variant="subheading">{t('repoSettings.transfer')}</AppText>
|
||||
<Card>
|
||||
<Field
|
||||
label={t('repoSettings.newOwner')}
|
||||
value={newOwner}
|
||||
onChangeText={setNewOwner}
|
||||
placeholder={t('repoSettings.newOwnerPlaceholder')}
|
||||
autoCapitalize="none"
|
||||
autoCorrect={false}
|
||||
/>
|
||||
<Button
|
||||
label={t('repoSettings.transferAction')}
|
||||
variant="secondary"
|
||||
iconLeft="arrowLeft"
|
||||
disabled={newOwner.trim().length === 0}
|
||||
loading={transferRepo.isPending}
|
||||
onPress={() =>
|
||||
Alert.alert(
|
||||
t('repoSettings.transferTitle'),
|
||||
t('repoSettings.transferBody', { name, owner: newOwner.trim() }),
|
||||
[
|
||||
{ text: t('common.cancel'), style: 'cancel' },
|
||||
{
|
||||
text: t('repoSettings.transferAction'),
|
||||
style: 'destructive',
|
||||
onPress: () =>
|
||||
transferRepo.mutate(newOwner.trim(), {
|
||||
onSuccess: () => navigation.getParent()?.goBack(),
|
||||
onError: (error) => Alert.alert(t('errors.title'), apiErrorMessage(error, t)),
|
||||
}),
|
||||
},
|
||||
],
|
||||
)
|
||||
}
|
||||
fullWidth
|
||||
style={styles.spaced}
|
||||
/>
|
||||
</Card>
|
||||
|
||||
<AppText variant="subheading" tone="error">
|
||||
{t('repoSettings.dangerZone')}
|
||||
</AppText>
|
||||
|
||||
Reference in new issue
Block a user