Skip to content

549 graph visualization removal of dropdown #601

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

Merged
merged 22 commits into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
083f487
Staging To Main (#495)
prakriti-solankey Jul 2, 2024
616eb08
Dev To STAGING (#532)
prakriti-solankey Jul 11, 2024
ccf8f60
Merge branch 'STAGING' of https://github.com/neo4j-labs/llm-graph-bui…
aashipandya Jul 12, 2024
82661c5
Dev (#535)
kartikpersistent Jul 12, 2024
a640ddc
Merge branch 'STAGING' of https://github.com/neo4j-labs/llm-graph-bui…
kartikpersistent Jul 12, 2024
4156647
Merge branch 'DEV' of https://github.com/neo4j-labs/llm-graph-builder
kartikpersistent Jul 12, 2024
8f62057
staging changes to main
aashipandya Jul 12, 2024
e8d0a8b
Update README.md (#539)
aashipandya Jul 12, 2024
6fdba8a
Merge branch 'DEV' of https://github.com/neo4j-labs/llm-graph-builder…
prakriti-solankey Jul 16, 2024
332d2b1
Merge branch 'DEV' of https://github.com/neo4j-labs/llm-graph-builder…
prakriti-solankey Jul 17, 2024
2791a41
graph Checkbox change
prakriti-solankey Jul 17, 2024
5f7e42d
refresh handling
prakriti-solankey Jul 17, 2024
bbc4565
Merge branch 'DEV' of https://github.com/neo4j-labs/llm-graph-builder…
prakriti-solankey Jul 17, 2024
5066b6f
type change
prakriti-solankey Jul 17, 2024
f48b750
added new graph query
vasanthasaikalluri Jul 18, 2024
e74d6de
legend changes
prakriti-solankey Jul 18, 2024
87c2fb9
Merge branch 'DEV' of https://github.com/neo4j-labs/llm-graph-builder…
prakriti-solankey Jul 18, 2024
9c04f80
lint fix
prakriti-solankey Jul 18, 2024
e073c65
Merge branch 'DEV' into 549-graph-visualization-removal-of-dropdown
kartikpersistent Jul 18, 2024
5ec2fb3
schema changes
prakriti-solankey Jul 22, 2024
e050b81
Merge branch '549-graph-visualization-removal-of-dropdown' of https:/…
prakriti-solankey Jul 22, 2024
f551e75
Merge branch 'DEV' of https://github.com/neo4j-labs/llm-graph-builder…
prakriti-solankey Jul 22, 2024
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
4 changes: 0 additions & 4 deletions backend/src/shared/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@
BUCKET_UPLOAD = 'llm-graph-builder-upload'
BUCKET_FAILED_FILE = 'llm-graph-builder-failed'
PROJECT_ID = 'llm-experiments-387609'




GRAPH_CHUNK_LIMIT = 50

#query
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export default function EntityExtractionSetting({
removeNodesAndRels(removedNodelabels, removedRelations);
}
setSelectedSchemas(selectedOptions);
localStorage.setItem('selectedSchemas', JSON.stringify({ db: userCredentials?.uri, selectedOptions: selectedOptions}));
const nodesFromSchema = selectedOptions.map((s) => JSON.parse(s.value).nodelabels).flat();
const relationsFromSchema = selectedOptions.map((s) => JSON.parse(s.value).relationshipTypes).flat();
let nodeOptionsFromSchema: OptionType[] = [];
Expand Down Expand Up @@ -155,7 +156,6 @@ export default function EntityExtractionSetting({
}, []);
setdefaultExamples(parsedData);
}, []);

useEffect(() => {
if (userCredentials) {
if (open && view === 'Dialog') {
Expand Down Expand Up @@ -220,11 +220,23 @@ export default function EntityExtractionSetting({
'selectedRelationshipLabels',
JSON.stringify({ db: userCredentials?.uri, selectedOptions: [] })
);
localStorage.setItem('selectedSchemas', JSON.stringify({ db: userCredentials?.uri, selectedOptions: [] }));
showAlert('info', `Successfully Removed the Schema settings`);
if (view === 'Dialog' && onClose != undefined) {
onClose();
}
};

// Load selectedSchemas from local storage on mount
useEffect(() => {
const storedSchemas = localStorage.getItem('selectedSchemas');
if (storedSchemas) {
const parsedSchemas = JSON.parse(storedSchemas);
setSelectedSchemas(parsedSchemas.selectedOptions);
}
}, []);

console.log('selectedSchemas', selectedSchemas);
return (
<div>
<Typography variant='body-medium'>
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/Popups/Settings/SettingModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ const SettingsModal: React.FC<SettingsModalProps> = ({
removeNodesAndRels(removedNodelabels, removedRelations);
}
setSelectedSchemas(selectedOptions);
localStorage.setItem('selectedSchemas', JSON.stringify({ db: userCredentials?.uri, selectedOptions: selectedOptions}));
const nodesFromSchema = selectedOptions.map((s) => JSON.parse(s.value).nodelabels).flat();
const relationsFromSchema = selectedOptions.map((s) => JSON.parse(s.value).relationshipTypes).flat();
let nodeOptionsFromSchema: OptionType[] = [];
Expand Down Expand Up @@ -172,6 +173,7 @@ const SettingsModal: React.FC<SettingsModalProps> = ({
'selectedRelationshipLabels',
JSON.stringify({ db: userCredentials?.uri, selectedOptions: [] })
);
localStorage.setItem('selectedSchemas', JSON.stringify({ db: userCredentials?.uri, selectedOptions: [] }));
showAlert('info', `Successfully Removed the Schema settings`);
onClose();
};
Expand Down