-
Notifications
You must be signed in to change notification settings - Fork 621
data importer with format fixes #1301
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
Conversation
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces a new data importer option for handling graph schema JSON files, improving support for diverse data sources and updating the state management and UI accordingly.
- Implements URL validation for the data importer
- Adds new constants, types, and context state properties for the importer
- Integrates new UI components for JSON upload and schema extraction
Reviewed Changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated 3 comments.
Show a summary per file
File | Description |
---|---|
frontend/src/utils/Utils.ts | Added URL validation utility for the importer |
frontend/src/utils/Constants.ts | Extended constants with new keys for the data importer UI |
frontend/src/types.ts | Added new types and updated context definitions for the importer |
frontend/src/context/UsersFiles.tsx | Updated state initialization and added importer dialog state |
Various UI components | Integrated data importer functionality into schema selection and upload flows |
New DataImporter component | Added a new dialog component to handle JSON upload and schema extraction |
frontend/src/components/Layout/PageLayout.tsx | Hooked up the data importer dialog and updated state management |
) => void; | ||
} | ||
|
||
const DataImporterSchemaDailog = ({ open, onClose, onApply }: DataImporterDialogProps) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The component name 'DataImporterSchemaDailog' appears to have a typographical error; consider renaming it to 'DataImporterSchemaDialog' for consistency.
const DataImporterSchemaDailog = ({ open, onClose, onApply }: DataImporterDialogProps) => { | |
const DataImporterSchemaDialog = ({ open, onClose, onApply }: DataImporterDialogProps) => { |
Copilot uses AI. Check for mistakes.
@@ -288,6 +320,16 @@ export default function NewEntityExtractionSetting({ | |||
openLoadSchema(); | |||
}, []); | |||
|
|||
const onDataImporterSchemaCLick: MouseEventHandler<HTMLButtonElement> = useCallback(async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The callback name 'onDataImporterSchemaCLick' contains an unexpected capital letter in 'CLick'; consider renaming it to 'onDataImporterSchemaClick' for clarity.
Copilot uses AI. Check for mistakes.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This PR adds a new importer option to handle graph schema data from JSON files. Key changes include:
Implementation of URL validation for the new importer in Utils.ts.
Addition of new constants, types, and state management properties for data importer functionality.
Integration of UI components for importing JSON data and updating graph schema settings.