Skip to content

Commit 55edaab

Browse files
MattBroclaude
andauthored
feat: add AI consent step with Flappy Hog easter egg (#41924)
Co-authored-by: Claude <[email protected]>
1 parent cfbe9f8 commit 55edaab

File tree

14 files changed

+618
-11
lines changed

14 files changed

+618
-11
lines changed
290 KB
Loading
137 KB
Loading

frontend/src/lib/components/Account/AccountMenu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ export function AccountMenu({ trigger, ...props }: AccountMenuProps): JSX.Elemen
379379
<DropdownMenuSubContent>
380380
<DropdownMenuGroup>
381381
{getTreeItemsGames().map((game) => (
382-
<DropdownMenuItem asChild>
382+
<DropdownMenuItem asChild key={game.path}>
383383
<Link to={game.href} buttonProps={{ menuItem: true }}>
384384
{game.path}
385385
</Link>

frontend/src/lib/components/hedgehogs.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import phonePairHogs from 'public/hedgehog/phone-pair-hogs.png'
2929
import policeHog from 'public/hedgehog/police-hog.png'
3030
import professorHog from 'public/hedgehog/professor-hog.png'
3131
import readingHog from 'public/hedgehog/reading-hog.png'
32+
import robotHog from 'public/hedgehog/robot-hog.png'
3233
import runningHog from 'public/hedgehog/running-hog.png'
3334
import sleepingHog from 'public/hedgehog/sleeping-hog.png'
3435
import spaceHog from 'public/hedgehog/space-hog.png'
@@ -147,6 +148,9 @@ export const WavingHog = (props: HedgehogProps): JSX.Element => {
147148
export const ReadingHog = (props: HedgehogProps): JSX.Element => {
148149
return <SquaredHedgehog src={readingHog} {...props} />
149150
}
151+
export const RobotHog = (props: HedgehogProps): JSX.Element => {
152+
return <SquaredHedgehog src={robotHog} {...props} />
153+
}
150154
export const MicrophoneHog = (props: HedgehogProps): JSX.Element => {
151155
return <SquaredHedgehog src={microphoneHog} {...props} />
152156
}

frontend/src/lib/constants.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ export const FEATURE_FLAGS = {
231231
SDK_DOCTOR_BETA: 'sdk-doctor-beta', // owner: @slshults
232232
ONBOARDING_DATA_WAREHOUSE_FOR_PRODUCT_ANALYTICS: 'onboarding-data-warehouse-for-product-analytics', // owner: @joshsny
233233
ONBOARDING_USE_CASE_SELECTION: 'onboarding-use-case-selection', // owner: @mattbro
234+
ONBOARDING_AI_CONSENT_STEP: 'onboarding-ai-consent-step', // owner: @mattbro
234235
DELAYED_LOADING_ANIMATION: 'delayed-loading-animation', // owner: @raquelmsmith
235236
WEB_ANALYTICS_PAGE_REPORTS: 'web-analytics-page-reports', // owner: @lricoy #team-web-analytics
236237
ENDPOINTS: 'embedded-analytics', // owner: @sakce #team-clickhouse

frontend/src/products.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,10 @@
133133
"intents": ["workflows"]
134134
}
135135
],
136-
"games": [{ "path": "368 Hedgehogs", "category": null, "iconType": null, "type": null, "intents": [] }],
136+
"games": [
137+
{ "path": "368 Hedgehogs", "category": null, "iconType": null, "type": null, "intents": [] },
138+
{ "path": "Flappy Hog", "category": null, "iconType": null, "type": null, "intents": [] }
139+
],
137140
"metadata": [
138141
{ "path": "Actions", "category": "Schema", "iconType": null, "type": null, "intents": [] },
139142
{

frontend/src/products.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ export const productScenes: Record<string, () => Promise<any>> = {
6262
'../../products/error_tracking/frontend/scenes/ErrorTrackingConfigurationScene/ErrorTrackingConfigurationScene'
6363
),
6464
Game368Hedgehogs: () => import('../../products/games/368Hedgehogs/368Hedgehogs'),
65+
FlappyHog: () => import('../../products/games/FlappyHog/FlappyHog'),
6566
Links: () => import('../../products/links/frontend/LinksScene'),
6667
Link: () => import('../../products/links/frontend/LinkScene'),
6768
LiveDebugger: () => import('../../products/live_debugger/frontend/LiveDebugger'),
@@ -113,6 +114,7 @@ export const productRoutes: Record<string, [string, string]> = {
113114
'/error_tracking/alerts/:id': ['HogFunction', 'errorTrackingAlert'],
114115
'/error_tracking/alerts/new/:templateId': ['HogFunction', 'errorTrackingAlertNew'],
115116
'/games/368hedgehogs': ['Game368Hedgehogs', 'game368Hedgehogs'],
117+
'/games/flappyhog': ['FlappyHog', 'flappyHog'],
116118
'/links': ['Links', 'links'],
117119
'/link/:id': ['Link', 'link'],
118120
'/live-debugger': ['LiveDebugger', 'liveDebugger'],
@@ -255,6 +257,7 @@ export const productConfiguration: Record<string, any> = {
255257
ErrorTrackingIssueFingerprints: { projectBased: true, name: 'Error tracking issue fingerprints' },
256258
ErrorTrackingConfiguration: { projectBased: true, name: 'Error tracking configuration' },
257259
Game368Hedgehogs: { name: '368Hedgehogs', projectBased: true, activityScope: 'Games' },
260+
FlappyHog: { name: 'FlappyHog', projectBased: true, activityScope: 'Games' },
258261
Links: {
259262
name: 'Links',
260263
projectBased: true,
@@ -464,6 +467,7 @@ export const productUrls = {
464467
featureFlag: (id: string | number): string => `/feature_flags/${id}`,
465468
featureFlagDuplicate: (sourceId: number | string | null): string => `/feature_flags/new?sourceId=${sourceId}`,
466469
game368hedgehogs: (): string => `/games/368hedgehogs`,
470+
flappyHog: (): string => `/games/flappyhog`,
467471
groups: (groupTypeIndex: string | number): string => `/groups/${groupTypeIndex}`,
468472
groupsNew: (groupTypeIndex: string | number): string => `/groups/${groupTypeIndex}/new`,
469473
group: (groupTypeIndex: string | number, groupKey: string, encode: boolean = true, tab?: string | null): string =>
@@ -1191,7 +1195,10 @@ export const getTreeItemsProducts = (): FileSystemImport[] => [
11911195
]
11921196

11931197
/** This const is auto-generated, as is the whole file */
1194-
export const getTreeItemsGames = (): FileSystemImport[] => [{ path: '368 Hedgehogs', href: urls.game368hedgehogs() }]
1198+
export const getTreeItemsGames = (): FileSystemImport[] => [
1199+
{ path: '368 Hedgehogs', href: urls.game368hedgehogs() },
1200+
{ path: 'Flappy Hog', href: '/games/flappyhog' },
1201+
]
11951202

11961203
/** This const is auto-generated, as is the whole file */
11971204
export const getTreeItemsMetadata = (): FileSystemImport[] => [

0 commit comments

Comments
 (0)