Prepare Gotcha 1.0 for release

This commit is contained in:
Georg Bauer
2026-08-03 17:54:07 +02:00
parent 1c4a6efd13
commit 46cca8fdd2
60 changed files with 7916 additions and 7173 deletions

View File

@@ -221,7 +221,7 @@ func filterMenuImage(_ symbol: String, active: Bool) -> UIImage? {
}
func configureRepositoryContentCell(_ cell: UITableViewCell, row: RepositoryContentRow) {
let directory = row.kind == "dir"
let directory = row.kind == .directory
let detail = directory
? "Folder"
: ByteCountFormatter.string(fromByteCount: row.size, countStyle: .file)
@@ -242,7 +242,7 @@ func showRepositoryContent(
repository: String,
navigationController: UINavigationController?
) {
let destination: UIViewController = row.kind == "dir"
let destination: UIViewController = row.kind == .directory
? RepositoryDirectoryViewController(
context: context,
owner: owner,
@@ -277,7 +277,7 @@ func symbolText(_ symbol: String, text: String, font: UIFont, color: UIColor) ->
func configureIssueStateIcon(
_ icon: UIImageView,
state: String,
state: WorkItemState,
textStyle: UIFont.TextStyle
) {
configureOpenClosedStateIcon(icon, state: state, subject: "issue", textStyle: textStyle)
@@ -285,7 +285,7 @@ func configureIssueStateIcon(
func configureOpenClosedStateIcon(
_ icon: UIImageView,
state: String,
state: WorkItemState,
subject: String,
textStyle: UIFont.TextStyle
) {
@@ -293,15 +293,15 @@ func configureOpenClosedStateIcon(
let color: UIColor
let accessibilityLabel: String
switch state {
case "open":
case .open:
(symbol, color, accessibilityLabel) = (
"exclamationmark.circle.fill", .systemGreen, "Open \(subject)"
)
case "closed":
case .closed:
(symbol, color, accessibilityLabel) = (
"checkmark.circle.fill", .systemPurple, "Closed \(subject)"
)
default:
case .unknown:
(symbol, color, accessibilityLabel) = (
"questionmark.circle.fill", .systemGray, "Unknown \(subject) state"
)
@@ -385,3 +385,10 @@ final class IssueLabelsView: UIView {
setNeedsLayout()
}
}
func separator() -> UIView {
let line = UIView()
line.backgroundColor = .separator
line.heightAnchor.constraint(equalToConstant: 1 / UIScreen.main.scale).isActive = true
return line
}