feat: inline review-comment composer + WebView code editor

- diff lines are tappable; PullDiff opens a composer that posts a positioned
  inline review comment (path + new_position)
- CodeEditor: self-contained WebView editor with line numbers, tab handling and
  lightweight syntax highlighting (no remote code / bundled editor assets);
  used by Quick Edit
- i18n (en/nl) for inline comments
This commit is contained in:
JustZoe101 committed 2026-10-09 18:43:05 +02:00
1 parent 587bf732b5
commit eed9c91274
6 files changed
+294 -19

No files matched your search

@@ -3,6 +3,7 @@ import { Alert, StyleSheet, Switch, View } from 'react-native';
import { useTranslation } from 'react-i18next';
import { Screen } from '@/components/layout/screen';
import { CodeEditor, languageForPath } from '@/components/git/code-editor';
import { AppText } from '@/components/ui/app-text';
import { Button } from '@/components/ui/button';
import { Card } from '@/components/ui/card';
@@ -170,15 +171,13 @@ function FileEditForm({ owner, name, path, initialRef, entry, repo, branches, on
) : null}
</View>
<TextArea
value={draft}
onChangeText={setDraft}
minHeight={360}
mono
autoCapitalize="none"
autoCorrect={false}
testID="file-editor"
/>
<View style={styles.editorWrap}>
<CodeEditor
value={draft}
onChangeText={setDraft}
language={languageForPath(path)}
/>
</View>
{branchProtected ? (
<AppText variant="caption" tone="warning">
@@ -285,6 +284,7 @@ function FileEditForm({ owner, name, path, initialRef, entry, repo, branches, on
const styles = StyleSheet.create({
toolbar: { flexDirection: 'row', alignItems: 'center', gap: spacing.sm },
editorWrap: { height: 380, borderRadius: 10, overflow: 'hidden' },
pathLabel: { flex: 1 },
sectionLabel: { marginBottom: spacing.sm },
switchRow: {