Skip to content

Migrate checkbox component #17171

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 4 commits into from
Apr 12, 2023
Merged

Conversation

selfcontained
Copy link
Contributor

@selfcontained selfcontained commented Apr 11, 2023

Description

This is a PR to facilitate @Devansu-Yadav's contributions in #16813

I made a couple changes on top of the ones in the linked PR.

  • To avoid needing a CheckboxInputContainer wrapper at times, I reworked the CheckboxInputField into a more explicit CheckboxListField, and CheckboxInput into CheckboxInputField. This means that in most cases, you can use <CheckboxInputField/> and have the proper form styles/spacing without needing to add any wrapper components.
  • Removed the un-needed value props passed in a few spots.

Related Issue(s)

Fixes WEB-115, #16768

How to test

Preview Env: https://bmh-devans98e355c547.preview.gitpod-dev.com/workspaces

These changes were tested previously in #16813 - but can also be tested in the preview environment by visiting different locations updated in the PR and using checkbox inputs to make sure they work.

Release Notes

NONE

Documentation

Build Options:

  • /werft with-werft
    Run the build with werft instead of GHA
  • leeway-no-cache
  • /werft no-test
    Run Leeway with --dont-test
Publish Options
  • /werft publish-to-npm
  • /werft publish-to-jb-marketplace
Installer Options
  • with-dedicated-emulation
  • with-ws-manager-mk2
  • workspace-feature-flags
    Add desired feature flags to the end of the line above, space separated

Preview Environment Options:

  • /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

/hold

Devansu-Yadav and others added 2 commits April 11, 2023 16:30
* [dashboard] migrate to CheckBoxInput (#16768)

* [dashboard] remove CheckBox comp usage

* [dashboard] remove `CheckBox` on team settings

* [dashboard] remove border on checkbox click state

* [dashboard] refactor code for `CheckboxInput`
@werft-gitpod-dev-com
Copy link

started the job as gitpod-build-bmh-devansu-migrate-checkbox-component.3 because the annotations in the pull request description changed
(with .werft/ from main)

@selfcontained selfcontained marked this pull request as ready for review April 12, 2023 00:46
@selfcontained selfcontained requested a review from a team April 12, 2023 00:46
@selfcontained selfcontained requested a review from gtsiolis as a code owner April 12, 2023 00:46
@github-actions github-actions bot added the team: webapp Issue belongs to the WebApp team label Apr 12, 2023
@gtsiolis
Copy link
Contributor

gtsiolis commented Apr 12, 2023

Looking at this now! 👀

Referenced also the original issue (#16768) in the PR description above.

Copy link
Contributor

@gtsiolis gtsiolis left a comment

Choose a reason for hiding this comment

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

UX LGTM. 🌮 🌮

Thanks for opening this PR @selfcontained to pickup changes from #16813 and unblock from merging this.

Removing hold.

LET'S DO THIS! 🏀

/unhold

@roboquat roboquat merged commit 119770e into main Apr 12, 2023
@roboquat roboquat deleted the bmh/devansu-migrate-checkbox-component branch April 12, 2023 10:44
@roboquat roboquat added deployed: webapp Meta team change is running in production deployed Change is completely running in production labels Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed: webapp Meta team change is running in production deployed Change is completely running in production release-note-none size/XL team: webapp Issue belongs to the WebApp team
Projects
Status: In Validation
Development

Successfully merging this pull request may close these issues.

5 participants