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

Feature branch for Show on App Launch #4944

Merged
merged 7 commits into from
Nov 7, 2024

Conversation

mikescamell
Copy link
Contributor

@mikescamell mikescamell commented Aug 28, 2024

Task/Issue URL: https://app.asana.com/0/1207908166761516/1208167186867401/f

Description

This is the feature branch for the implementation of https://app.asana.com/0/1207908166761516/1207644558291046/f

Steps to test this PR

See stacked PRs.

Copy link
Contributor Author

mikescamell commented Aug 28, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @mikescamell and the rest of your teammates on Graphite Graphite

@anikiki anikiki self-assigned this Aug 28, 2024
@mikescamell mikescamell force-pushed the feature/mike/show-on-app-launch/implementation branch from 1f3b960 to 5dbdb61 Compare August 30, 2024 12:56
@mikescamell mikescamell force-pushed the feature/mike/show-on-app-launch/implementation branch 2 times, most recently from 8e2a56f to 67fbe46 Compare September 9, 2024 09:19
@mikescamell mikescamell force-pushed the feature/mike/show-on-app-launch/implementation branch from 67fbe46 to b5bd938 Compare September 11, 2024 07:46
@mikescamell mikescamell force-pushed the feature/mike/show-on-app-launch/implementation branch 3 times, most recently from 55cc562 to 18e7233 Compare September 16, 2024 13:36
@mikescamell mikescamell force-pushed the feature/mike/show-on-app-launch/implementation branch from 18e7233 to 098626f Compare September 19, 2024 14:30
@mikescamell mikescamell mentioned this pull request Sep 19, 2024
12 tasks
@mikescamell mikescamell force-pushed the feature/mike/show-on-app-launch/implementation branch from 098626f to bbdbaa4 Compare September 19, 2024 14:47
@mikescamell mikescamell marked this pull request as ready for review September 23, 2024 07:00
@mikescamell mikescamell force-pushed the feature/mike/show-on-app-launch/implementation branch from 42c5105 to 6d587a7 Compare October 21, 2024 09:54
@mikescamell mikescamell force-pushed the feature/mike/show-on-app-launch/implementation branch from a51844e to ee931e7 Compare October 28, 2024 18:19
@mikescamell mikescamell force-pushed the feature/mike/show-on-app-launch/implementation branch from e4a53b2 to 502b5cb Compare October 30, 2024 11:43
Copy link
Contributor

@anikiki anikiki left a comment

Choose a reason for hiding this comment

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

LGTM 👍

mikescamell and others added 7 commits November 6, 2024 16:18
Task/Issue URL:
https://app.asana.com/0/1207908166761516/1208156273709078/f

Adds the “Show on App Launch” entry point in the General settings
screen.

We will likely not use a `String` to determine the secondary text but
this makes it easier for step by step implementation.

[Designs](https://www.figma.com/design/N2GbF5HEvopp5iwmAlMwyD/New-Tab-Page-Customization?node-id=1741-64494&t=SpS14wACEtPydb2z-4)

- [x] Open settings
- [x] Click “General”
- [x] Check “Show on App Launch” is bottom of the list

| Before  | After |
| ------ | ----- |
|
![image](https://github.com/user-attachments/assets/d0026bad-e17d-47aa-9eae-2f853669a6a9)
|
![image](https://github.com/user-attachments/assets/f031338b-9feb-4cc4-86a1-67ba9a11df58)
|

---------

Co-authored-by: Marcos Holgado <marcosh@duckduckgo.com>
Co-authored-by: Dax The Translator <daxmobile@duckduckgo.com>
Task/Issue URL:
https://app.asana.com/0/1205782002757341/1208523107235076/f

Adds a feature toggle for the Show on App Launch feature that defaults
to on.

- [x] Open General Settings
- [x] Check Show on App Launch button is visible
- [x] Open FF Inventory
- [x] Disable `showOnAppLaunch`
- [x] Open General Settings
- [x] Check Show on App Launch button is gone
- [x] Open FF Inventory
- [x] Enable `showOnAppLaunch`
- [x] Open General Settings
- [x] Check Show on App Launch button is visible

N/A
Task/Issue URL:
https://app.asana.com/0/1207908166761516/1208637287651029/f

### Description

Fixes no options being selected then the phone is rotated.

### Steps to test this PR

- [x] Open Show on App Launch screen in settings
- [x] Rotate phone to landscape
- [x] The same option that was selected should still be selected

### Demo

https://github.com/user-attachments/assets/2fabd7ae-15c5-41e6-8b04-c78c13483d71
#	app/src/androidTest/java/com/duckduckgo/app/browser/BrowserTabViewModelTest.kt
#	app/src/main/java/com/duckduckgo/app/browser/BrowserTabViewModel.kt
#	app/src/main/res/layout/activity_show_on_app_launch_setting.xml
…#5236)

Task/Issue URL:
https://app.asana.com/0/1207908166761516/1208685892092430/f

### Description

- Disables Specific Url EditText if it Specific Url is not selected
using updated disabled state from DS
- Saves user input for Specific Url when switching options

### Steps to test this PR

- [x] Open Show on App Launch screen
- [x] If Specific Url is selected change option
- [x] Check the Specific Url EditText is now in the [disabled
state](https://www.figma.com/design/BOHDESHODUXK7wSRNBOHdu/%F0%9F%A4%96-Android-Components?node-id=14783-11394&t=NMEXm3w5UWt3iiPQ-4)
- [x] Select Specific Url 
- [x] Change the url
- [x] Select a new option
- [x] Check that the url you entered has not changed
- [x] Select Specific Url 
- [x] Delete the url
- [x] Press the up button
- [x] Check that the default url appears -> "https://duckduckgo.com" on
the general settings screen

### UI changes


https://github.com/user-attachments/assets/92158d39-9ddc-43b0-81f3-77017a8ce767
Task/Issue URL:
https://app.asana.com/0/488551667048375/1208705964260532/f

### Description

Defaults the feature toggle to off. I will raise a PR to add this to the
remote config.

### Steps to test this PR

- [ ] Go to General section of Settings screen
- [ ] Check "Show on App Launch" is not visible
- [ ] Open Feature Flag Inventory screen
- [ ] Enable `showOnAppLaunch`
- [ ] Go to General section of Settings screen
- [ ] Check "Show on App Launch" is visible

### UI changes

N/A
@mikescamell mikescamell force-pushed the feature/mike/show-on-app-launch/implementation branch from cb0f850 to f40738e Compare November 6, 2024 16:18
@mikescamell mikescamell merged commit 3245b7d into develop Nov 7, 2024
6 checks passed
@mikescamell mikescamell deleted the feature/mike/show-on-app-launch/implementation branch November 7, 2024 11:01
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