-
Notifications
You must be signed in to change notification settings - Fork 908
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
Show on App Launch: Open launch option when set #4995
Show on App Launch: Open launch option when set #4995
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @mikescamell and the rest of your teammates on Graphite |
f5376a6
to
4b1b49f
Compare
2255144
to
4b18eac
Compare
0b1a8e0
to
7959fa4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
I didn't tick Ensure the tab count has *not increased by one
as the tab count is increased due to the trailing "/".
ff399a0
to
6a40fe1
Compare
7959fa4
to
b7df6fb
Compare
6a40fe1
to
9b0bfe9
Compare
b7df6fb
to
8a4f4c6
Compare
9b0bfe9
to
cbfa50f
Compare
8a4f4c6
to
fd687fc
Compare
cbfa50f
to
bd1e9f5
Compare
fd687fc
to
9e45cbc
Compare
bd1e9f5
to
4dba6e6
Compare
9e45cbc
to
39ba200
Compare
I’ve moved the default url to be |
4dba6e6
to
f22a708
Compare
39ba200
to
bf33919
Compare
This class will take the url that a user has entered and if: 1. It is blank will set it as a default to duckduckgo.com 2. If it has no scheme will add http (in case the website does not currently support https) 3. Other wise return what was passed in
The launchNewSearchOrQuery seemed to be the best place to add check if we should launch the show on app setting. It does a lot of checking based on what's passed into the intent as far as I can see. If there is no specialised launch happening then we check the show on app launch setting 1. If LastOpenedTab is set, we do nothing 2. If NewTabPage is set then we open a new tab 3. If SpecificPage is set we compare the url to the current selected tab, if it's not the same we open a new tab otherwise we do nothing I had to expose selectedTab from the TabsDao so I could the tab in a synchronous fashion to check. I would have made the tabsDao.selectedTab() suspending but that would have meant changes elsewhere.
we always add the slash when loading a website if it doesn't have it so we might as well add it to the default url as well
f22a708
to
b40783d
Compare
bf33919
to
606fe1c
Compare
Task/Issue URL: https://app.asana.com/0/1207908166761516/1208156273709083/f ### Description Adds some additional tests for the BrowserViewModel and the ShowOnAppLaunch store ### Steps to test this PR N/A ### UI changes N/A
94fb762
into
feature/mike/show-on-app-launch/translations_l10n
Task/Issue URL: https://app.asana.com/0/1207908166761516/1208167186867417/f
Description
Adds functionality to open the show on app launch option based on what has been set.
If there is no specialised launch happening then we check the show on app launch setting:
Also as part of this PR, we add validation to the URL:
Steps to test this PR
Last Opened Tab
New Tab Page
Specific Page
Specific Page Lowercasing
Specific Page Updated
Specific Page Not a URL
Specific Page Different Scheme
UI changes
N/A
Demo
Screen_recording_20240910_115305.mp4