Skip to content

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

Merged
merged 6 commits into from
Jun 16, 2025
Merged

data importer with format fixes #1301

merged 6 commits into from
Jun 16, 2025

Conversation

prakriti-solankey
Copy link
Collaborator

@prakriti-solankey prakriti-solankey commented May 27, 2025

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.

image

Copilot

This comment was marked as outdated.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@prakriti-solankey prakriti-solankey marked this pull request as ready for review June 11, 2025 12:03
Copilot

This comment was marked as outdated.

Copilot

This comment was marked as outdated.

Copy link
Contributor

@Copilot Copilot AI left a 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) => {
Copy link
Preview

Copilot AI Jun 16, 2025

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.

Suggested change
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 () => {
Copy link
Preview

Copilot AI Jun 16, 2025

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.

prakriti-solankey and others added 2 commits June 16, 2025 16:34
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@prakriti-solankey prakriti-solankey merged commit 6c5a5e6 into dev Jun 16, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants