Skip to content

New router#22

Merged
aromanov91 merged 11 commits intomainfrom
new-router
Jul 1, 2025
Merged

New router#22
aromanov91 merged 11 commits intomainfrom
new-router

Conversation

@aromanov91
Copy link
Copy Markdown
Contributor

No description provided.

# Conflicts:
#	Sources/OversizeKit/SettingsKit/Views/Security/SecuritySettingsView.swift
Copilot AI review requested due to automatic review settings June 30, 2025 10:15
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors navigation to use NavigatorUI/OversizeNavigation, updates UI layouts to NavigationLayoutView, and centralizes routing via SettingsDestinations. It also modernizes async review and launch flows, replaces legacy Router usage, and cleans up logging.

  • Migrate from custom Router to navigator and SettingsDestinations across Settings and Store modules
  • Update various Views to NavigationLayoutView, adjust toolbars, and safe‐area insets
  • Add async handling to review and launcher flows, inject subscription names, and reorganize dependencies

Reviewed Changes

Copilot reviewed 44 out of 45 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
Sources/OversizeNoticeKit/NoticeListViewModel.swift Simplify review banner flag and remove old computed property
Sources/OversizeNoticeKit/NoticeListView.swift Wrap reviewService calls in Task with await
Sources/OversizeKit/SystemKit/SystemServices.swift Change accentColortint and update injected review service
Sources/OversizeKit/StoreKit/Views/SubscriptionPrivacyView.swift Add subscriptionsName parameter and replace static Info lookup
Sources/OversizeKit/StoreKit/Views/PrmiumBannerRow.swift Refactor navigation to navigator, remove default badge fallback
Sources/OversizeKit/StoreKit/ViewModifier/OnPremiumTap.swift Replace sheet presentation with navigator.navigate
Sources/OversizeKit/StoreKit/StoreScreen/ViewModel/StoreViewModel.swift Replace generic log with logError/logInfo/logSuccess
Sources/OversizeKit/StoreKit/StoreScreen/StoreView.swift Switch to NavigationLayoutView, configure toolbar/title mode
Sources/OversizeKit/SettingsKit/Views/* Convert Page/PageView to NavigationLayoutView, inject navigator
Sources/OversizeKit/SettingsKit/SettingsRouter/SettingsDestinations.swift Introduce SettingsDestinations enum for navigation targets
Sources/OversizeKit/LauncherKit/LauncherViewModel.swift Add async onboarding/app‐update callbacks and enhance logging
Sources/OversizeKit/LauncherKit/Launcher.swift Refactor launch flow to .task(viewModel.onAppear) and scene handling
Package.swift Extract commonDependencies, reorganize package lists
AppExample/Example/* Update import Factoryimport FactoryKit in example targets
Comments suppressed due to low confidence (2)

Sources/OversizeKit/SettingsKit/SettingsRouter/SettingsDestinations.swift:18

  • The ourResorses case is misspelled. Rename it to ourResources for correct spelling and clarity.
    case ourResorses

Sources/OversizeKit/LauncherKit/LauncherViewModel.swift:188

  • The method name onCompeteOnboarding is misleading; it appears to be a typo for onCompleteOnboarding. Consider renaming for accuracy.
    func onCompeteOnboarding(_ isCompletedOnbarding: Bool) {

)

Text(Info.store.subscriptionsName)
Text(viewModel.productsState.result?.banner.badge ?? "")
Copy link

Copilot AI Jun 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using an empty string fallback will result in a blank badge when banner.badge is nil. Consider providing a meaningful default (e.g., "Pro") or ensuring banner.badge is non-optional.

Suggested change
Text(viewModel.productsState.result?.banner.badge ?? "")
Text(viewModel.productsState.result?.banner.badge ?? "Pro")

Copilot uses AI. Check for mistakes.
aromanov91 and others added 6 commits June 30, 2025 14:08
* Initial plan

* Complete README.md rewrite with comprehensive documentation

Co-authored-by: aromanov91 <[email protected]>

* Update README.md

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: aromanov91 <[email protected]>
Co-authored-by: Alexander Romanov <[email protected]>
* Initial plan

* Fix simple typos: Badge, pinCodeEnabled, lockscreen, appearance, etc.

Co-authored-by: aromanov91 <[email protected]>

* Rename files and fix remaining typos: PremiumBannerRow, StoreInstructionsView, Appearance folder

Co-authored-by: aromanov91 <[email protected]>

* Fix typo: Resorses → Resources (file name, struct name, enum case)

Co-authored-by: aromanov91 <[email protected]>

* Fix

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: aromanov91 <[email protected]>
Co-authored-by: Alexander Romanov <[email protected]>
@aromanov91 aromanov91 merged commit 0378589 into main Jul 1, 2025
10 checks passed
@aromanov91 aromanov91 deleted the new-router branch July 1, 2025 05:05
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.

3 participants