-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8fb7e19
commit 3cb9ed4
Showing
83 changed files
with
1,974 additions
and
2,646 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
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 modified
BIN
-403 Bytes
(100%)
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 removed
BIN
-15.5 KB
frontend/__snapshots__/scenes-other-toolbar-components--actions-with-results.png
Binary file not shown.
Binary file removed
BIN
-11.4 KB
frontend/__snapshots__/scenes-other-toolbar-components--actions.png
Binary file not shown.
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
36 changes: 36 additions & 0 deletions
36
frontend/src/lib/components/HedgehogBuddy/HedgehogAccessories.tsx
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 |
---|---|---|
@@ -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> | ||
))} | ||
</> | ||
) | ||
} |
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
20 changes: 20 additions & 0 deletions
20
frontend/src/lib/components/HedgehogBuddy/HedgehogBuddyWithLogic.tsx
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 |
---|---|---|
@@ -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} /> | ||
) : ( | ||
<></> | ||
) | ||
} |
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
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
Oops, something went wrong.