Render patch changes with Pierre

This commit is contained in:
Rūdolfs Ošiņš
2026-08-14 17:30:46 +02:00
parent bdd5b49b8d
commit 42a141bd8b
35 changed files with 3773 additions and 2665 deletions
@@ -14,8 +14,19 @@ export class DiffFileHeaderState {
collapsed = $state(false);
// `undefined` hides the actions menu.
text = $state<(() => Promise<string>) | undefined>(undefined);
// `undefined` hides the reviewed toggle, which only exists while a draft
// review is open.
reviewed = $state<boolean | undefined>(undefined);
// Code-comment threads anchored in this file. Only threads that can be
// resolved are counted, so a file never shows permanently unresolved work
// (see `CodeComments.canResolveComment`).
resolvedComments = $state(0);
unresolvedComments = $state(0);
// Not `$state`: read only at click time. Set per file in `syncHeaderSlots`.
onToggleCollapse: () => void = () => {
// Replaced per file.
};
onToggleReviewed: () => void = () => {
// Replaced per file.
};
}