Skip to content

chore(greenhouse): reroute old admin area to new one#1483

Open
taymoor89 wants to merge 4 commits intomainfrom
1479-add-link-to-new-admin
Open

chore(greenhouse): reroute old admin area to new one#1483
taymoor89 wants to merge 4 commits intomainfrom
1479-add-link-to-new-admin

Conversation

@taymoor89
Copy link
Contributor

@taymoor89 taymoor89 commented Feb 25, 2026

Summary

This PR replaces old greenhouse admin area with the new one.

Changes Made

  • Rerouted /org-admin to /admin (in case someone is already used to of it or has bookmarked /org-admin).
  • Made sure Organization link is highlighted as before.
  • Removed old hardcoded org-admin plugin which isn't needed after this change.
  • Displayed old Clusters app at /admin/clusters.
  • Displayed warning message indicating legacy clusters view.

Related Issues

Screenshots (if applicable)

2026-02-25_15-43-58.mp4

Testing Instructions

  1. pnpm i
  2. pnpm TASK

Checklist

  • I have performed a self-review of my code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have added tests that prove my fix is effective or that my feature works.
  • New and existing unit tests pass locally with my changes.
  • I have made corresponding changes to the documentation (if applicable).
  • My changes generate no new warnings or errors.
  • I have created a changeset for my changes.

PR Manifesto

Review the PR Manifesto for best practises.

@taymoor89 taymoor89 self-assigned this Feb 25, 2026
@changeset-bot
Copy link

changeset-bot bot commented Feb 25, 2026

🦋 Changeset detected

Latest commit: 6134c7c

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 Minor

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

@taymoor89 taymoor89 marked this pull request as ready for review February 26, 2026 14:14
@taymoor89 taymoor89 requested a review from a team as a code owner February 26, 2026 14:14
@taymoor89 taymoor89 force-pushed the 1479-add-link-to-new-admin branch from 4bab3d9 to 12ea19f Compare February 26, 2026 14:59
@ArtieReus ArtieReus added the greenhouse-pr-preview Builds a PR preview for greenhouse shell app and plugins. label Feb 27, 2026
Copy link
Collaborator

@ArtieReus ArtieReus left a comment

Choose a reason for hiding this comment

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

very good job!!! just one comment

// @ts-ignore
<AppShellProvider theme={`${props.theme ? props.theme : "theme-dark"}`}>
{/* load styles inside the shadow dom */}
<style>{styles.toString()}</style>
Copy link
Collaborator

Choose a reason for hiding this comment

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

We need to check if the table still working properly without the stiles:
https://github.com/cloudoperators/juno/blob/main/apps/greenhouse/src/components/core-apps/org-admin/components/clusters/styles.css#L11
We could extend the global styles with those in clusters.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes it works because new admin areas is rendered as part of greenhouse not as a separate extension/app which was the case with old admin area. And because greenhouse already has AppShellProvider and these styles, so everything looks good.

Copy link
Collaborator

Choose a reason for hiding this comment

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

but this stiles are specific to clusters and has scoped styles .clusters

.clusters {
  .juno-datagrid-row:hover {
    .juno-datagrid-cell {
      @apply bg-theme-background-lvl-1;
    }
  }

  .juno-datagrid-row.active {
    .juno-datagrid-cell {
      @apply bg-theme-background-lvl-2;
    }
  }
}

Which I don't see in greenhouse:
https://github.com/cloudoperators/juno/blob/main/apps/greenhouse/src/styles.css

Or I am wrong?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, you are right. But I think these styles are probably redundant and might not need to be copied over to greenhouse, because now DataGridRows supports hover when onClick in supplied. Try to compare old clusters view in QA with this one.

})
return () => {
if (messageId) {
removeMessage(messageId)
Copy link
Collaborator

Choose a reason for hiding this comment

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

smart

Copy link
Contributor

@edda edda left a comment

Choose a reason for hiding this comment

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

Very nice!

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

Labels

greenhouse-pr-preview Builds a PR preview for greenhouse shell app and plugins.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants