mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
chore(core): add mixpanel track (#6202)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { NavigateContext } from '@affine/core/hooks/use-navigate-helper';
|
||||
import { workbenchRoutes } from '@affine/core/router';
|
||||
import { topLevelRoutes } from '@affine/core/router';
|
||||
import { assertExists } from '@blocksuite/global/utils';
|
||||
import type { StoryFn } from '@storybook/react';
|
||||
import { screen, userEvent, waitFor, within } from '@storybook/testing-library';
|
||||
@@ -34,7 +34,7 @@ export const Index: StoryFn = () => {
|
||||
Index.decorators = [withRouter];
|
||||
Index.parameters = {
|
||||
reactRouter: reactRouterParameters({
|
||||
routing: reactRouterOutlets(workbenchRoutes),
|
||||
routing: reactRouterOutlets(topLevelRoutes),
|
||||
}),
|
||||
};
|
||||
|
||||
@@ -80,7 +80,7 @@ SettingPage.play = async ({ canvasElement, step }) => {
|
||||
SettingPage.decorators = [withRouter];
|
||||
SettingPage.parameters = {
|
||||
reactRouter: reactRouterParameters({
|
||||
routing: reactRouterOutlets(workbenchRoutes),
|
||||
routing: reactRouterOutlets(topLevelRoutes),
|
||||
}),
|
||||
};
|
||||
|
||||
@@ -90,7 +90,7 @@ export const NotFoundPage: StoryFn = () => {
|
||||
NotFoundPage.decorators = [withRouter];
|
||||
NotFoundPage.parameters = {
|
||||
reactRouter: reactRouterParameters({
|
||||
routing: reactRouterOutlets(workbenchRoutes),
|
||||
routing: reactRouterOutlets(topLevelRoutes),
|
||||
location: {
|
||||
path: '/404',
|
||||
},
|
||||
@@ -120,7 +120,7 @@ WorkspaceList.play = async ({ canvasElement }) => {
|
||||
WorkspaceList.decorators = [withRouter];
|
||||
WorkspaceList.parameters = {
|
||||
reactRouter: reactRouterParameters({
|
||||
routing: reactRouterOutlets(workbenchRoutes),
|
||||
routing: reactRouterOutlets(topLevelRoutes),
|
||||
location: {
|
||||
path: '/',
|
||||
},
|
||||
@@ -157,7 +157,7 @@ SearchPage.play = async ({ canvasElement }) => {
|
||||
SearchPage.decorators = [withRouter];
|
||||
SearchPage.parameters = {
|
||||
reactRouter: reactRouterParameters({
|
||||
routing: reactRouterOutlets(workbenchRoutes),
|
||||
routing: reactRouterOutlets(topLevelRoutes),
|
||||
location: {
|
||||
path: '/',
|
||||
},
|
||||
@@ -199,7 +199,7 @@ ImportPage.play = async ({ canvasElement }) => {
|
||||
ImportPage.decorators = [withRouter];
|
||||
ImportPage.parameters = {
|
||||
reactRouter: reactRouterParameters({
|
||||
routing: reactRouterOutlets(workbenchRoutes),
|
||||
routing: reactRouterOutlets(topLevelRoutes),
|
||||
location: {
|
||||
path: '/',
|
||||
},
|
||||
@@ -212,7 +212,7 @@ export const OpenAppPage: StoryFn = () => {
|
||||
OpenAppPage.decorators = [withRouter];
|
||||
OpenAppPage.parameters = {
|
||||
reactRouter: reactRouterParameters({
|
||||
routing: reactRouterOutlets(workbenchRoutes),
|
||||
routing: reactRouterOutlets(topLevelRoutes),
|
||||
location: {
|
||||
path: '/open-app/url',
|
||||
searchParams: {
|
||||
|
||||
@@ -13,7 +13,7 @@ import {
|
||||
PageTags,
|
||||
type PageTagsProps,
|
||||
} from '@affine/core/components/page-list';
|
||||
import { workbenchRoutes } from '@affine/core/router';
|
||||
import { topLevelRoutes } from '@affine/core/router';
|
||||
import { AffineSchemas } from '@blocksuite/blocks/schemas';
|
||||
import { PageIcon, TagsIcon } from '@blocksuite/icons';
|
||||
import { DocCollection, Schema } from '@blocksuite/store';
|
||||
@@ -49,7 +49,7 @@ AffineOperationCell.args = {
|
||||
};
|
||||
AffineOperationCell.parameters = {
|
||||
reactRouter: reactRouterParameters({
|
||||
routing: reactRouterOutlets(workbenchRoutes),
|
||||
routing: reactRouterOutlets(topLevelRoutes),
|
||||
}),
|
||||
};
|
||||
AffineOperationCell.play = async ({ canvasElement }) => {
|
||||
|
||||
Reference in New Issue
Block a user