Skip to content

Commit 45ef789

Browse files
fix: adjust class order and remove unnecessary !important in styles
1 parent 58c4ca8 commit 45ef789

28 files changed

Lines changed: 69 additions & 301 deletions

AI_GENERATION.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function App() {
3636
provider: "gemini", // or "openai", "deepseek", "claude"
3737
apiKey: "your-api-key-here",
3838
model: "gemini-2.5-flash", // optional, uses default if not specified
39-
temperature: 0.7 // optional, default is 0.7
39+
temperature: 0.3 // optional, default is 0.7
4040
}}
4141
onSave={(flow) => console.log(flow)}
4242
/>

LICENSE

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
1-
The ISC License (ISC)
1+
MIT License
22

3-
Copyright (C) 2022 Tracktor
3+
Copyright (c) 2025 Tracktor
44

5-
Permission to use, copy, modify, and/or distribute this software for any
6-
purpose with or without fee is hereby granted, provided that the above
7-
copyright notice and this permission notice appear in all copies.
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
811

9-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10-
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11-
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12-
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13-
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
14-
OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
15-
CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

src/editor/components/input/ComboboxWithCreate.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ const ComboboxWithCreate = ({
105105
{/* Clear option - appears at the end if there's a selection */}
106106
{allowClear && hasSelection && (
107107
<CommandGroup>
108-
<CommandItem value="__clear__" onSelect={handleClear} className="text-muted-foreground mt-1">
108+
<CommandItem value="__clear__" onSelect={handleClear} className="mt-1 text-muted-foreground">
109109
<X className="mr-2 h-4 w-4" />
110110
{clearLabel}
111111
</CommandItem>

src/editor/styles/style.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ button {
2424

2525
/* Default node */
2626
div.react-flow__node {
27-
border: 0 !important;
27+
border: 0;
2828
}
2929

3030
/* Neon node */
@@ -33,7 +33,7 @@ div.react-flow__node__wrapper {
3333
width: 270px;
3434
height: 150px;
3535
border-radius: 40px;
36-
border: 3px solid transparent !important;
36+
border: 3px solid transparent;
3737
box-shadow:
3838
0 0 20px 6px oklch(from var(--treege-color-primary) l c h / 10%),
3939
0 0 20px oklch(from var(--treege-color-tertiary) l c h / 10%);
@@ -91,7 +91,7 @@ div.react-flow__node-group,
9191
div.react-flow__node-group.selected {
9292
background: oklch(from var(--color-chart-2) l c h / 5%);
9393
box-shadow: none;
94-
border: 3px dashed var(--color-chart-2) !important;
94+
border: 3px dashed var(--color-chart-2);
9595
}
9696

9797
/* Group node resize */

src/renderer/features/TreegeRenderer/web/components/DefaultGroup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const DefaultGroup = ({ node, children }: NodeRenderProps & { children: R
77

88
return (
99
<section className="mb-6 rounded-lg border p-4">
10-
{node.data.label && <h3 className="text-lg font-semibold mb-4">{t(node.data.label)}</h3>}
10+
{node.data.label && <h3 className="mb-4 font-semibold text-lg">{t(node.data.label)}</h3>}
1111
{children}
1212
</section>
1313
);

src/renderer/utils/__tests__/form.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ describe("Form Utils", () => {
783783
// because they are compared by reference. This test covers the basic transformation
784784
// but doesn't test manual edit detection for objects (which is a known limitation).
785785
it("should apply toObject transformation (basic case)", () => {
786-
const nodes: Node<InputNodeData>[] = [
786+
const _nodes: Node<InputNodeData>[] = [
787787
{
788788
data: {
789789
defaultValue: {

src/shared/components/ui/checkbox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function Checkbox({ className, ...props }: React.ComponentProps<typeof CheckboxP
99
<CheckboxPrimitive.Root
1010
data-slot="checkbox"
1111
className={cn(
12-
"peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
12+
"peer size-4 shrink-0 rounded-[4px] border border-input shadow-xs outline-none transition-shadow focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:bg-input/30 dark:data-[state=checked]:bg-primary dark:aria-invalid:ring-destructive/40",
1313
className,
1414
)}
1515
{...props}

src/shared/components/ui/command.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function Command({ className, ...props }: React.ComponentProps<typeof CommandPri
1010
return (
1111
<CommandPrimitive
1212
data-slot="command"
13-
className={cn("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md", className)}
13+
className={cn("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground", className)}
1414
{...props}
1515
/>
1616
);
@@ -36,7 +36,7 @@ function CommandDialog({
3636
<DialogDescription>{description}</DialogDescription>
3737
</DialogHeader>
3838
<DialogContent className={cn("overflow-hidden p-0", className)} showCloseButton={showCloseButton}>
39-
<Command className="[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5">
39+
<Command className="**:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5">
4040
{children}
4141
</Command>
4242
</DialogContent>
@@ -51,7 +51,7 @@ function CommandInput({ className, ...props }: React.ComponentProps<typeof Comma
5151
<CommandPrimitive.Input
5252
data-slot="command-input"
5353
className={cn(
54-
"placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
54+
"flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
5555
className,
5656
)}
5757
{...props}
@@ -64,7 +64,7 @@ function CommandList({ className, ...props }: React.ComponentProps<typeof Comman
6464
return (
6565
<CommandPrimitive.List
6666
data-slot="command-list"
67-
className={cn("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto", className)}
67+
className={cn("max-h-[300px] scroll-py-1 overflow-y-auto overflow-x-hidden", className)}
6868
{...props}
6969
/>
7070
);
@@ -79,7 +79,7 @@ function CommandGroup({ className, ...props }: React.ComponentProps<typeof Comma
7979
<CommandPrimitive.Group
8080
data-slot="command-group"
8181
className={cn(
82-
"text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",
82+
"overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:text-xs",
8383
className,
8484
)}
8585
{...props}
@@ -88,15 +88,15 @@ function CommandGroup({ className, ...props }: React.ComponentProps<typeof Comma
8888
}
8989

9090
function CommandSeparator({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Separator>) {
91-
return <CommandPrimitive.Separator data-slot="command-separator" className={cn("bg-border -mx-1 h-px", className)} {...props} />;
91+
return <CommandPrimitive.Separator data-slot="command-separator" className={cn("-mx-1 h-px bg-border", className)} {...props} />;
9292
}
9393

9494
function CommandItem({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Item>) {
9595
return (
9696
<CommandPrimitive.Item
9797
data-slot="command-item"
9898
className={cn(
99-
"data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
99+
"relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0",
100100
className,
101101
)}
102102
{...props}
@@ -106,7 +106,7 @@ function CommandItem({ className, ...props }: React.ComponentProps<typeof Comman
106106

107107
function CommandShortcut({ className, ...props }: React.ComponentProps<"span">) {
108108
return (
109-
<span data-slot="command-shortcut" className={cn("text-muted-foreground ml-auto text-xs tracking-widest", className)} {...props} />
109+
<span data-slot="command-shortcut" className={cn("ml-auto text-muted-foreground text-xs tracking-widest", className)} {...props} />
110110
);
111111
}
112112

src/shared/components/ui/dialog.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function DialogOverlay({ className, ...props }: React.ComponentProps<typeof Dial
2525
<DialogPrimitive.Overlay
2626
data-slot="dialog-overlay"
2727
className={cn(
28-
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
28+
"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in",
2929
className,
3030
)}
3131
{...props}
@@ -47,7 +47,7 @@ function DialogContent({
4747
<DialogPrimitive.Content
4848
data-slot="dialog-content"
4949
className={cn(
50-
"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
50+
"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=open]:animate-in sm:max-w-lg",
5151
className,
5252
)}
5353
{...props}
@@ -56,7 +56,7 @@ function DialogContent({
5656
{showCloseButton && (
5757
<DialogPrimitive.Close
5858
data-slot="dialog-close"
59-
className="ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4"
59+
className="absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0"
6060
>
6161
<XIcon />
6262
<span className="sr-only">Close</span>
@@ -76,7 +76,7 @@ function DialogFooter({ className, ...props }: React.ComponentProps<"div">) {
7676
}
7777

7878
function DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>) {
79-
return <DialogPrimitive.Title data-slot="dialog-title" className={cn("text-lg leading-none font-semibold", className)} {...props} />;
79+
return <DialogPrimitive.Title data-slot="dialog-title" className={cn("font-semibold text-lg leading-none", className)} {...props} />;
8080
}
8181

8282
function DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>) {

0 commit comments

Comments
 (0)