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

feat: toolbar 3000 #17276

Merged
merged 305 commits into from
Nov 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
305 commits
Select commit Hold shift + click to select a range
62f748c
Merge branch 'master' into feat/toolbar-3000
pauldambra Sep 6, 2023
1c7a7e5
fix
pauldambra Sep 6, 2023
fd16a24
fix
pauldambra Sep 6, 2023
78a76ee
Merge branch 'master' into feat/toolbar-3000
pauldambra Sep 7, 2023
a4a3514
Update UI snapshots for `chromium` (1)
github-actions[bot] Sep 7, 2023
27d7f8a
Update UI snapshots for `chromium` (1)
github-actions[bot] Sep 7, 2023
5857e10
Update UI snapshots for `chromium` (1)
github-actions[bot] Sep 7, 2023
ff797d2
Merge branch 'master' into feat/toolbar-3000
pauldambra Sep 10, 2023
e403885
Merge branch 'master' into feat/toolbar-3000
pauldambra Sep 14, 2023
ea505e9
Update UI snapshots for `chromium` (1)
github-actions[bot] Sep 14, 2023
a162645
position of menu based on drag position
pauldambra Sep 14, 2023
e57302e
position of menu based on drag position
pauldambra Sep 14, 2023
5bb103b
Update UI snapshots for `chromium` (2)
github-actions[bot] Sep 14, 2023
4592274
Update UI snapshots for `chromium` (2)
github-actions[bot] Sep 14, 2023
08f43b5
fix
pauldambra Sep 14, 2023
7cb199f
Update UI snapshots for `chromium` (1)
github-actions[bot] Sep 15, 2023
419f70b
Merge branch 'master' into feat/toolbar-3000
pauldambra Oct 14, 2023
a514805
improve bounds detection for 3000 mode
pauldambra Oct 15, 2023
4bb9dcf
better flags window layout
pauldambra Oct 15, 2023
3ca6366
Update UI snapshots for `chromium` (1)
github-actions[bot] Oct 15, 2023
04e8854
Merge branch 'master' into feat/toolbar-3000
pauldambra Oct 29, 2023
bb728a1
remove peek menu step 1
pauldambra Oct 29, 2023
a124f92
slightly less tangly
pauldambra Oct 29, 2023
dec9036
fixes and breaks all in one
pauldambra Oct 29, 2023
f2231da
mostly working 3000 menus
pauldambra Oct 29, 2023
2249432
a bunch of moving around
pauldambra Oct 29, 2023
868ce23
fiddling
pauldambra Oct 29, 2023
4b173f3
default to dark mode
pauldambra Oct 29, 2023
520a1b1
fix
pauldambra Oct 29, 2023
5caa2b8
fix
pauldambra Oct 29, 2023
1b9629d
Update UI snapshots for `chromium` (2)
github-actions[bot] Oct 29, 2023
60a172e
fix
pauldambra Oct 29, 2023
87ed385
fix
pauldambra Oct 29, 2023
491d420
Update UI snapshots for `chromium` (2)
github-actions[bot] Oct 29, 2023
4b5d107
fix
pauldambra Oct 30, 2023
85130e3
check toolbar bundle size
pauldambra Oct 30, 2023
b2bbd85
check toolbar bundle size
pauldambra Oct 30, 2023
62fc95b
Merge branch 'master' into feat/toolbar-3000
pauldambra Nov 9, 2023
45308eb
fix
pauldambra Nov 9, 2023
a066d0d
Update UI snapshots for `chromium` (2)
github-actions[bot] Nov 9, 2023
b58aa58
fx
pauldambra Nov 9, 2023
928cf49
a little hedgehog modey
pauldambra Nov 9, 2023
0a15c1c
deleting
pauldambra Nov 9, 2023
11dd485
Deleting
pauldambra Nov 9, 2023
fd1622b
Deleting
pauldambra Nov 9, 2023
a91752a
deleting
pauldambra Nov 9, 2023
7de3660
Update UI snapshots for `chromium` (2)
github-actions[bot] Nov 9, 2023
c905bc4
deleting
pauldambra Nov 9, 2023
d4fe7fd
fix
pauldambra Nov 9, 2023
4073ca3
some icons
pauldambra Nov 9, 2023
f44c7fd
Update UI snapshots for `chromium` (2)
github-actions[bot] Nov 10, 2023
45f283b
Update UI snapshots for `webkit` (2)
github-actions[bot] Nov 10, 2023
0fea829
Update UI snapshots for `chromium` (1)
github-actions[bot] Nov 10, 2023
72ea949
Update UI snapshots for `webkit` (2)
github-actions[bot] Nov 10, 2023
26e7b76
Update UI snapshots for `chromium` (1)
github-actions[bot] Nov 10, 2023
8d84f8a
Update UI snapshots for `chromium` (2)
github-actions[bot] Nov 10, 2023
c71319a
Update UI snapshots for `chromium` (2)
github-actions[bot] Nov 10, 2023
413a3ba
Update UI snapshots for `webkit` (2)
github-actions[bot] Nov 10, 2023
76f9f8f
Update UI snapshots for `webkit` (2)
github-actions[bot] Nov 10, 2023
ec884c2
Update UI snapshots for `chromium` (1)
github-actions[bot] Nov 10, 2023
b1cd795
flag styling
pauldambra Nov 10, 2023
a0088b1
fix
pauldambra Nov 10, 2023
5245ac1
Update UI snapshots for `chromium` (1)
github-actions[bot] Nov 10, 2023
a117672
Update UI snapshots for `chromium` (2)
github-actions[bot] Nov 10, 2023
c5093fc
fix position
pauldambra Nov 10, 2023
769efbd
Update UI snapshots for `chromium` (2)
github-actions[bot] Nov 10, 2023
4b20831
Update UI snapshots for `chromium` (1)
github-actions[bot] Nov 10, 2023
d544425
Update UI snapshots for `chromium` (1)
github-actions[bot] Nov 10, 2023
d189373
Update UI snapshots for `chromium` (2)
github-actions[bot] Nov 10, 2023
321c69e
Update UI snapshots for `chromium` (1)
github-actions[bot] Nov 10, 2023
c6747fb
Update UI snapshots for `chromium` (2)
github-actions[bot] Nov 10, 2023
99b12ee
that's more neat
pauldambra Nov 10, 2023
ffb1eb4
Update UI snapshots for `chromium` (1)
github-actions[bot] Nov 10, 2023
cad425e
Merge branch 'master' into feat/toolbar-3000
pauldambra Nov 10, 2023
035d710
Update UI snapshots for `chromium` (2)
github-actions[bot] Nov 10, 2023
f0709c7
Merge branch 'master' into feat/toolbar-3000
daibhin Nov 14, 2023
3862b1b
feat(hogql-queries): Lifecycle upgrades (#18574)
mariusandra Nov 14, 2023
6e7a2a8
fix(notebooks): convert funnel type to lemon ui (#18593)
thmsobrmlr Nov 14, 2023
f86410b
fix: Reset structlog on temporal worker (#18581)
tomasfarias Nov 14, 2023
f6bc14f
chore: update new property form (#18576)
daibhin Nov 14, 2023
9a82e13
feat(web-analytics): add health check warnings (#18572)
robbie-c Nov 14, 2023
97d00e2
feat(hogql): enable cpp parser by default (#18595)
mariusandra Nov 14, 2023
c11dc92
fix: show notice when not recording performance events on localhost (…
pauldambra Nov 14, 2023
1359c56
fix(notebooks): use varying keys for action filters (#18591)
thmsobrmlr Nov 14, 2023
bfb7a36
fix(notebooks): use varying keys for breakdown filter (#18596)
thmsobrmlr Nov 14, 2023
25fcb94
fix(notebooks): use varying keys for sampling filter (#18603)
thmsobrmlr Nov 14, 2023
ebe18c6
refactor(batch-exports): upgrade temporalio dep and use their built i…
bretthoerner Nov 14, 2023
40e333e
chore(deps): Update posthog-js to 1.89.2 (#18605)
posthog-bot Nov 14, 2023
cd8a289
feat: Pipeline UI transformations (#18402)
tiina303 Nov 14, 2023
7368de0
fix: Use timezone aware now in backfill (#18606)
tomasfarias Nov 14, 2023
af89b94
fix(exports): breakdown limit (#18597)
Gilbert09 Nov 14, 2023
3dc3297
feat: Added linking for feature preview modal/panel (#18599)
benjackwhite Nov 14, 2023
8986577
fix(demo): Restore Data Management inference in demo data (#18604)
Twixes Nov 14, 2023
c549ce2
fix(notebooks): use varying keys for global filters (#18601)
thmsobrmlr Nov 14, 2023
9a7a1e1
fix(batch-exports): move start/finish metric to workflow level (#18609)
bretthoerner Nov 14, 2023
d9ab161
feat: Added listener for docs path changes (#18563)
benjackwhite Nov 14, 2023
2832404
fix(3000): Reconnect submit buttons in PageHeader to forms (#18602)
Twixes Nov 14, 2023
af9b15b
fix: Fail backfill on schedule deletion (#18575)
tomasfarias Nov 14, 2023
1286231
chore: remove the remaining call to api/plans (#18589)
xrdt Nov 14, 2023
0524131
fix: Add setting to unset timestamp predicates (#18611)
tomasfarias Nov 14, 2023
dd48cbe
fix: Create ssl context for batch exports kafka producer (#18624)
tomasfarias Nov 14, 2023
3932732
chore(deps): Update posthog-js to 1.90.0 (#18633)
posthog-bot Nov 15, 2023
6a19c30
fix(surveys): enable button text per question instead (#18623)
liyiy Nov 15, 2023
d7f9287
fix: Use sasl_params instead of ssl context for batch exports logger …
tomasfarias Nov 15, 2023
1a1763d
refactor: Postgres (+ Redshift) batch exports now async (#18631)
tomasfarias Nov 15, 2023
d07c24f
chore(deps): Update posthog-js to 1.90.1 (#18636)
posthog-bot Nov 15, 2023
d7942e0
feat: performance event display fiddling (#18629)
pauldambra Nov 15, 2023
7b9bf6e
fix: vscode launch file to debug celery tasks (#18598)
Gilbert09 Nov 15, 2023
38a3c49
chore(deps): Update posthog-js to 1.90.2 (#18637)
posthog-bot Nov 15, 2023
e682fcf
fix: Setup defaultl ssl context for kafka logger (#18640)
tomasfarias Nov 15, 2023
6c7c6f9
feat(insights): hogql insight load on load (#18610)
mariusandra Nov 15, 2023
82ec8b8
fix: Open docs externally (#18643)
benjackwhite Nov 15, 2023
878b5bc
chore: bump up rate limits for flag evaluation (#18592)
neilkakkar Nov 15, 2023
f3f9c3b
fix(notebooks): move funnel series and exclusion selectors (#18613)
thmsobrmlr Nov 15, 2023
c1436c1
chore: replace all antd tooltips (#18638)
daibhin Nov 15, 2023
011abc9
chore(deps): Update posthog-js to 1.91.0 (#18646)
posthog-bot Nov 15, 2023
6a37e24
fix action launch
pauldambra Nov 15, 2023
a0226ee
fix expand - break drag
pauldambra Nov 15, 2023
9f89ac4
way better drag and click
pauldambra Nov 15, 2023
e693dd0
nicer padding for highlights
pauldambra Nov 15, 2023
f21469a
Remove hover shadow which caused other problems anyway
pauldambra Nov 15, 2023
0645510
Merge branch 'master' into feat/toolbar-3000
pauldambra Nov 15, 2023
d299c8f
hide tooltip while menu open
pauldambra Nov 15, 2023
c400414
Update UI snapshots for `chromium` (2)
github-actions[bot] Nov 15, 2023
f888c93
obey stylelint
pauldambra Nov 15, 2023
864f101
Merge branch 'master' into feat/toolbar-3000
pauldambra Nov 15, 2023
8ab811d
Merge branch 'master' into feat/toolbar-3000
pauldambra Nov 15, 2023
29f5254
centralise style variables so toolbar can include rather than duplcia…
pauldambra Nov 15, 2023
37d09c7
better width
pauldambra Nov 15, 2023
145d8b0
Merge branch 'master' into feat/toolbar-3000
benjackwhite Nov 17, 2023
6acb758
Update UI snapshots for `chromium` (2)
github-actions[bot] Nov 17, 2023
dd741e0
feat: Toolbar 3000 changes (#18671)
benjackwhite Nov 20, 2023
70170f3
Merge branch 'master' into feat/toolbar-3000
benjackwhite Nov 20, 2023
5f0b99c
Fixed intents
benjackwhite Nov 20, 2023
58b1294
Update UI snapshots for `chromium` (2)
github-actions[bot] Nov 20, 2023
6d3d2a2
Removed leftovers
benjackwhite Nov 20, 2023
ec16d62
Fix
benjackwhite Nov 20, 2023
d0b0853
Merge branch 'feat/toolbar-3000' of github.com:PostHog/posthog into f…
benjackwhite Nov 20, 2023
24ad78a
Update UI snapshots for `chromium` (2)
github-actions[bot] Nov 20, 2023
40aef2e
remove files
benjackwhite Nov 20, 2023
67d67a0
Remove
benjackwhite Nov 20, 2023
7585b82
Merge branch 'master' into feat/toolbar-3000
benjackwhite Nov 20, 2023
3379494
Update UI snapshots for `chromium` (1)
github-actions[bot] Nov 20, 2023
83a5ffe
Update UI snapshots for `chromium` (2)
github-actions[bot] Nov 20, 2023
1c66b87
Fix unauth flow
benjackwhite Nov 20, 2023
5e9bd7c
Update UI snapshots for `chromium` (2)
github-actions[bot] Nov 20, 2023
65010a9
Merge branch 'master' into feat/toolbar-3000
benjackwhite Nov 20, 2023
d17cf45
Fixes
benjackwhite Nov 20, 2023
9d483ee
Update UI snapshots for `chromium` (2)
github-actions[bot] Nov 20, 2023
d778fb4
Fixes
benjackwhite Nov 20, 2023
48fe60b
Merge branch 'feat/toolbar-3000' of github.com:PostHog/posthog into f…
benjackwhite Nov 20, 2023
cc33863
Fix pasting to notebooks
benjackwhite Nov 20, 2023
171e769
Merge branch 'fix/paste-utils' into feat/toolbar-3000
benjackwhite Nov 20, 2023
648df71
Merge branch 'master' into feat/toolbar-3000
benjackwhite Nov 21, 2023
073510e
Fixed up stuff
benjackwhite Nov 21, 2023
c533797
Update UI snapshots for `chromium` (2)
github-actions[bot] Nov 21, 2023
51a0bdc
Update UI snapshots for `chromium` (2)
github-actions[bot] Nov 21, 2023
14b9a22
Merge branch 'master' into feat/toolbar-3000
benjackwhite Nov 21, 2023
8627305
Update UI snapshots for `chromium` (2)
github-actions[bot] Nov 21, 2023
710066d
Update UI snapshots for `chromium` (2)
github-actions[bot] Nov 21, 2023
7b2d83d
Fix to only test on chrome
benjackwhite Nov 21, 2023
9dd47cf
Merge branch 'feat/toolbar-3000' of github.com:PostHog/posthog into f…
benjackwhite Nov 21, 2023
598be5d
Fix
benjackwhite Nov 21, 2023
94a4fcc
Merge branch 'master' into feat/toolbar-3000
benjackwhite Nov 21, 2023
8e0ac22
Update UI snapshots for `chromium` (2)
github-actions[bot] Nov 21, 2023
63c9bd4
Hopefully fix some kea logic mounting issues
benjackwhite Nov 21, 2023
0e7cfaf
Merge branch 'feat/toolbar-3000' of github.com:PostHog/posthog into f…
benjackwhite Nov 21, 2023
1340e5a
wat
pauldambra Nov 21, 2023
5f6f97f
Fix
benjackwhite Nov 21, 2023
228d0f6
Update UI snapshots for `chromium` (2)
github-actions[bot] Nov 21, 2023
f0bd62b
Fix
benjackwhite Nov 21, 2023
d058254
Merge branch 'feat/toolbar-3000' of github.com:PostHog/posthog into f…
benjackwhite Nov 21, 2023
6ba76ec
Revert
benjackwhite Nov 21, 2023
99b8066
Fix
benjackwhite Nov 21, 2023
fad1461
Update UI snapshots for `chromium` (2)
github-actions[bot] Nov 21, 2023
c2082aa
Bunch of style changes and improvements
benjackwhite Nov 21, 2023
7ff6e95
Fixes
benjackwhite Nov 21, 2023
7f85f77
Fixes
benjackwhite Nov 21, 2023
785bcf4
Update UI snapshots for `chromium` (2)
github-actions[bot] Nov 21, 2023
ed3e3ee
updated toolbar icons, slightly increased size, updated icon pkg
corywatilo Nov 21, 2023
25af852
Merge branch 'feat/toolbar-3000' of https://github.com/PostHog/postho…
corywatilo Nov 21, 2023
d578993
Update UI snapshots for `chromium` (2)
github-actions[bot] Nov 21, 2023
1fecd33
Fix
benjackwhite Nov 21, 2023
d6b2978
Merge branch 'feat/toolbar-3000' of github.com:PostHog/posthog into f…
benjackwhite Nov 21, 2023
2c18191
fix
benjackwhite Nov 21, 2023
0233672
Fixed up cyclic themelogic
benjackwhite Nov 21, 2023
7961af1
Fixed up
benjackwhite Nov 21, 2023
091962c
Fix
benjackwhite Nov 21, 2023
26e2ef1
fix
benjackwhite Nov 21, 2023
90df653
Update UI snapshots for `chromium` (1)
github-actions[bot] Nov 21, 2023
063fa4e
Updated skip controls
benjackwhite Nov 21, 2023
1d57c25
Fixed up
benjackwhite Nov 21, 2023
4ff3f24
Fixes
benjackwhite Nov 21, 2023
5e91ba1
Fix
benjackwhite Nov 21, 2023
df1ee54
fix lock
benjackwhite Nov 21, 2023
26af340
Merge branch 'master' into feat/toolbar-3000
benjackwhite Nov 21, 2023
41329e0
Fixed some tests
benjackwhite Nov 21, 2023
6ffe9ae
Merge branch 'master' into feat/toolbar-3000
benjackwhite Nov 21, 2023
a715288
upgrade
benjackwhite Nov 21, 2023
69e6aaa
Fix
benjackwhite Nov 21, 2023
2799733
fix lock
benjackwhite Nov 21, 2023
492f8f3
Fix a test
benjackwhite Nov 21, 2023
ad55d09
Fix more tests
benjackwhite Nov 21, 2023
32a99f3
Merge branch 'fix/test-runner-upgrade' into feat/toolbar-3000
benjackwhite Nov 21, 2023
3c405ee
Fixes
benjackwhite Nov 21, 2023
eda1ee3
lets try it
benjackwhite Nov 21, 2023
c10a949
Fix
benjackwhite Nov 21, 2023
c2917dc
Update UI snapshots for `chromium` (1)
github-actions[bot] Nov 21, 2023
537818d
Update UI snapshots for `chromium` (1)
github-actions[bot] Nov 21, 2023
d417774
Update UI snapshots for `chromium` (1)
github-actions[bot] Nov 21, 2023
7408ce5
Update UI snapshots for `chromium` (1)
github-actions[bot] Nov 21, 2023
a479e89
test
benjackwhite Nov 22, 2023
2a5d698
Update UI snapshots for `chromium` (2)
github-actions[bot] Nov 22, 2023
92d0a69
Revert testing
benjackwhite Nov 22, 2023
490da28
Fix up reference
benjackwhite Nov 22, 2023
aa60794
Update UI snapshots for `chromium` (1)
github-actions[bot] Nov 22, 2023
d5ee0fc
Update UI snapshots for `chromium` (2)
github-actions[bot] Nov 22, 2023
d5e3557
Update UI snapshots for `chromium` (1)
github-actions[bot] Nov 22, 2023
c2f615c
Fix logic
benjackwhite Nov 22, 2023
e85a644
Merge branch 'feat/toolbar-3000' of github.com:PostHog/posthog into f…
benjackwhite Nov 22, 2023
456a859
Update UI snapshots for `chromium` (1)
github-actions[bot] Nov 22, 2023
a623402
Update UI snapshots for `chromium` (1)
github-actions[bot] Nov 22, 2023
382b3b1
skip webkit
benjackwhite Nov 22, 2023
4f92d5b
Revert change
benjackwhite Nov 22, 2023
7fa8e76
Merge branch 'master' into fix/test-runner-upgrade
benjackwhite Nov 22, 2023
dee701c
Merge branch 'fix/test-runner-upgrade' into feat/toolbar-3000
benjackwhite Nov 22, 2023
8cb4c92
Update UI snapshots for `chromium` (2)
github-actions[bot] Nov 22, 2023
e4b30c1
Update UI snapshots for `chromium` (2)
github-actions[bot] Nov 22, 2023
181a490
Update UI snapshots for `chromium` (2)
github-actions[bot] Nov 22, 2023
1075aca
Merge branch 'master' into feat/toolbar-3000
benjackwhite Nov 22, 2023
86f30ba
Update UI snapshots for `chromium` (2)
github-actions[bot] Nov 22, 2023
c84fa95
Fixed
benjackwhite Nov 22, 2023
191158e
Merge branch 'feat/toolbar-3000' of github.com:PostHog/posthog into f…
benjackwhite Nov 22, 2023
7ff5c92
Update UI snapshots for `chromium` (1)
github-actions[bot] Nov 22, 2023
4d01110
Update UI snapshots for `chromium` (2)
github-actions[bot] Nov 22, 2023
b9bed7b
Update UI snapshots for `chromium` (1)
github-actions[bot] Nov 22, 2023
c0fd271
Update UI snapshots for `chromium` (2)
github-actions[bot] Nov 22, 2023
365df22
Update UI snapshots for `chromium` (2)
github-actions[bot] Nov 22, 2023
70222cc
Fix
benjackwhite Nov 22, 2023
97c243e
Fix
benjackwhite Nov 22, 2023
0ed2085
Update UI snapshots for `chromium` (2)
github-actions[bot] Nov 22, 2023
23aa87a
Merge branch 'master' into feat/toolbar-3000
benjackwhite Nov 23, 2023
f20ed85
Fixes
benjackwhite Nov 23, 2023
003822e
Update UI snapshots for `chromium` (2)
github-actions[bot] Nov 23, 2023
555a32f
Fix
benjackwhite Nov 23, 2023
511272d
Fix
benjackwhite Nov 23, 2023
2b8bc62
Fix
benjackwhite Nov 23, 2023
f91a652
Update UI snapshots for `chromium` (2)
github-actions[bot] Nov 23, 2023
41e3033
Update UI snapshots for `chromium` (2)
github-actions[bot] Nov 23, 2023
a1944d7
fix
benjackwhite Nov 23, 2023
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
2 changes: 1 addition & 1 deletion cypress/e2e/toolbar.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe('Toolbar', () => {
.then((href) => {
cy.visit(href)
})
cy.get('#__POSTHOG_TOOLBAR__').shadow().find('.floating-toolbar-button').should('exist')
cy.get('#__POSTHOG_TOOLBAR__').shadow().find('.Toolbar').should('exist')
})
})

Expand Down
Binary file modified frontend/__snapshots__/exporter-exporter--dashboard.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 frontend/__snapshots__/lemon-ui-lemon-input--small.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 frontend/__snapshots__/scenes-app-surveys--survey-not-found.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion frontend/src/layout/GlobalModals.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { LemonModal } from '@posthog/lemon-ui'
import { actions, kea, path, reducers, useActions, useValues } from 'kea'
import { FlaggedFeature } from 'lib/components/FlaggedFeature'
import { HedgehogBuddyWithLogic } from 'lib/components/HedgehogBuddy/HedgehogBuddy'
import { HedgehogBuddyWithLogic } from 'lib/components/HedgehogBuddy/HedgehogBuddyWithLogic'
import { Prompt } from 'lib/logic/newPrompt/Prompt'
import { Setup2FA } from 'scenes/authentication/Setup2FA'
import { CreateOrganizationModal } from 'scenes/organization/CreateOrganizationModal'
Expand Down
7 changes: 5 additions & 2 deletions frontend/src/layout/navigation-3000/themeLogic.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { actions, events, kea, path, reducers, selectors } from 'kea'
import { actions, connect, events, kea, path, reducers, selectors } from 'kea'
import { subscriptions } from 'kea-subscriptions'
import { FEATURE_FLAGS } from 'lib/constants'
import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
Expand All @@ -8,6 +8,9 @@ import type { themeLogicType } from './themeLogicType'

export const themeLogic = kea<themeLogicType>([
path(['layout', 'navigation-3000', 'themeLogic']),
connect({
values: [featureFlagLogic, ['featureFlags']],
}),
actions({
toggleTheme: true,
overrideTheme: (darkModePreference: boolean | null) => ({ darkModePreference }),
Expand Down Expand Up @@ -36,7 +39,7 @@ export const themeLogic = kea<themeLogicType>([
(s) => [
s.darkModeSavedPreference,
s.darkModeSystemPreference,
featureFlagLogic.selectors.featureFlags,
s.featureFlags,
sceneLogic.selectors.sceneConfig,
],
(darkModeSavedPreference, darkModeSystemPreference, featureFlags, sceneConfig) => {
Expand Down
36 changes: 36 additions & 0 deletions frontend/src/lib/components/HedgehogBuddy/HedgehogAccessories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import { capitalizeFirstLetter } from 'lib/utils'

import { HedgehogBuddyAccessory } from './components/AccessoryButton'
import { accessoryGroups, standardAccessories } from './sprites/sprites'

export function HedgehogAccessories({ isDarkModeOn }: { isDarkModeOn: boolean }): JSX.Element {
return (
<>
<h3>Hi, I'm Max!</h3>
<p>
Don't mind me. I'm just here to keep you company.
<br />
You can move me around by clicking and dragging or control me with WASD / arrow keys.
</p>

{accessoryGroups.map((group) => (
<div key={group}>
<h4>{capitalizeFirstLetter(group)}</h4>

<div className="flex gap-2 my-2 overflow-y-auto">
{Object.keys(standardAccessories)
.filter((acc) => standardAccessories[acc].group === group)
.map((acc) => (
<HedgehogBuddyAccessory
key={acc}
accessoryKey={acc}
accessory={standardAccessories[acc]}
isDarkModeOn={isDarkModeOn}
/>
))}
</div>
</div>
))}
</>
)
}
75 changes: 11 additions & 64 deletions frontend/src/lib/components/HedgehogBuddy/HedgehogBuddy.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
import './HedgehogBuddy.scss'
import './HedgehogBuddy.scss'

import { useActions, useValues } from 'kea'
import { FEATURE_FLAGS } from 'lib/constants'
import { useValues } from 'kea'
import { LemonButton } from 'lib/lemon-ui/LemonButton'
import { LemonDivider } from 'lib/lemon-ui/LemonDivider'
import { Popover } from 'lib/lemon-ui/Popover/Popover'
import { capitalizeFirstLetter, range, sampleOne } from 'lib/utils'
import { range, sampleOne } from 'lib/utils'
import { MutableRefObject, useEffect, useRef, useState } from 'react'

import { themeLogic } from '~/layout/navigation-3000/themeLogic'

import { FlaggedFeature } from '../FlaggedFeature'
import { HedgehogBuddyAccessory } from './components/AccessoryButton'
import { HedgehogAccessories } from './HedgehogAccessories'
import { hedgehogbuddyLogic } from './hedgehogbuddyLogic'
import {
accessoryGroups,
AccessoryInfo,
baseSpriteAccessoriesPath,
baseSpritePath,
Expand Down Expand Up @@ -318,7 +314,10 @@ export class HedgehogActor {
<div
className="HedgehogBuddy"
data-content={preloadContent}
onMouseDown={() => {
onMouseDown={(e) => {
if (e.button !== 0) {
return
}
let moved = false
const onMouseMove = (e: any): void => {
moved = true
Expand Down Expand Up @@ -399,7 +398,7 @@ export function HedgehogBuddy({
onClick?: () => void
onPositionChange?: (actor: HedgehogActor) => void
popoverOverlay?: React.ReactNode
// passed in because toolbar needs to check this differently than the app
// passed in as this might need to be the app's global dark mode setting or the toolbar's local one
isDarkModeOn: boolean
}): JSX.Element {
const actorRef = useRef<HedgehogActor>()
Expand Down Expand Up @@ -478,48 +477,8 @@ export function HedgehogBuddy({
overlay={
popoverOverlay || (
<div className="HedgehogBuddyPopover p-2 max-w-140">
<h3>Hi, I'm Max!</h3>
<p>
Don't mind me. I'm just here to keep you company.
<br />
You can move me around by clicking and dragging or control me with WASD / arrow keys.
</p>

{accessoryGroups.map((group) => (
<div key={group}>
<h4>{capitalizeFirstLetter(group)}</h4>

<div className="flex gap-2 my-2 overflow-y-auto">
{Object.keys(standardAccessories)
.filter((acc) => standardAccessories[acc].group === group)
.map((acc) => (
<HedgehogBuddyAccessory
key={acc}
accessoryKey={acc}
accessory={standardAccessories[acc]}
/>
))}
</div>
</div>
))}

<FlaggedFeature flag={FEATURE_FLAGS.HEDGEHOG_MODE_DEBUG}>
<>
<LemonDivider />
<div className="flex gap-2 my-2 overflow-y-auto">
{Object.keys(standardAnimations).map((x) => (
<LemonButton
key={x}
type="secondary"
size="small"
onClick={() => actor.setAnimation(x)}
>
{capitalizeFirstLetter(x)}
</LemonButton>
))}
</div>
</>
</FlaggedFeature>
<HedgehogAccessories isDarkModeOn={isDarkModeOn} />

<LemonDivider />
<div className="flex justify-end gap-2">
<LemonButton type="secondary" status="danger" onClick={() => disappear()}>
Expand All @@ -537,15 +496,3 @@ export function HedgehogBuddy({
</Popover>
)
}

export function HedgehogBuddyWithLogic(): JSX.Element {
const { hedgehogModeEnabled } = useValues(hedgehogbuddyLogic)
const { setHedgehogModeEnabled } = useActions(hedgehogbuddyLogic)
const { isDarkModeOn } = useValues(themeLogic)

return hedgehogModeEnabled ? (
<HedgehogBuddy onClose={() => setHedgehogModeEnabled(false)} isDarkModeOn={isDarkModeOn} />
) : (
<></>
)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import './HedgehogBuddy.scss'

import { useActions, useValues } from 'kea'

import { themeLogic } from '~/layout/navigation-3000/themeLogic'

import { HedgehogBuddy } from './HedgehogBuddy'
import { hedgehogbuddyLogic } from './hedgehogbuddyLogic'

export function HedgehogBuddyWithLogic(): JSX.Element {
const { hedgehogModeEnabled } = useValues(hedgehogbuddyLogic)
const { setHedgehogModeEnabled } = useActions(hedgehogbuddyLogic)
const { isDarkModeOn } = useValues(themeLogic)

return hedgehogModeEnabled ? (
<HedgehogBuddy onClose={() => setHedgehogModeEnabled(false)} isDarkModeOn={isDarkModeOn} />
) : (
<></>
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,22 @@ import { IconLock } from 'lib/lemon-ui/icons'
import { LemonButton } from 'lib/lemon-ui/LemonButton'
import { capitalizeFirstLetter } from 'lib/utils'

import { themeLogic } from '~/layout/navigation-3000/themeLogic'

import { hedgehogbuddyLogic } from '../hedgehogbuddyLogic'
import { AccessoryInfo, baseSpriteAccessoriesPath } from '../sprites/sprites'

export type HedgehogBuddyAccessoryProps = {
accessory: AccessoryInfo
accessoryKey: string
isDarkModeOn: boolean
}

export function HedgehogBuddyAccessory({ accessoryKey, accessory }: HedgehogBuddyAccessoryProps): JSX.Element {
export function HedgehogBuddyAccessory({
accessoryKey,
accessory,
isDarkModeOn,
}: HedgehogBuddyAccessoryProps): JSX.Element {
const { accessories, availableAccessories } = useValues(hedgehogbuddyLogic)
const { addAccessory, removeAccessory } = useActions(hedgehogbuddyLogic)
const { isDarkModeOn } = useValues(themeLogic)

const isUnlocked = availableAccessories.includes(accessoryKey)

Expand Down
1 change: 1 addition & 0 deletions frontend/src/lib/lemon-ui/LemonMenu/LemonMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ export interface LemonMenuProps
| 'closeParentPopoverOnClickInside'
| 'className'
| 'onClickOutside'
| 'getPopupContainer'
>,
LemonMenuOverlayProps {
/** Must support `ref` and `onKeyDown` for keyboard navigation. */
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/lib/lemon-ui/LemonSwitch/LemonSwitch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@
}

.LemonSwitch--checked & {
background-color: var(--primary);
border-color: var(--primary);
background-color: var(--primary-3000);
border-color: var(--primary-3000);
transform: translateX(1rem);

.posthog-3000 & {
Expand Down
10 changes: 10 additions & 0 deletions frontend/src/lib/lemon-ui/Link/Link.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,14 @@
> .LemonIcon {
margin-left: 0.15em;
}

&--subtle {
.posthog-3000 & {
color: var(--default);

&:not(:disabled):hover {
color: var(--primary-3000-hover);
}
}
}
}
7 changes: 5 additions & 2 deletions frontend/src/lib/lemon-ui/Link/Link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export type LinkProps = Pick<React.HTMLProps<HTMLAnchorElement>, 'target' | 'cla
* This is true by default if `children` is a string.
*/
targetBlankIcon?: boolean
/** If true, the default color will be as normal text with only a link color on hover */
subtle?: boolean
}

// Some URLs we want to enforce a full reload such as billing which is redirected by Django
Expand Down Expand Up @@ -68,6 +70,7 @@ export const Link: React.FC<LinkProps & React.RefAttributes<HTMLElement>> = Reac
{
to,
target,
subtle,
disableClientSideRouting,
preventClick = false,
onClick: onClickRaw,
Expand Down Expand Up @@ -124,7 +127,7 @@ export const Link: React.FC<LinkProps & React.RefAttributes<HTMLElement>> = Reac
// eslint-disable-next-line react/forbid-elements
<a
ref={ref as any}
className={clsx('Link', className)}
className={clsx('Link', subtle && 'Link--subtle', className)}
onClick={onClick}
href={typeof to === 'string' ? to : '#'}
target={target}
Expand All @@ -140,7 +143,7 @@ export const Link: React.FC<LinkProps & React.RefAttributes<HTMLElement>> = Reac
<span>
<button
ref={ref as any}
className={clsx('Link', className)}
className={clsx('Link', subtle && 'Link--subtle', className)}
onClick={onClick}
type="button"
disabled={disabled || !!disabledReason}
Expand Down
Loading
Loading