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: Create "Facilitated Testing" landing page #480

Merged
merged 6 commits into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const CirclePieChart = ({
className={infoIconClassName}
title="Cookies must be analyzed on a new, clean Chrome profile for an accurate report"
>
<InfoIcon />
<InfoIcon className="fill-granite-gray" />
</p>
)}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ const CookiesMatrix = ({
<span>{title}</span>
{showInfoIcon && (
<span title={infoIconTitle}>
<InfoIcon />
<InfoIcon className="fill-granite-gray" />
</span>
)}
{count !== null && <span>: {Number(count) || 0}</span>}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const ListItem = ({
</button>
{filter.description && (
<p title={filter.description}>
<InfoIcon />
<InfoIcon className="fill-granite-gray" />
</p>
)}
</div>
Expand Down
5 changes: 2 additions & 3 deletions packages/design-system/src/icons/info.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import InfoCards from './infoCards';
* Internal dependencies.
*/

const PrivacySandboxContent = () => {
const FacilitatedTestingContent = () => {
return (
<div className="m-auto md:w-[70%] min-w-[30rem]">
<div className="w-full h-full border border-hex-gray dark:border-quartz text-raisin-black dark:text-bright-gray rounded-lg px-8 py-10 flex flex-col gap-8">
Expand All @@ -38,4 +38,4 @@ const PrivacySandboxContent = () => {
);
};

export default PrivacySandboxContent;
export default FacilitatedTestingContent;
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,22 @@ const INFO_CARDS_DATA = [
{
heading: 'Membership in Experiment Group',
content:
'<p>To prepare for third-party cookie deprecation, we will be providing Chrome-facilitated testing modes that allow sites to preview how site behavior and functionality work without third-party cookies.</p> <p>Check <a class="text-bright-navy-blue dark:text-jordy-blue hover:opacity-80 underline" href="https://developers.google.com/privacy-sandbox/setup/web/chrome-facilitated-testing" target="_blank">this guide</a> to learn more.</p>',
'To prepare for third-party cookie deprecation, we will be providing Chrome-facilitated testing modes that allow sites to preview how site behavior and functionality work without third-party cookies. Check <a class="text-bright-navy-blue dark:text-jordy-blue hover:opacity-80 underline" href="https://developers.google.com/privacy-sandbox/setup/web/chrome-facilitated-testing" target="_blank">this guide</a> to learn more.',
},
{
heading: 'Request Additional Migration Time',
heading: 'Reporting Breakages',
content:
'For an easier transition through the deprecation process, Chrome is providing a third-party <a class="text-bright-navy-blue dark:text-jordy-blue hover:opacity-80 underline" href="https://developer.chrome.com/docs/web-platform/origin-trials/" target="_blank">deprecation trial</a> which allows embedded sites and services to request additional time to migrate away from third-party cookie dependencies for non-advertising use cases. To learn more please check <a class="text-bright-navy-blue dark:text-jordy-blue hover:opacity-80 underline" href="https://developers.google.com/privacy-sandbox/3pcd/temporary-exceptions/first-party-deprecation-trial?hl=en" target="_blank">this documentation.</a>',
'If your site or a service you depend on is breaking with third-party cookies disabled, you should file an issue <a class="text-bright-navy-blue dark:text-jordy-blue hover:opacity-80 underline" href="https://b.corp.google.com/issues/new?component=1306484&template=1777152" target="_blank">here</a>. And if you have questions or feedback about Privacy Sandbox, you can raise a new issue <a class="text-bright-navy-blue dark:text-jordy-blue hover:opacity-80 underline" href="https://github.com/GoogleChromeLabs/privacy-sandbox-dev-support/issues/new/choose" target="_blank">here</a> using the third-party cookie deprecation.',
},
{
heading: 'Attestation Enrollment',
heading: 'Request Additional Migration Time',
content:
'To access the Privacy Sandbox relevance and measurement APIs on <a class="text-bright-navy-blue dark:text-jordy-blue hover:opacity-80 underline" href="https://developer.chrome.com/docs/privacy-sandbox/" target="_blank">Chrome</a> and <a class="text-bright-navy-blue dark:text-jordy-blue hover:opacity-80 underline" href="https://developer.android.com/design-for-safety/privacy-sandbox" target="_blank">Android</a>, <a class="text-bright-navy-blue dark:text-jordy-blue hover:opacity-80 underline" href="https://developer.chrome.com/blog/announce-enrollment-privacy-sandbox/" target="_blank">developers need to enroll</a> with the privacy sandbox as a mechanism to verify the entities that call these APIs, and to gather the developer-specific data needed for the proper configuration and use of the APIs. To learn more about this process and how to enroll please check <a class="text-bright-navy-blue dark:text-jordy-blue hover:opacity-80 underline" href="https://github.com/privacysandbox/attestation/blob/main/how-to-enroll.md" target="_blank">this documentation.</a>',
'For an easier transition through the deprecation process, Chrome is providing deprecation trials which allows top-level sites and embedded services to request additional time to migrate away from third-party cookie dependencies for non-advertising use cases. To learn more, please check this information regarding <a class="text-bright-navy-blue dark:text-jordy-blue hover:opacity-80 underline" href="https://developers.google.com/privacy-sandbox/3pcd/temporary-exceptions/first-party-deprecation-trial?hl=en" target="_blank">3P</a> and <a class="text-bright-navy-blue dark:text-jordy-blue hover:opacity-80 underline" href="https://developers.google.com/privacy-sandbox/3pcd/temporary-exceptions/first-party-deprecation-trial#apply_for_the_first-party_deprecation_trial" target="_blank">1P</a> deprecation trials.',
},
{
heading: 'Reporting Breakages',
heading: 'Attestation Enrollment',
content:
'If your site or a service you depend on is breaking with third-party cookies disabled, you should file an issue <a class="text-bright-navy-blue dark:text-jordy-blue hover:opacity-80 underline" href="https://b.corp.google.com/issues/new?component=1306484&template=1777152" target="_blank">here</a>. And if you have questions or feedback about Privacy Sandbox, you can raise a new issue <a class="text-bright-navy-blue dark:text-jordy-blue hover:opacity-80 underline" href="https://github.com/GoogleChromeLabs/privacy-sandbox-dev-support/issues/new/choose" target="_blank">here</a> using the third-party cookie deprecation.',
'To access the Privacy Sandbox relevance and measurement APIs on Chrome and Android, developers need to enroll with the privacy sandbox as a mechanism to verify the entities that call these APIs, and to gather the developer-specific data needed for the proper configuration and use of the APIs. To learn more about this process and how to enroll please check this <a class="text-bright-navy-blue dark:text-jordy-blue hover:opacity-80 underline" href="https://developer.chrome.com/blog/announce-enrollment-privacy-sandbox/" target="_blank">documentation</a>.',
},
];

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

/**
* External dependencies.
*/
import React from 'react';
import { LandingPage } from '@ps-analysis-tool/design-system';
import FacilitatedTestingContent from './faciliatedTestingContent';

const FacilitatedTesting = () => (
<div data-testid="facilitated-testing-content" className="h-full w-full">
<LandingPage
title="Facilitated Testing"
contentPanel={<FacilitatedTestingContent />}
/>
</div>
);

export default FacilitatedTesting;
1 change: 1 addition & 0 deletions packages/extension/src/view/devtools/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ export * from './siteBoundaries';
export { default as Cookies } from './cookies';
export { default as PrivacySandbox } from './privacySandbox';
export { default as Settings } from './settings';
export { default as FacilitatedTesting } from './facilitatedTesting';
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@
*/
import React from 'react';
import { LandingPage } from '@ps-analysis-tool/design-system';
import PrivacySandboxContent from './privacySandboxContent';

const PrivacySandbox = () => (
<div data-testid="privacy-sandbox-content" className="h-full w-full">
<LandingPage
title="Privacy Sandbox"
contentPanel={<PrivacySandboxContent />}
extraClasses="h-[78vh] w-full"
iframeSrc="https://privacysandbox.com"
iframeBorderClass="border border-hex-gray dark:border-quartz"
/>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const AssociatedSites = ({
<p className="text-base flex items-center gap-2 ">
Associated Subset
<span title="Browsers may enforce a limit on Associated Domains (e.g. Chrome's limit is 5)">
<InfoIcon />
<InfoIcon className="fill-granite-gray" />
</span>
</p>
<AddButton onClick={addAssociatedSite} />
Expand Down
10 changes: 10 additions & 0 deletions packages/extension/src/view/devtools/tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ import {
PrivacySandboxIcon,
PrivacySandboxIconWhite,
type SidebarItems,
InfoIcon,
} from '@ps-analysis-tool/design-system';

/**
Expand All @@ -64,6 +65,7 @@ import {
Fingerprinting,
PrivacySandbox,
Settings,
FacilitatedTesting,
} from './components';

const TABS: SidebarItems = {
Expand Down Expand Up @@ -149,6 +151,14 @@ const TABS: SidebarItems = {
},
},
},
facilitatedTesting: {
title: 'Facilitated Testing',
panel: <FacilitatedTesting />,
icon: <InfoIcon className="fill-gray" />,
selectedIcon: <InfoIcon className="fill-white" />,
dropdownOpen: false,
children: {},
},
settings: {
title: 'Settings',
panel: <Settings />,
Expand Down
2 changes: 2 additions & 0 deletions tailwind.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ module.exports = {
'chinese-silver': '#CDCDCD',
'charleston-green': '#292A2D',
'outer-space': '#303942',
'granite-gray': '#5F6369',
gray: '#6E6E6E',
},
stroke: {
'bright-gray': '#E8EAED',
Expand Down
Loading