-
- Downloads
Notebook text extraction shortcut (#41578)
* Add shortcuts to suggestions * Add shortcuts group * Add split icon * Start implementing extract column modal * Pass alwaysExpanded from prop to accordion items * Allow disabling search on QueryColumnPicker * Only render columns that support extraction * Add columnExtractions helper to Lib * WIP * Add examples for column extraction * Use Lib.columnExtractions to create extraction picker * WIP: Create clause from extraction * Use mb- prefix in color * Add extract wrapper * Use updated column extraction types * WIP: extract clause * Use JSDoc for todo * Handle extract column submit in expression editor * Set name based on extract expression * Suffix column displayNames to avoid conflicts * Rename combine test to disambiguate it from extract test * Add e2e test for column extractions * Correctly render button as button * Add tests for email extractions * Use correct font in expression button * Remove error when selecting an extraction * Use last expression * Use handleExpressionChange * Add tests for url extractions * Rename to lastExpression * Add issue link to the todo * Move Button into ExtractColumn * Use unstyled button for ExtractColumnButton
Showing
- e2e/test/scenarios/custom-column/cc-shortcuts-combine.cy.spec.js 1 addition, 1 deletion...t/scenarios/custom-column/cc-shortcuts-combine.cy.spec.js
- e2e/test/scenarios/custom-column/cc-shortcuts-extract.cy.spec.js 157 additions, 0 deletions...t/scenarios/custom-column/cc-shortcuts-extract.cy.spec.js
- frontend/src/metabase-lib/extractions.ts 18 additions, 0 deletionsfrontend/src/metabase-lib/extractions.ts
- frontend/src/metabase-lib/index.ts 1 addition, 0 deletionsfrontend/src/metabase-lib/index.ts
- frontend/src/metabase/common/components/QueryColumnPicker/QueryColumnPicker.tsx 8 additions, 3 deletions...common/components/QueryColumnPicker/QueryColumnPicker.tsx
- frontend/src/metabase/core/components/AccordionList/AccordionList.jsx 2 additions, 1 deletion.../metabase/core/components/AccordionList/AccordionList.jsx
- frontend/src/metabase/query_builder/components/expressions/ExpressionEditorSuggestions/ExpressionEditorSuggestions.tsx 1 addition, 0 deletions...pressionEditorSuggestions/ExpressionEditorSuggestions.tsx
- frontend/src/metabase/query_builder/components/expressions/ExpressionEditorTextfield/ExpressionEditorTextfield.tsx 4 additions, 3 deletions...s/ExpressionEditorTextfield/ExpressionEditorTextfield.tsx
- frontend/src/metabase/query_builder/components/expressions/ExpressionWidget.tsx 42 additions, 5 deletions...query_builder/components/expressions/ExpressionWidget.tsx
- frontend/src/metabase/query_builder/components/expressions/ExtractColumn/ExtractColumn.module.css 24 additions, 0 deletions...onents/expressions/ExtractColumn/ExtractColumn.module.css
- frontend/src/metabase/query_builder/components/expressions/ExtractColumn/ExtractColumn.tsx 190 additions, 0 deletions...er/components/expressions/ExtractColumn/ExtractColumn.tsx
- frontend/src/metabase/query_builder/components/expressions/ExtractColumn/index.tsx 1 addition, 0 deletions...ry_builder/components/expressions/ExtractColumn/index.tsx
- frontend/src/metabase/query_builder/components/expressions/ExtractColumn/util.ts 50 additions, 0 deletions...uery_builder/components/expressions/ExtractColumn/util.ts
- frontend/src/metabase/query_builder/components/expressions/ExtractColumn/util.unit.spec.ts 52 additions, 0 deletions...er/components/expressions/ExtractColumn/util.unit.spec.ts
- frontend/src/metabase/ui/components/icons/Icon/icons/index.ts 6 additions, 0 deletions...tend/src/metabase/ui/components/icons/Icon/icons/index.ts
- frontend/src/metabase/ui/components/icons/Icon/icons/split.svg 5 additions, 0 deletions...end/src/metabase/ui/components/icons/Icon/icons/split.svg
frontend/src/metabase-lib/extractions.ts
0 → 100644
Please register or sign in to comment