Skip to content

refactor: update provisioners page to match the new design #17232

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 6 commits into from
Apr 4, 2025

Conversation

BrunoQuaresma
Copy link
Collaborator

Demo

Screen.Recording.2025-04-02.at.17.14.05.mov

Closes #17221

@BrunoQuaresma BrunoQuaresma requested review from aslilac, a team and Copilot April 2, 2025 20:16
@BrunoQuaresma BrunoQuaresma self-assigned this Apr 2, 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 refactors the provisioners page to align with the new design, removing legacy components and reorganizing query logic and UI components. Key changes include:

  • Removal of outdated page views and Storybook stories.
  • Introduction of new components (ProvisionerVersion, ProvisionerRow, ProvisionerKey, etc.) with updated styling and improved layout.
  • Updates to data queries to filter out offline provisioners and adjust error handling.

Reviewed Changes

Copilot reviewed 21 out of 21 changed files in this pull request and generated no comments.

Show a summary per file
File Description
OrganizationProvisionersPageView.tsx Replaces the legacy provisioners view with a new table-based layout and updated error handling.
OrganizationProvisionersPage.tsx Updates the query to use provisionerDaemons and filter out offline provisioners.
ProvisionerVersion.tsx, ProvisionerRow.tsx, ProvisionerKey.tsx New components to present provisioner details, version status, and key info in line with the new design.
JobRow.tsx, JobStatusIndicator.tsx, ProvisionerTags.tsx Adjustments in job and tag presentation components consistent with the new styling conventions.
Storybook files Updated or added stories to reflect the new component implementations and behaviors.
Comments suppressed due to low confidence (1)

site/src/pages/OrganizationSettingsPage/OrganizationProvisionersPage/OrganizationProvisionersPageView.tsx:96

  • The error message references 'provisioner jobs' even though the page is about provisioners, which may confuse users. Consider updating the error message to 'Error loading the provisioners' or similar.
<EmptyState message="Error loading the provisioner jobs" cta={...} />

Comment on lines 34 to 43
<header className="flex flex-row items-baseline justify-between">
<div className="flex flex-col gap-2">
<h1 className="text-3xl m-0">Provisioners</h1>
<p className="text-sm text-content-secondary m-0">
Coder server runs provisioner daemons which execute terraform during
workspace and template builds.{" "}
<Link href={docs("/admin/provisioners")}>View docs</Link>
</p>
</div>
</header>
Copy link
Member

Choose a reason for hiding this comment

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

Not sure if I'll have time to do a full review for a while, but is there a reason this isn't using SettingsHeader?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not really, I will use it!

<>
<TableRow>
<TableCell>
<button
Copy link
Member

Choose a reason for hiding this comment

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

native html button, no component?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I used the native because I wanted a button "without any styles" but I think I can do that easily in another way or creating a "unstyled" variant for those cases and keep the styles for focus.

@BrunoQuaresma BrunoQuaresma merged commit 17664f4 into main Apr 4, 2025
34 checks passed
@BrunoQuaresma BrunoQuaresma deleted the bq/refactor-provisioners-new branch April 4, 2025 15:00
@github-actions github-actions bot locked and limited conversation to collaborators Apr 4, 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 new provisioners design
3 participants