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

Prompt to Confirm Discarding Post on Back Navigation #185

Closed
Shruti-1910 opened this issue Jun 19, 2024 · 0 comments · Fixed by #211
Closed

Prompt to Confirm Discarding Post on Back Navigation #185

Shruti-1910 opened this issue Jun 19, 2024 · 0 comments · Fixed by #211
Assignees
Labels
Feature required New feature or request

Comments

@Shruti-1910
Copy link
Collaborator

Description:

Currently, when a user is in the process of creating a post (selecting photos and writing a caption) and accidentally clicks the back button, the app navigates back to the home screen without any warning. The app should prompt users to confirm whether they want to discard the post or not when they attempt to navigate away from the post creation screen.

Expected Behavior:

  • When a user is creating a post and clicks the back button, a confirmation pop-up should appear asking if they want to discard the post or continue editing.
  • If the user chooses to discard, the app should navigate back to the home screen and discard both the selected photos and caption.
  • If the user chooses to continue editing, they should remain on the post creation screen with their selected photos and caption intact.

Acceptance Criteria:

  1. User Interface:
  • A confirmation pop-up should appear when the back button is pressed during post creation.
  • The pop-up should contain a clear message (e.g., "Are you sure you want to discard this post?") and two options: "Discard" and "Continue Editing".
  • The pop-up design should be consistent with the overall app design.
  1. Functionality:
  • The back navigation should be intercepted during post creation to trigger the confirmation pop-up.
  • Selecting "Discard" should navigate back to the home screen and clear both the selected photos and caption.
  • Selecting "Continue Editing" should dismiss the pop-up and keep the user on the post creation screen with all content preserved.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature required New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants