Skip to content

Conversation

@camiloHimura
Copy link

📝 Description

This PR introduces the initial implementation of pipeline source integration. The new UI allows users to create, edit, and connect sources to a pipeline. Due to the number of files involved, this functionality will be split across multiple PRs. The upcoming one will focus on UX improvements

#3061

Screen.Recording.2025-10-30.at.10.54.27.mov
  • Provide a clear summary of the changes and the issue that has been addressed.
  • 🛠️ Fixes # (issue number)

✨ Changes

Select what type of change your PR is:

  • 🚀 New feature (non-breaking change which adds functionality)
  • 🐞 Bug fix (non-breaking change which fixes an issue)
  • 🔄 Refactor (non-breaking change which refactors the code base)
  • ⚡ Performance improvements
  • 🎨 Style changes (code style/formatting)
  • 🧪 Tests (adding/modifying tests)
  • 📚 Documentation update
  • 📦 Build system changes
  • 🚧 CI/CD configuration
  • 🔧 Chore (general maintenance)
  • 🔒 Security update
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)

✅ Checklist

Before you submit your pull request, please make sure you have completed the following steps:

  • 📚 I have made the necessary updates to the documentation (if applicable).
  • 🧪 I have written tests that support my changes and prove that my fix is effective or my feature works (if applicable).
  • 🏷️ My PR title follows conventional commit format.

For more information about code review checklists, see the Code Review Checklist.

Copilot AI review requested due to automatic review settings October 30, 2025 10:02
Copy link
Contributor

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 the initial implementation of pipeline source integration for the inspect feature. The new UI allows users to create, edit, and connect different types of sources (webcam, IP camera, video file, images folder) to a pipeline through a comprehensive configuration interface.

  • Added pipeline source management functionality with CRUD operations
  • Implemented source connection/disconnection to pipeline
  • Created modular source components for different input types with validation

Reviewed Changes

Copilot reviewed 43 out of 46 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
application/ui/vitest.config.ts Added TypeScript path resolution plugin for testing
application/ui/src/routes/inspect/inspect.tsx Updated toolbar import path to new nested structure
application/ui/src/index.css Added new CSS color variables for UI styling
application/ui/src/hooks/use-pipeline.hook.ts Added comprehensive pipeline management hooks
application/ui/src/features/inspect/toolbar/toolbar.tsx Refactored toolbar with extracted components and pipeline configuration
application/ui/src/features/inspect/toolbar/sources/* Complete source management system with components for different source types
application/ui/src/features/inspect/toolbar/pipeline-configuration.component.tsx Main pipeline configuration dialog with tabbed interface
application/ui/src/features/inspect/toolbar/inference-opacity.tsx Extracted inference opacity control component
application/ui/src/components/disclosure-group/* Reusable disclosure group component for expandable UI sections
application/ui/src/assets/icons/index.ts Added pipeline link icon export
application/ui/package.json Added vite-tsconfig-paths dependency
Files not reviewed (1)
  • application/ui/package-lock.json: Language not supported
Comments suppressed due to low confidence (1)

application/ui/src/features/inspect/toolbar/sources/image-folder/image-folder-fields.module.scss:1

  • Double var() usage is incorrect CSS syntax. Should be var(--spectrum-accent-background-color-hover).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@camiloHimura camiloHimura force-pushed the ccolora11/3061-sources branch from b91b7a0 to 14fcf99 Compare October 30, 2025 10:11
Copilot AI review requested due to automatic review settings October 30, 2025 10:13
@camiloHimura camiloHimura force-pushed the ccolora11/3061-sources branch from 14fcf99 to 49d8b62 Compare October 30, 2025 10:13
Copy link
Contributor

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

Copilot reviewed 43 out of 46 changed files in this pull request and generated 3 comments.

Files not reviewed (1)
  • application/ui/package-lock.json: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link
Contributor

@ashwinvaidya17 ashwinvaidya17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. One super nitpicky comment but tbh I have no comments regarding UI code.

@@ -0,0 +1,3 @@
export const removeUnderscore = (text: string) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe nitpicky but is this needed? Maybe we can make it inline

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It’s possible, but I’ll be reusing it in an upcoming PR, so it’s useful to keep it as a reusable function

Copy link

@MarkRedeman MarkRedeman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Than you Camilo! I added quite some comments but really like the progress.
I don't have any big blockers, more some open design suggestions that we can look into.

@camiloHimura camiloHimura force-pushed the ccolora11/3061-sources branch from fcd52f9 to 5647c05 Compare November 5, 2025 01:09
Copilot AI review requested due to automatic review settings November 5, 2025 01:09
Copy link
Contributor

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

Copilot reviewed 46 out of 49 changed files in this pull request and generated 8 comments.

Files not reviewed (1)
  • application/ui/package-lock.json: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@camiloHimura camiloHimura force-pushed the ccolora11/3061-sources branch from 5647c05 to 97f72da Compare November 5, 2025 01:25
Signed-off-by: Colorado, Camilo <[email protected]>
Copilot AI review requested due to automatic review settings November 5, 2025 01:36
@camiloHimura camiloHimura force-pushed the ccolora11/3061-sources branch from 97f72da to 292a8dd Compare November 5, 2025 01:36
Copy link
Contributor

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

Copilot reviewed 46 out of 49 changed files in this pull request and generated no new comments.

Files not reviewed (1)
  • application/ui/package-lock.json: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@camiloHimura camiloHimura merged commit 87a1efe into open-edge-platform:feature/geti-inspect Nov 5, 2025
15 of 17 checks passed
camiloHimura added a commit to camiloHimura/anomalib that referenced this pull request Nov 11, 2025
…rm#3078)

* group disclosure config

Signed-off-by: Colorado, Camilo <[email protected]>

* render SourceOptions

Signed-off-by: Colorado, Camilo <[email protected]>

* update vites config

Signed-off-by: Colorado, Camilo <[email protected]>

* render sourcer list and connection status

Signed-off-by: Colorado, Camilo <[email protected]>

* implement EditSource component

Signed-off-by: Colorado, Camilo <[email protected]>

* refactor api-camera, split it in two components

* refactor edit and new source components

* display source config details

Signed-off-by: Colorado, Camilo <[email protected]>

* add SourceMenu unit tests

Signed-off-by: Colorado, Camilo <[email protected]>

* update source API

* update forms with projectId

* fix Pr comments

Signed-off-by: Colorado, Camilo <[email protected]>

---------

Signed-off-by: Colorado, Camilo <[email protected]>
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.

4 participants