oficina / equipo Public

Tighten attachment fixture labels and touch targets

Paul Campbell pushed by paul@keymail.dev 91681a88bb229c851898ff9f2b3769e8fe9649ff parent f181736
4 files changed, +7 −7
  • native/mockups/Mac/NativeComposer.swift +1 −1
  • native/mockups/Shared/Components.swift +2 −2
  • native/mockups/iOS/EquipoPhoneApp.swift +2 −2
  • native/mockups/iOS/PhoneComposer.swift +2 −2

CI passed — run details

diff --git a/native/mockups/Mac/NativeComposer.swift b/native/mockups/Mac/NativeComposer.swift
index 3e85c2e4..de77cb64 100644
--- a/native/mockups/Mac/NativeComposer.swift
+++ b/native/mockups/Mac/NativeComposer.swift
@@ -188,7 +188,7 @@ final class NativeComposer: NSView, NSTextViewDelegate {
label.font = .systemFont(ofSize: 13); label.textColor = .webText
label.frame = NSRect(x: 12, y: 8, width: 148, height: 18)
chip.addSubview(label)
- let note = NSTextField(labelWithString: attachment.state == .failed ? "Could not upload. Try again." : attachment.state == .uploading ? "Uploading…" : "PDF · 24 KB")
+ let note = NSTextField(labelWithString: attachment.state == .failed ? "Could not upload. Try again." : attachment.state == .uploading ? "Uploading…" : (attachment.name.hasSuffix("png") ? "Image · 24 KB" : "PDF · 24 KB"))
note.font = .systemFont(ofSize: 11); note.textColor = attachment.state == .failed ? .web(0xB91C1C, 0xF79AA0) : .webPlaceholder
note.frame = NSRect(x: 12, y: 29, width: 170, height: 17); chip.addSubview(note)
let remove = ActionButton("") { [weak self] in
diff --git a/native/mockups/Shared/Components.swift b/native/mockups/Shared/Components.swift
index 440851e7..0a13512f 100644
--- a/native/mockups/Shared/Components.swift
+++ b/native/mockups/Shared/Components.swift
@@ -145,7 +145,7 @@ struct ConnectionsContent: View {
}.font(.subheadline)
QuietLabel(text: "Configured limits. Remaining budget and reset times are not available in the person API.")
NavigationLink(value: "usage-concept") {
- Label("Preview web Usage parity", systemImage: "arrow.up.right").frame(minHeight: 44, alignment: .leading)
+ Label("Preview web Usage parity", systemImage: "arrow.up.right").frame(minHeight: 44, alignment: .leading).contentShape(Rectangle())
}.font(.subheadline)
}
}
@@ -197,7 +197,7 @@ struct WebConceptView: View {
Text("Still unknown").font(.headline)
Text("Whether shared calendars need an administrator’s approval.")
}
- DisclosureGroup { QuietLabel(text: "Two pages read. No images kept.") } label: { Text("Fetch log and kept images").frame(minHeight: 44, alignment: .leading) }
+ DisclosureGroup { QuietLabel(text: "Two pages read. No images kept.") } label: { Text("Fetch log and kept images").frame(minHeight: 44, alignment: .leading).contentShape(Rectangle()) }
} else if screen == "usage-concept" {
Text("Usage").font(.title2.weight(.semibold))
Panel {
diff --git a/native/mockups/iOS/EquipoPhoneApp.swift b/native/mockups/iOS/EquipoPhoneApp.swift
index cb3a0b03..264270c1 100644
--- a/native/mockups/iOS/EquipoPhoneApp.swift
+++ b/native/mockups/iOS/EquipoPhoneApp.swift
@@ -192,7 +192,7 @@ struct PhoneTask: View {
if task.needs_you { QuestionCard(question: store.question, answer: $answer) }
Text("Steps").font(.headline)
StepsView(task: task)
- NavigationLink(value: "copy-hold") { Text("Preview a Copy budget hold").frame(minHeight: 44, alignment: .leading) }
+ NavigationLink(value: "copy-hold") { Text("Preview a Copy budget hold").frame(minHeight: 44, alignment: .leading).contentShape(Rectangle()) }
}.padding(20)
}.background(Palette.background).navigationTitle("Task").navigationBarTitleDisplayMode(.inline)
@@ -211,7 +211,7 @@ struct PhoneNeeds: View {
Label("Equipo", systemImage: "folder").font(.subheadline).foregroundStyle(Palette.secondary)
}
QuestionCard(question: store.question, answer: $answer)
- NavigationLink(value: "task") { Label("Open task and steps", systemImage: "arrow.right").frame(minHeight: 44, alignment: .leading) }
+ NavigationLink(value: "task") { Label("Open task and steps", systemImage: "arrow.right").frame(minHeight: 44, alignment: .leading).contentShape(Rectangle()) }
Divider()
QuietLabel(text: "Work that is running or waiting for a runner stays in Tasks.")
}.padding(20)
diff --git a/native/mockups/iOS/PhoneComposer.swift b/native/mockups/iOS/PhoneComposer.swift
index 7490c28f..8fbff254 100644
--- a/native/mockups/iOS/PhoneComposer.swift
+++ b/native/mockups/iOS/PhoneComposer.swift
@@ -37,13 +37,13 @@ struct PhoneComposer: View {
Image(systemName: attachment.name.hasSuffix("png") ? "photo" : "doc").foregroundStyle(Palette.secondary)
VStack(alignment: .leading, spacing: 3) {
Text(attachment.name).font(.subheadline).lineLimit(1)
- Text(attachment.state == .failed ? "Could not upload. Try again." : attachment.state == .uploading ? "Uploading…" : "PDF · 24 KB")
+ Text(attachment.state == .failed ? "Could not upload. Try again." : attachment.state == .uploading ? "Uploading…" : (attachment.name.hasSuffix("png") ? "Image · 24 KB" : "PDF · 24 KB"))
.font(.caption).foregroundStyle(attachment.state == .failed ? Palette.negative : Palette.secondary)
if attachment.state == .uploading { ProgressView(value: 0.45).tint(Palette.accent) }
}
Spacer(minLength: 0)
Button { draft.attachments.removeAll { $0.id == attachment.id } } label: {
- Image(systemName: "xmark").font(.body).foregroundStyle(Palette.secondary).frame(width: 44, height: 44)
+ Image(systemName: "xmark").font(.body).foregroundStyle(Palette.secondary).frame(width: 44, height: 44).contentShape(Rectangle())
}.buttonStyle(.plain).controlSize(.large).accessibilityLabel("Remove \(attachment.name)").modifier(ControlMeasurement(title: "Remove attachment", primary: false))
}.padding(.leading, 12).padding(.vertical, 6)
.background(attachment.state == .failed ? Palette.negativeBackground : Palette.background, in: RoundedRectangle(cornerRadius: 10))