Skip to content

Improve git services & project-langing page#564

Open
Matthbo wants to merge 5 commits into
masterfrom
chore/improve-git-related-logic
Open

Improve git services & project-langing page#564
Matthbo wants to merge 5 commits into
masterfrom
chore/improve-git-related-logic

Conversation

@Matthbo

@Matthbo Matthbo commented Jun 19, 2026

Copy link
Copy Markdown
Member

Couple of things I found while exploring how git projects are being handled

  • Cleanup & improvement of git service code
  • Separate sub react components found in project-landing

@Matthbo Matthbo self-assigned this Jun 19, 2026
@github-project-automation github-project-automation Bot moved this to In Progress in Frank!Framework Jun 19, 2026
@Matthbo Matthbo moved this from In Progress to Review in Frank!Framework Jun 19, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 refactors parts of the git/project backend handling and decomposes the Project Landing page into smaller React components, while also simplifying modal/directory-picker rendering patterns.

Changes:

  • Backend: adjust project clone error handling and some minor cleanup in project services/controllers.
  • Backend: refactor git credential helper PATH scanning logic.
  • Frontend: split project-landing into Sidebar, Toolbar, and ProjectList, and switch modals/directory picker to conditional rendering instead of an isOpen prop.

Reviewed changes

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

Show a summary per file
File Description
src/test/java/org/frankframework/flow/project/ConfigurationProjectServiceTest.java Updates clone-existing-dir test to match new exception type.
src/main/java/org/frankframework/flow/project/ConfigurationProjectService.java Changes clone/open behavior and exception types; small formatting/cleanup.
src/main/java/org/frankframework/flow/project/ConfigurationProjectController.java Formatting change for clone endpoint invocation.
src/main/java/org/frankframework/flow/git/GitCredentialHelper.java Refactors PATH scanning and exception variable naming.
src/main/frontend/app/services/project-service.ts Uses nullish coalescing when serializing token.
src/main/frontend/app/routes/studio/studio.tsx Fixes hook dependency array (adds navigate).
src/main/frontend/app/routes/projectlanding/toolbar.tsx New extracted toolbar component.
src/main/frontend/app/routes/projectlanding/sidebar.tsx New extracted sidebar component.
src/main/frontend/app/routes/projectlanding/project-list.tsx New extracted project list component.
src/main/frontend/app/routes/projectlanding/project-landing.tsx Uses new subcomponents and conditional rendering for modals/picker.
src/main/frontend/app/routes/projectlanding/new-configuration-modal.tsx Removes isOpen prop and relies on conditional rendering.
src/main/frontend/app/routes/projectlanding/clone-configuration-modal.tsx Removes isOpen prop; adjusts repo-name parsing and picker rendering.
src/main/frontend/app/routes/configurations/add-configuration-modal.tsx Updates directory picker usage to conditional rendering.
src/main/frontend/app/components/directory-picker/directory-picker.tsx Removes isOpen prop; always-internal lifecycle on mount/unmount.

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

Comment thread src/main/java/org/frankframework/flow/git/GitCredentialHelper.java
Comment thread src/main/frontend/app/routes/projectlanding/clone-configuration-modal.tsx Outdated
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
62.9% Coverage on New Code (required ≥ 65%)

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Review

Development

Successfully merging this pull request may close these issues.

2 participants