mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-22 08:40:03 +01:00
a6faa54dff
* storybook filters scenes * event list preview * rename some stories * support ctx.f() in mocks * redo story * rename some * all insights card and list views * wrap LineGraph in an error boundary * fix charts not loading on storybook * new trends graphs * new insight stories * separate to clean
25 lines
683 B
TypeScript
25 lines
683 B
TypeScript
import { OrganizationMembershipLevel } from 'lib/constants'
|
|
import { AppContext } from '~/types'
|
|
|
|
export const storybookAppContext: AppContext = {
|
|
// @ts-ignore
|
|
current_team: {
|
|
effective_membership_level: OrganizationMembershipLevel.Owner,
|
|
completed_snippet_onboarding: true,
|
|
id: 1,
|
|
},
|
|
current_user: {
|
|
// @ts-ignore
|
|
organization: {
|
|
membership_level: OrganizationMembershipLevel.Owner,
|
|
available_features: [],
|
|
},
|
|
},
|
|
preflight: {
|
|
// @ts-ignore
|
|
instance_preferences: { disable_paid_fs: false },
|
|
},
|
|
default_event_name: '$pageview',
|
|
persisted_feature_flags: [],
|
|
}
|