Skip to content

Restore Managed Navigation Path Configuration - #9

Merged
PSchmiedmayer merged 9 commits into
mainfrom
fix-onboarding-navigation
Aug 8, 2026
Merged

Restore Managed Navigation Path Configuration#9
PSchmiedmayer merged 9 commits into
mainfrom
fix-onboarding-navigation

Conversation

@PSchmiedmayer

@PSchmiedmayer PSchmiedmayer commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Restore Managed Navigation Path Configuration

♻️ Current situation & Problem

The managed-navigation state fix moved initial path configuration directly into the initializer, despite the existing Spezi workaround that keeps the direct configuration call in a helper to avoid repeated view updates with an external path. CI archives also need to preserve the Textual Swift package trait until XcodeProj #1049 adds native support.

⚙️ Release Notes

  • Restore the dedicated Spezi path-configuration helper and its explanatory comment.
  • Retain explicit internal State initialization so the path is never accessed before SwiftUI installs it.
  • Pin Plainly to the corrected Spezi revision.
  • Preserve the Textual package trait during Fastlane deployments.

✅ Testing

  • Built the affected SpeziViews target successfully.
  • Passed the SpineAI questionnaire fresh-install and relaunch UI regression on iPhone 17 Pro with iOS 26.5.
  • Verified the questionnaire content appeared on both launches without a blank screen.
  • Validated the deployment trait handling from Fastlane’s working directory.
  • git diff --check

Code of Conduct & Contributing Guidelines

By creating and submitting this pull request, you agree to follow our
Code of Conduct
and Contributing Guidelines:

Copilot AI lite review requested due to automatic review settings August 8, 2026 05:50

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@coderabbitai

coderabbitai Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The PR removes informational logging and signpost instrumentation across FHIR interpretation, chat, study, HealthKit, Firebase, QR-code, configuration, and application lifecycle flows. Functional behavior, cancellation, validation, persistence, and error handling remain. The Spezi package revision is updated in both package references. The Firebase end-to-end test plan becomes the default plan. The archive lane restores and verifies the required Spezi Textual package trait before building.

Possibly related PRs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the primary navigation-path configuration change in the pull request.
Description check ✅ Passed The description accurately covers the navigation fix, dependency updates, deployment trait handling, and testing.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@PSchmiedmayer
PSchmiedmayer force-pushed the fix-onboarding-navigation branch from af01fcc to ab3d1c8 Compare August 8, 2026 05:51

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@Plainly/SharedContext/AppDiagnostics.swift`:
- Around line 37-53: Update AppDiagnostics.logPublicPayload in
Plainly/SharedContext/AppDiagnostics.swift (lines 37-53) to add a release-safe
opt-in gate before emitting raw payload content; when disabled, log only
metadata such as counts, correlation IDs, and private payload hashes. Apply the
resulting safe behavior to callers in
Plainly/FHIRInterpretation/UserStudy/OpenAIRequestInterceptor.swift (lines
155-159, 283, and 331-337) and
Plainly/FHIRInterpretation/UserStudy/UserStudyChatViewModel.swift (lines 535,
572, 634-638, 662-668, and 677-681); no direct caller changes are required if
they are corrected through logPublicPayload.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 314f5a2c-c15a-4e25-acf6-3f0d5f814bba

📥 Commits

Reviewing files that changed from the base of the PR and between e7b99ed and 148f7e4.

⛔ Files ignored due to path filters (1)
  • Plainly.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved is excluded by !**/Package.resolved
📒 Files selected for processing (5)
  • Plainly.xcodeproj/project.pbxproj
  • Plainly/FHIRInterpretation/UserStudy/OpenAIRequestInterceptor.swift
  • Plainly/FHIRInterpretation/UserStudy/UserStudyChatViewModel.swift
  • Plainly/SharedContext/AppDiagnostics.swift
  • PlainlyShared/Package.swift

Comment thread Plainly/SharedContext/AppDiagnostics.swift Outdated

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/deployment.yml:
- Around line 125-135: The iosapptestflightdeployment job is not gated by the
build-and-test validation workflow. Restore the buildandtest reusable workflow
and include it in iosapptestflightdeployment’s needs, or add an equivalent
explicit required-check dependency while preserving determineenvironment and
vars.

In `@Plainly.xcodeproj/xcshareddata/xcschemes/Plainly.xcscheme`:
- Around line 35-37: Update the TestPlanReference in the Plainly scheme so
“Plainly Firebase End-to-End.xctestplan” is the scheme’s explicit default
instead of “Plainly.xctestplan,” ensuring test runs without -testPlan select the
Firebase plan and its PLAINLY_RUN_FIREBASE_E2E=1 setting.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: c8e6447c-0d3b-43cd-83fa-f8850e91146f

📥 Commits

Reviewing files that changed from the base of the PR and between 148f7e4 and b8ab2d9.

⛔ Files ignored due to path filters (1)
  • Plainly.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved is excluded by !**/Package.resolved
📒 Files selected for processing (5)
  • .github/workflows/deployment.yml
  • Plainly.xcodeproj/project.pbxproj
  • Plainly.xcodeproj/xcshareddata/xcschemes/Plainly.xcscheme
  • PlainlyShared/Package.swift
  • fastlane/Fastfile
🚧 Files skipped from review as they are similar to previous changes (1)
  • PlainlyShared/Package.swift

Comment thread .github/workflows/deployment.yml Outdated
Comment thread Plainly.xcodeproj/xcshareddata/xcschemes/Plainly.xcscheme

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

♻️ Duplicate comments (1)
Plainly.xcodeproj/xcshareddata/xcschemes/Plainly.xcscheme (1)

36-37: 🎯 Functional Correctness | 🟠 Major

Make the Firebase test plan the explicit scheme default.

The change removes default = "NO" from Plainly Firebase End-to-End.xctestplan, but Line [33] still marks Plainly.xctestplan as default = "YES". Runs without an explicit -testPlan will therefore continue to select the plain test plan. Set default = "YES" on the Firebase reference and remove it from the plain reference.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@Plainly.xcodeproj/xcshareddata/xcschemes/Plainly.xcscheme` around lines 36 -
37, Update the TestPlanReference entries in the Plainly scheme so Plainly
Firebase End-to-End.xctestplan has default = "YES", while Plainly.xctestplan no
longer has the default flag. Keep the existing test plan references unchanged.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Duplicate comments:
In `@Plainly.xcodeproj/xcshareddata/xcschemes/Plainly.xcscheme`:
- Around line 36-37: Update the TestPlanReference entries in the Plainly scheme
so Plainly Firebase End-to-End.xctestplan has default = "YES", while
Plainly.xctestplan no longer has the default flag. Keep the existing test plan
references unchanged.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: d398a926-8842-4588-9ff1-b4187f033dec

📥 Commits

Reviewing files that changed from the base of the PR and between b8ab2d9 and d424a4e.

⛔ Files ignored due to path filters (1)
  • Plainly.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved is excluded by !**/Package.resolved
📒 Files selected for processing (23)
  • Plainly.xcodeproj/project.pbxproj
  • Plainly.xcodeproj/xcshareddata/xcschemes/Plainly.xcscheme
  • Plainly/FHIRInterpretation/FHIRInterpretationModule.swift
  • Plainly/FHIRInterpretation/UserStudy/IntakeQuestionnaireSheet.swift
  • Plainly/FHIRInterpretation/UserStudy/OpenAIRequestInterceptor.swift
  • Plainly/FHIRInterpretation/UserStudy/QuestionnaireLoader.swift
  • Plainly/FHIRInterpretation/UserStudy/StudyHomeView.swift
  • Plainly/FHIRInterpretation/UserStudy/SurveySheet.swift
  • Plainly/FHIRInterpretation/UserStudy/UserStudyChatView.swift
  • Plainly/FHIRInterpretation/UserStudy/UserStudyChatViewModel.swift
  • Plainly/Modules/FirebaseUpload.swift
  • Plainly/Onboarding/HealthKitPermissions.swift
  • Plainly/PlainlyDelegate.swift
  • Plainly/PlainlyStandard.swift
  • Plainly/RootView.swift
  • Plainly/SharedContext/AppDiagnostics.swift
  • Plainly/Study Flow (QR Code)/ScanQRCodeSheet.swift
  • Plainly/Study Flow (QR Code)/StudyQRCodeButtons.swift
  • PlainlyShared/Package.swift
  • PlainlyShared/Sources/PlainlyShared/AppConfigFile.swift
  • PlainlyShared/Sources/PlainlyShared/Chat/Multiple Resources/FHIRGetResourceLLMFunction.swift
  • PlainlyShared/Sources/PlainlyShared/Chat/Multiple Resources/FHIRMultipleResourceInterpreter.swift
  • fastlane/Fastfile
💤 Files with no reviewable changes (15)
  • Plainly/FHIRInterpretation/UserStudy/QuestionnaireLoader.swift
  • PlainlyShared/Sources/PlainlyShared/AppConfigFile.swift
  • Plainly/Study Flow (QR Code)/StudyQRCodeButtons.swift
  • Plainly/Modules/FirebaseUpload.swift
  • Plainly/Study Flow (QR Code)/ScanQRCodeSheet.swift
  • PlainlyShared/Sources/PlainlyShared/Chat/Multiple Resources/FHIRGetResourceLLMFunction.swift
  • Plainly/SharedContext/AppDiagnostics.swift
  • Plainly/RootView.swift
  • Plainly/FHIRInterpretation/UserStudy/IntakeQuestionnaireSheet.swift
  • Plainly/PlainlyDelegate.swift
  • Plainly/PlainlyStandard.swift
  • Plainly/FHIRInterpretation/UserStudy/SurveySheet.swift
  • Plainly/FHIRInterpretation/FHIRInterpretationModule.swift
  • Plainly/FHIRInterpretation/UserStudy/UserStudyChatViewModel.swift
  • Plainly/Onboarding/HealthKitPermissions.swift
🚧 Files skipped from review as they are similar to previous changes (2)
  • PlainlyShared/Package.swift
  • fastlane/Fastfile

@PSchmiedmayer
PSchmiedmayer merged commit 78e195c into main Aug 8, 2026
11 checks passed
@PSchmiedmayer
PSchmiedmayer deleted the fix-onboarding-navigation branch August 8, 2026 10:42
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.

2 participants