Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
02e90d4
feat: update color variables and styles for improved UI consistency
nicosammito Feb 4, 2026
27e7211
feat: replace borders with box shadows for a cleaner UI appearance
nicosammito Feb 4, 2026
59b37a8
feat: remove commented-out tooltip code for cleaner component structure
nicosammito Feb 4, 2026
93abf64
feat: update box mixin colors and background adjustments for improved…
nicosammito Feb 4, 2026
f55ee73
feat: add CSS variables for primary and secondary background colors i…
nicosammito Feb 4, 2026
ca32330
feat: update background colors and button styles for improved UI cons…
nicosammito Feb 4, 2026
f27b988
feat: add Undo and Redo buttons in the DFlow panel for enhanced user …
nicosammito Feb 4, 2026
d8d2c9c
feat: update primary color variable for improved design consistency
nicosammito Feb 4, 2026
01b943d
feat: adjust badge color opacity and update color mixing for improved…
nicosammito Feb 5, 2026
53f0090
feat: specify scroll type for ScrollArea component for improved funct…
nicosammito Feb 5, 2026
1b83cb8
feat: enhance DResizable components with color support and background…
nicosammito Feb 5, 2026
c286a7c
feat: update background color and badge color for improved UI consist…
nicosammito Feb 5, 2026
ceb9123
feat: enhance DFlowNode styling with border and shadow adjustments fo…
nicosammito Feb 5, 2026
55c65e6
feat: update Tooltip styles to use tertiary color for improved visual…
nicosammito Feb 5, 2026
bacf0ed
feat: update Alert component icons to use consistent size and add ter…
nicosammito Feb 5, 2026
271a23f
feat: update Toast component icons to use consistent size and add ter…
nicosammito Feb 5, 2026
220eb24
feat: update Toast component to improve styling and dismissible butto…
nicosammito Feb 5, 2026
7241d2d
feat: update secondary color variable for improved consistency
nicosammito Feb 5, 2026
0a36ec5
feat: add nowrap text wrapping to DFlowNode for improved layout
nicosammito Feb 5, 2026
61b67d5
feat: update DFlowNodeTriggerCard className for improved styling
nicosammito Feb 5, 2026
95fbc9a
feat: add nowrap text wrapping to ButtonGroup in DFlowPanelControl fo…
nicosammito Feb 5, 2026
98fa32d
feat: remove ButtonGroup from DFlow component for layout simplification
nicosammito Feb 5, 2026
abc5988
feat: remove unused imports from DFlowPanelControl for cleaner code
nicosammito Feb 5, 2026
f4e5a1c
feat: update Text component in DFlowInputDataType for improved hierarchy
nicosammito Feb 5, 2026
137fbf9
feat: add boxShadow style to ButtonGroup in DFlowTabs for improved ap…
nicosammito Feb 5, 2026
28ae5d7
feat: update Badge color and Text hierarchy in DFlowInputDataType for…
nicosammito Feb 5, 2026
94c8d97
feat: adjust Card margin in DFlowTabs and Input components for improv…
nicosammito Feb 5, 2026
7c9fd9f
feat: add hover and active styles for resizable handle bar in DResiza…
nicosammito Feb 5, 2026
1450e1f
feat: update secondary color variable in _variables.scss for improved…
nicosammito Feb 5, 2026
0bb537b
feat: refactor DResizable component layout for improved structure and…
nicosammito Feb 5, 2026
ad11d5d
feat: adjust padding in DResizable story for improved layout consistency
nicosammito Feb 5, 2026
0247d72
feat: enhance DResizable component with improved layout and backgroun…
nicosammito Feb 5, 2026
491360c
feat: update DFullScreen and DResizable components for improved layou…
nicosammito Feb 5, 2026
ff7dc14
feat: refine DResizable component layout and styling for improved usa…
nicosammito Feb 5, 2026
0f265f2
feat: update Avatar component styling and color generation for improv…
nicosammito Feb 7, 2026
ef1ef04
feat: remove padding from DFlowFolder root for improved layout consis…
nicosammito Feb 7, 2026
65b4b20
feat: update DFlowInputDataTypeEditDialog layout and styling for impr…
nicosammito Feb 7, 2026
670dda6
feat: update tooltip positioning in DFlowPanelControl for improved vi…
nicosammito Feb 7, 2026
efcb8bd
feat: update tooltip content positioning in DFlowPanelLayout for impr…
nicosammito Feb 7, 2026
06f7d3a
feat: enhance tooltip content positioning and styling for improved us…
nicosammito Feb 7, 2026
b4b1c46
feat: enhance tooltip component with color customization for improved…
nicosammito Feb 7, 2026
b548fed
feat: update styling for alert, button, and input components to enhan…
nicosammito Feb 7, 2026
7cf8435
feat: update input component styling to use tertiary color for improv…
nicosammito Feb 7, 2026
6e2bca5
feat: update input component styling to use tertiary color for improv…
nicosammito Feb 7, 2026
ad37fb5
feat: add new dependencies for CodeMirror integration and syntax high…
nicosammito Feb 7, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 70 additions & 8 deletions package-lock.json

Large diffs are not rendered by default.

18 changes: 11 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,13 @@
"vite": "^7.3.1",
"vite-plugin-dts": "^4.5.4",
"vite-plugin-lib-inject-css": "^2.2.2",
"vitest": "^4.0.17"
"vitest": "^4.0.17",
"@codemirror/autocomplete": "^6.20.0",
"@codemirror/lang-json": "^6.0.2",
"@monaco-editor/react": "^4.7.0",
"@uiw/codemirror-themes": "^4.25.4",
"@uiw/react-codemirror": "^4.25.4",
"react-syntax-highlighter": "^16.1.0"
},
"main": "dist/index.js",
"repository": {
Expand Down Expand Up @@ -121,17 +127,15 @@
"react-dom": "^18.0.0 || ^19.0.0",
"react-resizable-panels": "^4.3.1",
"react-zoom-pan-pinch": "^3.7.0",
"sonner": "^2.0.7"
},
"publishConfig": {
"access": "public"
},
"dependencies": {
"sonner": "^2.0.7",
"@codemirror/autocomplete": "^6.20.0",
"@codemirror/lang-json": "^6.0.2",
"@monaco-editor/react": "^4.7.0",
"@uiw/codemirror-themes": "^4.25.4",
"@uiw/react-codemirror": "^4.25.4",
"react-syntax-highlighter": "^16.1.0"
},
"publishConfig": {
"access": "public"
}
}
1 change: 1 addition & 0 deletions src/components/alert/Alert.style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@
@each $name, $color in variables.$colors {
.alert--#{$name} {
@include box.box($color);
box-shadow: none;
}
}
13 changes: 7 additions & 6 deletions src/components/alert/Alert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ export const Alert: React.FC<AlertProps> = (props) => {
const {color = "secondary", children, ...rest} = props

const icons: Record<Color, React.ReactElement<IconProps>> = {
"primary": <IconCircleDot size={18}/>,
"secondary": <IconCircleDot size={18}/>,
"info": <IconInfoCircle size={18}/>,
"success": <IconCircleCheck size={18}/>,
"warning": <IconAlertCircle size={18}/>,
"error": <IconCircleX size={18}/>,
"primary": <IconCircleDot size={16}/>,
"secondary": <IconCircleDot size={16}/>,
"tertiary": <IconCircleDot size={16}/>,
"info": <IconInfoCircle size={16}/>,
"success": <IconCircleCheck size={16}/>,
"warning": <IconAlertCircle size={16}/>,
"error": <IconCircleX size={16}/>,
}

return <div {...mergeCode0Props(`alert alert--${color}`, rest)}>
Expand Down
2 changes: 2 additions & 0 deletions src/components/avatar/Avatar.style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
& {
@include box.box();
@include helpers.borderRadius();
background: transparent;
box-shadow: none;
}

&--image {
Expand Down
5 changes: 3 additions & 2 deletions src/components/avatar/Avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {Code0Component} from "../../utils/types";
import {md5} from 'js-md5';
import "./Avatar.style.scss"
import {mergeCode0Props} from "../../utils/utils";
import {hashToColor} from "../d-flow/DFlow.util";

interface AvatarImageProps {
src: string
Expand Down Expand Up @@ -34,7 +35,7 @@ const AvatarIdenticon: React.FC<AvatarIdenticonProps> = ({identifier, size}) =>
const updateCanvas = () => {
const hash = md5(identifier)
const block = Math.floor(size / 5)
const hashColor = hash.slice(0, 6)
const hashColor = hashToColor(identifier)

canvas.current!!.width = block * 5
canvas.current!!.height = block * 5
Expand All @@ -61,7 +62,7 @@ const AvatarIdenticon: React.FC<AvatarIdenticonProps> = ({identifier, size}) =>
map.forEach((row, i) => {
row.forEach((el, j) => {
if (el) {
ctx!!.fillStyle = '#' + hashColor;
ctx!!.fillStyle = hashColor;
ctx!!.fillRect(
block * i,
block * j,
Expand Down
2 changes: 1 addition & 1 deletion src/components/badge/Badge.style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

@if (var(--badge-color)) {
background-color: var(--badge-color-background);
border: 1px solid var(--badge-color-border);
box-shadow: inset 0 1px 1px 0 var(--badge-color-border);
color: var(--badge-color);
}

Expand Down
4 changes: 2 additions & 2 deletions src/components/badge/Badge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const Badge: React.FC<BadgeType> = (props) => {
...args.style,
"--badge-color-background": mixColorRgb(color, 9),
"--badge-color-border": withAlpha(color, 0.1),
"--badge-color": withAlpha(color, 1),
"--badge-color": withAlpha(color, 0.75),
},
}
)}
Expand Down Expand Up @@ -79,7 +79,7 @@ const mixColorRgb = (color: string, level: number) => {
const w = clamp01(level * 0.1)

const c1 = parseCssColorToRgba(color)
const c2 = parseCssColorToRgba("#030014")
const c2 = parseCssColorToRgba("#070514")

const mix = (a: number, b: number) =>
Math.round(a * (1 - w) + b * w)
Expand Down
2 changes: 0 additions & 2 deletions src/components/button-group/ButtonGroup.style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
@use "../../styles/box";

.button-group {
border: none;
width: fit-content;
background: transparent;
position: relative;
Expand All @@ -14,7 +13,6 @@
& {
@include box.box(variables.$secondary);
@include helpers.borderRadius();
border-width: 0;
}

.button {
Expand Down
6 changes: 4 additions & 2 deletions src/components/button/Button.style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,21 @@

&.button--none {
background: transparent;
border-color: transparent;
box-shadow: none;

&:hover {
background: helpers.backgroundColor($color, 1.5);
box-shadow: inset 0 1px 1px helpers.borderColor($color);
}

&:active, &:focus, &[aria-selected=true], &[data-state=open] {
background: helpers.backgroundColor($color, 2);
box-shadow: inset 0 1px 1px helpers.borderColor($color);
}
}

&.button--filled {
border-color: transparent;
box-shadow: none;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/command/Command.style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

&__dialog {
padding: 0;
border: none;
box-shadow: none;
}

&__list {
Expand Down
4 changes: 2 additions & 2 deletions src/components/context-menu/ContextMenu.style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@
@include helpers.noFocusStyle();
@include helpers.fontStyle();
@include helpers.disabled();
border: none;
box-shadow: none;
}

&:focus, &[data-focus=true] {
@include box.box(variables.$white, variables.$white, variables.$white);
border: none;
box-shadow: none;
width: 100%;
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/components/d-flow-file/DFlowTabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const DFlowTabs: React.FC<DFlowTabsProps> = (props) => {
>
<DLayout layoutGap={"0"} topContent={<FileTabsList
controls={
<ButtonGroup color={"primary"} p={0}>
<ButtonGroup color={"primary"} p={0} style={{boxShadow: "none"}}>
<Menu>
<MenuTrigger asChild>
<Button variant="none" paddingSize={"xxs"} color="primary">
Expand All @@ -89,7 +89,7 @@ export const DFlowTabs: React.FC<DFlowTabsProps> = (props) => {
</MenuTrigger>
<MenuPortal>
<MenuContent align="start" sideOffset={8} color={"secondary"}>
<Card paddingSize={"xxs"} mt={-0.35} mx={-0.35} style={{borderWidth: "2px"}}>
<Card paddingSize={"xxs"} mt={-0.2} mx={-0.2}>
<MenuLabel>Starting Node</MenuLabel>
{triggerTab &&
<MenuItem onSelect={() => fileTabsService.activateTab(triggerTab.id!!)}>
Expand Down Expand Up @@ -144,7 +144,7 @@ export const DFlowTabs: React.FC<DFlowTabsProps> = (props) => {
</MenuTrigger>
<MenuPortal>
<MenuContent align="end" sideOffset={8} color={"secondary"}>
<Card paddingSize={"xxs"} mt={-0.35} mx={-0.35} style={{borderWidth: "2px"}}>
<Card paddingSize={"xxs"} mt={-0.2} mx={-0.2}>
<MenuItem onClick={() => fileTabsService.clearAll()}>Close all tabs</MenuItem>
<MenuItem onClick={() => fileTabsService.clearWithoutActive()}>Close other
tabs</MenuItem>
Expand Down
36 changes: 16 additions & 20 deletions src/components/d-flow-folder/DFlowFolder.style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,22 @@
user-select: none;

&__root {
padding: 0.7rem;
width: 100%;
height: 100%;
box-sizing: border-box;
}

& {
@include helpers.borderRadius();
@include box.box(variables.$primary);
@include box.boxHover(variables.$secondary);
@include box.boxHover(variables.$tertiary);
@include helpers.fontStyle();
border: none;
background: variables.$primary;
box-shadow: none;
background: transparent;
}

&[data-state=open] {
@include box.boxActiveStyle(variables.$secondary);
border: none;
@include box.boxActiveStyle(variables.$tertiary);
box-shadow: none;
}

&__icon, &__status, &__item-icon {
Expand All @@ -56,8 +54,8 @@

&:before {
height: 100%;
width: 1px;
background: helpers.backgroundColor(variables.$secondary);
width: 2px;
background: helpers.backgroundColor(variables.$tertiary);
position: absolute;
content: "";
left: 5px;
Expand All @@ -78,26 +76,24 @@

& {
@include helpers.borderRadius();
@include box.box(variables.$primary);
@include box.boxHover(variables.$secondary);
@include box.boxActive(variables.$secondary);
@include box.boxHover(variables.$tertiary);
@include box.boxActive(variables.$tertiary);
@include helpers.fontStyle();
border: none;
box-shadow: none;
background: transparent;
}

&-hover-card {
@include box.box(variables.$secondary);
@include box.boxActiveStyle(variables.$secondary);
@include box.boxHover(variables.$secondary);
@include box.boxActive(variables.$secondary);
@include box.box(variables.$tertiary);
@include box.boxActiveStyle(variables.$tertiary);
@include box.boxHover(variables.$tertiary);
@include box.boxActive(variables.$tertiary);
@include helpers.borderRadius();
cursor: pointer;
border: none;
}

&[data-state=open], &--active {
@include box.boxActiveStyle(variables.$secondary);
border: none;
@include box.boxActiveStyle(variables.$tertiary);
}
}
}
2 changes: 1 addition & 1 deletion src/components/d-flow-folder/DFlowFolder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export const DFlowFolder = React.forwardRef<DFlowFolderHandle, DFlowFolderProps>
}, [activeFlowId, computeDefaultOpen, resetEpoch])

return (
<ScrollArea h={"100%"}>
<ScrollArea h={"100%"} type={"scroll"}>
<ScrollAreaViewport asChild>
<DFlowFolderContextMenu {...props}>
<div className="d-folder__root">
Expand Down
8 changes: 4 additions & 4 deletions src/components/d-flow-input/DFlowInputDataType.style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ li {
height: 20px;
top: 5px;
transform: translateY(-50%);
border-left: 2px solid helpers.backgroundColor(variables.$secondary, 1.5);
border-bottom: 2px solid helpers.backgroundColor(variables.$secondary, 1.5);
border-left: 2px solid helpers.backgroundColor(variables.$tertiary);
border-bottom: 2px solid helpers.backgroundColor(variables.$tertiary);
border-bottom-left-radius: 0.5rem;
}

Expand All @@ -38,7 +38,7 @@ li {
position: absolute;
width: 2px;
height: 100%;
background: helpers.backgroundColor(variables.$secondary, 1.5);
background: helpers.backgroundColor(variables.$tertiary);
top: 0;
left: -0.35rem;
}
Expand All @@ -56,7 +56,7 @@ li {
@include box.boxHover(variables.$secondary);
@include box.boxActive(variables.$secondary);
@include helpers.fontStyle();
border-color: transparent;
box-shadow: none;
//border-top: 1px solid helpers.borderColor();
cursor: pointer;
}
Expand Down
14 changes: 7 additions & 7 deletions src/components/d-flow-input/DFlowInputDataType.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,17 @@ export const DFlowInputDataType: React.FC<DFlowInputDataTypeProps> = (props) =>
<Card color={"secondary"} paddingSize={"xs"}>
<Flex style={{gap: ".7rem"}} align={"center"} justify={"space-between"}>
<Flex style={{gap: ".35rem"}} align={"center"}>
<Text hierarchy={"tertiary"}>
<Text>
{(initialDataType?.name?.[0].content) ?? "Unnamed Data Type"}
</Text>
</Flex>
<Flex style={{gap: ".35rem"}} align={"center"}>
<Button paddingSize={"xxs"} variant={"filled"} color={"primary"} onClick={() => setEditOpen(true)}>
<Button paddingSize={"xxs"} variant={"filled"} color={"tertiary"} onClick={() => setEditOpen(true)}>
<IconEdit size={13}/>
</Button>
</Flex>
</Flex>
<Card paddingSize={"xs"} mt={0.7} mb={-0.7} mx={-0.7} style={{borderWidth: "2px"}}>
<Card paddingSize={"xs"} mt={0.7} mb={-0.55} mx={-0.55}>
<DFlowInputDataTypeRuleTree dataTypeIdentifier={initValue!}/>
</Card>
</Card>
Expand Down Expand Up @@ -129,10 +129,10 @@ export const DFlowInputDataTypeRuleTree: React.FC<DFlowInputDataTypeRuleTreeProp
const keyConfig = rule?.config as DataTypeRulesContainsKeyConfig
label = (
<Flex align={"center"} style={{gap: ".35rem", textWrap: "nowrap"}} className={"rule"}>
<Badge border color={"secondary"} style={{verticalAlign: "middle"}}>
<Badge border color={"tertiary"} style={{verticalAlign: "middle"}}>
<Text size={"xs"} style={{color: "inherit"}}>{keyConfig?.key}</Text>
</Badge>
<Text>
<Text hierarchy={"tertiary"}>
{parentRule?.variant === "CONTAINS_KEY" ? "is a field inside" : "is a field"}
{isChildPrimitive ? " of type" : ""}
</Text>
Expand All @@ -149,11 +149,11 @@ export const DFlowInputDataTypeRuleTree: React.FC<DFlowInputDataTypeRuleTreeProp
<Flex align={"center"} style={{gap: ".35rem", textWrap: "nowrap"}} className={"rule"}>
<Text>Inside</Text>
{prevKey && (
<Badge border color={"secondary"} style={{verticalAlign: "middle"}}>
<Badge border color={"tertiary"} style={{verticalAlign: "middle"}}>
<Text size={"xs"} style={{color: "inherit"}}>{prevKey}</Text>
</Badge>
)}
<Text ml={-0.35}>, each entity has</Text>
<Text hierarchy={"tertiary"} ml={-0.35}>, each entity has</Text>
</Flex>
)
}
Expand Down
Loading