Use consistent snapshot and loading labels

This commit is contained in:
Ian Gulliver
2026-10-21 10:23:57 -07:00
parent e2faadf61e
commit 48a05d92de
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -19,7 +19,7 @@ enum ChangeMode {
private let emptyText: [ChangeMode: String] = [
.main: "No changes from the default branch.",
.turn: "No changes this turn.",
.step: "This step changed nothing.",
.step: "This snapshot changed nothing.",
]
struct ChangesMemory {
@@ -321,7 +321,7 @@ private struct ChangesHead: View {
RangeTabButton(label: "Since default branch", active: model.pinRange == .main) {
model.setPinRange(.main)
}
RangeTabButton(label: "This step", active: model.pinRange == .step) {
RangeTabButton(label: "This snapshot", active: model.pinRange == .step) {
model.setPinRange(.step)
}
RangeTabButton(label: "Live", active: false, help: "Back to the live worktree") {
@@ -472,7 +472,7 @@ private struct FileRow: View {
Group {
switch model.diffs[file.path] {
case .none:
Text("loading…").foregroundStyle(Palette.muted).padding(.horizontal, 10).padding(.vertical, 6)
Text("Loading…").foregroundStyle(Palette.muted).padding(.horizontal, 10).padding(.vertical, 6)
case .failure(let e):
Text(e.message).foregroundStyle(Palette.danger).padding(.horizontal, 10).padding(.vertical, 6)
case .success(let patch):