-
- Downloads
Clean up dashboard card types (#38444)
* Add standalone `VirtualDashboardCard` type * Rename `DashboardCard` to `QuestionDashboardCard` * Add new `DashboardCard` type * Move `ActionDashboardCard` type def to dashboard types file * Rename `isQuestionDashCard` type guard * Fix `isQuestionDashCard` type guard * Avoid type-casting for `getVisualizationRaw` * Use type guard for dashcard `series` attr * Avoid type casting in parameter mapping utils * Fix type casting
Showing
- frontend/src/metabase-lib/parameters/utils/click-behavior.ts 2 additions, 2 deletionsfrontend/src/metabase-lib/parameters/utils/click-behavior.ts
- frontend/src/metabase-types/api/actions.ts 1 addition, 23 deletionsfrontend/src/metabase-types/api/actions.ts
- frontend/src/metabase-types/api/dashboard.ts 55 additions, 5 deletionsfrontend/src/metabase-types/api/dashboard.ts
- frontend/src/metabase-types/api/mocks/dashboard.ts 73 additions, 68 deletionsfrontend/src/metabase-types/api/mocks/dashboard.ts
- frontend/src/metabase-types/store/dashboard.ts 1 addition, 1 deletionfrontend/src/metabase-types/store/dashboard.ts
- frontend/src/metabase/actions/utils.ts 4 additions, 2 deletionsfrontend/src/metabase/actions/utils.ts
- frontend/src/metabase/dashboard/actions/auto-wire-parameters/actions.ts 4 additions, 3 deletions...etabase/dashboard/actions/auto-wire-parameters/actions.ts
- frontend/src/metabase/dashboard/actions/auto-wire-parameters/toasts.ts 8 additions, 3 deletions...metabase/dashboard/actions/auto-wire-parameters/toasts.ts
- frontend/src/metabase/dashboard/actions/auto-wire-parameters/utils.ts 17 additions, 14 deletions.../metabase/dashboard/actions/auto-wire-parameters/utils.ts
- frontend/src/metabase/dashboard/actions/cards.unit.spec.ts 3 additions, 3 deletionsfrontend/src/metabase/dashboard/actions/cards.unit.spec.ts
- frontend/src/metabase/dashboard/actions/tabs.ts 1 addition, 1 deletionfrontend/src/metabase/dashboard/actions/tabs.ts
- frontend/src/metabase/dashboard/actions/utils.ts 9 additions, 6 deletionsfrontend/src/metabase/dashboard/actions/utils.ts
- frontend/src/metabase/dashboard/actions/utils.unit.spec.ts 8 additions, 16 deletionsfrontend/src/metabase/dashboard/actions/utils.unit.spec.ts
- frontend/src/metabase/dashboard/components/AddSeriesModal/AddSeriesModal.tsx 5 additions, 5 deletions...se/dashboard/components/AddSeriesModal/AddSeriesModal.tsx
- frontend/src/metabase/dashboard/components/AddSeriesModal/QuestionList.tsx 2 additions, 2 deletions...base/dashboard/components/AddSeriesModal/QuestionList.tsx
- frontend/src/metabase/dashboard/components/ClickBehaviorSidebar/ClickBehaviorSidebar.tsx 2 additions, 2 deletions.../components/ClickBehaviorSidebar/ClickBehaviorSidebar.tsx
- frontend/src/metabase/dashboard/components/ClickBehaviorSidebar/ClickBehaviorSidebarContent.tsx 2 additions, 2 deletions...ents/ClickBehaviorSidebar/ClickBehaviorSidebarContent.tsx
- frontend/src/metabase/dashboard/components/ClickBehaviorSidebar/ClickBehaviorSidebarHeader/ClickBehaviorSidebarHeader.tsx 2 additions, 2 deletions...ClickBehaviorSidebarHeader/ClickBehaviorSidebarHeader.tsx
- frontend/src/metabase/dashboard/components/ClickBehaviorSidebar/ClickBehaviorSidebarMainView/ClickBehaviorSidebarMainView.tsx 3 additions, 3 deletions...kBehaviorSidebarMainView/ClickBehaviorSidebarMainView.tsx
- frontend/src/metabase/dashboard/components/ClickBehaviorSidebar/CrossfilterOptions.tsx 2 additions, 2 deletions...rd/components/ClickBehaviorSidebar/CrossfilterOptions.tsx
Loading
Please register or sign in to comment