Skip to content

Staging #358

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 181 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 150 commits
Commits
Show all changes
181 commits
Select commit Hold shift + click to select a range
995742f
check for multi edges on create instead per render
Anchel123 Jan 1, 2025
3cf7586
commit
Anchel123 Jan 6, 2025
bde842e
commit
Anchel123 Jan 6, 2025
6efd861
expand only on the seconde click
Anchel123 Jan 8, 2025
9e2cf1f
fix zoom on search and in path
Anchel123 Jan 8, 2025
1737651
commit
Anchel123 Jan 19, 2025
27b5920
add image capture on canvas
Anchel123 Jan 19, 2025
08ef5ec
change img to svg
Anchel123 Jan 19, 2025
04c5ab6
commit
Anchel123 Jan 19, 2025
39142bb
commit
Anchel123 Jan 20, 2025
bed88d3
commit
Anchel123 Jan 20, 2025
9c8d9cd
commit
Anchel123 Jan 20, 2025
d8b9478
commit
Anchel123 Jan 20, 2025
9b46538
commit
Anchel123 Jan 20, 2025
95518d4
commit
Anchel123 Jan 20, 2025
3ae106b
Merge branch 'fix-canvas' into add-edge-interaction
Anchel123 Jan 20, 2025
2921125
Merge branch 'fix-canvas' into add-capture-image-in-canvas
Anchel123 Jan 20, 2025
ca2e1f0
commit
Anchel123 Jan 20, 2025
8e5dc72
fix test errors
Naseem77 Jan 21, 2025
17d8fd8
Remove 'spin' animation from config
gkorland Jan 22, 2025
d47f502
Merge pull request #342 from FalkorDB/fix-canvas
gkorland Jan 22, 2025
b9c1d5f
Merge branch 'staging' into add-edge-interaction
gkorland Jan 22, 2025
00ad843
Merge branch 'staging' into add-capture-image-in-canvas
gkorland Jan 22, 2025
1a2a087
Refactor CodeGraph and GraphView components to improve node expansion…
Anchel123 Jan 22, 2025
43c94c7
fix input
Anchel123 Jan 22, 2025
5a97eaf
add create repo
Anchel123 Jan 23, 2025
ec73ee4
add docker-compose
gkorland Jan 24, 2025
beac2ab
Merge branch 'staging' into fix-collapse
Anchel123 Jan 27, 2025
b542f2d
Merge branch 'main' into compose
gkorland Jan 29, 2025
46bd62b
Merge branch 'staging' into compose
gkorland Jan 29, 2025
8f05cf8
fix tests
Naseem77 Jan 29, 2025
a7c282d
fix chat error & increase timing
Naseem77 Jan 29, 2025
7b9acf6
improve tests timing and locators
Naseem77 Jan 29, 2025
e6972d4
update locators
Naseem77 Jan 29, 2025
97ad576
Merge branch 'staging' into add-capture-image-in-canvas
Anchel123 Jan 30, 2025
3b0f56a
Merge branch 'staging' into add-edge-interaction
Anchel123 Jan 30, 2025
fb07797
replace test size to 2px
Anchel123 Jan 30, 2025
e2f506e
add logging
Naseem77 Jan 30, 2025
aaedf00
tests improvements
Naseem77 Jan 31, 2025
451b02d
fix failing tests
Naseem77 Jan 31, 2025
8f4343c
Add CI screenshots on test failure
Naseem77 Feb 2, 2025
bbe2070
Update playwright.yml
Naseem77 Feb 2, 2025
6a37813
add logging
Naseem77 Feb 2, 2025
44282ad
add polling with retries
Naseem77 Feb 2, 2025
364ace5
add logging and timing
Naseem77 Feb 2, 2025
0fefd04
add more logging improve transformnNode
Naseem77 Feb 2, 2025
c214063
Update testData.ts
Naseem77 Feb 3, 2025
681e655
remove logging, increase workers
Naseem77 Feb 3, 2025
1d3cd5c
Merge pull request #367 from FalkorDB/compose
barakb Feb 5, 2025
51395ac
Merge branch 'staging' into add-edge-interaction
Anchel123 Feb 5, 2025
daca1bf
Merge branch 'staging' into add-capture-image-in-canvas
Anchel123 Feb 5, 2025
954f283
Merge branch 'staging' into fix-collapse
Anchel123 Feb 5, 2025
e4794b1
Merge branch 'staging' into fix-nodes-label
barakb Feb 5, 2025
f063c11
Merge pull request #370 from FalkorDB/fix-nodes-label
Anchel123 Feb 5, 2025
f50f681
Merge branch 'staging' into add-edge-interaction
barakb Feb 5, 2025
3281912
Merge branch 'staging' into fix-collapse
barakb Feb 5, 2025
a436b63
Merge branch 'staging' into add-capture-image-in-canvas
barakb Feb 5, 2025
717755c
Merge pull request #355 from FalkorDB/add-edge-interaction
Anchel123 Feb 6, 2025
719a968
Merge branch 'staging' into add-capture-image-in-canvas
Anchel123 Feb 6, 2025
e4f1d2b
Merge pull request #356 from FalkorDB/add-capture-image-in-canvas
Anchel123 Feb 6, 2025
7b75a2c
Merge branch 'staging' into fix-collapse
Anchel123 Feb 6, 2025
9799714
fix build
Anchel123 Feb 6, 2025
d1ed6c1
Merge pull request #359 from FalkorDB/fix-collapse
Anchel123 Feb 6, 2025
db56dcd
Merge branch 'staging' into add-create-repo
Anchel123 Feb 9, 2025
1f6c14b
remove logs and debugs
Anchel123 Feb 11, 2025
86bd8b1
bump all available dependencies
Anchel123 Feb 12, 2025
7e00636
bump lucide-react react-slot
Anchel123 Feb 13, 2025
45bfaa4
Merge branch 'staging' into add-create-repo
Anchel123 Feb 16, 2025
e2d7532
commit
Anchel123 Jan 30, 2025
1c7cc92
commit
Anchel123 Feb 16, 2025
a53c73f
Revert "commit"
Anchel123 Feb 16, 2025
5a298a4
Revert "commit"
Anchel123 Feb 16, 2025
71896f1
commit
Anchel123 Feb 16, 2025
5ca8402
fix comments
Anchel123 Feb 16, 2025
b029b54
fix canvas test
Naseem77 Feb 16, 2025
3484aea
Merge pull request #383 from FalkorDB/fixTest
Anchel123 Feb 16, 2025
ac2377a
Merge branch 'staging' into add-create-repo
Anchel123 Feb 16, 2025
ef8f189
Merge branch 'staging' into update-dependencies-version
Anchel123 Feb 16, 2025
a9fd8d8
Update codeGraph.ts
Naseem77 Feb 16, 2025
d14479a
commit
Anchel123 Feb 16, 2025
8965527
Merge branch 'staging' into resolve-comments
Naseem77 Feb 16, 2025
d925841
Merge pull request #384 from FalkorDB/resolve-comments
Naseem77 Feb 16, 2025
750f2fd
Update README.md
danshalev7 Feb 16, 2025
322e7e1
Merge branch 'staging' into update-dependencies-version
Anchel123 Feb 17, 2025
341f272
commit
Anchel123 Feb 17, 2025
1c34192
Merge branch 'staging' into add-create-repo
AviAvni Feb 19, 2025
09ad180
commit
Anchel123 Feb 19, 2025
11cb851
commit
Anchel123 Feb 20, 2025
41b72f1
Improve link label rendering in graph view
Anchel123 Feb 23, 2025
8ab51c6
commit
Anchel123 Feb 23, 2025
dbd6c35
commit
Anchel123 Feb 23, 2025
1b985e5
commit
Anchel123 Feb 24, 2025
32890f5
Merge branch 'staging' into mobile-version
Anchel123 Feb 25, 2025
84830b4
commit
Anchel123 Feb 25, 2025
33108e4
Merge branch 'mobile-version' of https://github.com/FalkorDB/code-gra…
Anchel123 Feb 25, 2025
63d4c75
fix build
Anchel123 Feb 25, 2025
32baa34
improve control buttons style
Anchel123 Feb 25, 2025
31a2089
fix overlapping nodes
Naseem77 Feb 27, 2025
a59dacb
Merge branch 'staging' into fix-overlapping-nodes
Naseem77 Feb 27, 2025
c4f1047
ADD TIPS
Anchel123 Feb 27, 2025
76026b1
fix tips
Anchel123 Feb 27, 2025
cfd404f
increase chat height
Anchel123 Feb 27, 2025
5e66aea
update overlap
Naseem77 Mar 2, 2025
035c09e
fix tests
Naseem77 Mar 3, 2025
62042a8
add tests (#397, #398)
Naseem77 Mar 3, 2025
082e0e6
commit
Anchel123 Mar 4, 2025
4c3d649
fix search node
Anchel123 Mar 4, 2025
bb5b613
Merge branch 'update-dependencies-version' into fix-overlapping-nodes
Naseem77 Mar 4, 2025
baa1e78
fix tests
Naseem77 Mar 4, 2025
33265f1
fix tests
Naseem77 Mar 4, 2025
0036e81
test without tooltip
Naseem77 Mar 4, 2025
9cbae93
add logging
Naseem77 Mar 4, 2025
808174f
Revert "fix search node"
Anchel123 Mar 4, 2025
4c6ea8a
fix search node
Anchel123 Mar 4, 2025
f82813c
Revert "fix search node"
Anchel123 Mar 4, 2025
9c9d9a0
fix search node
Anchel123 Mar 4, 2025
5c336c1
add logging
Naseem77 Mar 4, 2025
0f096b3
Update codeGraph.ts
Naseem77 Mar 4, 2025
505ffd1
Update codeGraph.ts
Naseem77 Mar 4, 2025
dc7b340
fix tests
Naseem77 Mar 4, 2025
21a7bd5
update nodeClick
Naseem77 Mar 4, 2025
d75147f
add test (#402)
Naseem77 Mar 4, 2025
bc8d998
fix #402
Naseem77 Mar 4, 2025
d83b591
update tooltip visibility
Naseem77 Mar 4, 2025
e1c463f
update test
Naseem77 Mar 4, 2025
08d899d
update locators
Naseem77 Mar 5, 2025
1b63639
update locators
Naseem77 Mar 5, 2025
6d2d286
Update codeGraph.ts
Naseem77 Mar 5, 2025
2ac1435
update test
Naseem77 Mar 5, 2025
ddf1bc6
update test
Naseem77 Mar 5, 2025
1f0ec50
add delay
Naseem77 Mar 5, 2025
32d13b5
Merge branch 'update-dependencies-version' into fix-overlapping-nodes
Naseem77 Mar 5, 2025
5cdf983
update test
Naseem77 Mar 5, 2025
f79852e
update locator
Naseem77 Mar 5, 2025
07b5c4f
update tests
Naseem77 Mar 5, 2025
09ec36c
Update codeGraph.ts
Naseem77 Mar 5, 2025
3bc61bf
Merge pull request #395 from FalkorDB/fix-overlapping-nodes
Naseem77 Mar 9, 2025
d1e2591
Merge branch 'staging' into add-create-repo
Naseem77 Mar 10, 2025
86302f3
Merge branch 'staging' into upgrade-canvas-proformence
Anchel123 Mar 10, 2025
3919313
Merge branch 'staging' into mobile-version
Anchel123 Mar 10, 2025
9fee1e6
fix build
Anchel123 Mar 10, 2025
83b8cba
adjust tests for mobile responsiveness
Naseem77 Mar 11, 2025
b89843a
fix tests
Naseem77 Mar 11, 2025
42fe6c3
Merge pull request #400 from FalkorDB/upgrade-canvas-proformence
Anchel123 Mar 12, 2025
d196e59
Merge branch 'staging' into mobile-version
Anchel123 Mar 12, 2025
0f9143a
Merge branch 'staging' into add-create-repo
Anchel123 Mar 12, 2025
1090871
update testdata
Naseem77 Mar 12, 2025
739224f
Merge branch 'mobile-version' of https://github.com/FalkorDB/code-gra…
Naseem77 Mar 12, 2025
d1c3f5f
Refactor zoom functionality and add zoomedNodes state management
Anchel123 Mar 12, 2025
97e8d53
Merge branch 'mobile-version' of https://github.com/FalkorDB/code-gra…
Anchel123 Mar 12, 2025
a1542d2
remove unnecessary log
Anchel123 Mar 12, 2025
b98b9cb
Update testData.ts
Naseem77 Mar 12, 2025
e4dea4f
fix search
Anchel123 Mar 16, 2025
6e505c6
update tests
Naseem77 Mar 19, 2025
60a977c
update pom
Naseem77 Mar 19, 2025
344f98d
update searchbar
Naseem77 Mar 19, 2025
5bf503e
Merge pull request #389 from FalkorDB/mobile-version
Naseem77 Mar 19, 2025
6277ba0
Merge branch 'staging' into danshalev7-patch-1
Naseem77 Mar 19, 2025
390bb5a
Bump lucide-react from 0.475.0 to 0.486.0
dependabot[bot] Apr 1, 2025
1b684dc
Merge pull request #436 from FalkorDB/dependabot/npm_and_yarn/staging…
gkorland Apr 1, 2025
24bb08f
Bump eslint-config-next from 15.2.1 to 15.2.4
dependabot[bot] Apr 1, 2025
0428aa3
Bump autoprefixer from 10.4.20 to 10.4.21
dependabot[bot] Apr 1, 2025
745db11
Bump @types/node from 22.13.10 to 22.13.14
dependabot[bot] Apr 1, 2025
16ac0a6
Fix README.md heading formatting
gkorland Apr 1, 2025
e0e8aae
Remove extra blank lines in README.md
gkorland Apr 1, 2025
e88e2cf
Remove extra blank lines in README.md
gkorland Apr 1, 2025
d18f8b6
Merge branch 'staging' into danshalev7-patch-1
gkorland Apr 1, 2025
5829423
Merge pull request #385 from FalkorDB/danshalev7-patch-1
danshalev7 Apr 1, 2025
59cb1d5
Merge branch 'staging' into dependabot/npm_and_yarn/staging/eslint-co…
gkorland Apr 1, 2025
5719dae
Merge pull request #432 from FalkorDB/dependabot/npm_and_yarn/staging…
gkorland Apr 1, 2025
e40f5c4
Merge branch 'staging' into dependabot/npm_and_yarn/staging/autoprefi…
gkorland Apr 1, 2025
c2d6c10
Merge pull request #431 from FalkorDB/dependabot/npm_and_yarn/staging…
gkorland Apr 1, 2025
11d72c3
Merge branch 'staging' into dependabot/npm_and_yarn/staging/types/nod…
gkorland Apr 1, 2025
50ed8ac
Merge pull request #433 from FalkorDB/dependabot/npm_and_yarn/staging…
gkorland Apr 1, 2025
36976a5
Bump eslint from 9.22.0 to 9.23.0
dependabot[bot] Apr 1, 2025
a2bfad3
Merge branch 'staging' into dependabot/npm_and_yarn/staging/eslint-9.…
gkorland Apr 1, 2025
f593090
Merge pull request #429 from FalkorDB/dependabot/npm_and_yarn/staging…
gkorland Apr 1, 2025
13d27c1
Merge remote-tracking branch 'origin/staging' into add-create-repo
Anchel123 Apr 3, 2025
04fa785
Merge pull request #374 from FalkorDB/add-create-repo
AviAvni Apr 3, 2025
5e077b6
Bump @types/node from 22.13.16 to 22.15.26
dependabot[bot] May 30, 2025
ccab83e
Merge pull request #466 from FalkorDB/dependabot/npm_and_yarn/staging…
gkorland May 30, 2025
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
13 changes: 12 additions & 1 deletion .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,20 @@ jobs:
npm install
npm run build
NEXTAUTH_SECRET=SECRET npm start & npx playwright test --reporter=dot,list
- name: Ensure required directories exist
run: |
mkdir -p playwright-report
mkdir -p playwright-report/artifacts
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
- name: Upload failed test screenshots
if: always()
uses: actions/upload-artifact@v4
with:
name: failed-test-screenshots
path: playwright-report/artifacts/
retention-days: 30
25 changes: 12 additions & 13 deletions app/components/Input.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { toast } from "@/components/ui/use-toast"
import { getCategoryColorName, getCategoryColorValue, Graph } from "./model"
import { useEffect, useRef, useState } from "react"
import { PathNode } from "../page"
import { PathNode } from "@/lib/utils"
import { cn } from "@/lib/utils"
import { prepareArg } from "../utils"

interface Props extends React.InputHTMLAttributes<HTMLInputElement> {
value?: string
graph: Graph
onValueChange: (node: PathNode) => void
handleSubmit?: (node: any) => void
Expand All @@ -16,7 +15,7 @@ interface Props extends React.InputHTMLAttributes<HTMLInputElement> {
scrollToBottom?: () => void
}

export default function Input({ value, onValueChange, handleSubmit, graph, icon, node, className, parentClassName, scrollToBottom, ...props }: Props) {
export default function Input({ onValueChange, handleSubmit, graph, icon, node, className, parentClassName, scrollToBottom, ...props }: Props) {

const [open, setOpen] = useState(false)
const [options, setOptions] = useState<any[]>([])
Expand All @@ -38,15 +37,13 @@ export default function Input({ value, onValueChange, handleSubmit, graph, icon,
let isLastRequest = true
const timeout = setTimeout(async () => {

if (!value || node?.id) {
if (!value) {
setOptions([])
}
if (!node?.name) {
setOptions([])
setOpen(false)
return
}

const result = await fetch(`/api/repo/${prepareArg(graph.Id)}/?prefix=${prepareArg(value)}`, {
const result = await fetch(`/api/repo/${prepareArg(graph.Id)}/?prefix=${prepareArg(node?.name)}`, {
method: 'POST'
})

Expand All @@ -66,7 +63,7 @@ export default function Input({ value, onValueChange, handleSubmit, graph, icon,

setOptions(completions || [])

if (completions?.length > 0) {
if (completions?.length > 0 && !node?.id) {
setOpen(true)
} else {
setOpen(false)
Expand All @@ -77,7 +74,7 @@ export default function Input({ value, onValueChange, handleSubmit, graph, icon,
clearTimeout(timeout)
isLastRequest = false
}
}, [value, graph.Id])
}, [node?.name, graph.Id])

const handleKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {
const container = containerRef.current
Expand All @@ -87,6 +84,7 @@ export default function Input({ value, onValueChange, handleSubmit, graph, icon,
const option = options.find((o, i) => i === selectedOption)
if (!option) return
if (handleSubmit) {
onValueChange({ name: option.properties.name, id: option.id })
handleSubmit(option)
} else {
if (!open) return
Expand Down Expand Up @@ -133,7 +131,7 @@ export default function Input({ value, onValueChange, handleSubmit, graph, icon,

return (
<div
className={cn("w-[20dvw] relative pointer-events-none rounded-md gap-4", parentClassName)}
className={cn("w-full md:w-[20dvw] relative pointer-events-none rounded-md gap-4", parentClassName)}
data-name='search-bar'
>
<input
Expand All @@ -144,7 +142,8 @@ export default function Input({ value, onValueChange, handleSubmit, graph, icon,
}}
onKeyDown={handleKeyDown}
className={cn("w-full border p-2 rounded-md pointer-events-auto", className)}
value={value || ""}
placeholder="Search for nodes in the graph"
value={node?.name || ""}
onChange={(e) => {
const newVal = e.target.value
const invalidChars = /[%*()\-\[\]{};:"|~]/;
Expand All @@ -168,7 +167,7 @@ export default function Input({ value, onValueChange, handleSubmit, graph, icon,
open &&
<div
ref={containerRef}
className="z-10 w-full bg-white absolute flex flex-col pointer-events-auto border rounded-md max-h-[50dvh] overflow-y-auto overflow-x-hidden p-2 gap-2"
className="z-10 w-full bg-white absolute flex flex-col pointer-events-auto border rounded-md md:max-h-[50dvh] h-[25dvh] overflow-y-auto overflow-x-hidden p-2 gap-2"
data-name='search-bar-list'
style={{
top: inputHeight + 16
Expand Down
Loading
Loading