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

BIT-174: Adds app-wide navigation layer #16

Merged
merged 4 commits into from
Sep 5, 2023

Conversation

nathan-livefront
Copy link
Contributor

🎟️ Tracking

BIT-174

🚧 Type of change

  • 🚀 New feature development

📔 Objective

This PR adds the basis for app-wide navigation. This involved adding a SceneDelegate for managing AppCoordinator initialization and management, migrating the app from a SwiftUI lifecycle to an AppDelegate based lifecycle, and a RootViewController to handle swapping between main screens in the app.

📋 Code changes

  • AppDelegate, SceneDelegate, BitwardenApp, ContentView, Info.plist: Switched the app's lifecycle from a SwiftUI lifecycle to an AppDelegate lifecycle.
  • project.yml: Added a build setting for using a new Objective-C test helper.
  • AppCoordinator: Added a class for managing app-wide navigation events.
  • RootViewController: Used in conjunction with AppCoordinator to handle app-wide navigation.
  • Store, Processor: Updated both Store and Processor generic orders to match each other.

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation or informed the documentation team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

@bitwarden-bot
Copy link

bitwarden-bot commented Sep 5, 2023

Logo
Checkmarx One – Scan Summary & Details0c07c1c2-9a29-4099-a520-87e9107d415c

No New Or Fixed Issues Found

fedemkr
fedemkr previously approved these changes Sep 5, 2023
Copy link
Member

@fedemkr fedemkr left a comment

Choose a reason for hiding this comment

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

LGTM! Just a small question.

fedemkr
fedemkr previously approved these changes Sep 5, 2023
# Conflicts:
#	Bitwarden/Application/Support/Info.plist
matt-livefront
matt-livefront previously approved these changes Sep 5, 2023
Copy link
Collaborator

@matt-livefront matt-livefront left a comment

Choose a reason for hiding this comment

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

Looks good!

@github-actions
Copy link
Contributor

github-actions bot commented Sep 5, 2023

5 Warnings
⚠️ Total coverage less than 80%
⚠️ GlobalTestHelpers/MockAppModule.swift has less than 80% code coverage
⚠️ GlobalTestHelpers/MockCoordinator.swift has less than 80% code coverage
⚠️ GlobalTestHelpers/MockProcessor.swift has less than 80% code coverage
⚠️ GlobalTestHelpers/MockRootNavigator.swift has less than 80% code coverage

Code coverage

Total coverage: 48.09%

File Coverage
Bitwarden/Application/SceneDelegate.swift 100.00%
Bitwarden/Application/main.swift 100.00%
GlobalTestHelpers/MockAppModule.swift 0.00%
GlobalTestHelpers/MockCoordinator.swift 0.00%
GlobalTestHelpers/MockProcessor.swift 0.00%
GlobalTestHelpers/MockRootNavigator.swift 0.00%
GlobalTestHelpers/MockAppModule.swift 0.00%
GlobalTestHelpers/MockCoordinator.swift 0.00%
GlobalTestHelpers/MockProcessor.swift 0.00%
GlobalTestHelpers/MockRootNavigator.swift 0.00%
GlobalTestHelpers/MockAppModule.swift 0.00%
GlobalTestHelpers/MockCoordinator.swift 0.00%
GlobalTestHelpers/MockProcessor.swift 0.00%
GlobalTestHelpers/MockRootNavigator.swift 0.00%

Powered by Slather

Generated by 🚫 Danger

@nathan-livefront nathan-livefront merged commit fde1ee1 into main Sep 5, 2023
@nathan-livefront nathan-livefront deleted the nathan/BIT-174-navigation branch September 5, 2023 21:26
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.

4 participants