-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat(onboarding): Dark mode #21149
Closed
Closed
feat(onboarding): Dark mode #21149
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
5879805
Add dark mode versions of bridge pages
Twixes 5933833
Fix `withTheme` to influence `userLogic`
Twixes f16d217
Improve a bit of UI text
Twixes 3aad6be
Fix light mode SVGs
Twixes 58a4b09
Update UI snapshots for `chromium` (1)
github-actions[bot] 52d4efd
Update UI snapshots for `chromium` (2)
github-actions[bot] c39d61d
Fix theme in snapshots
Twixes 6cea5cf
Merge branch 'master' into dark-mode-bridge
Twixes 7d9ba9e
Update UI snapshots for `chromium` (1)
github-actions[bot] d2b580e
Update UI snapshots for `chromium` (2)
github-actions[bot] b28bcc6
Uncomment `waitForPageReady`
Twixes File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,20 @@ | ||
import type { Decorator } from '@storybook/react' | ||
import { useActions } from 'kea' | ||
import { useEffect } from 'react' | ||
import { userLogic } from 'scenes/userLogic' | ||
|
||
/** Global story decorator that is used by the theming control to | ||
* switch between themes. | ||
*/ | ||
export const withTheme: Decorator = (Story, context) => { | ||
const theme = context.globals.theme | ||
|
||
// set the theme | ||
document.body.setAttribute('theme', theme === 'dark' ? 'dark' : 'light') | ||
const { __testOnlyOverrideThemeFromCookie } = useActions(userLogic) | ||
|
||
useEffect(() => { | ||
document.body.setAttribute('theme', theme) | ||
__testOnlyOverrideThemeFromCookie(theme) | ||
}, [theme]) | ||
|
||
return <Story /> | ||
} |
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 modified
BIN
+544 Bytes
(100%)
frontend/__snapshots__/components-sharing--dashboard-sharing--dark.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
+558 Bytes
(100%)
frontend/__snapshots__/components-sharing--dashboard-sharing-licensed--dark.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
+548 Bytes
(100%)
frontend/__snapshots__/components-sharing--recording-sharing-licensed--dark.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
-4.63 KB
(90%)
...snapshots__/exporter-exporter--funnel-left-to-right-breakdown-insight--dark.png
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. added snapshot is somehow slightly cut off vertically? |
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
-509 Bytes
(99%)
frontend/__snapshots__/exporter-exporter--funnel-left-to-right-insight--dark.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
-8.82 KB
(83%)
frontend/__snapshots__/exporter-exporter--funnel-time-to-convert-insight--dark.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
-259 Bytes
(99%)
frontend/__snapshots__/exporter-exporter--trends-pie-breakdown-insight--dark.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
-313 Bytes
(98%)
frontend/__snapshots__/exporter-exporter--trends-pie-insight--dark.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
-26.7 KB
(80%)
frontend/__snapshots__/exporter-exporter--user-paths-insight--dark.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
+102 Bytes
(100%)
frontend/__snapshots__/lemon-ui-code-snippet--java-script--dark.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
+87 Bytes
(100%)
frontend/__snapshots__/scenes-app-dashboards--create-template--dark.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
+96 Bytes
(100%)
frontend/__snapshots__/scenes-app-dashboards--edit-template--dark.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
+6.09 KB
(100%)
frontend/__snapshots__/scenes-app-feature-flags--edit-feature-flag--dark.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
+5.96 KB
(100%)
...snapshots__/scenes-app-feature-flags--edit-multi-variate-feature-flag--dark.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.09 KB
(100%)
frontend/__snapshots__/scenes-app-feature-flags--new-feature-flag--dark.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
+5 KB
(100%)
...-code-instructions-node-with-group-multivariate-flag-local-evaluation--dark.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.48 KB
(110%)
...__/scenes-app-feature-flags-code-examples--code-instructions-overview--dark.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.12 KB
(100%)
...e-flags-code-examples--code-instructions-python-with-local-evaluation--dark.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
+4.99 KB
(100%)
...re-flags-code-examples--code-instructions-react-native-with-bootstrap--dark.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.36 KB
(100%)
...ode-examples--code-instructions-ruby-with-group-flag-local-evaluation--dark.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.47 KB
(110%)
...ure-flags-code-examples--code-instructionsi-os-with-multivariate-flag--dark.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
-11.3 KB
(93%)
frontend/__snapshots__/scenes-app-sidepanels--side-panel-docs--dark.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
+31 Bytes
(100%)
frontend/__snapshots__/scenes-app-sidepanels--side-panel-settings--dark.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
+19.7 KB
(120%)
frontend/__snapshots__/scenes-other-invitesignup--cloud--dark.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
+21.4 KB
(120%)
frontend/__snapshots__/scenes-other-invitesignup--cloud-eu--dark.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
+8.9 KB
(110%)
frontend/__snapshots__/scenes-other-invitesignup--invalid-link--dark.png
Oops, something went wrong.
Binary file modified
BIN
+22.5 KB
(120%)
frontend/__snapshots__/scenes-other-invitesignup--logged-in--dark.png
Oops, something went wrong.
Binary file modified
BIN
+16.6 KB
(120%)
frontend/__snapshots__/scenes-other-invitesignup--logged-in-wrong-user--dark.png
Oops, something went wrong.
Binary file modified
BIN
+20.2 KB
(120%)
frontend/__snapshots__/scenes-other-invitesignup--self-hosted--dark.png
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
+7.45 KB
(110%)
frontend/__snapshots__/scenes-other-login--cloud-eu--dark.png
Oops, something went wrong.
Binary file modified
BIN
+3.65 KB
(100%)
...__snapshots__/scenes-other-login--cloud-with-google-login-enforcement--dark.png
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. PostHog Cloud logo needs a dark mode version |
Oops, something went wrong.
Binary file modified
BIN
+3.7 KB
(100%)
frontend/__snapshots__/scenes-other-login--second-factor--dark.png
Oops, something went wrong.
Binary file modified
BIN
-2.25 KB
(98%)
frontend/__snapshots__/scenes-other-login--self-hosted--dark.png
Oops, something went wrong.
Binary file modified
BIN
+2.72 KB
(100%)
frontend/__snapshots__/scenes-other-login--self-hosted-with-saml--dark.png
Oops, something went wrong.
Binary file modified
BIN
-1.33 KB
(99%)
frontend/__snapshots__/scenes-other-login--sso-error--dark.png
Oops, something went wrong.
Binary file modified
BIN
+784 Bytes
(100%)
frontend/__snapshots__/scenes-other-onboarding--onboarding-sd-ks--dark.png
Oops, something went wrong.
Binary file modified
BIN
+10.4 KB
(170%)
frontend/__snapshots__/scenes-other-password-reset--initial--dark.png
Oops, something went wrong.
Binary file modified
BIN
+23.8 KB
(230%)
frontend/__snapshots__/scenes-other-password-reset--no-smtp--dark.png
Oops, something went wrong.
Binary file modified
BIN
+11.9 KB
(180%)
frontend/__snapshots__/scenes-other-password-reset--success--dark.png
Oops, something went wrong.
Binary file modified
BIN
+13.5 KB
(200%)
frontend/__snapshots__/scenes-other-password-reset--throttled--dark.png
Oops, something went wrong.
Binary file modified
BIN
+9.73 KB
(160%)
frontend/__snapshots__/scenes-other-password-reset-complete--default--dark.png
Oops, something went wrong.
Binary file modified
BIN
+10.4 KB
(200%)
...tend/__snapshots__/scenes-other-password-reset-complete--invalid-link--dark.png
Oops, something went wrong.
Binary file modified
BIN
+17 KB
(200%)
frontend/__snapshots__/scenes-other-preflight--preflight--dark.png
Oops, something went wrong.
Binary file modified
BIN
+17.2 KB
(140%)
frontend/__snapshots__/scenes-other-signup--cloud--dark.png
Oops, something went wrong.
Binary file modified
BIN
-47 Bytes
(100%)
frontend/__snapshots__/scenes-other-signup--cloud--light.png
Oops, something went wrong.
Binary file modified
BIN
+20 KB
(140%)
frontend/__snapshots__/scenes-other-signup--self-hosted--dark.png
Oops, something went wrong.
Binary file modified
BIN
+3.01 KB
(100%)
frontend/__snapshots__/scenes-other-signup--self-hosted--light.png
Oops, something went wrong.
Binary file modified
BIN
+26.1 KB
(160%)
frontend/__snapshots__/scenes-other-signup--self-hosted-sso--dark.png
Oops, something went wrong.
Binary file modified
BIN
+2.64 KB
(100%)
frontend/__snapshots__/scenes-other-signup--self-hosted-sso--light.png
Oops, something went wrong.
Binary file modified
BIN
+9.24 KB
(210%)
frontend/__snapshots__/scenes-other-unsubscribe--unsubscribe-scene--dark.png
Oops, something went wrong.
Binary file modified
BIN
+6.11 KB
(110%)
frontend/__snapshots__/scenes-other-verify-email--verify-email-invalid--dark.png
Oops, something went wrong.
Binary file modified
BIN
+14.7 KB
(120%)
frontend/__snapshots__/scenes-other-verify-email--verify-email-pending--dark.png
Oops, something went wrong.
Binary file modified
BIN
+4.87 KB
(110%)
frontend/__snapshots__/scenes-other-verify-email--verify-email-success--dark.png
Oops, something went wrong.
Binary file modified
BIN
+3.43 KB
(140%)
frontend/__snapshots__/scenes-other-verify-email--verifying-email--dark.png
Oops, something went wrong.
Oops, something went wrong.
File renamed without changes
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.