mirror of
https://github.com/hanzoai/insights.git
synced 2026-11-03 00:52:32 +00:00
The tree was a debranded snapshot of upstream taken around 2026-02-20, and upstream has moved about five months since. This replaces it with upstream master, mechanically re-derived: bin/debrand does the rename, and the pipeline and squashed migrations are restored from the shipped tree. Not a merge. The previous import replaced the tree wholesale in a single commit, so there is no shared content history to merge against. Reproducing the rename on the new tree is what actually converges. What survives: .hanzo/workflows, the Dockerfiles and bin/docker* entrypoints, compose files, LLM.md, and insights/migrations. The squashed initial migration is load-bearing — the live database records it by name, so upstream's ~918 individual migrations cannot come back. Nine products are dropped as unreferenced. Twenty-one more that we do not run are kept anyway because the core app still imports them; unpicking those is a refactor and does not belong in a rebase. This base does not build yet, and the reasons are not in the rename: upstream now wants Python 3.13.13 against our 3.12.12 and Django 5.2 against our 4.2, and the dependency manifests still name upstream packages that we republish under our own names. Those are decisions, not renames.
84 lines
3.7 KiB
TypeScript
Generated
84 lines
3.7 KiB
TypeScript
Generated
/** Auto-generated from products/dashboards/backend/widget_specs — do not edit.
|
|
* Regenerate: insightscli build:widget-types
|
|
*/
|
|
import { z as zod } from 'zod'
|
|
|
|
import { ActivityEventsListWidgetConfig } from './widget-config-schemas/activityEventsListWidgetConfig.zod'
|
|
import { ErrorTrackingListWidgetConfig } from './widget-config-schemas/errorTrackingListWidgetConfig.zod'
|
|
import { ExperimentResultsWidgetConfig as ExperimentResultsWidgetConfigComponent } from './widget-config-schemas/experimentResultsWidgetConfig.zod'
|
|
import { ExperimentsListWidgetConfig } from './widget-config-schemas/experimentsListWidgetConfig.zod'
|
|
import { LogsListWidgetConfig } from './widget-config-schemas/logsListWidgetConfig.zod'
|
|
import { SessionReplayListWidgetConfig } from './widget-config-schemas/sessionReplayListWidgetConfig.zod'
|
|
import { SurveyResultsWidgetConfig as SurveyResultsWidgetConfigComponent } from './widget-config-schemas/surveyResultsWidgetConfig.zod'
|
|
import { WidgetFilterEntry } from './widget-config-schemas/widgetFilterEntry.zod'
|
|
|
|
export const activityEventsWidgetConfigSchema = /* @__PURE__ */ ActivityEventsListWidgetConfig
|
|
export const errorTrackingWidgetConfigSchema = /* @__PURE__ */ ErrorTrackingListWidgetConfig
|
|
export const experimentResultsWidgetConfigSchema = /* @__PURE__ */ ExperimentResultsWidgetConfigComponent
|
|
export const experimentsWidgetConfigSchema = /* @__PURE__ */ ExperimentsListWidgetConfig
|
|
export const logsWidgetConfigSchema = /* @__PURE__ */ LogsListWidgetConfig
|
|
export const sessionReplayWidgetConfigSchema = /* @__PURE__ */ SessionReplayListWidgetConfig
|
|
export const surveyResultsWidgetConfigSchema = /* @__PURE__ */ SurveyResultsWidgetConfigComponent
|
|
export const widgetFilterEntrySchema = /* @__PURE__ */ WidgetFilterEntry
|
|
|
|
export type ActivityEventsWidgetConfig = zod.infer<typeof activityEventsWidgetConfigSchema>
|
|
export type ErrorTrackingWidgetConfig = zod.infer<typeof errorTrackingWidgetConfigSchema>
|
|
export type ExperimentResultsWidgetConfig = zod.infer<typeof experimentResultsWidgetConfigSchema>
|
|
export type ExperimentsWidgetConfig = zod.infer<typeof experimentsWidgetConfigSchema>
|
|
export type LogsWidgetConfig = zod.infer<typeof logsWidgetConfigSchema>
|
|
export type SessionReplayWidgetConfig = zod.infer<typeof sessionReplayWidgetConfigSchema>
|
|
export type SurveyResultsWidgetConfig = zod.infer<typeof surveyResultsWidgetConfigSchema>
|
|
|
|
type WidgetFiltersRecord = NonNullable<ActivityEventsWidgetConfig['widgetFilters']>
|
|
export type WidgetFilterConfigEntry = WidgetFiltersRecord[string]
|
|
export type WidgetFilterConfigRecord = WidgetFiltersRecord
|
|
export type StoredWidgetFilter = WidgetFilterConfigEntry
|
|
|
|
export const activityEventsWidgetFormSchema = activityEventsWidgetConfigSchema.pick({
|
|
limit: true,
|
|
dateRange: true,
|
|
filterTestAccounts: true,
|
|
})
|
|
|
|
export const errorTrackingWidgetFormSchema = errorTrackingWidgetConfigSchema.pick({
|
|
limit: true,
|
|
orderBy: true,
|
|
orderDirection: true,
|
|
dateRange: true,
|
|
filterTestAccounts: true,
|
|
status: true,
|
|
})
|
|
|
|
export const experimentResultsWidgetFormSchema = experimentResultsWidgetConfigSchema.pick({
|
|
experimentId: true,
|
|
})
|
|
|
|
export const experimentsWidgetFormSchema = experimentsWidgetConfigSchema.pick({
|
|
limit: true,
|
|
orderBy: true,
|
|
orderDirection: true,
|
|
status: true,
|
|
createdBy: true,
|
|
})
|
|
|
|
export const logsWidgetFormSchema = logsWidgetConfigSchema.pick({
|
|
limit: true,
|
|
dateRange: true,
|
|
wrapLines: true,
|
|
timezone: true,
|
|
})
|
|
|
|
export const sessionReplayWidgetFormSchema = sessionReplayWidgetConfigSchema.pick({
|
|
limit: true,
|
|
orderBy: true,
|
|
orderDirection: true,
|
|
dateRange: true,
|
|
filterTestAccounts: true,
|
|
})
|
|
|
|
export const surveyResultsWidgetFormSchema = surveyResultsWidgetConfigSchema.pick({
|
|
surveyId: true,
|
|
limit: true,
|
|
dateRange: true,
|
|
})
|