forked from jupyterlab/jupyterlab
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Using metadataform for default notebooktools (jupyterlab#14026)
* Copy common tools using metadataform extension * Create extended tools using metadataform extensions * Add the active cell tool to the common tool * update metadata usage to the latest interface * update on RJSF 5, fromRenderer and metadataEditorTool * Remove former commonTools * Removes unused classes and function after former commonTool has been removed * Remove former advancedTools * Automatic application of license header * Fix lint and docs * update snapshots and selectors * updates snapshot and locator, change active cell widget css and field order in common tool * update snapshot * Add metadataform and metadataform-extension dependencies to relevant examples * Improves style * Removes padding on description fields * Change CSS of errors list and on highlight controls on hover * Avoids XSS attack in cellTags, adds a label and handles copy/paste resize * Restores the label's font and makes it match the widget's label * Update Playwright Snapshots * Regularly updates the ActiveCellTool to match the current content and execution count * Fix integrity * Fix lint and move widgets to dedicated directory * Add UI tests on notebook tools * prettier * Includes toolWidgets files in lib * lint * Removes unused class and adds UI tests on ActiveCellTool * integrity * Update snapshot * Adds constants for class names * Adds some migration information and renames some variables in notebooktools * Uses variables to define add tag width * Removes a leftover after rebase --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
8cd59e9
commit a51b7d9
Showing
57 changed files
with
1,104 additions
and
2,049 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+20.8 KB
(150%)
.../export_notebook.test.ts-snapshots/exporting-slide-type-documentation-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+3.85 KB
(140%)
...tation/general.test.ts-snapshots/interface-right-common-documentation-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-908 Bytes
(89%)
...rlab/metadataform.test.ts-snapshots/metadata-condition-met-jupyterlab-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-435 Bytes
(93%)
.../metadataform.test.ts-snapshots/metadata-condition-not-met-jupyterlab-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.32 KB
(84%)
.../metadataform.test.ts-snapshots/metadata-correct-cell-type-jupyterlab-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.19 KB
(85%)
...t/jupyterlab/metadataform.test.ts-snapshots/metadata-level-jupyterlab-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-379 Bytes
(96%)
...ab/metadataform.test.ts-snapshots/metadata-required-filled-jupyterlab-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-669 Bytes
(95%)
...b/metadataform.test.ts-snapshots/metadata-required-missing-jupyterlab-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-472 Bytes
(93%)
...pyterlab/metadataform.test.ts-snapshots/metadata-ui-schema-jupyterlab-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-485 Bytes
(92%)
...ab/metadataform.test.ts-snapshots/metadata-wrong-cell-type-jupyterlab-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
# @jupyterlab/celltags-extension | ||
|
||
A JupyterLab extension which provides an entry point for | ||
[@jupyterlab/celltags](../celltags). | ||
A JupyterLab extension which provides a form renderer for NotebookTools common tool. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"type": "object", | ||
"title": "Common tools", | ||
"description": "Setting for the common tools", | ||
"jupyter.lab.metadataforms": [ | ||
{ | ||
"id": "commonToolsSection", | ||
"label": "Common tools", | ||
"metadataSchema": { | ||
"type": "object", | ||
"properties": { | ||
"/tags": { | ||
"title": "Cell tag", | ||
"type": "array", | ||
"default": [], | ||
"items": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
}, | ||
"uiSchema": { | ||
"ui:order": ["_CELL-TOOL", "/tags", "*"] | ||
}, | ||
"metadataOptions": { | ||
"/tags": { | ||
"customRenderer": "celltags-extension:plugin.renderer" | ||
} | ||
} | ||
} | ||
], | ||
"additionalProperties": false | ||
} |
Oops, something went wrong.