feat(phase4): Quick Edit, Contents API commit flow, editor workspace
- portable UTF-8 base64 helpers (Hermes-safe), used for file round-trips - endpoints: updateFileContents, createFileContents, createPull - hooks: useCommitFile (invalidates repo cache), useCreatePull - FileEdit screen: native monospace editor, dirty/discard, branch picker, commit-to-new-branch, protected-branch handling, post-commit PR creation; stale-SHA 409 surfaces as a conflict message - settings: editor URL template; repo overview 'Open in editor' (no token) - tests: base64 round-trips (accents/emoji), editor URL expansion
This commit is contained in:
1 parent
ddd834b7ac
commit
c9dd49446a
18 files changed
+733
-29
No files matched your search
@@ -10,6 +10,7 @@ import { HeaderAccountAndSettings } from '@/components/layout/header-buttons';
|
||||
import { BranchesScreen } from '@/features/repository/screens/branches-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';
|
||||
import { FileViewerScreen } from '@/features/repository/screens/file-viewer-screen';
|
||||
import { FilesScreen } from '@/features/repository/screens/files-screen';
|
||||
import { IssueComposeScreen } from '@/features/repository/screens/issue-compose-screen';
|
||||
@@ -61,6 +62,13 @@ export function RepositoryNavigator() {
|
||||
title: lastSegment(route.params.path, t('files.title')),
|
||||
})}
|
||||
/>
|
||||
<Stack.Screen
|
||||
name="FileEdit"
|
||||
component={FileEditScreen}
|
||||
options={({ route }) => ({
|
||||
title: `${t('edit.title')} · ${lastSegment(route.params.path, t('files.title'))}`,
|
||||
})}
|
||||
/>
|
||||
<Stack.Screen
|
||||
name="Commits"
|
||||
component={CommitsScreen}
|
||||
|
||||
Reference in new issue
Block a user