8000 feat: add Organization Provisioner Keys view by johnstcn · Pull Request #17889 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

feat: add Organization Provisioner Keys view #17889

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 9 commits into from
May 19, 2025
Merged

Conversation

johnstcn
Copy link
Member
@johnstcn johnstcn commented May 16, 2025

Fixes #17698

Demo:

Screen.Recording.2025-05-19.at.11.57.31.mov

@johnstcn johnstcn self-assigned this May 16, 2025
@johnstcn johnstcn requested a review from Copilot May 16, 2025 16:03
@johnstcn johnstcn changed the title feat(site): add Organization Provisioner Keys view feat: add Organization Provisioner Keys view May 16, 2025
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 Organization Provisioner Keys view feature to enable management of provisioner keys within the site. Key changes include:

  • Exporting the MockProvisionerKey constant for test support.
  • Adding lazy-loaded routes for the ProvisionerKeysPage in the router.
  • Implementing view components, including a new table row component, page view, and corresponding Storybook stories.
  • Updating API queries and sidebar navigation to integrate the new view.

Reviewed Changes

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

Show a summary per file
File Description
site/src/testHelpers/entities.ts Exported MockProvisionerKey for broader test utility
site/src/router.tsx Added lazy-loaded route and navigation entry for ProvisionerKeysPage
site/src/pages/OrganizationSettingsPage/OrganizationProvisionerKeysPage/ProvisionerKeyRow.tsx Introduced a new table row component for provisioner keys
site/src/pages/OrganizationSettingsPage/OrganizationProvisionerKeysPage/OrganizationProvisionerKeysPageView.tsx Implemented the view component for managing provisioner keys
site/src/pages/OrganizationSettingsPage/OrganizationProvisionerKeysPage/OrganizationProvisionerKeysPageView.stories.tsx Added Storybook stories for different page states
site/src/pages/OrganizationSettingsPage/OrganizationProvisionerKeysPage/OrganizationProvisionerKeysPage.tsx Created the page component, including data fetching and permission checks
site/src/modules/management/OrganizationSidebarView.tsx Updated sidebar navigation to include the Provisioner Keys link
site/src/api/queries/organizations.ts Exported provisionerDaemonGroups for use in the new page view

@johnstcn johnstcn marked this pull request as draft May 16, 2025 16:16
@johnstcn johnstcn force-pushed the cj/ui/provisionerkeys branch from afcf7d0 to 6f9a9e9 Compare May 19, 2025 10:47
@johnstcn johnstcn marked this pull request as ready for review May 19, 2025 11:39
@BrunoQuaresma
Copy link
Collaborator

You did a really nice work! I just would do some design changes, but I would need to play around with that in code. Is it ok for you?

@johnstcn
Copy link
Member Author

You did a really nice work! I just would do some design changes, but I would need to play around with that in code. Is it ok for you?

100% OK with me, thanks!

Copy link
Member
@mafredri mafredri left a comment

Choose a reason for hiding this comment

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

LGTM, deferring approval considering Bruno is making changes.

{showPaywall ? (
<Paywall
message="Provisioners"
description="Provisioners run your Terraform to create templates and workspaces. You need a Premium license to use this feature for multiple organizations."
Copy link
Member

Choose a reason for hiding this comment

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

Not just multi-org right? Keys themselves require license too.

Copy link
Member Author

Choose a reason for hiding this comment

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

@BrunoQuaresma
Copy link
Collaborator

@johnstcn after my design changes:

Screen.Recording.2025-05-19.at.11.57.31.mov
  • Remove the ID column. We only display IDs when we don't have names.: Eg. Provisioner Daemons we use the name, but for Provisioner Jobs we use the ID because it doesn't have a friendly label like name
  • Use the same design for extra info. Eg. Provisioner Daemons and Jobs
  • Show tags and provisioners as "truncated badges"
  • Navigate to provisioner using links

@johnstcn johnstcn merged commit ac7961a into main May 19, 2025
29 checks passed
@johnstcn johnstcn deleted the cj/ui/provisionerkeys branch May 19, 2025 15:58
@github-actions github-actions bot locked and limited conversation to collaborators May 19, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement Provisioner Keys view under Organizations
3 participants
0