Skip to content

Commit

Permalink
add list page view
Browse files Browse the repository at this point in the history
  • Loading branch information
jczhong84 committed Sep 25, 2024
1 parent 328f604 commit 6922e59
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions querybook/webapp/components/Board/BoardWrapper.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import React from 'react';

import { ComponentType } from 'const/analytics';
import { useBoardPath } from 'hooks/ui/useBoardPath';
import { useTrackView } from 'hooks/useTrackView';

import { Board } from './Board';

export const BoardWrapper: React.FunctionComponent = () => {
useTrackView(ComponentType.LIST_PAGE);
const boardPath = useBoardPath();
const boardId = boardPath[boardPath.length - 1];

Expand Down
1 change: 1 addition & 0 deletions querybook/webapp/const/analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export enum ComponentType {
TABLE_NAVIGATOR_SEARCH = 'TABLE_NAVIGATOR_SEARCH',
AI_ASSISTANT = 'AI_ASSISTANT',
SURVEY = 'SURVEY',
LIST_PAGE = 'LIST_PAGE',
}

export enum ElementType {
Expand Down

0 comments on commit 6922e59

Please sign in to comment.