Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
johnstcn merged 9 commits intomainfromcj/ui/provisionerkeys
May 19, 2025

Conversation

johnstcn
Copy link
Member

@johnstcnjohnstcn commentedMay 16, 2025
edited by BrunoQuaresma
Loading

Fixes#17698

Demo:

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

@johnstcnjohnstcn self-assigned thisMay 16, 2025
@johnstcnjohnstcn requested a review fromCopilotMay 16, 2025 16:03
@johnstcnjohnstcn changed the titlefeat(site): add Organization Provisioner Keys viewfeat: add Organization Provisioner Keys viewMay 16, 2025
Copy link
Contributor

@CopilotCopilotAI 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
FileDescription
site/src/testHelpers/entities.tsExported MockProvisionerKey for broader test utility
site/src/router.tsxAdded lazy-loaded route and navigation entry for ProvisionerKeysPage
site/src/pages/OrganizationSettingsPage/OrganizationProvisionerKeysPage/ProvisionerKeyRow.tsxIntroduced a new table row component for provisioner keys
site/src/pages/OrganizationSettingsPage/OrganizationProvisionerKeysPage/OrganizationProvisionerKeysPageView.tsxImplemented the view component for managing provisioner keys
site/src/pages/OrganizationSettingsPage/OrganizationProvisionerKeysPage/OrganizationProvisionerKeysPageView.stories.tsxAdded Storybook stories for different page states
site/src/pages/OrganizationSettingsPage/OrganizationProvisionerKeysPage/OrganizationProvisionerKeysPage.tsxCreated the page component, including data fetching and permission checks
site/src/modules/management/OrganizationSidebarView.tsxUpdated sidebar navigation to include the Provisioner Keys link
site/src/api/queries/organizations.tsExported provisionerDaemonGroups for use in the new page view

@johnstcnjohnstcn marked this pull request as draftMay 16, 2025 16:16
@johnstcnjohnstcnforce-pushed thecj/ui/provisionerkeys branch fromafcf7d0 to6f9a9e9CompareMay 19, 2025 10:47
@johnstcnjohnstcn marked this pull request as ready for reviewMay 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
MemberAuthor

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

@mafredrimafredri 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
MemberAuthor

Choose a reason for hiding this comment

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

mafredri reacted with thumbs up emoji
@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 reacted with laugh emojijohnstcn reacted with hooray emojijohnstcn reacted with rocket emoji

@johnstcnjohnstcn merged commitac7961a intomainMay 19, 2025
34 checks passed
@johnstcnjohnstcn deleted the cj/ui/provisionerkeys branchMay 19, 2025 15:58
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsMay 19, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@mafredrimafredrimafredri left review comments

Copilot code reviewCopilotCopilot left review comments

@BrunoQuaresmaBrunoQuaresmaBrunoQuaresma approved these changes

Assignees

@johnstcnjohnstcn

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Implement Provisioner Keys view under Organizations
3 participants
@johnstcn@BrunoQuaresma@mafredri

[8]ページ先頭

©2009-2025 Movatter.jp