Skip to content

Conversation

@rapsealk
Copy link
Member

@rapsealk rapsealk commented Nov 7, 2025

resolves #4605 (FR-1662)

Before After
image image

This pull request updates the UI component for the "Open to Public" option on the ServiceLauncherPageContent form. The main change is replacing the Switch component with a Checkbox, and updating the logic to handle its state within the form.

UI Component Changes:

  • Replaced the Switch component with a Checkbox for the "Open to Public" field, updating the import and usage in ServiceLauncherPageContent.tsx. [1] [2]
  • Updated the form logic to use a render function for the "Open to Public" field, allowing direct control of the checked state and value changes with getFieldValue and setFieldValue.

Checklist: (if applicable)

  • Documentation
  • Minium required manager version
  • Specific setting for review (eg., KB link, endpoint or how to setup)
  • Minimum requirements to check during review
  • Test case(s) to demonstrate the difference of before/after

@rapsealk rapsealk requested review from Copilot and yomybaby and removed request for Copilot November 7, 2025 17:03
@graphite-app
Copy link

graphite-app bot commented Nov 7, 2025

How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • flow:merge-queue - adds this PR to the back of the merge queue
  • flow:hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has required the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

@github-actions github-actions bot added the size:S 10~30 LoC label Nov 7, 2025
@github-actions
Copy link

github-actions bot commented Nov 7, 2025

Coverage report for ./react

St.
Category Percentage Covered / Total
🔴 Statements
4.67% (-0.02% 🔻)
531/11377
🔴 Branches
3.77% (-0.05% 🔻)
302/8016
🔴 Functions
2.89% (-0.01% 🔻)
102/3526
🔴 Lines
4.61% (-0.03% 🔻)
513/11120
Show new covered files 🐣
St.
File Statements Branches Functions Lines
🔴
... / ImportNotebook.tsx
0% 100% 0% 0%
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🟢
... / graphql-transformer.ts
82.26% (-4.92% 🔻)
79.41% (-5.2% 🔻)
71.43% (-3.57% 🔻)
83.61% (-4.71% 🔻)
🔴 helper/index.tsx
42.93% (-2.23% 🔻)
40.12% (-0.73% 🔻)
26.53% (-1.13% 🔻)
43.5% (-2.01% 🔻)

Test suite run success

121 tests passing in 14 suites.

Report generated by 🧪jest coverage report action from 9ee45d1

@rapsealk rapsealk requested a review from nowgnuesLee November 14, 2025 05:46
Co-authored-by: Seungwon Lee <seungwon@lablup.com>
Copilot AI review requested due to automatic review settings November 14, 2025 08:08
@rapsealk rapsealk requested a review from nowgnuesLee November 14, 2025 08:09
Copilot finished reviewing on behalf of rapsealk November 14, 2025 08:10
Copy link
Contributor

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 replaces the Switch component with a Checkbox component for the "Open to Public" option in the model service launcher form, improving the UI/UX for this form field.

Key Changes

  • Replaced Switch with Checkbox component in the service launcher form
  • Updated imports to include Checkbox and remove Switch from antd imports
  • Moved the label text from the Form.Item label prop to become children of the Checkbox component

Copy link
Contributor

@nowgnuesLee nowgnuesLee left a comment

Choose a reason for hiding this comment

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

could you apply the copilot review? i think it makes sense.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@rapsealk rapsealk requested a review from nowgnuesLee November 14, 2025 10:28
Copy link
Contributor

@nowgnuesLee nowgnuesLee left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@yomybaby yomybaby left a comment

Choose a reason for hiding this comment

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

LGTM

@yomybaby yomybaby merged commit e29f490 into main Nov 17, 2025
11 checks passed
@yomybaby yomybaby deleted the feature/FR-1662-open-to-public-checkbox branch November 17, 2025 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S 10~30 LoC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use checkbox for openToPublic option in model service form

4 participants