-
Notifications
You must be signed in to change notification settings - Fork 937
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: support alternative dashboard layout (#3656)
<!-- Note: This checklist is a reminder of our shared engineering expectations. The items in Bold are required If your PR involves UI changes: 1. Upload screenshots or screencasts that illustrate the changes before / after 2. Add them under the UI changes section (feel free to add more columns if needed) If your PR does not involve UI changes, you can remove the **UI changes** section At a minimum, make sure your changes are tested in API 23 and one of the more recent API levels available. --> Task/Issue URL: https://app.asana.com/0/0/1205648391652872/f ### Description The updated Dashboard will have the following new interface, designed to allow platforms to opt-in to additional UI features/layouts in a unified way. For now just `primaryScreen.layout` is supported to enable an experiment to increase adoption of the protections toggle ```ts /** * Call this function to provide the dashboard with RemoteFeatureSettings */ declare function onChangeFeatureSettings(settings: RemoteFeatureSettings): void /** * This describes the payload for feature settings */ export interface RemoteFeatureSettings { primaryScreen?: PrimaryScreen; } export interface PrimaryScreen { /** * A string to represent different screen layouts */ layout: "default" | "highlighted-protections-toggle"; } ``` To provide different `layout` values, the PR includes support for a new Privacy Configuration key, `privacyDashboard` - Example PR adding the dashboard to privacy config the duckduckgo/privacy-configuration#1349 - Example PR enabling the experiment duckduckgo/privacy-configuration#1350 So, the experiment will be enabled remotely, and then the `PrivacyDashboardViewModel` will use the values from the privacy config to choose which layout the dashboard should show. ![toggle exeriment](https://github.com/duckduckgo/Android/assets/1643522/b15ef4c6-00f1-4714-b6ed-6e562ee0d919) ## Pixel Params This PR also adds the param `dashboard_highlighted_toggle`, to the following pixels - mp_wla (adding to the allowlist, pressing the toggle) - mp_wlr (removing from the allowlist) - m_bsr (feedback form is submitted) - Privacy Triage: https://app.asana.com/0/0/1205648391652879/f ### Steps to test this PR _Feature 1_ - [ ] - [ ] ### UI changes | Normal | Experiment | | ------ | ----- | ![Screenshot_20231004_094645](https://github.com/duckduckgo/Android/assets/1643522/7b6f56c3-f7d8-4f93-aa37-581499066848)|![Screenshot_20231004_094914](https://github.com/duckduckgo/Android/assets/1643522/6fdf2084-0c2d-4761-9b13-8e7b349b7df1) --------- Co-authored-by: Shane Osbourne <[email protected]>
- Loading branch information
1 parent
13b5b1e
commit c12358b
Showing
37 changed files
with
31,304 additions
and
55,042 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file removed
BIN
-21.3 KB
node_modules/@duckduckgo/privacy-dashboard/build/app/font/ProximaNova-Bold-webfont.woff2
Binary file not shown.
Binary file removed
BIN
-23.2 KB
node_modules/@duckduckgo/privacy-dashboard/build/app/font/ProximaNova-Reg-webfont.woff
Binary file not shown.
Binary file removed
BIN
-17.7 KB
node_modules/@duckduckgo/privacy-dashboard/build/app/font/ProximaNova-Reg-webfont.woff2
Binary file not shown.
Binary file removed
BIN
-23.3 KB
node_modules/@duckduckgo/privacy-dashboard/build/app/font/ProximaNova-Sbold-webfont.woff
Binary file not shown.
Binary file modified
BIN
-570 Bytes
(71%)
node_modules/@duckduckgo/privacy-dashboard/build/app/img/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+679 Bytes
(150%)
node_modules/@duckduckgo/privacy-dashboard/build/app/img/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions
26
node_modules/@duckduckgo/privacy-dashboard/build/app/img/fire-button-header.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-19 Bytes
(100%)
node_modules/@duckduckgo/privacy-dashboard/build/app/img/icon_128.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-34 Bytes
(96%)
node_modules/@duckduckgo/privacy-dashboard/build/app/img/icon_16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+46 Bytes
(110%)
node_modules/@duckduckgo/privacy-dashboard/build/app/img/icon_19.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.64 KB
(160%)
node_modules/@duckduckgo/privacy-dashboard/build/app/img/icon_38.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-124 Bytes
(96%)
node_modules/@duckduckgo/privacy-dashboard/build/app/img/icon_48.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-188 Bytes
(96%)
node_modules/@duckduckgo/privacy-dashboard/build/app/img/logo-horizontal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2.99 KB
(75%)
node_modules/@duckduckgo/privacy-dashboard/build/app/img/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-8.52 KB
(62%)
node_modules/@duckduckgo/privacy-dashboard/build/app/img/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.