From ab393d02374539c49842cc4530dd72ffe4657a29 Mon Sep 17 00:00:00 2001 From: systemBlue Date: Tue, 9 Jun 2026 12:15:52 +0200 Subject: [PATCH] feat: shorten the Pull Requests tab to PRs in repository detail (#59) ## What The repository detail's segmented control has four segments (Code, Issues, Pull Requests, Actions). "Pull Requests" dominated the width, squeezed "Code", and truncated on narrower iPhones. Shortening it to "PRs" balances the segments and keeps them legible. Verified in the iPhone 17 Pro simulator (segments now even); builds clean on Xcode 26, SwiftLint passes. --- I grant Stefan Hausotte an irrevocable, worldwide, royalty-free license to use, sublicense, and distribute my contribution, including through Apple's App Store under the project's App Store exception. Reviewed-on: https://codeberg.org/secana/Forji/pulls/59 --- Forji/Forji/Views/RepositoryDetailView.swift | 2 +- Forji/ForjiUITests/UITestNavigating.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Forji/Forji/Views/RepositoryDetailView.swift b/Forji/Forji/Views/RepositoryDetailView.swift index f7c735f..58328aa 100644 --- a/Forji/Forji/Views/RepositoryDetailView.swift +++ b/Forji/Forji/Views/RepositoryDetailView.swift @@ -30,7 +30,7 @@ struct RepositoryDetailView: View { enum DetailTab: String { case code = "Code" case issues = "Issues" - case pulls = "Pull Requests" + case pulls = "PRs" case actions = "Actions" var icon: String { diff --git a/Forji/ForjiUITests/UITestNavigating.swift b/Forji/ForjiUITests/UITestNavigating.swift index b253e6b..eb20b38 100644 --- a/Forji/ForjiUITests/UITestNavigating.swift +++ b/Forji/ForjiUITests/UITestNavigating.swift @@ -25,7 +25,7 @@ extension UITestNavigating { navigateToRepoDetail() let picker = app.segmentedControls["repo-detail-tab-picker"] XCTAssertTrue(picker.waitForExistence(timeout: 10)) - picker.buttons["Pull Requests"].tap() + picker.buttons["PRs"].tap() } /// Resets the overview filter to Open + All involvement (the app defaults).