diff --git a/src/components/git/commit-row.tsx b/src/components/git/commit-row.tsx
new file mode 100644
index 0000000..a95d060
--- /dev/null
+++ b/src/components/git/commit-row.tsx
@@ -0,0 +1,105 @@
+import { Pressable, StyleSheet, View } from 'react-native';
+import { useTranslation } from 'react-i18next';
+
+import { AppText } from '@/components/ui/app-text';
+import { Avatar } from '@/components/ui/avatar';
+import { Icon } from '@/components/ui/icon';
+import type { Commit } from '@/core/api/types';
+import { firstLine, formatRelativeTime, shortSha } from '@/core/utils/format';
+import { useTheme } from '@/theme/theme-provider';
+import { HIT_TARGET, radius, spacing } from '@/theme/tokens';
+
+export interface CommitRowProps {
+ commit: Commit;
+ onPress?: () => void;
+}
+
+/** Commit list row: author avatar, message, sha, date, +/− stats. */
+export function CommitRow({ commit, onPress }: CommitRowProps) {
+ const { t } = useTranslation();
+ const { colors } = useTheme();
+
+ const authorName = commit.author?.login ?? commit.commit.author?.name ?? t('common.unknown');
+ const avatarUrl = commit.author?.avatar_url;
+ const message = firstLine(commit.commit.message);
+ const date = commit.commit.author?.date ?? commit.created;
+ const additions = commit.stats?.additions ?? 0;
+ const deletions = commit.stats?.deletions ?? 0;
+
+ const body = (
+
+
+
+
+ {message}
+
+
+
+ {authorName}
+
+
+
+
+ {shortSha(commit.sha)}
+
+
+
+ {formatRelativeTime(date, t)}
+
+ {commit.stats ? (
+
+
+ +{additions}
+
+
+ −{deletions}
+
+
+ ) : null}
+
+
+ {onPress ? : null}
+
+ );
+
+ if (!onPress) return body;
+
+ return (
+ pressed && { backgroundColor: colors.surfacePressed }}
+ >
+ {body}
+
+ );
+}
+
+const styles = StyleSheet.create({
+ row: {
+ flexDirection: 'row',
+ alignItems: 'flex-start',
+ gap: spacing.md,
+ minHeight: HIT_TARGET,
+ paddingVertical: spacing.md,
+ paddingHorizontal: spacing.lg,
+ borderBottomWidth: StyleSheet.hairlineWidth,
+ },
+ body: { flex: 1, gap: spacing.xs },
+ meta: {
+ flexDirection: 'row',
+ alignItems: 'center',
+ flexWrap: 'wrap',
+ gap: spacing.sm,
+ },
+ shaChip: {
+ flexDirection: 'row',
+ alignItems: 'center',
+ gap: 3,
+ paddingHorizontal: spacing.xs,
+ paddingVertical: 1,
+ borderRadius: radius.sm,
+ },
+ stats: { flexDirection: 'row', gap: spacing.sm },
+});
diff --git a/src/components/git/file-row.tsx b/src/components/git/file-row.tsx
new file mode 100644
index 0000000..e1feb76
--- /dev/null
+++ b/src/components/git/file-row.tsx
@@ -0,0 +1,140 @@
+import { Pressable, StyleSheet, View } from 'react-native';
+
+import { AppText } from '@/components/ui/app-text';
+import { Icon, type IconName } from '@/components/ui/icon';
+import type { ContentsEntry, ContentsType } from '@/core/api/types';
+import { formatBytes } from '@/core/utils/format';
+import { useTheme } from '@/theme/theme-provider';
+import { HIT_TARGET, radius, spacing } from '@/theme/tokens';
+
+function iconForType(type: ContentsType): IconName {
+ switch (type) {
+ case 'dir':
+ return 'folder';
+ case 'submodule':
+ return 'package';
+ case 'symlink':
+ return 'link';
+ default:
+ return 'file';
+ }
+}
+
+export interface FileRowProps {
+ entry: ContentsEntry;
+ onPress: () => void;
+}
+
+/** One row in a directory listing. */
+export function FileRow({ entry, onPress }: FileRowProps) {
+ const { colors } = useTheme();
+ const isDir = entry.type === 'dir';
+
+ return (
+ [
+ styles.row,
+ { borderBottomColor: colors.border },
+ pressed && { backgroundColor: colors.surfacePressed },
+ ]}
+ >
+
+
+ {entry.name}
+
+
+ {isDir ? '' : entry.size >= 0 ? formatBytes(entry.size) : ''}
+
+
+ );
+}
+
+export interface BreadcrumbProps {
+ /** Full path relative to repo root ("" = root). */
+ path: string;
+ onNavigate: (path: string) => void;
+ rootLabel: string;
+}
+
+/** Path breadcrumb with horizontal scrolling; last segment is the current one. */
+export function Breadcrumb({ path, onNavigate, rootLabel }: BreadcrumbProps) {
+ const { colors } = useTheme();
+ const segments = path.split('/').filter(Boolean);
+
+ return (
+
+ onNavigate('')}
+ accessibilityRole="button"
+ accessibilityLabel={rootLabel}
+ style={styles.crumb}
+ >
+
+
+ {rootLabel}
+
+
+
+ {segments.map((segment, index) => {
+ const target = segments.slice(0, index + 1).join('/');
+ const isLast = index === segments.length - 1;
+ return (
+
+
+ !isLast && onNavigate(target)}
+ disabled={isLast}
+ accessibilityRole="button"
+ accessibilityLabel={target}
+ style={styles.crumb}
+ >
+
+ {segment}
+
+
+
+ );
+ })}
+
+ );
+}
+
+const styles = StyleSheet.create({
+ row: {
+ flexDirection: 'row',
+ alignItems: 'center',
+ gap: spacing.md,
+ minHeight: HIT_TARGET,
+ paddingVertical: spacing.md,
+ paddingHorizontal: spacing.lg,
+ borderBottomWidth: StyleSheet.hairlineWidth,
+ },
+ name: { flex: 1 },
+ crumbRow: {
+ flexDirection: 'row',
+ alignItems: 'center',
+ flexWrap: 'nowrap',
+ paddingHorizontal: spacing.lg,
+ paddingVertical: spacing.sm,
+ gap: spacing.xs,
+ minHeight: 38,
+ },
+ crumbWrap: { flexDirection: 'row', alignItems: 'center', gap: spacing.xs, flexShrink: 1 },
+ crumb: {
+ flexDirection: 'row',
+ alignItems: 'center',
+ gap: spacing.xs,
+ paddingVertical: spacing.xs,
+ paddingHorizontal: spacing.xs,
+ borderRadius: radius.sm,
+ flexShrink: 1,
+ },
+});
diff --git a/src/components/git/issue-row.tsx b/src/components/git/issue-row.tsx
new file mode 100644
index 0000000..7721b0f
--- /dev/null
+++ b/src/components/git/issue-row.tsx
@@ -0,0 +1,101 @@
+import { Pressable, StyleSheet, View } from 'react-native';
+import { useTranslation } from 'react-i18next';
+
+import { AppText } from '@/components/ui/app-text';
+import { StatusBadge } from '@/components/ui/badge';
+import { LabelChip } from '@/components/ui/label-chip';
+import type { Issue } from '@/core/api/types';
+import { formatRelativeTime } from '@/core/utils/format';
+import { useTheme } from '@/theme/theme-provider';
+import { HIT_TARGET, spacing } from '@/theme/tokens';
+
+export interface IssueRowProps {
+ issue: Issue;
+ /** Show the `owner/repo` context (cross-repo lists). */
+ showRepository?: boolean;
+ /** Overrides the computed state (e.g. merged PRs). */
+ stateOverride?: 'open' | 'closed' | 'merged' | 'draft';
+ onPress?: () => void;
+}
+
+/** Issue / pull request row used in every list. */
+export function IssueRow({ issue, showRepository = false, stateOverride, onPress }: IssueRowProps) {
+ const { t } = useTranslation();
+ const { colors } = useTheme();
+
+ const isPull = Boolean(issue.pull_request);
+ const state: 'open' | 'closed' | 'merged' | 'draft' =
+ stateOverride ??
+ (issue.pull_request?.merged
+ ? 'merged'
+ : isPull && issue.pull_request?.draft && issue.state === 'open'
+ ? 'draft'
+ : issue.state === 'closed'
+ ? 'closed'
+ : 'open');
+
+ const stateLabel = {
+ open: t('issues.open'),
+ closed: t('issues.closed'),
+ merged: t('pulls.stateMerged'),
+ draft: t('pulls.draft'),
+ }[state];
+
+ const repoName = issue.repository?.full_name;
+
+ return (
+ [
+ styles.row,
+ { borderBottomColor: colors.border },
+ pressed && onPress && { backgroundColor: colors.surfacePressed },
+ ]}
+ >
+
+
+
+ {issue.title}
+
+
+
+
+
+ {[
+ showRepository && repoName ? repoName : null,
+ `#${issue.number}`,
+ issue.created_at ? formatRelativeTime(issue.created_at, t) : null,
+ issue.comments ? t('issues.comments', { count: issue.comments }) : null,
+ ]
+ .filter(Boolean)
+ .join(' · ')}
+
+
+
+ {issue.labels && issue.labels.length > 0 ? (
+
+ {issue.labels.slice(0, 4).map((label, index) => (
+
+ ))}
+
+ ) : null}
+
+ );
+}
+
+const styles = StyleSheet.create({
+ row: {
+ gap: spacing.xs,
+ minHeight: HIT_TARGET,
+ paddingVertical: spacing.md,
+ paddingHorizontal: spacing.lg,
+ borderBottomWidth: StyleSheet.hairlineWidth,
+ },
+ topLine: { flexDirection: 'row', alignItems: 'center', gap: spacing.sm },
+ title: { flex: 1 },
+ metaLine: { flexDirection: 'row', flexWrap: 'wrap' },
+ labels: { flexDirection: 'row', flexWrap: 'wrap', gap: spacing.xs, marginTop: 2 },
+});
diff --git a/src/components/git/markdown.tsx b/src/components/git/markdown.tsx
new file mode 100644
index 0000000..15f0c6b
--- /dev/null
+++ b/src/components/git/markdown.tsx
@@ -0,0 +1,382 @@
+/**
+ * Native markdown renderer built on `marked`'s lexer.
+ *
+ * Renders headings, paragraphs, emphasis, links, inline code, code blocks,
+ * lists (incl. nesting + task items), blockquotes, tables, rules and images
+ * (as linked placeholders — remote SVG/badges aren't rendered as images).
+ * No WebView: everything is native Text/View so it inherits fonts, themes
+ * and accessibility scaling.
+ */
+
+import { marked, type Token, type Tokens } from 'marked';
+import { Fragment, useMemo, type ReactNode } from 'react';
+import { Linking, ScrollView, StyleSheet, Text as TextBase, View } from 'react-native';
+
+import { AppText } from '@/components/ui/app-text';
+import { useTheme } from '@/theme/theme-provider';
+import { fontFamily, fontSize, radius, spacing } from '@/theme/tokens';
+
+export interface MarkdownProps {
+ content: string;
+ /** Instance base URL used to resolve root-relative links (""/undefined → link skipped). */
+ baseUrl?: string;
+}
+
+interface Ctx {
+ colors: ReturnType['colors'];
+ open: (url: string) => void;
+}
+
+export function Markdown({ content, baseUrl = '' }: MarkdownProps) {
+ const { colors } = useTheme();
+
+ const tokens = useMemo(() => {
+ try {
+ return marked.lexer(content);
+ } catch {
+ return [] as Token[];
+ }
+ }, [content]);
+
+ const open = (url: string) => {
+ let target: string | null = null;
+ if (/^https?:\/\//i.test(url)) target = url;
+ else if (baseUrl && url.startsWith('/')) target = `${baseUrl}${url}`;
+ // Relative links (./ ../) are intentionally not resolved — too easy to
+ // guess wrong; users can open the instance in a browser instead.
+ if (target) void Linking.openURL(target).catch(() => undefined);
+ };
+
+ const ctx: Ctx = { colors, open };
+
+ return (
+
+ {tokens.map((token, index) => (
+ {renderBlock(token, ctx, String(index))}
+ ))}
+
+ );
+}
+
+// ---------------------------------------------------------------------------
+// Inline
+// ---------------------------------------------------------------------------
+
+function renderInline(tokens: Token[] | undefined, ctx: Ctx, key: string): ReactNode {
+ if (!tokens || tokens.length === 0) return null;
+ return (
+ <>
+ {tokens.map((token, index) => (
+ {renderInlineToken(token, ctx, `${key}-${index}`)}
+ ))}
+ >
+ );
+}
+
+function renderInlineToken(token: Token, ctx: Ctx, key: string): ReactNode {
+ const { colors } = ctx;
+ switch (token.type) {
+ case 'text': {
+ const t = token as Tokens.Text;
+ if (t.tokens && t.tokens.length > 0) return renderInline(t.tokens, ctx, key);
+ return {t.text};
+ }
+ case 'escape':
+ return {(token as Tokens.Escape).text};
+ case 'em':
+ return (
+
+ {renderInline((token as Tokens.Em).tokens, ctx, key)}
+
+ );
+ case 'strong':
+ return (
+
+ {renderInline((token as Tokens.Strong).tokens, ctx, key)}
+
+ );
+ case 'del':
+ return (
+
+ {renderInline((token as Tokens.Del).tokens, ctx, key)}
+
+ );
+ case 'codespan':
+ return (
+
+ {(token as Tokens.Codespan).text}
+
+ );
+ case 'br':
+ return {'\n'};
+ case 'link': {
+ const link = token as Tokens.Link;
+ const internal = /^https?:\/\//i.test(link.href) || link.href.startsWith('/');
+ return (
+ ctx.open(link.href) : undefined}
+ >
+ {renderInline(link.tokens, ctx, key)}
+
+ );
+ }
+ case 'image': {
+ const image = token as Tokens.Image;
+ const label = image.text ? `[${image.text}]` : '';
+ const internal = /^https?:\/\//i.test(image.href) || image.href.startsWith('/');
+ return (
+ ctx.open(image.href) : undefined}
+ >
+ {label}
+
+ );
+ }
+ case 'html':
+ case 'xmlprocessing':
+ return null;
+ default: {
+ const anyToken = token as { text?: string; tokens?: Token[] };
+ if (anyToken.tokens) return renderInline(anyToken.tokens, ctx, key);
+ if (anyToken.text) return {anyToken.text};
+ return null;
+ }
+ }
+}
+
+/** RN requires Text inside Text; this is that primitive. */
+function TextSpan({
+ children,
+ style,
+ onPress,
+}: {
+ children: ReactNode;
+ style?: object | object[];
+ onPress?: () => void;
+}) {
+ return (
+
+ {children}
+
+ );
+}
+
+// ---------------------------------------------------------------------------
+// Blocks
+// ---------------------------------------------------------------------------
+
+function renderBlock(token: Token, ctx: Ctx, key: string): ReactNode {
+ const { colors } = ctx;
+ switch (token.type) {
+ case 'heading': {
+ const heading = token as Tokens.Heading;
+ const variant =
+ heading.depth === 1
+ ? 'title'
+ : heading.depth === 2
+ ? 'heading'
+ : heading.depth === 3
+ ? 'subheading'
+ : 'bodyMedium';
+ return (
+
+ {renderInline(heading.tokens, ctx, key)}
+
+ );
+ }
+ case 'paragraph':
+ case 'text': {
+ const paragraph = token as Tokens.Paragraph | Tokens.Text;
+ const inline = paragraph.tokens ?? [];
+ return (
+
+ {renderInline(inline, ctx, key)}
+
+ );
+ }
+ case 'code': {
+ const code = token as Tokens.Code;
+ return (
+
+
+
+ {code.text}
+
+
+
+ );
+ }
+ case 'hr':
+ return ;
+ case 'blockquote': {
+ const quote = token as Tokens.Blockquote;
+ return (
+
+ {quote.tokens.map((child, index) => (
+ {renderBlock(child, ctx, `${key}-${index}`)}
+ ))}
+
+ );
+ }
+ case 'list':
+ return {renderList(token as Tokens.List, ctx, key)};
+ case 'table':
+ return {renderTable(token as Tokens.Table, ctx, key)};
+ case 'html':
+ return null;
+ default:
+ return null;
+ }
+}
+
+function renderList(list: Tokens.List, ctx: Ctx, key: string): ReactNode {
+ return (
+
+ {list.items.map((raw, index) => {
+ const item = raw as Tokens.ListItem;
+ const marker = list.ordered
+ ? `${Number(list.start ?? 1) + index}.`
+ : item.task
+ ? item.checked
+ ? '☑'
+ : '☐'
+ : '•';
+ const inlineTokens = item.tokens?.filter(isInlineToken) ?? [];
+ const blockTokens = item.tokens?.filter((t) => !isInlineToken(t)) ?? [];
+
+ return (
+
+
+ {marker}
+
+
+ {inlineTokens.length > 0 || blockTokens.length === 0 ? (
+
+ {renderInline(
+ inlineTokens.length > 0
+ ? inlineTokens
+ : [{ type: 'text', text: item.text } as Token],
+ ctx,
+ `${key}-${index}`,
+ )}
+
+ ) : null}
+ {blockTokens.map((child, childIndex) => (
+
+ {renderBlock(child, ctx, `${key}-${index}-${childIndex}`)}
+
+ ))}
+
+
+
+ );
+ })}
+
+
+ );
+}
+
+const INLINE_TYPES = new Set([
+ 'text',
+ 'escape',
+ 'em',
+ 'strong',
+ 'del',
+ 'codespan',
+ 'br',
+ 'link',
+ 'image',
+ 'html',
+ 'xmlprocessing',
+]);
+
+function isInlineToken(token: Token): boolean {
+ return INLINE_TYPES.has(token.type);
+}
+
+function renderTable(table: Tokens.Table, ctx: Ctx, key: string): ReactNode {
+ const { colors } = ctx;
+ return (
+
+
+
+ {table.header.map((cell, index) => (
+
+ {renderInline(cell.tokens, ctx, `${key}-h-${index}`)}
+
+ ))}
+
+ {table.rows.map((row, rowIndex) => (
+
+ {row.map((cell, cellIndex) => (
+
+
+ {renderInline(cell.tokens, ctx, `${key}-${rowIndex}-${cellIndex}`)}
+
+
+ ))}
+
+ ))}
+
+
+ );
+}
+
+const styles = StyleSheet.create({
+ block: { gap: spacing.md },
+ blockItem: { marginTop: 0 },
+ italic: { fontStyle: 'italic' },
+ strong: { fontWeight: '700' },
+ strike: { textDecorationLine: 'line-through' },
+ codespan: {
+ fontFamily: fontFamily.mono,
+ fontSize: fontSize.sm,
+ paddingHorizontal: 4,
+ borderRadius: 4,
+ },
+ codeBlock: {
+ borderRadius: radius.md,
+ padding: spacing.md,
+ },
+ codeText: { fontSize: fontSize.sm },
+ hr: { height: StyleSheet.hairlineWidth, width: '100%' },
+ quote: {
+ borderLeftWidth: 3,
+ borderRadius: radius.sm,
+ padding: spacing.md,
+ gap: spacing.sm,
+ },
+ listRow: { flexDirection: 'row', gap: spacing.sm, paddingVertical: 2 },
+ listMarker: { width: 22, textAlign: 'right' },
+ listMarkerOrdered: { width: 28 },
+ listContent: { flex: 1, gap: spacing.xs },
+ tableScroll: { flexGrow: 0 },
+ tableContent: { paddingRight: spacing.md },
+ tableRow: { flexDirection: 'row' },
+ tableCell: { minWidth: 90, maxWidth: 260, paddingVertical: spacing.sm, paddingHorizontal: spacing.sm },
+});
diff --git a/src/components/git/notification-row.test.ts b/src/components/git/notification-row.test.ts
new file mode 100644
index 0000000..d0b16be
--- /dev/null
+++ b/src/components/git/notification-row.test.ts
@@ -0,0 +1,48 @@
+/** Notification subject URL → navigation target parsing. */
+
+import { parseSubjectUrl } from './notification-row';
+
+describe('parseSubjectUrl', () => {
+ it('returns null for missing input', () => {
+ expect(parseSubjectUrl(undefined)).toBeNull();
+ expect(parseSubjectUrl(null)).toBeNull();
+ expect(parseSubjectUrl('')).toBeNull();
+ });
+
+ it('parses API paths', () => {
+ expect(parseSubjectUrl('/api/v1/repos/octo/repo/issues/7')).toEqual({
+ kind: 'issue',
+ owner: 'octo',
+ repo: 'repo',
+ index: 7,
+ });
+ expect(parseSubjectUrl('/repos/octo/repo/pulls/3')).toEqual({
+ kind: 'pull',
+ owner: 'octo',
+ repo: 'repo',
+ index: 3,
+ });
+ });
+
+ it('parses absolute instance URLs', () => {
+ expect(parseSubjectUrl('https://codeberg.org/octo/repo/commits/abc123')).toEqual({
+ kind: 'commit',
+ owner: 'octo',
+ repo: 'repo',
+ sha: 'abc123',
+ });
+ });
+
+ it('falls back to a repository target', () => {
+ expect(parseSubjectUrl('/api/v1/repos/octo/repo')).toEqual({
+ kind: 'repo',
+ owner: 'octo',
+ repo: 'repo',
+ });
+ });
+
+ it('rejects non-repository URLs and non-numeric indexes', () => {
+ expect(parseSubjectUrl('/api/v1/user')).toBeNull();
+ expect(parseSubjectUrl('/repos/octo/repo/issues/not-a-number')).toBeNull();
+ });
+});
diff --git a/src/components/git/notification-row.tsx b/src/components/git/notification-row.tsx
new file mode 100644
index 0000000..e72a499
--- /dev/null
+++ b/src/components/git/notification-row.tsx
@@ -0,0 +1,144 @@
+import { Pressable, StyleSheet, View } from 'react-native';
+import { useTranslation } from 'react-i18next';
+
+import { AppText } from '@/components/ui/app-text';
+import { Icon, type IconName } from '@/components/ui/icon';
+import type { NotificationSubjectType, NotificationThread } from '@/core/api/types';
+import { formatRelativeTime } from '@/core/utils/format';
+import { useTheme } from '@/theme/theme-provider';
+import { HIT_TARGET, radius, spacing } from '@/theme/tokens';
+
+export type NotificationTarget =
+ | { kind: 'issue'; owner: string; repo: string; index: number }
+ | { kind: 'pull'; owner: string; repo: string; index: number }
+ | { kind: 'commit'; owner: string; repo: string; sha: string }
+ | { kind: 'repo'; owner: string; repo: string };
+
+/**
+ * Extracts a navigation target from a notification subject URL.
+ * Accepts both API paths (`/api/v1/repos/…`) and absolute instance URLs.
+ */
+export function parseSubjectUrl(url: string | undefined | null): NotificationTarget | null {
+ if (!url) return null;
+ let path = url;
+ try {
+ const parsed = new URL(url);
+ path = parsed.pathname;
+ } catch {
+ // Relative path — use as-is.
+ }
+ const match = path.match(
+ /^\/(?:api\/v1\/)?(?:repos\/)?([^/]+)\/([^/]+?)(?:\/(issues|pulls|commits?)\/([^/?#]+))?$/,
+ );
+ if (!match) return null;
+ const [, owner, repo, section, tail] = match;
+ if (section === 'issues') {
+ const index = Number(tail);
+ return Number.isInteger(index) && index > 0 ? { kind: 'issue', owner, repo, index } : null;
+ }
+ if (section === 'pulls') {
+ const index = Number(tail);
+ return Number.isInteger(index) && index > 0 ? { kind: 'pull', owner, repo, index } : null;
+ }
+ if (section === 'commits' && tail) return { kind: 'commit', owner, repo, sha: tail };
+ if (section === 'commit' && tail) return { kind: 'commit', owner, repo, sha: tail };
+ return { kind: 'repo', owner, repo };
+}
+
+function iconForType(type: NotificationSubjectType | undefined): IconName {
+ switch (type) {
+ case 'Issue':
+ return 'issue';
+ case 'Pull':
+ return 'pullRequest';
+ case 'Commit':
+ return 'commit';
+ default:
+ return 'repo';
+ }
+}
+
+export interface NotificationRowProps {
+ thread: NotificationThread;
+ onPress: () => void;
+}
+
+/** Inbox row: unread indicator, subject, repository and relative time. */
+export function NotificationRow({ thread, onPress }: NotificationRowProps) {
+ const { t } = useTranslation();
+ const { colors } = useTheme();
+
+ const unread = thread.unread === true;
+ const type = thread.subject?.type;
+ const typeLabel = {
+ Issue: t('inbox.typeIssue'),
+ Pull: t('inbox.typePull'),
+ Commit: t('inbox.typeCommit'),
+ Repository: t('inbox.typeRepository'),
+ }[type ?? 'Repository'];
+
+ return (
+ [
+ styles.row,
+ { borderBottomColor: colors.border },
+ pressed && { backgroundColor: colors.surfacePressed },
+ ]}
+ >
+
+
+
+
+
+
+ {thread.subject?.title ?? thread.repository?.full_name ?? ''}
+
+
+ {[
+ thread.repository?.full_name,
+ typeLabel,
+ thread.updated_at ? formatRelativeTime(thread.updated_at, t) : null,
+ ]
+ .filter(Boolean)
+ .join(' · ')}
+
+
+ {unread ? {t('inbox.unread')} : null}
+
+ );
+}
+
+const styles = StyleSheet.create({
+ row: {
+ flexDirection: 'row',
+ alignItems: 'center',
+ gap: spacing.sm,
+ minHeight: HIT_TARGET,
+ paddingVertical: spacing.md,
+ paddingHorizontal: spacing.lg,
+ borderBottomWidth: StyleSheet.hairlineWidth,
+ },
+ unreadDot: {
+ width: 8,
+ height: 8,
+ borderRadius: radius.pill,
+ },
+ iconBox: {
+ width: 32,
+ height: 32,
+ borderRadius: radius.md,
+ alignItems: 'center',
+ justifyContent: 'center',
+ },
+ body: { flex: 1, gap: 2 },
+});
diff --git a/src/components/git/repo-list-item.tsx b/src/components/git/repo-list-item.tsx
new file mode 100644
index 0000000..2a734ae
--- /dev/null
+++ b/src/components/git/repo-list-item.tsx
@@ -0,0 +1,119 @@
+import { Pressable, StyleSheet, View } from 'react-native';
+import { useTranslation } from 'react-i18next';
+
+import { AppText } from '@/components/ui/app-text';
+import { Badge } from '@/components/ui/badge';
+import { Icon } from '@/components/ui/icon';
+import { formatCount, formatRelativeTime } from '@/core/utils/format';
+import type { Repository } from '@/core/api/types';
+import { useTheme } from '@/theme/theme-provider';
+import { HIT_TARGET, radius, spacing } from '@/theme/tokens';
+
+export interface RepoListItemProps {
+ repo: Repository;
+ onPress?: () => void;
+}
+
+/** Repository row: owner/name, description, badges and a compact meta line. */
+export function RepoListItem({ repo, onPress }: RepoListItemProps) {
+ const { t } = useTranslation();
+ const { colors } = useTheme();
+
+ const owner = repo.owner?.login ?? repo.full_name.split('/')[0] ?? '';
+ const name = repo.name;
+
+ return (
+ [
+ styles.row,
+ { borderBottomColor: colors.border },
+ pressed && { backgroundColor: colors.surfacePressed },
+ ]}
+ >
+
+
+
+
+
+
+
+ {owner}/
+
+
+ {name}
+
+
+
+ {repo.description ? (
+
+ {repo.description}
+
+ ) : null}
+
+
+ {repo.private ? {t('repositories.private')} : null}
+ {repo.fork ? {t('repositories.fork')} : null}
+ {repo.archived ? {t('repositories.archived')} : null}
+ {repo.template ? {t('repositories.template')} : null}
+ {repo.mirror ? {t('repositories.mirror')} : null}
+
+ {repo.stars_count ? (
+
+ ) : null}
+ {repo.forks_count ? (
+
+ ) : null}
+
+
+
+
+ {onPress ? : null}
+
+ );
+}
+
+function Meta({ icon, text }: { icon: 'starOutline' | 'fork' | 'clock'; text: string }) {
+ const { colors } = useTheme();
+ return (
+
+
+
+ {text}
+
+
+ );
+}
+
+const styles = StyleSheet.create({
+ row: {
+ flexDirection: 'row',
+ alignItems: 'center',
+ gap: spacing.md,
+ minHeight: HIT_TARGET,
+ paddingVertical: spacing.md,
+ paddingHorizontal: spacing.lg,
+ borderBottomWidth: StyleSheet.hairlineWidth,
+ },
+ iconBox: {
+ width: 36,
+ height: 36,
+ borderRadius: radius.md,
+ alignItems: 'center',
+ justifyContent: 'center',
+ },
+ body: { flex: 1, gap: spacing.xs },
+ titleLine: { flexDirection: 'row', alignItems: 'baseline', flexWrap: 'wrap' },
+ nameText: { flexShrink: 1 },
+ metaLine: {
+ flexDirection: 'row',
+ alignItems: 'center',
+ flexWrap: 'wrap',
+ gap: spacing.md,
+ marginTop: 2,
+ },
+ meta: { flexDirection: 'row', alignItems: 'center', gap: spacing.xs },
+});
diff --git a/src/components/layout/header-buttons.tsx b/src/components/layout/header-buttons.tsx
new file mode 100644
index 0000000..aaaf381
--- /dev/null
+++ b/src/components/layout/header-buttons.tsx
@@ -0,0 +1,75 @@
+/**
+ * Reusable header buttons. They navigate to root-level screens (Settings,
+ * Accounts modal) from anywhere by typing the navigation prop as the root
+ * stack — React Navigation bubbles the navigation when the screen doesn't
+ * exist in the current navigator.
+ */
+
+import { useNavigation } from '@react-navigation/native';
+import type { NativeStackNavigationProp } from '@react-navigation/native-stack';
+import { useTranslation } from 'react-i18next';
+
+import { IconButton } from '@/components/ui/icon-button';
+import { useSession } from '@/features/accounts/use-session';
+import { Avatar } from '@/components/ui/avatar';
+import { Pressable, View } from 'react-native';
+import { HIT_TARGET } from '@/theme/tokens';
+import type { RootStackParamList } from '@/navigation/types';
+
+type RootNavigation = NativeStackNavigationProp;
+
+export function HeaderAccountButton() {
+ const navigation = useNavigation();
+ const { account, token, instance } = useSession();
+ const { t } = useTranslation();
+
+ return (
+ navigation.navigate('Accounts', { screen: 'Accounts' })}
+ accessibilityRole="button"
+ accessibilityLabel={t('accounts.title')}
+ hitSlop={6}
+ style={({ pressed }) => [
+ {
+ width: HIT_TARGET,
+ height: HIT_TARGET,
+ alignItems: 'center',
+ justifyContent: 'center',
+ borderRadius: 999,
+ },
+ pressed && { opacity: 0.7 },
+ ]}
+ >
+
+
+ );
+}
+
+export function HeaderSettingsButton() {
+ const navigation = useNavigation();
+ const { t } = useTranslation();
+ return (
+ navigation.navigate('Settings', { screen: 'Settings' })}
+ testID="header-settings"
+ />
+ );
+}
+
+export function HeaderAccountAndSettings() {
+ return (
+
+
+
+
+ );
+}
diff --git a/src/components/layout/query-list.tsx b/src/components/layout/query-list.tsx
new file mode 100644
index 0000000..3b8e13a
--- /dev/null
+++ b/src/components/layout/query-list.tsx
@@ -0,0 +1,150 @@
+import { FlashList } from '@shopify/flash-list';
+import type { ReactElement, ReactNode } from 'react';
+import { ActivityIndicator, StyleSheet, View } from 'react-native';
+import { useTranslation } from 'react-i18next';
+import type { InfiniteData, UseInfiniteQueryResult } from '@tanstack/react-query';
+
+import type { RawResponse } from '@/core/api/client';
+import { apiErrorMessage } from '@/core/api/error-text';
+import { ErrorState, LoadingView } from '@/components/ui/state-views';
+import { Skeleton } from '@/components/ui/skeleton';
+import { useTheme } from '@/theme/theme-provider';
+import { spacing } from '@/theme/tokens';
+
+type ListQuery = UseInfiniteQueryResult>, Error>;
+
+export interface QueryListProps {
+ query: ListQuery;
+ items: T[];
+ keyExtractor: (item: T, index: number) => string;
+ renderItem: (item: T, index: number) => ReactElement | null;
+ /** Rendered when the query succeeded with zero items. */
+ empty: ReactNode;
+ /** Rows of skeleton placeholders during the first load. */
+ loadingRows?: number;
+ header?: ReactElement;
+ footer?: ReactElement;
+ /** Extra bottom padding for the last item (avoids a clipped feel at scroll end). */
+ bottomInset?: number;
+}
+
+/**
+ * One list behaviour for the whole app:
+ * first-load skeleton → error+retry → empty state → FlashList with pull-to-refresh
+ * and infinite scroll (`onEndReached` guarded by `hasNextPage`).
+ */
+export function QueryList({
+ query,
+ items,
+ keyExtractor,
+ renderItem,
+ empty,
+ loadingRows = 6,
+ header,
+ footer,
+ bottomInset = spacing.xl,
+}: QueryListProps) {
+ const { t } = useTranslation();
+ const { colors } = useTheme();
+
+ const hasData = query.data !== undefined;
+
+ if (!hasData && query.isPending) {
+ return (
+
+ {header}
+
+
+ );
+ }
+
+ if (!hasData && query.isError) {
+ return (
+
+ {header}
+ void query.refetch()}
+ />
+
+ );
+ }
+
+ return (
+ renderItem(item, index)}
+ onEndReachedThreshold={0.4}
+ onEndReached={() => {
+ if (query.hasNextPage && !query.isFetchingNextPage) void query.fetchNextPage();
+ }}
+ refreshing={query.isRefetching && !query.isFetchingNextPage}
+ onRefresh={() => void query.refetch()}
+ ListHeaderComponent={header}
+ ListEmptyComponent={query.isError ? (
+ void query.refetch()}
+ />
+ ) : (
+ {empty}
+ )}
+ ListFooterComponent={
+ <>
+ {query.isFetchingNextPage ? (
+
+
+
+ ) : null}
+ {footer}
+
+ >
+ }
+ contentContainerStyle={items.length === 0 ? styles.grow : undefined}
+ showsVerticalScrollIndicator
+ />
+ );
+}
+
+function EmptyWrapper({ children }: { children: ReactNode }) {
+ return {children};
+}
+
+/** First-load placeholder rows (avatar/icon + two text lines). */
+export function ListSkeleton({ rows = 6 }: { rows?: number }) {
+ return (
+
+ {Array.from({ length: rows }, (_, index) => (
+
+
+
+
+
+
+
+ ))}
+
+ );
+}
+
+export const queryListLoadingView = LoadingView;
+
+const styles = StyleSheet.create({
+ flex: { flex: 1 },
+ grow: { flexGrow: 1 },
+ empty: { flexGrow: 1, paddingTop: spacing.xxl },
+ footerSpinner: { paddingVertical: spacing.lg, alignItems: 'center' },
+ skeletonRow: {
+ flexDirection: 'row',
+ alignItems: 'center',
+ gap: spacing.md,
+ paddingHorizontal: spacing.lg,
+ paddingVertical: spacing.md,
+ },
+ skeletonBody: { flex: 1, gap: spacing.sm },
+});
diff --git a/src/components/layout/screen.tsx b/src/components/layout/screen.tsx
new file mode 100644
index 0000000..760cc28
--- /dev/null
+++ b/src/components/layout/screen.tsx
@@ -0,0 +1,67 @@
+import type { ReactNode } from 'react';
+import {
+ ScrollView,
+ StyleSheet,
+ View,
+ type ScrollViewProps,
+ type StyleProp,
+ type ViewStyle,
+} from 'react-native';
+
+import { useTheme } from '@/theme/theme-provider';
+import { spacing } from '@/theme/tokens';
+
+export interface ScreenProps {
+ children: ReactNode;
+ /** Wrap in a ScrollView (default false — lists bring their own). */
+ scroll?: boolean;
+ /** Apply horizontal screen padding (default true). */
+ padded?: boolean;
+ /** Optional pull-to-refresh control forwarded to the ScrollView. */
+ refreshControl?: ScrollViewProps['refreshControl'];
+ contentContainerStyle?: StyleProp;
+ style?: StyleProp;
+}
+
+/** Base screen container: themed background, consistent padding, optional scroll. */
+export function Screen({
+ children,
+ scroll = false,
+ padded = true,
+ refreshControl,
+ contentContainerStyle,
+ style,
+}: ScreenProps) {
+ const { colors } = useTheme();
+ const padding = padded ? spacing.lg : 0;
+
+ if (scroll) {
+ return (
+
+ {children}
+
+ );
+ }
+
+ return (
+ {children}
+ );
+}
+
+/** Standard vertical gap between stacked screen sections. */
+export const SECTION_GAP = spacing.lg;
+
+const styles = StyleSheet.create({
+ flex: { flex: 1 },
+ scrollContent: { gap: spacing.lg },
+});
diff --git a/src/components/layout/section-header.tsx b/src/components/layout/section-header.tsx
new file mode 100644
index 0000000..5e02dd6
--- /dev/null
+++ b/src/components/layout/section-header.tsx
@@ -0,0 +1,48 @@
+import { Pressable, StyleSheet, View } from 'react-native';
+
+import { AppText } from '@/components/ui/app-text';
+import { Icon } from '@/components/ui/icon';
+import { useTheme } from '@/theme/theme-provider';
+import { spacing } from '@/theme/tokens';
+
+export interface SectionHeaderProps {
+ title: string;
+ actionLabel?: string;
+ onAction?: () => void;
+}
+
+/** Small section title with an optional "view all" action. */
+export function SectionHeader({ title, actionLabel, onAction }: SectionHeaderProps) {
+ const { colors } = useTheme();
+ return (
+
+
+ {title}
+
+ {actionLabel && onAction ? (
+
+
+ {actionLabel}
+
+
+
+ ) : null}
+
+ );
+}
+
+const styles = StyleSheet.create({
+ row: {
+ flexDirection: 'row',
+ alignItems: 'center',
+ justifyContent: 'space-between',
+ gap: spacing.sm,
+ },
+ title: { flexShrink: 1 },
+ action: { flexDirection: 'row', alignItems: 'center', gap: 2 },
+});
diff --git a/src/components/ui/app-text.tsx b/src/components/ui/app-text.tsx
new file mode 100644
index 0000000..d164aac
--- /dev/null
+++ b/src/components/ui/app-text.tsx
@@ -0,0 +1,88 @@
+import { Text, type StyleProp, type TextProps, type TextStyle } from 'react-native';
+
+import { useTheme } from '@/theme/theme-provider';
+import { fontFamily, fontSize, fontWeight } from '@/theme/tokens';
+
+export type TextVariant =
+ | 'display'
+ | 'title'
+ | 'heading'
+ | 'subheading'
+ | 'body'
+ | 'bodyMedium'
+ | 'secondary'
+ | 'caption'
+ | 'label'
+ | 'mono'
+ | 'monoSmall';
+
+export type TextTone =
+ | 'default'
+ | 'primary'
+ | 'secondary'
+ | 'tertiary'
+ | 'success'
+ | 'warning'
+ | 'error'
+ | 'info'
+ | 'merged'
+ | 'link'
+ | 'onPrimary';
+
+interface AppTextProps extends TextProps {
+ variant?: TextVariant;
+ tone?: TextTone;
+ style?: StyleProp;
+ children: React.ReactNode;
+}
+
+const VARIANT_STYLE: Record = {
+ display: { fontSize: fontSize.xxxl, fontWeight: fontWeight.bold, lineHeight: 36 },
+ title: { fontSize: fontSize.xxl, fontWeight: fontWeight.bold, lineHeight: 30 },
+ heading: { fontSize: fontSize.xl, fontWeight: fontWeight.semibold, lineHeight: 26 },
+ subheading: { fontSize: fontSize.lg, fontWeight: fontWeight.semibold, lineHeight: 22 },
+ body: { fontSize: fontSize.md, fontWeight: fontWeight.regular, lineHeight: 21 },
+ bodyMedium: { fontSize: fontSize.md, fontWeight: fontWeight.medium, lineHeight: 21 },
+ secondary: { fontSize: fontSize.md, fontWeight: fontWeight.regular, lineHeight: 21 },
+ caption: { fontSize: fontSize.xs, fontWeight: fontWeight.regular, lineHeight: 16 },
+ label: { fontSize: fontSize.sm, fontWeight: fontWeight.semibold, lineHeight: 18 },
+ mono: { fontSize: fontSize.md, fontWeight: fontWeight.regular, lineHeight: 21, fontFamily: fontFamily.mono },
+ monoSmall: { fontSize: fontSize.sm, fontWeight: fontWeight.regular, lineHeight: 18, fontFamily: fontFamily.mono },
+};
+
+/**
+ * The app's single text primitive. Every visible string in the app should be
+ * rendered through this component (usually with a translated `t()` value) so
+ * colors, type scale and font scaling behave consistently.
+ */
+export function AppText({ variant = 'body', tone = 'default', style, children, ...rest }: AppTextProps) {
+ const { colors } = useTheme();
+
+ const toneColor =
+ tone === 'default'
+ ? variant === 'secondary'
+ ? colors.textSecondary
+ : colors.text
+ : {
+ primary: colors.primary,
+ secondary: colors.textSecondary,
+ tertiary: colors.textTertiary,
+ success: colors.success,
+ warning: colors.warning,
+ error: colors.error,
+ info: colors.info,
+ merged: colors.merged,
+ link: colors.link,
+ onPrimary: colors.onPrimary,
+ }[tone];
+
+ return (
+
+ {children}
+
+ );
+}
diff --git a/src/components/ui/avatar.tsx b/src/components/ui/avatar.tsx
new file mode 100644
index 0000000..52275c4
--- /dev/null
+++ b/src/components/ui/avatar.tsx
@@ -0,0 +1,88 @@
+import { Image } from 'expo-image';
+import { StyleSheet, View } from 'react-native';
+
+import { AppText } from '@/components/ui/app-text';
+import { useTheme } from '@/theme/theme-provider';
+import { radius } from '@/theme/tokens';
+
+export interface AvatarProps {
+ /** Absolute avatar URL (from the API). */
+ url?: string | null;
+ /** Display name / username — used for initials fallback and alt text. */
+ name: string;
+ size?: number;
+ /**
+ * Auth token for the avatar's instance, when the instance requires auth
+ * for avatar requests. Never persisted — passed from the in-memory session.
+ */
+ token?: string | null;
+ /** Host the URL belongs to; token is only sent to this host. */
+ host?: string | null;
+}
+
+function initials(name: string): string {
+ const parts = name.trim().split(/[\s._-]+/).filter(Boolean);
+ if (parts.length === 0) return '?';
+ if (parts.length === 1) return parts[0].slice(0, 2).toUpperCase();
+ return (parts[0][0] + parts[1][0]).toUpperCase();
+}
+
+/**
+ * User/org avatar with initials fallback. When a token is supplied it is only
+ * attached to requests for the matching host (no cross-host token leakage).
+ */
+export function Avatar({ url, name, size = 40, token, host }: AvatarProps) {
+ const { colors } = useTheme();
+
+ let headers: Record | undefined;
+ if (token && host && url) {
+ try {
+ if (new URL(url).host === host) {
+ headers = { Authorization: `token ${token}` };
+ }
+ } catch {
+ // Malformed URL → no headers, image simply fails to its own fallback.
+ }
+ }
+
+ if (url) {
+ return (
+
+ );
+ }
+
+ return (
+
+
+ {initials(name)}
+
+
+ );
+}
+
+const styles = StyleSheet.create({
+ image: { overflow: 'hidden' },
+ fallback: { alignItems: 'center', justifyContent: 'center' },
+});
diff --git a/src/components/ui/badge.tsx b/src/components/ui/badge.tsx
new file mode 100644
index 0000000..ecfe70d
--- /dev/null
+++ b/src/components/ui/badge.tsx
@@ -0,0 +1,113 @@
+import { StyleSheet, View, type StyleProp, type ViewStyle } from 'react-native';
+
+import { AppText } from '@/components/ui/app-text';
+import { Icon, type IconName } from '@/components/ui/icon';
+import { useTheme } from '@/theme/theme-provider';
+import { radius, spacing } from '@/theme/tokens';
+
+export type BadgeTone = 'primary' | 'success' | 'warning' | 'error' | 'info' | 'neutral' | 'merged';
+
+export interface BadgeProps {
+ children: string;
+ tone?: BadgeTone;
+ icon?: IconName;
+ style?: StyleProp;
+}
+
+/** Small pill for statuses and counts. */
+export function Badge({ children, tone = 'neutral', icon, style }: BadgeProps) {
+ const { colors } = useTheme();
+
+ const bg = {
+ primary: colors.primaryMuted,
+ success: colors.successMuted,
+ warning: colors.warningMuted,
+ error: colors.errorMuted,
+ info: colors.infoMuted,
+ neutral: colors.neutralMuted,
+ merged: colors.mergedMuted,
+ }[tone];
+
+ const fg = {
+ primary: colors.primary,
+ success: colors.success,
+ warning: colors.warning,
+ error: colors.error,
+ info: colors.info,
+ neutral: colors.neutral,
+ merged: colors.merged,
+ }[tone];
+
+ return (
+
+ {icon ? : null}
+
+ {children}
+
+
+ );
+}
+
+export interface StatusBadgeProps {
+ /** 'open' | 'closed' | 'merged' | 'draft' — already translated by the caller. */
+ label: string;
+ state: 'open' | 'closed' | 'merged' | 'draft';
+}
+
+/**
+ * The canonical issue/PR state marker (GitHub-like semantics):
+ * open = green, closed = red, merged = purple, draft = neutral.
+ */
+export function StatusBadge({ label, state }: StatusBadgeProps) {
+ const { colors } = useTheme();
+ const { tone, icon } = {
+ open: { tone: 'success' as const, icon: 'check' as const },
+ closed: { tone: 'error' as const, icon: 'close' as const },
+ merged: { tone: 'merged' as const, icon: 'pullRequest' as const },
+ draft: { tone: 'neutral' as const, icon: 'edit' as const },
+ }[state];
+
+ const bg = {
+ success: colors.successMuted,
+ error: colors.errorMuted,
+ merged: colors.mergedMuted,
+ neutral: colors.neutralMuted,
+ }[tone] as string;
+
+ const fg = {
+ success: colors.success,
+ error: colors.error,
+ merged: colors.merged,
+ neutral: colors.neutral,
+ }[tone] as string;
+
+ return (
+
+
+
+ {label}
+
+
+ );
+}
+
+const styles = StyleSheet.create({
+ pill: {
+ flexDirection: 'row',
+ alignItems: 'center',
+ gap: spacing.xs,
+ paddingHorizontal: spacing.sm,
+ paddingVertical: 3,
+ borderRadius: radius.pill,
+ alignSelf: 'flex-start',
+ },
+ status: {
+ flexDirection: 'row',
+ alignItems: 'center',
+ gap: spacing.xs,
+ paddingHorizontal: spacing.md,
+ paddingVertical: 4,
+ borderRadius: radius.pill,
+ alignSelf: 'flex-start',
+ },
+});
diff --git a/src/components/ui/button.test.tsx b/src/components/ui/button.test.tsx
new file mode 100644
index 0000000..5d943db
--- /dev/null
+++ b/src/components/ui/button.test.tsx
@@ -0,0 +1,40 @@
+/** Button: press handling, disabled and busy states (minimum touch target is CSS, not asserted). */
+
+import { fireEvent, render, screen } from '@testing-library/react-native';
+import type { ReactElement } from 'react';
+
+import { AppThemeProvider } from '@/theme/theme-provider';
+
+import { Button } from './button';
+
+async function renderWithTheme(ui: ReactElement) {
+ await render({ui});
+}
+
+describe('Button', () => {
+ it('renders its label and fires onPress', async () => {
+ const onPress = jest.fn();
+ await renderWithTheme();
+ expect(screen.getByTestId('btn')).toBeTruthy();
+ await fireEvent.press(screen.getByTestId('btn'));
+ expect(onPress).toHaveBeenCalledTimes(1);
+ });
+
+ it('does not fire when disabled', async () => {
+ const onPress = jest.fn();
+ await renderWithTheme();
+ await fireEvent.press(screen.getByTestId('btn'));
+ expect(onPress).not.toHaveBeenCalled();
+ });
+
+ it('blocks presses while loading and reports a busy state', async () => {
+ const onPress = jest.fn();
+ await renderWithTheme();
+ await fireEvent.press(screen.getByTestId('btn'));
+ expect(onPress).not.toHaveBeenCalled();
+ expect(screen.getByTestId('btn').props.accessibilityState).toMatchObject({
+ busy: true,
+ disabled: true,
+ });
+ });
+});
diff --git a/src/components/ui/button.tsx b/src/components/ui/button.tsx
new file mode 100644
index 0000000..73222b6
--- /dev/null
+++ b/src/components/ui/button.tsx
@@ -0,0 +1,111 @@
+import {
+ ActivityIndicator,
+ Pressable,
+ StyleSheet,
+ type StyleProp,
+ type ViewStyle,
+} from 'react-native';
+
+import { AppText } from '@/components/ui/app-text';
+import { Icon, type IconName } from '@/components/ui/icon';
+import { useTheme } from '@/theme/theme-provider';
+import { fontSize, fontWeight, HIT_TARGET, radius, spacing } from '@/theme/tokens';
+
+export type ButtonVariant = 'primary' | 'secondary' | 'ghost' | 'danger';
+export type ButtonSize = 'md' | 'lg';
+
+export interface ButtonProps {
+ label: string;
+ onPress?: () => void;
+ variant?: ButtonVariant;
+ size?: ButtonSize;
+ iconLeft?: IconName;
+ iconRight?: IconName;
+ loading?: boolean;
+ disabled?: boolean;
+ fullWidth?: boolean;
+ style?: StyleProp;
+ accessibilityLabel?: string;
+ testID?: string;
+}
+
+/**
+ * The app's primary pressable. Guarantees a 44pt minimum touch target,
+ * clear pressed/disabled states and a busy (loading) mode that blocks
+ * double-submits.
+ */
+export function Button({
+ label,
+ onPress,
+ variant = 'primary',
+ size = 'md',
+ iconLeft,
+ iconRight,
+ loading = false,
+ disabled = false,
+ fullWidth = false,
+ style,
+ accessibilityLabel,
+ testID,
+}: ButtonProps) {
+ const { colors } = useTheme();
+ const isDisabled = disabled || loading;
+
+ const palette = {
+ primary: { bg: colors.primary, pressed: colors.primaryPressed, fg: colors.onPrimary, pressedFg: colors.onPrimary },
+ secondary: { bg: colors.surfaceSecondary, pressed: colors.surfacePressed, fg: colors.text, pressedFg: colors.text },
+ ghost: { bg: 'transparent', pressed: colors.surfaceSecondary, fg: colors.primary, pressedFg: colors.primary },
+ danger: { bg: colors.errorMuted, pressed: colors.error, fg: colors.error, pressedFg: colors.onPrimary },
+ }[variant];
+
+ const height = size === 'lg' ? 50 : HIT_TARGET;
+ const labelSize = size === 'lg' ? fontSize.lg : fontSize.md;
+ const iconSize = size === 'lg' ? 20 : 18;
+
+ return (
+ [
+ styles.base,
+ { height, borderRadius: radius.md, backgroundColor: pressed ? palette.pressed : palette.bg },
+ fullWidth && styles.fullWidth,
+ isDisabled && { opacity: 0.55 },
+ style,
+ ]}
+ >
+ {({ pressed }) => {
+ if (loading) {
+ return (
+
+ );
+ }
+ const fg = pressed ? palette.pressedFg : palette.fg;
+ return (
+ <>
+ {iconLeft ? : null}
+
+ {label}
+
+ {iconRight ? : null}
+ >
+ );
+ }}
+
+ );
+}
+
+const styles = StyleSheet.create({
+ base: {
+ flexDirection: 'row',
+ alignItems: 'center',
+ justifyContent: 'center',
+ gap: spacing.sm,
+ paddingHorizontal: spacing.lg,
+ },
+ fullWidth: { alignSelf: 'stretch' },
+});
diff --git a/src/components/ui/card.tsx b/src/components/ui/card.tsx
new file mode 100644
index 0000000..cfc37c8
--- /dev/null
+++ b/src/components/ui/card.tsx
@@ -0,0 +1,41 @@
+import { Pressable, StyleSheet, type StyleProp, type ViewStyle, View } from 'react-native';
+
+import { useTheme } from '@/theme/theme-provider';
+import { radius, shadows, spacing } from '@/theme/tokens';
+
+export interface CardProps {
+ children: React.ReactNode;
+ onPress?: () => void;
+ /** Subtle by default; `floating` adds a stronger shadow (for fixed footers). */
+ variant?: 'default' | 'flat' | 'floating';
+ padded?: boolean;
+ style?: StyleProp;
+}
+
+/** Surface container used for grouped content across the app. */
+export function Card({ children, onPress, variant = 'default', padded = true, style }: CardProps) {
+ const { colors } = useTheme();
+
+ const base: ViewStyle = {
+ backgroundColor: colors.surface,
+ borderRadius: radius.lg,
+ borderWidth: variant === 'flat' ? StyleSheet.hairlineWidth : 1,
+ borderColor: colors.border,
+ padding: padded ? spacing.lg : 0,
+ ...(variant === 'floating' ? shadows.floating : variant === 'default' ? shadows.card : null),
+ };
+
+ if (onPress) {
+ return (
+ [base, pressed && { backgroundColor: colors.surfacePressed }, style]}
+ >
+ {children}
+
+ );
+ }
+
+ return {children};
+}
diff --git a/src/components/ui/field.tsx b/src/components/ui/field.tsx
new file mode 100644
index 0000000..719e51a
--- /dev/null
+++ b/src/components/ui/field.tsx
@@ -0,0 +1,163 @@
+import { useState } from 'react';
+import {
+ Platform,
+ Pressable,
+ StyleSheet,
+ TextInput,
+ View,
+ type KeyboardTypeOptions,
+} from 'react-native';
+import { useTranslation } from 'react-i18next';
+
+import { AppText } from '@/components/ui/app-text';
+import { Icon, type IconName } from '@/components/ui/icon';
+import { useTheme } from '@/theme/theme-provider';
+import { fontSize, radius, spacing } from '@/theme/tokens';
+
+export interface FieldProps {
+ label: string;
+ value: string;
+ onChangeText: (text: string) => void;
+ placeholder?: string;
+ helper?: string;
+ error?: string;
+ /** Red border + error message. */
+ showError?: boolean;
+ secureTextEntry?: boolean;
+ mono?: boolean;
+ autoCapitalize?: 'none' | 'sentences' | 'words' | 'characters';
+ autoCorrect?: boolean;
+ keyboardType?: KeyboardTypeOptions;
+ returnKeyType?: 'done' | 'go' | 'next' | 'search' | 'send';
+ onSubmitEditing?: () => void;
+ editable?: boolean;
+ /** Trailing clear (×) button when there is text. */
+ clearable?: boolean;
+ leadingIcon?: IconName;
+ autoFocus?: boolean;
+ testID?: string;
+}
+
+/**
+ * Labeled text input with helper/error text, optional secret masking with a
+ * reveal toggle, and monospace mode for URLs/tokens.
+ */
+export function Field({
+ label,
+ value,
+ onChangeText,
+ placeholder,
+ helper,
+ error,
+ showError = false,
+ secureTextEntry = false,
+ mono = false,
+ autoCapitalize = 'none',
+ autoCorrect = false,
+ keyboardType,
+ returnKeyType,
+ onSubmitEditing,
+ editable = true,
+ clearable = false,
+ leadingIcon,
+ autoFocus = false,
+ testID,
+}: FieldProps) {
+ const { colors } = useTheme();
+ const { t } = useTranslation();
+ const [revealed, setRevealed] = useState(false);
+
+ const borderColor = showError && error ? colors.error : colors.border;
+ const resolvedSecure = secureTextEntry && !revealed;
+
+ return (
+
+
+ {label}
+
+
+ {leadingIcon ? (
+
+ ) : null}
+
+ {clearable && value.length > 0 && editable ? (
+ onChangeText('')}
+ accessibilityRole="button"
+ accessibilityLabel={t('common.clearField')}
+ hitSlop={8}
+ style={styles.trailing}
+ >
+
+
+ ) : null}
+ {secureTextEntry && editable ? (
+ setRevealed((r) => !r)}
+ accessibilityRole="button"
+ accessibilityLabel={revealed ? t('common.hideSecret') : t('common.showSecret')}
+ hitSlop={8}
+ style={styles.trailing}
+ >
+
+
+ ) : null}
+
+ {showError && error ? (
+
+ {error}
+
+ ) : helper ? (
+
+ {helper}
+
+ ) : null}
+
+ );
+}
+
+const styles = StyleSheet.create({
+ container: { gap: spacing.xs },
+ inputRow: {
+ flexDirection: 'row',
+ alignItems: 'center',
+ borderWidth: 1,
+ paddingHorizontal: spacing.md,
+ minHeight: 46,
+ },
+ input: {
+ flex: 1,
+ paddingVertical: spacing.sm,
+ },
+ mono: {
+ fontFamily: Platform.select({ ios: 'ui-monospace', android: 'monospace', default: 'monospace' }),
+ },
+ leading: { marginRight: spacing.sm },
+ trailing: { marginLeft: spacing.sm, padding: spacing.xs },
+});
diff --git a/src/components/ui/icon-button.tsx b/src/components/ui/icon-button.tsx
new file mode 100644
index 0000000..a8df818
--- /dev/null
+++ b/src/components/ui/icon-button.tsx
@@ -0,0 +1,51 @@
+import { Pressable, type StyleProp, type ViewStyle } from 'react-native';
+
+import { Icon, type IconName } from '@/components/ui/icon';
+import { useTheme } from '@/theme/theme-provider';
+import { HIT_TARGET } from '@/theme/tokens';
+
+export interface IconButtonProps {
+ name: IconName;
+ onPress: () => void;
+ accessibilityLabel: string;
+ size?: number;
+ /** Dimmed until pressed (header style) vs. always solid. */
+ muted?: boolean;
+ style?: StyleProp;
+ testID?: string;
+}
+
+/** 44×44 hit-target icon button used in headers and toolbars. */
+export function IconButton({
+ name,
+ onPress,
+ accessibilityLabel,
+ size = 22,
+ muted = false,
+ style,
+ testID,
+}: IconButtonProps) {
+ const { colors } = useTheme();
+ return (
+ [
+ {
+ width: HIT_TARGET,
+ height: HIT_TARGET,
+ alignItems: 'center',
+ justifyContent: 'center',
+ borderRadius: 8,
+ },
+ pressed && { backgroundColor: colors.surfacePressed },
+ style,
+ ]}
+ >
+
+
+ );
+}
diff --git a/src/components/ui/icon.tsx b/src/components/ui/icon.tsx
new file mode 100644
index 0000000..91dac0d
--- /dev/null
+++ b/src/components/ui/icon.tsx
@@ -0,0 +1,212 @@
+import { MaterialIcons } from '@expo/vector-icons';
+import { SymbolView, type SymbolViewProps } from 'expo-symbols';
+import { Platform, type StyleProp, type TextStyle } from 'react-native';
+
+/**
+ * Cross-platform icon: SF Symbols on iOS, Material Icons on Android/web.
+ * Every name is verified against both glyph sets.
+ */
+export type IconName =
+ | 'home'
+ | 'repo'
+ | 'file'
+ | 'folder'
+ | 'issue'
+ | 'pullRequest'
+ | 'bell'
+ | 'search'
+ | 'chevronLeft'
+ | 'chevronRight'
+ | 'chevronDown'
+ | 'close'
+ | 'check'
+ | 'plus'
+ | 'refresh'
+ | 'lock'
+ | 'person'
+ | 'people'
+ | 'star'
+ | 'starOutline'
+ | 'fork'
+ | 'branch'
+ | 'commit'
+ | 'tag'
+ | 'gear'
+ | 'externalLink'
+ | 'shield'
+ | 'globe'
+ | 'moon'
+ | 'sun'
+ | 'trash'
+ | 'info'
+ | 'warning'
+ | 'eye'
+ | 'eyeOff'
+ | 'copy'
+ | 'sort'
+ | 'filter'
+ | 'clock'
+ | 'at'
+ | 'package'
+ | 'book'
+ | 'key'
+ | 'inbox'
+ | 'mail'
+ | 'link'
+ | 'code'
+ | 'download'
+ | 'more'
+ | 'arrowLeft'
+ | 'history'
+ | 'dashboard'
+ | 'sortByDate'
+ | 'autoRenew'
+ | 'blocked'
+ | 'verified'
+ | 'unverified'
+ | 'edit';
+
+const SF: Record = {
+ home: 'house.fill',
+ repo: 'folder.fill',
+ file: 'doc.text',
+ folder: 'folder.fill',
+ issue: 'exclamationmark.circle',
+ pullRequest: 'arrow.triangle.merge',
+ bell: 'bell.fill',
+ search: 'magnifyingglass',
+ chevronLeft: 'chevron.left',
+ chevronRight: 'chevron.right',
+ chevronDown: 'chevron.down',
+ close: 'xmark',
+ check: 'checkmark',
+ plus: 'plus',
+ refresh: 'arrow.clockwise',
+ lock: 'lock.fill',
+ person: 'person.fill',
+ people: 'person.2.fill',
+ star: 'star.fill',
+ starOutline: 'star',
+ fork: 'arrow.triangle.branch',
+ branch: 'chevron.left.chevron.right',
+ commit: 'chevron.left.slash.chevron.right',
+ tag: 'tag.fill',
+ gear: 'gearshape',
+ externalLink: 'arrow.up.right.square',
+ shield: 'shield.fill',
+ globe: 'globe',
+ moon: 'moon.fill',
+ sun: 'sun.max.fill',
+ trash: 'trash',
+ info: 'info.circle',
+ warning: 'exclamationmark.triangle',
+ eye: 'eye.fill',
+ eyeOff: 'eye.slash.fill',
+ copy: 'doc.on.doc',
+ sort: 'arrow.up.arrow.down',
+ filter: 'line.3.horizontal.decrease',
+ clock: 'clock',
+ at: 'at',
+ package: 'shippingbox.fill',
+ book: 'book.closed.fill',
+ key: 'key.fill',
+ inbox: 'tray.fill',
+ mail: 'envelope.fill',
+ link: 'link',
+ code: 'chevron.left.forwardslash.chevron.right',
+ download: 'arrow.down.to.line',
+ more: 'ellipsis',
+ arrowLeft: 'arrow.left',
+ history: 'clock.arrow.circlepath',
+ dashboard: 'square.grid.2x2.fill',
+ sortByDate: 'calendar',
+ autoRenew: 'arrow.2.circlepath',
+ blocked: 'nosign',
+ verified: 'checkmark.seal.fill',
+ unverified: 'questionmark.circle',
+ edit: 'pencil',
+};
+
+const MD: Record = {
+ home: 'home',
+ repo: 'folder',
+ file: 'insert-drive-file',
+ folder: 'folder',
+ issue: 'radio-button-unchecked',
+ pullRequest: 'merge-type',
+ bell: 'notifications',
+ search: 'search',
+ chevronLeft: 'chevron-left',
+ chevronRight: 'chevron-right',
+ chevronDown: 'expand-more',
+ close: 'close',
+ check: 'check',
+ plus: 'add',
+ refresh: 'refresh',
+ lock: 'lock',
+ person: 'person',
+ people: 'people',
+ star: 'star',
+ starOutline: 'star-border',
+ fork: 'call-split',
+ branch: 'account-tree',
+ commit: 'commit',
+ tag: 'label',
+ gear: 'settings',
+ externalLink: 'open-in-new',
+ shield: 'shield',
+ globe: 'public',
+ moon: 'dark-mode',
+ sun: 'light-mode',
+ trash: 'delete',
+ info: 'info-outline',
+ warning: 'warning-amber',
+ eye: 'visibility',
+ eyeOff: 'visibility-off',
+ copy: 'content-copy',
+ sort: 'sort',
+ filter: 'filter-list',
+ clock: 'schedule',
+ at: 'alternate-email',
+ package: 'inventory-2',
+ book: 'menu-book',
+ key: 'key',
+ inbox: 'inbox',
+ mail: 'mail-outline',
+ link: 'link',
+ code: 'code',
+ download: 'download',
+ more: 'more-horiz',
+ arrowLeft: 'arrow-back',
+ history: 'history',
+ dashboard: 'dashboard',
+ sortByDate: 'schedule',
+ autoRenew: 'autorenew',
+ blocked: 'block',
+ verified: 'verified-user',
+ unverified: 'gpp-maybe',
+ edit: 'edit',
+};
+
+export interface IconProps {
+ name: IconName;
+ size?: number;
+ color?: string;
+ style?: StyleProp;
+}
+
+export function Icon({ name, size = 20, color, style }: IconProps) {
+ if (Platform.OS === 'ios' || Platform.OS === 'macos') {
+ return (
+
+ );
+ }
+ return ;
+}
diff --git a/src/components/ui/label-chip.tsx b/src/components/ui/label-chip.tsx
new file mode 100644
index 0000000..aed200d
--- /dev/null
+++ b/src/components/ui/label-chip.tsx
@@ -0,0 +1,81 @@
+import { StyleSheet, View } from 'react-native';
+
+import { AppText } from '@/components/ui/app-text';
+import { useTheme } from '@/theme/theme-provider';
+import { fontSize, radius, spacing } from '@/theme/tokens';
+
+/** Computes readable foreground text for an arbitrary background color. */
+export function contrastForeground(hex: string): string {
+ const clean = hex.replace('#', '');
+ const full =
+ clean.length === 3
+ ? clean
+ .split('')
+ .map((c) => c + c)
+ .join('')
+ : clean;
+ if (full.length !== 6) return '#FFFFFF';
+ const r = parseInt(full.slice(0, 2), 16);
+ const g = parseInt(full.slice(2, 4), 16);
+ const b = parseInt(full.slice(4, 6), 16);
+ if ([r, g, b].some((v) => Number.isNaN(v))) return '#FFFFFF';
+ // WCAG relative luminance.
+ const luminance = (0.2126 * r + 0.7152 * g + 0.0722 * b) / 255;
+ return luminance > 0.62 ? '#172019' : '#FFFFFF';
+}
+
+export interface LabelChipProps {
+ name: string;
+ /** Gitea label color, with or without '#'. */
+ color?: string | null;
+}
+
+/**
+ * Renders a Gitea label as a solid chip using the server-provided color,
+ * with contrast-aware text color. Falls back to the neutral palette when
+ * the color is missing or malformed.
+ */
+export function LabelChip({ name, color }: LabelChipProps) {
+ const { colors } = useTheme();
+ let background: string | null = null;
+ if (color && /^#?[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/.test(color)) {
+ background = color.startsWith('#') ? color : `#${color}`;
+ }
+ const foreground = background ? contrastForeground(background) : null;
+
+ return (
+
+
+ {name}
+
+
+ );
+}
+
+const styles = StyleSheet.create({
+ chip: {
+ paddingHorizontal: spacing.sm,
+ paddingVertical: 2,
+ borderRadius: radius.pill,
+ maxWidth: 180,
+ },
+ text: {
+ fontSize: fontSize.xs,
+ fontWeight: '700',
+ },
+});
diff --git a/src/components/ui/list-item.tsx b/src/components/ui/list-item.tsx
new file mode 100644
index 0000000..7666896
--- /dev/null
+++ b/src/components/ui/list-item.tsx
@@ -0,0 +1,116 @@
+import { Pressable, StyleSheet, View, type StyleProp, type ViewStyle } from 'react-native';
+
+import { AppText } from '@/components/ui/app-text';
+import { Icon, type IconName } from '@/components/ui/icon';
+import { useTheme } from '@/theme/theme-provider';
+import { HIT_TARGET, radius, spacing } from '@/theme/tokens';
+
+export interface ListItemProps {
+ title: string;
+ subtitle?: string;
+ /** Third line (e.g. timestamps or meta). */
+ meta?: string;
+ /** Leading visual: an icon name (rendered in a tinted square). */
+ leadingIcon?: IconName;
+ /** Extra content on the left, e.g. an (takes precedence). */
+ leading?: React.ReactNode;
+ /** Right-aligned content, e.g. a Badge. */
+ trailing?: React.ReactNode;
+ /** Show a chevron on the right (default true when onPress is set). */
+ showChevron?: boolean;
+ /** Right-aligned numeric/meta text instead of a chevron. */
+ rightText?: string;
+ onPress?: () => void;
+ /** Adds a bottom divider (list look). */
+ divider?: boolean;
+ style?: StyleProp;
+ accessibilityLabel?: string;
+}
+
+/** Standard row used in every list in the app. */
+export function ListItem({
+ title,
+ subtitle,
+ meta,
+ leadingIcon,
+ leading,
+ trailing,
+ showChevron,
+ rightText,
+ onPress,
+ divider = true,
+ style,
+ accessibilityLabel,
+}: ListItemProps) {
+ const { colors } = useTheme();
+ const chevron = showChevron ?? Boolean(onPress);
+
+ const content = (
+
+ {leading ?? (leadingIcon ? (
+
+
+
+ ) : null)}
+
+
+ {title}
+
+ {subtitle ? (
+
+ {subtitle}
+
+ ) : null}
+ {meta ? (
+
+ {meta}
+
+ ) : null}
+
+ {trailing ? {trailing} : null}
+ {rightText ? (
+
+ {rightText}
+
+ ) : null}
+ {chevron && !trailing ? (
+
+ ) : null}
+
+ );
+
+ if (!onPress) return content;
+
+ return (
+ pressed && { backgroundColor: colors.surfacePressed }}
+ >
+ {content}
+
+ );
+}
+
+const styles = StyleSheet.create({
+ row: {
+ flexDirection: 'row',
+ alignItems: 'center',
+ gap: spacing.md,
+ minHeight: HIT_TARGET,
+ paddingVertical: spacing.md,
+ paddingHorizontal: spacing.lg,
+ },
+ iconBox: {
+ width: 36,
+ height: 36,
+ borderRadius: radius.md,
+ alignItems: 'center',
+ justifyContent: 'center',
+ },
+ body: { flex: 1, gap: 2 },
+ trailing: { alignItems: 'flex-end', gap: 2 },
+ trailingText: { textAlign: 'right' },
+ chevron: { marginLeft: spacing.xs },
+});
diff --git a/src/components/ui/search-bar.tsx b/src/components/ui/search-bar.tsx
new file mode 100644
index 0000000..50595ef
--- /dev/null
+++ b/src/components/ui/search-bar.tsx
@@ -0,0 +1,71 @@
+import { Pressable, StyleSheet, TextInput, View } from 'react-native';
+
+import { Icon } from '@/components/ui/icon';
+import { useTheme } from '@/theme/theme-provider';
+import { fontSize, radius, spacing } from '@/theme/tokens';
+
+export interface SearchBarProps {
+ value: string;
+ onChangeText: (text: string) => void;
+ placeholder: string;
+ accessibilityLabel?: string;
+ testID?: string;
+}
+
+/** Rounded search field used above every list. */
+export function SearchBar({
+ value,
+ onChangeText,
+ placeholder,
+ accessibilityLabel,
+ testID,
+}: SearchBarProps) {
+ const { colors } = useTheme();
+ return (
+
+
+
+ {value.length > 0 ? (
+ onChangeText('')}
+ accessibilityRole="button"
+ accessibilityLabel={placeholder}
+ hitSlop={8}
+ >
+
+
+ ) : null}
+
+ );
+}
+
+const styles = StyleSheet.create({
+ wrap: {
+ flexDirection: 'row',
+ alignItems: 'center',
+ gap: spacing.sm,
+ borderRadius: radius.md,
+ paddingHorizontal: spacing.md,
+ minHeight: 40,
+ marginHorizontal: spacing.lg,
+ marginVertical: spacing.sm,
+ },
+ input: {
+ flex: 1,
+ fontSize: fontSize.md,
+ paddingVertical: spacing.sm,
+ },
+});
diff --git a/src/components/ui/segmented.tsx b/src/components/ui/segmented.tsx
new file mode 100644
index 0000000..e78cd30
--- /dev/null
+++ b/src/components/ui/segmented.tsx
@@ -0,0 +1,83 @@
+import { Pressable, StyleSheet, View } from 'react-native';
+
+import { AppText } from '@/components/ui/app-text';
+import { useTheme } from '@/theme/theme-provider';
+import { fontSize, radius, spacing } from '@/theme/tokens';
+
+export interface SegmentedControlProps {
+ options: readonly { value: T; label: string }[];
+ value: T;
+ onChange: (value: T) => void;
+ /** Accessibility name for the whole control. */
+ accessibilityLabel?: string;
+}
+
+/**
+ * iOS-style segmented control (also used on Android for consistency).
+ * Options split evenly; fits up to ~4 options comfortably, wraps beyond that.
+ */
+export function SegmentedControl({
+ options,
+ value,
+ onChange,
+ accessibilityLabel,
+}: SegmentedControlProps) {
+ const { colors } = useTheme();
+
+ return (
+
+ {options.map((option) => {
+ const selected = option.value === value;
+ return (
+ onChange(option.value)}
+ accessibilityRole="tab"
+ accessibilityState={{ selected }}
+ style={[
+ styles.segment,
+ selected && { backgroundColor: colors.surface, borderColor: colors.border },
+ ]}
+ >
+
+ {option.label}
+
+
+ );
+ })}
+
+ );
+}
+
+const styles = StyleSheet.create({
+ track: {
+ flexDirection: 'row',
+ borderRadius: radius.md,
+ padding: 3,
+ gap: 3,
+ },
+ segment: {
+ flex: 1,
+ alignItems: 'center',
+ justifyContent: 'center',
+ paddingVertical: spacing.sm,
+ paddingHorizontal: spacing.sm,
+ borderRadius: radius.sm,
+ borderWidth: StyleSheet.hairlineWidth,
+ borderColor: 'transparent',
+ minHeight: 34,
+ },
+ label: { fontSize: fontSize.sm },
+});
diff --git a/src/components/ui/skeleton.tsx b/src/components/ui/skeleton.tsx
new file mode 100644
index 0000000..9c5edcb
--- /dev/null
+++ b/src/components/ui/skeleton.tsx
@@ -0,0 +1,64 @@
+import { useEffect } from 'react';
+import { type StyleProp, type ViewStyle } from 'react-native';
+import Animated, {
+ useAnimatedStyle,
+ useSharedValue,
+ withRepeat,
+ withTiming,
+} from 'react-native-reanimated';
+
+import { useTheme } from '@/theme/theme-provider';
+import { radius, spacing } from '@/theme/tokens';
+
+export interface SkeletonProps {
+ width?: number | `${number}%`;
+ height?: number;
+ /** Corner radius; defaults to a small pill for text-like shapes. */
+ circular?: boolean;
+ style?: StyleProp;
+}
+
+/**
+ * Content-loading placeholder with a gentle pulse (Reanimated, UI-thread).
+ * Respect for reduced-motion is handled by the OS reducing animation scale;
+ * the pulse is opacity-only to stay cheap.
+ */
+export function Skeleton({ width = '100%', height = 16, circular = false, style }: SkeletonProps) {
+ const { colors } = useTheme();
+ const progress = useSharedValue(0.5);
+
+ useEffect(() => {
+ progress.value = withRepeat(withTiming(1, { duration: 900 }), -1, true);
+ }, [progress]);
+
+ const animatedStyle = useAnimatedStyle(() => ({ opacity: progress.value }));
+
+ return (
+
+ );
+}
+
+/** Stack of skeleton lines with varying widths, for list/text placeholders. */
+export function SkeletonText({ lines = 3, style }: { lines?: number; style?: StyleProp }) {
+ const widths: `${number}%`[] = ['100%', '86%', '64%', '92%', '74%'];
+ return (
+
+ {Array.from({ length: lines }, (_, i) => (
+
+ ))}
+
+ );
+}
diff --git a/src/components/ui/state-views.tsx b/src/components/ui/state-views.tsx
new file mode 100644
index 0000000..a6a9bdf
--- /dev/null
+++ b/src/components/ui/state-views.tsx
@@ -0,0 +1,115 @@
+import { ActivityIndicator, StyleSheet, View, type StyleProp, type ViewStyle } from 'react-native';
+
+import { AppText } from '@/components/ui/app-text';
+import { Button } from '@/components/ui/button';
+import { Icon, type IconName } from '@/components/ui/icon';
+import { useTheme } from '@/theme/theme-provider';
+import { radius, spacing } from '@/theme/tokens';
+
+/** Centered spinner with an optional label — used for first-page loads. */
+export function LoadingView({ label, style }: { label?: string; style?: StyleProp }) {
+ const { colors } = useTheme();
+ return (
+
+
+ {label ? (
+
+ {label}
+
+ ) : null}
+
+ );
+}
+
+export interface EmptyStateProps {
+ icon?: IconName;
+ title: string;
+ body?: string;
+ actionLabel?: string;
+ onAction?: () => void;
+}
+
+/** Friendly "nothing here" state — never a blank screen. */
+export function EmptyState({ icon = 'inbox', title, body, actionLabel, onAction }: EmptyStateProps) {
+ const { colors } = useTheme();
+ return (
+
+
+
+
+
+ {title}
+
+ {body ? (
+
+ {body}
+
+ ) : null}
+ {actionLabel && onAction ? (
+
+ ) : null}
+
+ );
+}
+
+export interface ErrorStateProps {
+ title?: string;
+ body?: string;
+ onRetry?: () => void;
+ retryLabel: string;
+ style?: StyleProp;
+}
+
+/** Error state with retry — the message body is already localized by the caller. */
+export function ErrorState({ title, body, onRetry, retryLabel, style }: ErrorStateProps) {
+ const { colors } = useTheme();
+ return (
+
+
+
+
+
+ {title}
+
+ {body ? (
+
+ {body}
+
+ ) : null}
+ {onRetry ? (
+
+ ) : null}
+
+ );
+}
+
+const styles = StyleSheet.create({
+ center: {
+ flexGrow: 1,
+ alignItems: 'center',
+ justifyContent: 'center',
+ gap: spacing.md,
+ padding: spacing.xl,
+ },
+ iconCircle: {
+ width: 64,
+ height: 64,
+ borderRadius: radius.pill,
+ alignItems: 'center',
+ justifyContent: 'center',
+ },
+});