Skip to content

feat: Deeplinking for the forgot password page #5362

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

Open
wants to merge 15 commits into
base: develop
Choose a base branch
from

Conversation

jnnabugwu
Copy link
Contributor

What

Added deep linking for the forgot password page.

can be tested at https://world.openfoodfacts.org/forgot-password/

Screenshot

Screen.Recording.2024-06-12.at.4.41.26.PM.mov

Fixes bug(s)

  • Fixes:

Part of

@jnnabugwu jnnabugwu requested a review from a team as a code owner June 12, 2024 20:52
@g123k g123k changed the title Deeplinking forgot password feat: Deeplinking forgot password Jun 13, 2024
@g123k
Copy link
Collaborator

g123k commented Jun 13, 2024

You have a formatting issue on your code: https://github.com/openfoodfacts/smooth-app/actions/runs/9489564735/job/26151127165?pr=5362

Running dart format . should fix this

@jnnabugwu
Copy link
Contributor Author

You have a formatting issue on your code: https://github.com/openfoodfacts/smooth-app/actions/runs/9489564735/job/26151127165?pr=5362

Running dart format . should fix this

Sorry, I missed this. I will fix this

@g123k
Copy link
Collaborator

g123k commented Jul 2, 2024

You have a formatting issue on your code: https://github.com/openfoodfacts/smooth-app/actions/runs/9489564735/job/26151127165?pr=5362
Running dart format . should fix this

Sorry, I missed this. I will fix this

It seems your commit partially fixes the issue.
Just run the command, it should be fine.

Screenshot 2024-07-02 at 12 29 44

@codecov-commenter
Copy link

codecov-commenter commented Jul 2, 2024

Codecov Report

Attention: Patch coverage is 0% with 8 lines in your changes missing coverage. Please review.

Project coverage is 5.89%. Comparing base (4d9c7fc) to head (edc26bf).
Report is 799 commits behind head on develop.

Files with missing lines Patch % Lines
.../smooth_app/lib/pages/navigator/app_navigator.dart 0.00% 8 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           develop   #5362      +/-   ##
==========================================
- Coverage     9.54%   5.89%   -3.66%     
==========================================
  Files          325     493     +168     
  Lines        16411   29458   +13047     
==========================================
+ Hits          1567    1737     +170     
- Misses       14844   27721   +12877     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@g123k
Copy link
Collaborator

g123k commented Jul 4, 2024

Thanks for the fix.
What happens when you click on the back button on top? (left arrow)

@jnnabugwu
Copy link
Contributor Author

Thanks for the fix. What happens when you click on the back button on top? (left arrow)

Let me check

@jnnabugwu
Copy link
Contributor Author

[

Screen.Recording.2024-07-06.at.1.39.36.PM.mov

](url)

It goes back to the home page

@M123-dev
Copy link
Member

@g123k

@@ -282,6 +287,8 @@ class _SmoothGoRouter {
}
} else if (path == _ExternalRoutes.MOBILE_APP_DOWNLOAD) {
return AppRoutes.HOME;
} else if (path == _ExternalRoutes.FORGOT_PASSWORD) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you move this statement before or after SIGNUP?
It will allow the regrouping of user management routes.
Thanks

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay will do

@teolemon teolemon added the ✨ enhancement New feature or request label Aug 1, 2024
@teolemon teolemon changed the title feat: Deeplinking forgot password feat: Deeplinking for the forgot password page Aug 1, 2024
@teolemon teolemon added the 🔗 Deeplinking Ensure people browsing Open Food Facts on the mobile web have a bridge to the mobile apps label Aug 1, 2024
@M123-dev
Copy link
Member

M123-dev commented Oct 7, 2024

Heyy, there are some conflicts, but they seem to be just a few lines.
Is planned to continue this PR

@jnnabugwu
Copy link
Contributor Author

Yeah ill have this cleaned up this week really by tomorrow

@github-actions github-actions bot added the router label Nov 6, 2024
@github-throwaway
Copy link
Collaborator

@jnnabugwu are you still working on this? :)

@jnnabugwu
Copy link
Contributor Author

@g123k This is ready to be merged are there any other changes needed?

@github-throwaway
Copy link
Collaborator

@jnnabugwu this PR does not pass the required checks yet. Take a look why:

2025-02-18T02:00:29.5012047Z ##[group]Run flutter analyze --fatal-infos --fatal-warnings .
2025-02-18T02:00:29.5012494Z �[36;1mflutter analyze --fatal-infos --fatal-warnings .�[0m
2025-02-18T02:00:29.5067372Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
2025-02-18T02:00:29.5067709Z env:
2025-02-18T02:00:29.5067966Z   FLUTTER_ROOT: /opt/hostedtoolcache/flutter/stable-3.27.2-x64
2025-02-18T02:00:29.5068307Z   PUB_CACHE: /home/runner/.pub-cache
2025-02-18T02:00:29.5068560Z ##[endgroup]
2025-02-18T02:01:06.8747873Z Analyzing smooth-app...                                         
2025-02-18T02:01:06.8754107Z 
2025-02-18T02:01:06.8792631Z   error • Target of URI doesn't exist: 'package:smooth_app/pages/scan/search_page.dart' • packages/smooth_app/lib/pages/navigator/app_navigator.dart:26:8 • uri_does_not_exist
2025-02-18T02:01:06.8795112Z   error • Target of URI doesn't exist: 'package:smooth_app/pages/scan/search_product_helper.dart' • packages/smooth_app/lib/pages/navigator/app_navigator.dart:27:8 • uri_does_not_exist
2025-02-18T02:01:06.8801414Z    info • Sort directive sections alphabetically • packages/smooth_app/lib/pages/navigator/app_navigator.dart:29:1 • directives_ordering
2025-02-18T02:01:06.8804927Z 
2025-02-18T02:01:06.8968445Z 3 issues found. (ran in 36.9s)
2025-02-18T02:01:06.9074790Z ##[error]Process completed with exit code 1.

@jnnabugwu
Copy link
Contributor Author

@jnnabugwu this PR does not pass the required checks yet. Take a look why:

2025-02-18T02:00:29.5012047Z ##[group]Run flutter analyze --fatal-infos --fatal-warnings .
2025-02-18T02:00:29.5012494Z �[36;1mflutter analyze --fatal-infos --fatal-warnings .�[0m
2025-02-18T02:00:29.5067372Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
2025-02-18T02:00:29.5067709Z env:
2025-02-18T02:00:29.5067966Z   FLUTTER_ROOT: /opt/hostedtoolcache/flutter/stable-3.27.2-x64
2025-02-18T02:00:29.5068307Z   PUB_CACHE: /home/runner/.pub-cache
2025-02-18T02:00:29.5068560Z ##[endgroup]
2025-02-18T02:01:06.8747873Z Analyzing smooth-app...                                         
2025-02-18T02:01:06.8754107Z 
2025-02-18T02:01:06.8792631Z   error • Target of URI doesn't exist: 'package:smooth_app/pages/scan/search_page.dart' • packages/smooth_app/lib/pages/navigator/app_navigator.dart:26:8 • uri_does_not_exist
2025-02-18T02:01:06.8795112Z   error • Target of URI doesn't exist: 'package:smooth_app/pages/scan/search_product_helper.dart' • packages/smooth_app/lib/pages/navigator/app_navigator.dart:27:8 • uri_does_not_exist
2025-02-18T02:01:06.8801414Z    info • Sort directive sections alphabetically • packages/smooth_app/lib/pages/navigator/app_navigator.dart:29:1 • directives_ordering
2025-02-18T02:01:06.8804927Z 
2025-02-18T02:01:06.8968445Z 3 issues found. (ran in 36.9s)
2025-02-18T02:01:06.9074790Z ##[error]Process completed with exit code 1.

Will have this done by next week

@github-throwaway
Copy link
Collaborator

@jnnabugwu should we close this PR? Or are you still working on it?

@jnnabugwu
Copy link
Contributor Author

@jnnabugwu should we close this PR? Or are you still working on it?

let me do this now!

@jnnabugwu
Copy link
Contributor Author

@g123k Can you look at this pr again sorry for the long wait and thanks for the patience.

@github-throwaway github-throwaway requested review from g123k and removed request for g123k March 13, 2025 05:52
@teolemon teolemon requested a review from Copilot April 19, 2025 14:18
Copilot

This comment was marked as resolved.

@teolemon
Copy link
Member

/gemini review

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces deep linking for the forgot password page, enhancing the user experience by allowing direct access to the password reset functionality from external links. The changes appear well-structured and integrate smoothly with the existing navigation system. However, there are a few points that could be improved to enhance code clarity and maintainability.

Summary of Findings

  • Route Definition Consistency: The naming and structure of internal routes should be consistent across the application to improve maintainability and reduce potential errors. Ensure that the naming convention for routes like FORGOT_PASSWORD_PAGE aligns with other similar routes.
  • External Route Handling: When adding new external routes, it's important to consider all potential use cases and ensure that the application handles them gracefully. Verify that the new FORGOT_PASSWORD external route is correctly processed and redirects users as expected.
  • Code Comment Completeness: Ensure that all code additions, especially those related to routing and navigation, are adequately commented to explain their purpose and functionality. This helps in maintaining code clarity and facilitates future modifications.

Merge Readiness

The pull request is almost ready for merging. Addressing the identified issues related to route definition consistency, external route handling, and code comment completeness will further enhance the quality and maintainability of the code. I am unable to approve this pull request, and recommend that another reviewer approves this code before merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔗 Deeplinking Ensure people browsing Open Food Facts on the mobile web have a bridge to the mobile apps ✨ enhancement New feature or request 🔐 Password reset router
Projects
Development

Successfully merging this pull request may close these issues.

6 participants