Skip to content

Return to the plan view when backing out of a workout day editor - #980

Closed
Felixre7 wants to merge 1 commit into
LiamMorrow:mainfrom
Felixre7:fix/plan-editor-back-navigation
Closed

Felixre7 wants to merge 1 commit into
LiamMorrow:mainfrom
Felixre7:fix/plan-editor-back-navigation

Conversation

@Felixre7

@Felixre7 Felixre7 commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

fixes this issue: #870
I see you closed it but it is pretty annoying :')

@github-actions

Copy link
Copy Markdown

Thanks for opening a PR!

A few things that help this get reviewed:

  • Describe your changes clearly in the PR description, in your own words. AI-generated summaries tend to be more verbose than necessary and frustrating to read.
  • Read the AI Usage Policy.
  • Attach screenshots of any visual changes.
  • Make sure this PR follows an issue/feature request that's already been accepted as wanted (see Contributing).

PRs that clearly don't follow these likely won't get reviewed in a reasonable timeframe.

The plan subtree had no layout, so the plan view and the workout day editor were flattened into the settings stack as siblings. Editing a day from the home screen deep-linked straight to the editor, leaving the settings page as the only entry beneath it, so Back landed on Settings.

Give manage-workouts/[programId] its own stack anchored on the plan view, so the day editor is always pushed on top of it and Back returns to the plan.

The nested stack's <Stack.Screen> must be declared after index: declared screens are placed first in the stack's route order, so otherwise the settings tab would open straight into manage-workouts/[programId] with no programId and crash.
@Felixre7
Felixre7 force-pushed the fix/plan-editor-back-navigation branch from da7c92d to 454f934 Compare September 17, 2026 02:06
@Felixre7 Felixre7 closed this Sep 17, 2026
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