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

Privacy policy update alert #18852

Merged
merged 14 commits into from
Oct 17, 2023
Merged

Privacy policy update alert #18852

merged 14 commits into from
Oct 17, 2023

Conversation

filiptronicek
Copy link
Member

@filiptronicek filiptronicek commented Oct 2, 2023

Description

Adds an alert about the privacy policy being updated. It also adds a mechanism for considering what was the last privacy policy the user has accepted and only show the alert if they haven't.

image
Summary generated by Copilot

🤖 Generated by Copilot at a77118a

This pull request adds a new feature to the dashboard that shows a banner alert to users who have not accepted the latest privacy policy. It also adds a new property to the user data to store the acceptance date, and updates the user creation and update logic accordingly. The changes affect the files AppRoutes.tsx, AppNotifications.tsx, utils.ts, protocol.ts, and user-service.ts.

Related Issue(s)

Fixes EXP-15

How to test

Documentation

Preview status

Gitpod was successfully deployed to your preview environment.

Build Options

Build
  • /werft with-werft
    Run the build with werft instead of GHA
  • leeway-no-cache
  • /werft no-test
    Run Leeway with --dont-test
Publish
  • /werft publish-to-npm
  • /werft publish-to-jb-marketplace
Installer
  • analytics=segment
  • with-dedicated-emulation
  • workspace-feature-flags
    Add desired feature flags to the end of the line above, space separated
Preview Environment / Integration Tests
  • /werft with-local-preview
    If enabled this will build install/preview
  • /werft with-preview
  • /werft with-large-vm
  • /werft with-gce-vm
    If enabled this will create the environment on GCE infra
  • with-integration-tests=all
    Valid options are all, workspace, webapp, ide, jetbrains, vscode, ssh. If enabled, with-preview and with-large-vm will be enabled.
  • with-monitoring

/hold

Copy link
Contributor

@securitymirco securitymirco left a comment

Choose a reason for hiding this comment

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

@filiptronicek lgtm, thank you! Some minor feedback: perhaps we could say "We've updated our Privacy Policy. You can review it here"?"

@filiptronicek filiptronicek force-pushed the ft/privacy-policy-in-app branch from 1aea1f7 to 3b6dfcc Compare October 4, 2023 12:45
Copy link
Contributor

@selfcontained selfcontained left a comment

Choose a reason for hiding this comment

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

just a few non-blocking comments as others have already approved.

components/dashboard/src/AppNotifications.tsx Outdated Show resolved Hide resolved
components/dashboard/src/AppNotifications.tsx Outdated Show resolved Hide resolved
components/dashboard/src/utils.ts Outdated Show resolved Hide resolved
@@ -72,6 +72,10 @@ export class UserService {
// blocked = if user already blocked OR is not allowed to pass
newUser.blocked = newUser.blocked || !canPass;
}
if (newUser.additionalData) {
// When a user is created, it does not have `additionalData.profile` set, so it's ok to rewrite it here.
// newUser.additionalData.profile = { acceptedPrivacyPolicyDate: new Date().toISOString() };
Copy link
Contributor

Choose a reason for hiding this comment

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

Did you mean to uncomment this or should we remove? I wonder if we need to present the privacy policy somewhere during signup if we don't already so that we could set it automatically like this?

Copy link
Member Author

Choose a reason for hiding this comment

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

Meant to uncomment 🙈. @selfcontained we have this awesome little catch on our login pages which I believe allows us to do just that.
image

@roboquat roboquat merged commit 36071e6 into main Oct 17, 2023
14 checks passed
@roboquat roboquat deleted the ft/privacy-policy-in-app branch October 17, 2023 20:16
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.

5 participants