Skip to content

chore(greenhouse): remove legacy teams and secrets code - #1898

Open
guoda-puidokaite wants to merge 1 commit into
mainfrom
guoda-legacy-cleanup
Open

chore(greenhouse): remove legacy teams and secrets code#1898
guoda-puidokaite wants to merge 1 commit into
mainfrom
guoda-legacy-cleanup

Conversation

@guoda-puidokaite

@guoda-puidokaite guoda-puidokaite commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Summary

Removed legacy code for teams and secrets admin apps, cleaning up dependencies

Signed-off-by: I531348 <guoda.puidokaite@sap.com>
Copilot AI lite review requested due to automatic review settings August 19, 2026 06:13
@guoda-puidokaite
guoda-puidokaite requested a review from a team as a code owner August 19, 2026 06:13
@guoda-puidokaite guoda-puidokaite self-assigned this Aug 19, 2026
@changeset-bot

changeset-bot Bot commented Aug 19, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 6c3a816

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@cloudoperators/juno-app-greenhouse Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@guoda-puidokaite guoda-puidokaite added the greenhouse Greenhouse core related task label Aug 19, 2026
@guoda-puidokaite guoda-puidokaite changed the title chore(greenhouse): remove legacy code chore(greenhouse): remove legacy teams and secrets code Aug 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

Note

Copilot was unable to run its full agentic suite in this review.

This PR removes the legacy Teams and Secrets org-admin plugin implementations and prunes related API schema/types so the Greenhouse org-admin UI no longer exposes or compiles those features.

Changes:

  • Removed Teams and Secrets plugin code (components, hooks, stores, fixtures, tests, and styles).
  • Removed Teams/Secrets entries from org-admin navigation and plugin routing.
  • Pruned related OpenAPI/CRD type definitions and removed lodash dependencies no longer needed.

Reviewed changes

Copilot reviewed 46 out of 51 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
apps/greenhouse/src/components/core-apps/org-admin/components/SideNav.tsx Removes Teams/Secrets from the visible org-admin navigation.
apps/greenhouse/src/components/core-apps/org-admin/AppContent.tsx Removes lazy imports and routing for Teams/Secrets plugins.
apps/greenhouse/src/components/core-apps/org-admin/types/schema.d.ts Removes Team* path/component types from org-admin type schema.
apps/greenhouse/src/components/admin/types/schema.d.ts Removes Team/TeamRole/TeamRoleBinding types from admin schema.
apps/greenhouse/package.json Removes lodash and @types/lodash dependencies as part of legacy code removal.
.changeset/forty-grapes-jog.md Adds a patch changeset documenting removal of legacy teams/secrets code.
Files not reviewed (1)
  • pnpm-lock.yaml: Generated file

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines 7 to 13
import { useActivePlugin } from "./StoreProvider"
import { lazy, Suspense } from "react"
const Clusters = lazy(() => import("./components/clusters/App"))
const Secrets = lazy(() => import("./components/secrets/App"))
const Plugins = lazy(() => import("./components/plugins/App"))
const Teams = lazy(() => import("./components/teams/App"))

// import Plugin from "./Plugin"

Comment on lines 20 to 28
case "clusters":
ActivePlugin = Clusters
break
case "secrets":
ActivePlugin = Secrets
break
case "plugins":
ActivePlugin = Plugins
break
case "teams":
ActivePlugin = Teams
break
default:
ActivePlugin = Clusters
}

@taymoor89 taymoor89 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.

Nice cleanup!
I was imagining that we'd remove entire /src/core-apps section which was old greenhouse admin area.

import { lazy, Suspense } from "react"
const Clusters = lazy(() => import("./components/clusters/App"))
const Secrets = lazy(() => import("./components/secrets/App"))
const Plugins = lazy(() => import("./components/plugins/App"))

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.

I'm thinking, shouldn't we remove that too?

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

Labels

greenhouse Greenhouse core related task

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Task](greenhouse): Remove legacy admin applications and cleanup dependencies

3 participants