Skip to content
Snippets Groups Projects
Commit 40d559ff authored by Leonardo's avatar Leonardo Committed by Leonardo Christino
Browse files

feat: date logic pills

parent 250fd993
No related branches found
No related tags found
1 merge request!472feat: date logic pills
Pipeline #147515 failed
......@@ -15,8 +15,6 @@ const IconMap: Record<SchemaAttributeTypes, string> = {
array: 'icon-[ic--baseline-data-array]',
};
function getDataTypeIcon(data_type?: SchemaAttributeTypes): string {
export function getDataTypeIcon(data_type?: SchemaAttributeTypes): string {
return data_type && IconMap[data_type] ? IconMap[data_type] : 'icon-[carbon--undefined]';
}
export { getDataTypeIcon };
......@@ -26,6 +26,7 @@ export const QueryBuilderLogicPillsPanel = (props: {
: ((props.connection?.params?.handleId ? toHandleData(props.connection.params.handleId).attributeType : null) as string);
if (filterType === 'string') filterType = 'string';
else if (filterType === 'int' || filterType === 'float') filterType = 'number';
else if (filterType === 'datetime') filterType = 'datetime';
const dataOps = [
{
......@@ -55,6 +56,11 @@ export const QueryBuilderLogicPillsPanel = (props: {
description: 'Text',
icon: 'icon-[ic--baseline-abc]',
},
{
title: 'datetime',
description: 'Date and Time',
icon: 'icon-[carbon--calendar]',
},
].filter(item => !filterType || item.title === filterType);
const onDragStart = (event: React.DragEvent, value: AllLogicDescriptions) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment