mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-12 11:08:31 -05:00
Custom Summary Page for NotebookWizard and notebook Cell with wizard variables (#10297)
* save not yet tested work * Merge from master. * Screeens Shared for Feeedback * Code complete * remove unneeded changes * remove unnecessary comma * remov wss * remove dead code * PR feedback * checkpoint fixes * PR & minor fixes * minor fix for feature of resourceType options being optional. * reverting experimental change * separating out changes for future featurework. * revert unneeded change * review feedback fixes * review feedback * rename InputFieldComponent to InputComponent * working version of custom summary page * add option to align items in a flex- container. * changes to support labelColor * save work , still pending issue with labelCSSStyles * Summary page and setting variabless in notebook. * minor fixes. * pr feedbck * fix formatting issues * pr feedback * pr feedback * pr feedback * fixing docs * summary page value setting fix * rename children of RowInfo to items * rename a method * rename summary_text to evaluated_text * rename properties of fieldInfo * revert inadvertent change * rename linked_texttext to hyperlinked_text and removing linking facility from readonly_text * pr feedback * fix setting tools variables in env and notebook * removing saving of originalValues for EvaluatedText * await on launchNotebookWithEdits * await on launchNotebookWithContent * merge RadioOptions & Options into 1 * merge ReadOnlyText, links & evaluatedText * Samples for new generic wizard features * fix comment * fix assertions * return type and comment for getClusterContext * fix inadvertent change * increase minimum required azdata version * remove unneeded environment variable settings * not leaking passwords in notebooks
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
"aiKey": "AIF-37eefaf0-8022-4671-a3fb-64752724682e",
|
||||
"engines": {
|
||||
"vscode": "*",
|
||||
"azdata": ">1.10.0"
|
||||
"azdata": ">=1.19.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -23,6 +23,257 @@
|
||||
],
|
||||
"contributes": {
|
||||
"resourceDeploymentTypes": [
|
||||
{
|
||||
"name": "test-wizard",
|
||||
"displayName": "%resource.type.wizard.display.name%",
|
||||
"description": "%resource.type.wizard.description%",
|
||||
"platforms": "*",
|
||||
"icon": {
|
||||
"light": "./images/book.svg",
|
||||
"dark": "./images/book_inverse.svg"
|
||||
},
|
||||
"providers": [
|
||||
{
|
||||
"notebookWizard": {
|
||||
"notebook": "%deployment-notebook-1%",
|
||||
"type": "new-arc-control-plane",
|
||||
"runNotebook": false,
|
||||
"codeCellInsertionPosition": 1,
|
||||
"actionText": "%deploy.wizard.action%",
|
||||
"title": "%wizard.new.wizard.title%",
|
||||
"name": "wizard.new.wizard",
|
||||
"labelPosition": "left",
|
||||
"generateSummaryPage": false,
|
||||
"pages": [
|
||||
{
|
||||
"title": "%wizard.select.cluster.title%",
|
||||
"sections": [
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"type": "kube_cluster_context_picker",
|
||||
"label": "%wizard.kube.cluster.context%",
|
||||
"required": true,
|
||||
"inputWidth": "350px",
|
||||
"variableName": "AZDATA_NB_VAR_CLUSTER_CONTEXT",
|
||||
"configFileVariableName": "AZDATA_NB_VAR_CONFIG_FILE"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "%wizard.cluster.config.profile.title%",
|
||||
"sections": [
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"type": "readonly_text",
|
||||
"label": "%wizard.project.details.description%",
|
||||
"labelWidth": "600px"
|
||||
},
|
||||
{
|
||||
"type": "options",
|
||||
"label": "%wizard.cluster.config.profile%",
|
||||
"required": true,
|
||||
"variableName": "AZDATA_NB_VAR_PROFILE",
|
||||
"editable": false,
|
||||
"options": {
|
||||
"values":[
|
||||
"aks-dev-test",
|
||||
"aks-dev-test-ha",
|
||||
"aks-dev-test",
|
||||
"aks-private-preview",
|
||||
"kubeadm-dev-test",
|
||||
"kubeadm-private-preview"
|
||||
],
|
||||
"defaultValue": "aks-dev-test",
|
||||
"optionsType": "radio"
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "%wizard.dropdown.options.field%",
|
||||
"variableName": "AZDATA_NB_VAR_DROPDOWN_OPTIONS",
|
||||
"type": "options",
|
||||
"options": {
|
||||
"values": ["1","2","3"],
|
||||
"defaultValue": "2",
|
||||
"optionsType": "dropdown"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "%wizard.data.controller.create.summary.title%",
|
||||
"isSummaryPage": true,
|
||||
"fieldHeight": "16px",
|
||||
"sections": [
|
||||
{
|
||||
"title": "",
|
||||
"collapsible": false,
|
||||
"fieldWidth": "200px",
|
||||
"fieldHeight": "12px",
|
||||
"spaceBetweenFields": 0,
|
||||
"rows": [
|
||||
{
|
||||
"items": [
|
||||
{
|
||||
"items": [
|
||||
{
|
||||
"label": "%wizard.summary.data.controller%",
|
||||
"type": "readonly_text",
|
||||
"enabled": true,
|
||||
"labelWidth": "185px"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"items": [
|
||||
{
|
||||
"label": "%wizard.summary.estimated.cost.per.month%",
|
||||
"type": "readonly_text",
|
||||
"enabled": true,
|
||||
"labelWidth": "190px",
|
||||
"labelCSSStyles": {
|
||||
"fontWeight": "Bold"
|
||||
}
|
||||
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"items": [
|
||||
{
|
||||
"items": [
|
||||
{
|
||||
"label": "%wizard.summary.by.contoso%",
|
||||
"type": "readonly_text",
|
||||
"labelWidth": "185px"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"items": [
|
||||
{
|
||||
"label": "%wizard.summary.free%",
|
||||
"type": "readonly_text",
|
||||
"enabled": true,
|
||||
"defaultValue": "",
|
||||
"labelWidth": "100px"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"items": [
|
||||
{
|
||||
"items": [
|
||||
{
|
||||
"label": "{0}",
|
||||
"type": "readonly_text",
|
||||
"enabled": true,
|
||||
"labelCSSStyles": { "color": "#0078D4" },
|
||||
"labelWidth": "67px",
|
||||
"links": [
|
||||
{
|
||||
"text": "%wizard.summary.terms.of.use%",
|
||||
"url": "https://aka.ms/eula-azdata-en"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "|",
|
||||
"type": "readonly_text",
|
||||
"enabled": true,
|
||||
"defaultValue": "",
|
||||
"labelWidth": "4px",
|
||||
"fieldWidth": "6px"
|
||||
},
|
||||
{
|
||||
"label": "{0}",
|
||||
"type": "readonly_text",
|
||||
"enabled": true,
|
||||
"labelCSSStyles": { "color": "#0078D4" },
|
||||
"labelWidth": "102px",
|
||||
"links": [
|
||||
{
|
||||
"text": "%wizard.summary.terms.privacy.policy%",
|
||||
"url": "https://go.contoso.com/fwlink/?LinkId=853010"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "%wizard.summary.terms%",
|
||||
"fieldHeight": "88px",
|
||||
"fields":[
|
||||
{
|
||||
"label": "%wizard.summary.terms.description%",
|
||||
"type": "readonly_text",
|
||||
"enabled": true,
|
||||
"labelWidth": "750px"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "%wizard.summary.kubernetes%",
|
||||
"fields":[
|
||||
{
|
||||
"label": "%wizard.summary.kube.config.file.path%",
|
||||
"type": "readonly_text",
|
||||
"isEvaluated": true,
|
||||
"defaultValue": "$(AZDATA_NB_VAR_CONFIG_FILE)"
|
||||
},
|
||||
{
|
||||
"label": "%wizard.summary.cluster.context%",
|
||||
"type": "readonly_text",
|
||||
"isEvaluated": true,
|
||||
"defaultValue": "$(AZDATA_NB_VAR_CLUSTER_CONTEXT)"
|
||||
},
|
||||
{
|
||||
"label": "%wizard.summary.profile%",
|
||||
"type": "readonly_text",
|
||||
"isEvaluated": true,
|
||||
"defaultValue": "$(AZDATA_NB_VAR_PROFILE)"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"requiredTools": [
|
||||
{
|
||||
"name": "kubectl"
|
||||
}
|
||||
],
|
||||
"when": true
|
||||
}
|
||||
],
|
||||
"agreement": {
|
||||
"template": "%wizard.data.controller.agreement%",
|
||||
"links": [
|
||||
{
|
||||
"text": "%contoso.agreement.privacy.statement%",
|
||||
"url": "https://go.contoso.com/fwlink/?LinkId=853010"
|
||||
},
|
||||
{
|
||||
"text": "%wizard.agreement.contosoCmd.eula%",
|
||||
"url": "https://aka.ms/eula-contosoCmd-en"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "x-data-service",
|
||||
"displayName": "%resource-type-display-name%",
|
||||
@@ -81,6 +332,14 @@
|
||||
"defaultValue": "",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "kube_cluster_context_picker",
|
||||
"label": "%kube.cluster.context%",
|
||||
"required": true,
|
||||
"inputWidth": "350px",
|
||||
"variableName": "AZDATA_NB_VAR_CLUSTER_CONTEXT",
|
||||
"configFileVariableName": "AZDATA_NB_VAR_CONFIG_FILE"
|
||||
},
|
||||
{
|
||||
"label": "%number-field%",
|
||||
"variableName": "AZDATA_NB_VAR_NUMBER",
|
||||
@@ -159,7 +418,7 @@
|
||||
"links": [
|
||||
{
|
||||
"text": "%agreement-1-name%",
|
||||
"url": "https://www.microsoft.com"
|
||||
"url": "https://www.contoso.com"
|
||||
},
|
||||
{
|
||||
"text": "%agreement-2-name%",
|
||||
|
||||
Reference in New Issue
Block a user