mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-08 16:03:27 +00:00
* allow mentioning specific files in instructions * remove not working highlight implementation * make highlighted text work * fix tooltip position * clean code * cleaning * use lib for tooltip positioning * fix logic * draft for db in context * use tools for db in context * fixes * cleaning and bug fixes * fix * cleaning * fix when script is db type * simplify logic * put schema in context if already here * fix imports * fix tooltip position and make it scrollable * remove console logs * check if selected is in available * fix tooltip list * add back lost logic * last fix * fix type errors * use loaded schema from dbSchemas * fix typing, content and lang are always there * remove from context if not available anymore * add not loaded yet mention if schema not loaded * add missing callback logic * fix prompt * fix usage of updateselectedContext function * fix styling for white theme * handle tab and arrows * fix schemas not being refreshed on contexts * also refresh displayMessages when dbschemas change * fix duplicate available contexts * fix logic for new scripts * fix new lines inside text area * implement sending diff in context * add button in deploy options to ask ai about diff * also visualize change when asking for diff * better prompt * add limit to diff size * put diff mode toggle in editor bar * add button to see history from editor * adjustements * put see diff button in dropdown * fixes * better styling * highlight if diff mode * format files * change buttons based on diffmode * remove diff after sending message * fix type error * smaller buttons * draft * use existing editor in diff editor * fix number of db resources fetches * fix apply and add buttons on diff mode * cleaning * undo ai gen button show * better buttons * styling asjustements + show diff in badge * styling * fix deployed code check * cleaning and styling * better quick actions * dont send code when analyzing * remove apply in chat if only code and no diff * fix bad code refactor --------- Co-authored-by: HugoCasa <hugo@casademont.ch> Co-authored-by: Ruben Fiszel <ruben@windmill.dev>
111 lines
2.3 KiB
TypeScript
111 lines
2.3 KiB
TypeScript
import type { SupportedLanguage } from '$lib/common'
|
|
|
|
export type FlowBuilderWhitelabelCustomUi = {
|
|
topBar?: {
|
|
path?: boolean
|
|
export?: boolean
|
|
history?: boolean
|
|
aiBuilder?: boolean
|
|
tutorials?: boolean
|
|
diff?: boolean
|
|
extraDeployOptions?: boolean
|
|
editableSummary?: boolean
|
|
}
|
|
settingsPanel?: boolean
|
|
settingsTabs?: {
|
|
schedule?: boolean
|
|
sharedDiretory?: boolean
|
|
earlyStop?: boolean
|
|
earlyReturn?: boolean
|
|
workerGroup?: boolean
|
|
concurrency?: boolean
|
|
cache?: boolean
|
|
}
|
|
triggers?: boolean
|
|
flowNode?: boolean
|
|
hub?: boolean
|
|
hubCode?: boolean
|
|
graph?: { aiBuilder?: boolean; dataflow?: boolean }
|
|
stepInputs?: { ai?: boolean }
|
|
stepAdvancedSettings?: boolean
|
|
languages?: (SupportedLanguage | 'docker' | 'bunnative')[]
|
|
scriptFork?: boolean
|
|
scriptEdit?: boolean
|
|
tagEdit?: boolean
|
|
editorBar?: EditorBarUi
|
|
downloadLogs?: boolean
|
|
}
|
|
|
|
export type DisplayResultUi = {
|
|
disableAiFix?: boolean
|
|
disableDownload?: boolean
|
|
}
|
|
|
|
export type PreviewPanelUi = {
|
|
disableHistory?: boolean
|
|
disableTriggerCaptures?: boolean
|
|
disableTriggerButton?: boolean
|
|
displayResult?: DisplayResultUi
|
|
disableVariablePicker?: boolean
|
|
disableDownload?: boolean
|
|
}
|
|
|
|
export type EditorBarUi = {
|
|
contextVar?: boolean
|
|
variable?: boolean
|
|
resource?: boolean
|
|
reset?: boolean
|
|
type?: boolean
|
|
assistants?: boolean
|
|
multiplayer?: boolean
|
|
autoformatting?: boolean
|
|
vimMode?: boolean
|
|
aiGen?: boolean
|
|
aiCompletion?: boolean
|
|
library?: boolean
|
|
useVsCode?: boolean
|
|
diffMode?: boolean
|
|
}
|
|
|
|
export type EditableSchemaFormUi = {
|
|
jsonOnly?: boolean
|
|
disableVariablePicker?: boolean
|
|
}
|
|
|
|
export type SettingsPanelMetadataUi = {
|
|
languages?: SupportedLanguage[]
|
|
disableScriptKind?: boolean
|
|
editableSchemaForm?: EditableSchemaFormUi
|
|
disableMute?: boolean
|
|
}
|
|
|
|
export type SettingsPanelUi = {
|
|
metadata?: SettingsPanelMetadataUi
|
|
disableMetadata?: boolean
|
|
disableRuntime?: boolean
|
|
disableGeneratedUi?: boolean
|
|
disableTriggers?: boolean
|
|
}
|
|
|
|
export type ScriptEditorWhitelabelCustomUi = {
|
|
editorBar?: EditorBarUi
|
|
previewPanel?: PreviewPanelUi
|
|
disableTooltips?: boolean
|
|
}
|
|
|
|
export type ScriptBuilderWhitelabelCustomUi = {
|
|
topBar?: {
|
|
path?: boolean
|
|
editablePath?: boolean
|
|
settings?: boolean
|
|
extraDeployOptions?: boolean
|
|
editableSummary?: boolean
|
|
diff?: boolean
|
|
}
|
|
settingsPanel?: SettingsPanelUi
|
|
disableTooltips?: boolean
|
|
|
|
editorBar?: EditorBarUi
|
|
previewPanel?: PreviewPanelUi
|
|
}
|