Skip to content

Migrate more of the Dashboard to Podkit buttons #19012

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

Closed
wants to merge 3 commits into from

Conversation

filiptronicek
Copy link
Member

@filiptronicek filiptronicek commented Nov 4, 2023

Description

Fixes some double-focus issues and continues on EXP-838. I am not sure about buttons with .gp-link and will need to look into transitioning them further.

This brings our non-admin <button> total from 76 to 65.

Summary generated by Copilot

🤖 Generated by Copilot at 8eeeb20

This pull request updates several dashboard components to use the LinkButton component from the @podkit/buttons package, which improves the code readability and the UI consistency. It also fixes a typo in a comment and adds a new method to the GitpodHostUrl class.

Related Issue(s)

Supersedes #18007

How to test

Documentation

Preview status

Gitpod was successfully deployed to your preview environment.

Build Options

Build
  • /werft with-werft
    Run the build with werft instead of GHA
  • leeway-no-cache
  • /werft no-test
    Run Leeway with --dont-test
Publish
  • /werft publish-to-npm
  • /werft publish-to-jb-marketplace
Installer
  • analytics=segment
  • with-dedicated-emulation
  • workspace-feature-flags
    Add desired feature flags to the end of the line above, space separated
Preview Environment / Integration Tests
  • /werft with-local-preview
    If enabled this will build install/preview
  • /werft with-preview
  • /werft with-large-vm
  • /werft with-gce-vm
    If enabled this will create the environment on GCE infra
  • with-integration-tests=all
    Valid options are all, workspace, webapp, ide, jetbrains, vscode, ssh. If enabled, with-preview and with-large-vm will be enabled.
  • with-monitoring

/hold

@@ -138,6 +138,10 @@ export class GitpodHostUrl {
return this.url.toString();
}

toRelative(): string {
Copy link
Member Author

Choose a reason for hiding this comment

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

This is needed because the <Link>s do not support full-blown URLs, just relative ones.

@filiptronicek
Copy link
Member Author

In the future, we also need to take a look into how we approach variant combinations: we use danger.secondary quite a bit, and I'm not sure whether that naming convention is something we want to keep with Podkit.
cc @selfcontained

@roboquat roboquat added size/L and removed size/M labels Nov 4, 2023
@filiptronicek
Copy link
Member Author

Succeeded by #19097 :shipit:

@filiptronicek filiptronicek deleted the ft/button-migrations branch January 24, 2024 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants