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

@@ -12,6 +12,7 @@ import { Card } from '@/components/ui/card';
import { IconButton } from '@/components/ui/icon-button';
import { ListItem } from '@/components/ui/list-item';
import { EmptyState } from '@/components/ui/state-views';
import { safeHost } from '@/core/api/instance-url';
import type { AccountRecord, InstanceRecord } from '@/core/accounts/types';
import { useAccountsStore } from '@/core/accounts/accounts-store';
import { useAccountActions } from '@/features/accounts/use-account-actions';
@@ -158,14 +159,6 @@ export function AccountsScreen(_props: Props) {
);
}
function safeHost(baseUrl: string): string | null {
try {
return new URL(baseUrl).host;
} catch {
return null;
}
}
const styles = StyleSheet.create({
group: { gap: spacing.sm },
groupHeader: { flexDirection: 'row', alignItems: 'center', gap: spacing.sm },