Separate commit details from changed files

This commit is contained in:
Georg Bauer
2026-08-03 17:14:41 +02:00
parent d3bc65dee5
commit 1c4a6efd13
2 changed files with 12 additions and 5 deletions

View File

@@ -230,11 +230,12 @@ xcrun simctl launch booted de.rfc1437.gotcha
branch whose tip was deleted. branch whose tip was deleted.
- [ ] Open a commit and verify its header shows the full title and description, - [ ] Open a commit and verify its header shows the full title and description,
full hash, author, committer, date, known branch/ref, and signature status full hash, author, committer, date, known branch/ref, and signature status
above the Changed Files paths and statuses. Unsigned commits say above the Changed Files paths and statuses, with a thin system separator
**Unsigned**. Verify paragraphs, lists, links, and inline styles in a between the header and first file. Unsigned commits say **Unsigned**.
multi-line commit description use the repository file Preview Markdown Verify paragraphs, lists, links, and inline styles in a multi-line commit
presentation. Check that long values wrap and remain readable at the description use the repository file Preview Markdown presentation. Check
largest Dynamic Type accessibility size. that long values wrap and remain readable at the largest Dynamic Type
accessibility size.
- [ ] Open a changed file and verify the diff title, old/new line numbers, - [ ] Open a changed file and verify the diff title, old/new line numbers,
monospaced text, addition/removal/hunk colors, vertical scrolling, and monospaced text, addition/removal/hunk colors, vertical scrolling, and
source-style horizontal scrolling for long lines without word wrapping, source-style horizontal scrolling for long lines without word wrapping,

View File

@@ -403,6 +403,7 @@ private final class CommitHeaderView: UIView {
private let titleLabel = UILabel() private let titleLabel = UILabel()
private var descriptionView: UIView? private var descriptionView: UIView?
private let metadataStack = UIStackView() private let metadataStack = UIStackView()
private let bottomSeparator = separator()
override init(frame: CGRect) { override init(frame: CGRect) {
super.init(frame: frame) super.init(frame: frame)
@@ -422,11 +423,16 @@ private final class CommitHeaderView: UIView {
stack.addArrangedSubview(titleLabel) stack.addArrangedSubview(titleLabel)
stack.addArrangedSubview(metadataStack) stack.addArrangedSubview(metadataStack)
addSubview(stack) addSubview(stack)
bottomSeparator.translatesAutoresizingMaskIntoConstraints = false
addSubview(bottomSeparator)
NSLayoutConstraint.activate([ NSLayoutConstraint.activate([
stack.leadingAnchor.constraint(equalTo: layoutMarginsGuide.leadingAnchor), stack.leadingAnchor.constraint(equalTo: layoutMarginsGuide.leadingAnchor),
stack.trailingAnchor.constraint(equalTo: layoutMarginsGuide.trailingAnchor), stack.trailingAnchor.constraint(equalTo: layoutMarginsGuide.trailingAnchor),
stack.topAnchor.constraint(equalTo: layoutMarginsGuide.topAnchor), stack.topAnchor.constraint(equalTo: layoutMarginsGuide.topAnchor),
stack.bottomAnchor.constraint(equalTo: layoutMarginsGuide.bottomAnchor), stack.bottomAnchor.constraint(equalTo: layoutMarginsGuide.bottomAnchor),
bottomSeparator.leadingAnchor.constraint(equalTo: leadingAnchor),
bottomSeparator.trailingAnchor.constraint(equalTo: trailingAnchor),
bottomSeparator.bottomAnchor.constraint(equalTo: bottomAnchor),
]) ])
} }