Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[iOS] - Cleanup UI and Strings #27858

Merged
merged 1 commit into from
Feb 28, 2025
Merged

[iOS] - Cleanup UI and Strings #27858

merged 1 commit into from
Feb 28, 2025

Conversation

Brandon-T
Copy link
Contributor

@Brandon-T Brandon-T commented Feb 27, 2025

Summary

  • Cleanup VPN, AIChat, and RecentlyClosedTabs UI
  • Cleanup Wallet Strings from AIChat (not sure how they got there)
  • Fix warnings in Package.swift

Resolves brave/brave-browser#44298

Submitter Checklist:

  • I confirm that no security/privacy review is needed and no other type of reviews are needed, or that I have requested them
  • There is a ticket for my issue
  • Used Github auto-closing keywords in the PR description above
  • Wrote a good PR/commit description
  • Squashed any review feedback or "fixup" commits before merge, so that history is a record of what happened in the repo, not your PR
  • Added appropriate labels (QA/Yes or QA/No; release-notes/include or release-notes/exclude; OS/...) to the associated issue
  • Checked the PR locally:
    • npm run test -- brave_browser_tests, npm run test -- brave_unit_tests wiki
    • npm run presubmit wiki, npm run gn_check, npm run tslint
  • Ran git rebase master (if needed)

Reviewer Checklist:

  • A security review is not needed, or a link to one is included in the PR description
  • New files have MPL-2.0 license header
  • Adequate test coverage exists to prevent regressions
  • Major classes, functions and non-trivial code blocks are well-commented
  • Changes in component dependencies are properly reflected in gn
  • Code follows the style guide
  • Test plan is specified in PR before merging

After-merge Checklist:

Test Plan:

@Brandon-T Brandon-T added CI/skip-android Do not run CI builds for Android CI/skip-macos-x64 Do not run CI builds for macOS x64 CI/skip-windows-x64 Do not run CI builds for Windows x64 unused-CI/skip-linux-x64 Do not run CI builds for Linux x64 CI/skip-macos-arm64 Do not run CI builds for macOS arm64 CI/skip-teamcity Do not run builds in TeamCity labels Feb 27, 2025
@Brandon-T Brandon-T self-assigned this Feb 27, 2025
@Brandon-T Brandon-T requested a review from a team as a code owner February 27, 2025 18:42
@Brandon-T Brandon-T requested a review from nuo-xu February 27, 2025 18:43
Copy link
Contributor

[puLL-Merge] - brave/brave-core@27858

Description

This PR includes multiple UI improvements and code cleanup across the Brave iOS app, primarily focused on standardizing font styles and simplifying view modifiers. It also removes several localization files from the AIChat component.

Changes

Changes

  1. LeoAssetsPlugin.swift
  • Simplified guard statement syntax by removing unused variable assignment
  1. UI Components Updates
  • Standardized font styling by replacing .body.weight(.semibold) with .headline across multiple views
  • Simplified background modifiers by using .capsule shape instead of Capsule()
  • Removed redundant alignment parameters in frame modifiers
  • Consolidated view modifiers
  1. Localization
  • Removed BraveWallet.strings files for multiple locales:
    • ca, de, en, es, fr, id-ID, it, ja, ko-KR, ms, nb, pl, pt-BR, ru, sv, tr, uk, zh-TW, zh
sequenceDiagram
    participant UI as UI Components
    participant Style as Style System
    participant Plugin as LeoAssetsPlugin
    
    UI->>Style: Replace custom font weights
    Style-->>UI: Return .headline style
    UI->>Style: Simplify background modifiers
    Style-->>UI: Apply .capsule shape
    Plugin->>Plugin: Simplify guard statement
Loading

Possible Issues

  1. The removal of localization files might impact the app's internationalization if these files are being referenced elsewhere in the codebase.
  2. Changing from custom font weights to predefined styles (.headline) might cause subtle visual differences in the UI that need to be validated against design specifications.

Cleanup VPN and AIChat and RecentlyClosedTabsUI
@Brandon-T Brandon-T merged commit cd59f2e into master Feb 28, 2025
18 checks passed
@Brandon-T Brandon-T deleted the bugfix/Cleanup_iOS branch February 28, 2025 03:43
@github-actions github-actions bot added this to the 1.78.x - Nightly milestone Feb 28, 2025
@brave-builds
Copy link
Collaborator

Released in v1.78.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI/skip-android Do not run CI builds for Android CI/skip-macos-arm64 Do not run CI builds for macOS arm64 CI/skip-macos-x64 Do not run CI builds for macOS x64 CI/skip-teamcity Do not run builds in TeamCity CI/skip-windows-x64 Do not run CI builds for Windows x64 puLL-Merge unused-CI/skip-linux-x64 Do not run CI builds for Linux x64
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[iOS] - Cleanup SwiftUI and Strings
3 participants