Skip to content

Rename the labelStyle argument to describe its effect - #149

Merged
Kyome22 merged 1 commit into
mainfrom
rename-label-style-argument
Nov 29, 2026
Merged

Kyome22 merged 1 commit into
mainfrom
rename-label-style-argument

Conversation

@Kyome22

@Kyome22 Kyome22 commented Nov 29, 2026

Copy link
Copy Markdown
Collaborator

Context of Contribution

  • Bug Fix
  • Refactoring
  • New Feature
  • Localization (new language or translation update)
  • Others

Summary of the Proposal

labelStyle(isReady:) is a general View extension, but its argument name describes the state of RunnerBar. Without looking at the call site, it is unclear which style each value selects.

This PR renames the argument to showsTitle:

  • true shows the title and icon.
  • false shows only the icon.

RunnerBarView now passes !store.isReady. Both the condition and the branches are inverted, so each state still uses the same label style.

The helper is still needed because .iconOnly and .titleAndIcon have different types, so they cannot be combined in a ternary expression passed to labelStyle(_:).

The project builds, and all 294 tests pass. There are no UI tests, and the app has not been checked manually with this change.

Checklist

  • I have read the CONTRIBUTING.md and agree to follow it.
  • This PR does not contain commits of multiple contexts.
  • The diff is minimal — no unrelated refactors, whitespace churn, or drive-by cleanups.
  • Code follows proper indentation and naming conventions.
  • Layering follows the LUCA architecture: no logic in DependencyClient, no logic in UserInterface views, no Asset/String Catalog references from Model.
  • Implemented using only APIs that can be submitted to the App Store.
  • Localization PRs only: Every translated string in this PR was hand-crafted by a human translator. No machine translation or LLM output was used. See CONTRIBUTING.md → Localization.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Kyome22
Kyome22 merged commit a50fb93 into main Nov 29, 2026
@Kyome22
Kyome22 deleted the rename-label-style-argument branch November 29, 2026 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant