c7e0929eca
* feat: initial can create version implementation on model card * feat: disable model card CTAs for send * feat: initial model ingestion tests * fix: apply ingestion send to all CTAs * feat: sketchup bridge * feat: centeralize the start ingestion logic in host app store * fix: sketchup is handling via model ingestion * chore: cosmetics * feat(ingestion): add failWithError and failWithCancel GraphQL mutations * feat(ingestion): add failIngestion and cancelIngestion methods to useModelIngestion composable * feat(ingestion): handle ingestion failure and cancellation in hostAppStore * fix: reviewers comments * fix: don't know where the f that came from * refactor(ingestion): remove unused statusData and fix lint errors * feat(wizard): add canCreateVersion permission check to publish wizard * TODOs * feat(permissions): add 1s polling for canCreateVersion to reflect workspace limit changes * fix(tooltip): undefined doesnt refresh v-tippy * fix(wizard): too much ctrl z lol * refactor(permissions): check canCreateVersion on action instead of polling * feat(hostApp): adds fallback for model ingestion on older servers * fix: ingestion available check and rock'n roll * feat: workspace plan updated subscription boilerplate * fix: bump the timeout to 2h * feat: handle version limits in publish flows via subscription * feat: align Archicad and Vectorworks with new ingestion flow * chore: onMounted at end of file * fix: logic and ui adjustments * fix: refactoring and permissions * refactor: ingestionStatus renamed to activeIngestions * fix: error handling and notifications * fix: global error handling * chore: general alignment and clean up * fix(vectorworks): now uses capital V * chore: revert codegen --------- Co-authored-by: Björn Steinhagen <88777268+bjoernsteinhagen@users.noreply.github.com> Co-authored-by: Björn Steinhagen <steinhagen.bjoern@gmail.com>
28 lines
644 B
TypeScript
28 lines
644 B
TypeScript
import type { ConversionResult } from '~/lib/conversions/conversionResult'
|
|
|
|
export type ModelCardNotificationLevel = 'info' | 'danger' | 'warning' | 'success'
|
|
|
|
export type ModelCardNotification = {
|
|
modelCardId: string
|
|
text: string
|
|
level: ModelCardNotificationLevel
|
|
secondaryCta?: {
|
|
name: string
|
|
tooltipText?: string
|
|
action: () => void
|
|
}
|
|
cta?: {
|
|
name: string
|
|
tooltipText?: string
|
|
action: () => void
|
|
disabled?: boolean
|
|
}
|
|
/**
|
|
* If set, will display a view report button next to cta
|
|
*/
|
|
report?: ConversionResult[]
|
|
// TODO figure out re report button
|
|
dismissible: boolean
|
|
timeout?: number
|
|
}
|