mirror of
https://codeberg.org/secana/Forji.git
synced 2026-06-16 05:13:55 -07:00
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
This commit is contained in:
parent
d580156fa2
commit
ab393d0237
2 changed files with 2 additions and 2 deletions
|
|
@ -30,7 +30,7 @@ struct RepositoryDetailView: View {
|
||||||
enum DetailTab: String {
|
enum DetailTab: String {
|
||||||
case code = "Code"
|
case code = "Code"
|
||||||
case issues = "Issues"
|
case issues = "Issues"
|
||||||
case pulls = "Pull Requests"
|
case pulls = "PRs"
|
||||||
case actions = "Actions"
|
case actions = "Actions"
|
||||||
|
|
||||||
var icon: String {
|
var icon: String {
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ extension UITestNavigating {
|
||||||
navigateToRepoDetail()
|
navigateToRepoDetail()
|
||||||
let picker = app.segmentedControls["repo-detail-tab-picker"]
|
let picker = app.segmentedControls["repo-detail-tab-picker"]
|
||||||
XCTAssertTrue(picker.waitForExistence(timeout: 10))
|
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).
|
/// Resets the overview filter to Open + All involvement (the app defaults).
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue