feat(phase3): comments, issue compose, PR diff viewer, reviews, merge, checks

- API: comments CRUD, create/edit issue, milestones, collaborators, pull files,
  raw unified diff (getText), reviews, merge, combined commit status
- hooks: comment thread + composer mutations, issue compose mutations,
  pull files/diff/reviews, create review, merge, combined status
- UI: TextArea, ChipSelect, CommentItem, CommentComposer, native DiffView
  (parseDiff), StatusChecks
- screens: IssueCompose (create/edit), PullFiles, PullDiff, PullReview; issue
  detail gains thread + close/reopen; PR detail gains reviews, merge, files,
  checks; commit detail shows checks
- navigation/types + i18n (en/nl) updated; centralized safeHost helper
- tests: diff parser, endpoint body shapes (merge capitalisation), client getText
This commit is contained in:
JustZoe101 committed 2026-10-09 17:02:08 +02:00
1 parent f641238b6f
commit ddd834b7ac
32 files changed
+2546 -68

No files matched your search

+35
View File
@@ -12,8 +12,12 @@ import { CommitDetailScreen } from '@/features/repository/screens/commit-detail-
import { CommitsScreen } from '@/features/repository/screens/commits-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';
import { IssueDetailScreen } from '@/features/repository/screens/issue-detail-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 { 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';
@@ -83,6 +87,13 @@ export function RepositoryNavigator() {
component={IssueDetailScreen}
options={({ route }) => ({ title: `#${route.params.index}` })}
/>
<Stack.Screen
name="IssueCompose"
component={IssueComposeScreen}
options={({ route }) => ({
title: route.params.index ? t('issues.compose.editTitle') : t('issues.compose.createTitle'),
})}
/>
<Stack.Screen
name="RepoPulls"
component={RepoPullsScreen}
@@ -93,6 +104,30 @@ export function RepositoryNavigator() {
component={PullDetailScreen}
options={({ route }) => ({ title: `#${route.params.index}` })}
/>
<Stack.Screen
name="PullFiles"
component={PullFilesScreen}
options={{ title: t('pulls.changedFilesTitle') }}
/>
<Stack.Screen
name="PullDiff"
component={PullDiffScreen}
options={({ route }) => ({
title: route.params.path ? lastSegment(route.params.path, t('pulls.diff')) : t('pulls.diff'),
})}
/>
<Stack.Screen
name="PullReview"
component={PullReviewScreen}
options={({ route }) => ({
title:
route.params.event === 'APPROVE'
? t('pulls.approve')
: route.params.event === 'REQUEST_CHANGES'
? t('pulls.requestChanges')
: t('pulls.comment'),
})}
/>
</Stack.Navigator>
);
}