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

Show on App Launch: Setting screen #4950

Conversation

mikescamell
Copy link
Contributor

@mikescamell mikescamell commented Aug 28, 2024

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

Description

Adds the UI for the Show on App Launch settings screen and allows switching options. Nothing is stored and no validation.

I moved RadioListItem to the common-ui module seeing as it’s now being used in multiple places.

Designs

Steps to test this PR

  • Open Settings
  • Open General section
  • Click “Show on App Launch”
  • Ensure each setting can be switched
  • Ensure the TextInput for the “Specific Page” option is only visible when selected
  • Ensure you cannot do multiple lines when entering a URL for “Specific Page"

UI changes

Screen_recording_20240828_162354.webm

@mikescamell mikescamell changed the title ShowOnAppLaunch settings screen Show on App Launch: Setting screen Aug 28, 2024
@mikescamell mikescamell marked this pull request as ready for review August 28, 2024 15:50
@anikiki anikiki self-assigned this Aug 28, 2024
@mikescamell mikescamell force-pushed the feature/mike/show-on-app-launch/general-settings-entry-point branch from caac36c to 8a52cd9 Compare August 30, 2024 12:56
@mikescamell mikescamell force-pushed the feature/mike/show-on-app-launch/show-on-app-launch-screen branch from ae25d85 to ee176b3 Compare August 30, 2024 12:56
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
Copy link
Contributor Author

mikescamell commented Sep 2, 2024

We’ve now updated the behaviour to always show the url entry box on the screen and the url will be selected when chosen for easier deletion

Note: I’m aware that the word “URL” in the url EditText is wrong but this will be fixed in #4952

Screen_recording_20240902_154138.webm

@mikescamell mikescamell force-pushed the feature/mike/show-on-app-launch/show-on-app-launch-screen branch from 6e63612 to e558e19 Compare September 2, 2024 14:51
@mikescamell mikescamell force-pushed the feature/mike/show-on-app-launch/general-settings-entry-point branch from 8a52cd9 to 164c074 Compare September 3, 2024 16:18
@mikescamell mikescamell force-pushed the feature/mike/show-on-app-launch/show-on-app-launch-screen branch from e558e19 to e4c4564 Compare September 3, 2024 16:18
@mikescamell mikescamell force-pushed the feature/mike/show-on-app-launch/general-settings-entry-point branch from 164c074 to 781ef4a Compare September 9, 2024 09:19
@mikescamell mikescamell force-pushed the feature/mike/show-on-app-launch/show-on-app-launch-screen branch from e4c4564 to c752e32 Compare September 9, 2024 09:19
@mikescamell mikescamell force-pushed the feature/mike/show-on-app-launch/general-settings-entry-point branch from 781ef4a to 46c9f4f Compare September 11, 2024 07:47
@mikescamell mikescamell force-pushed the feature/mike/show-on-app-launch/show-on-app-launch-screen branch from c752e32 to 70a1018 Compare September 11, 2024 07:47
@mikescamell mikescamell force-pushed the feature/mike/show-on-app-launch/general-settings-entry-point branch from 46c9f4f to 9a079f6 Compare September 12, 2024 08:16
@mikescamell mikescamell force-pushed the feature/mike/show-on-app-launch/show-on-app-launch-screen branch from 70a1018 to dbd89dc Compare September 12, 2024 08:16
@mikescamell mikescamell force-pushed the feature/mike/show-on-app-launch/general-settings-entry-point branch from 9a079f6 to bb0c0a8 Compare September 12, 2024 09:47
@mikescamell mikescamell force-pushed the feature/mike/show-on-app-launch/show-on-app-launch-screen branch from dbd89dc to c5b72b5 Compare September 12, 2024 09:47
@mikescamell mikescamell force-pushed the feature/mike/show-on-app-launch/general-settings-entry-point branch from bb0c0a8 to fb3e506 Compare September 16, 2024 13:36
@mikescamell mikescamell force-pushed the feature/mike/show-on-app-launch/show-on-app-launch-screen branch from c5b72b5 to a89a4bc Compare September 16, 2024 13:36
@mikescamell mikescamell force-pushed the feature/mike/show-on-app-launch/general-settings-entry-point branch from fb3e506 to 17bae85 Compare September 19, 2024 14:30
@mikescamell mikescamell force-pushed the feature/mike/show-on-app-launch/show-on-app-launch-screen branch from a89a4bc to f2ea3c2 Compare September 19, 2024 14:30
@mikescamell mikescamell mentioned this pull request Sep 19, 2024
12 tasks
We'll move RadioListItem out of the geoswitching module next as we're using this in multiple places
I added in the onOptionsItemSelected for the up button as I noticed that while we fade into the Activity, we do not fade when pressing back buy slide. This stops this does the fade animation.
I needed to add a setChecked function to the RadioListItem as it didn't exist and we need to be able to clear sections

I opted to clear everything when a selection is made to make things easier
as we have a whole screen for this setting we've decided to make the specific page url always visible

when the user selects specific page then we highlight all the text making it easier for them to delete it

we'll fix the fact that the url does not populate in the branch feature/mike/show-on-app-launch/add-persistence as this is where changes around observing state were made
@mikescamell mikescamell force-pushed the feature/mike/show-on-app-launch/general-settings-entry-point branch from 17bae85 to 03f047d Compare September 19, 2024 14:47
@mikescamell mikescamell force-pushed the feature/mike/show-on-app-launch/show-on-app-launch-screen branch from f2ea3c2 to 4db2c4b Compare September 19, 2024 14:48
Task/Issue URL:
https://app.asana.com/0/1207908166761516/1208156273709085/f

### Description

Adds persistence via datastore and observes the changes in the General
settings screen and the ShowOnAppLaunch settings screen

### Steps to test this PR

- [x] Open General settings
- [x] Check current value of “Show on App Launch” secondary text
- [x] Open “Show on App Launch”
- [x] Change option
- [x] Go back to General settings
- [x] Check the updated secondary matches your option. In the case of
“Specific Page” it will be the url

**Note**: There’s no validation and storage of an updated “Specific
Page” in this PR. That will be in a future PR.

### UI changes


[persistence_demo.webm](https://github.com/user-attachments/assets/236ed58d-81af-4838-9749-b19af98b006c)

---------

Co-authored-by: Marcos Holgado <marcosh@duckduckgo.com>
Co-authored-by: Dax The Translator <daxmobile@duckduckgo.com>
@mikescamell mikescamell merged commit 811fdf5 into feature/mike/show-on-app-launch/general-settings-entry-point Sep 20, 2024
3 of 5 checks passed
@mikescamell mikescamell deleted the feature/mike/show-on-app-launch/show-on-app-launch-screen branch September 20, 2024 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants