-
Notifications
You must be signed in to change notification settings - Fork 1
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
note added for public and private environmets #119
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ import { useReload } from '~/root/lib/client/helpers/reloader'; | |
import Wrapper from '~/console/components/wrapper'; | ||
import { Checkbox } from '~/components/atoms/checkbox'; | ||
import { InfoLabel } from '~/console/components/commons'; | ||
import Banner from '~/components/molecule/banner'; | ||
import { IEnvironmentContext } from '../../_layout'; | ||
|
||
const EnvironmentSettingsGeneral = () => { | ||
|
@@ -129,35 +130,23 @@ const EnvironmentSettingsGeneral = () => { | |
value={values.displayName} | ||
onChange={handleChange('displayName')} | ||
/> | ||
<div className="flex flex-row items-center gap-lg"> | ||
<Checkbox | ||
label="Public" | ||
checked={values.environmentRoutingMode} | ||
onChange={(checked) => { | ||
handleChange('environmentRoutingMode')(dummyEvent(checked)); | ||
}} | ||
/> | ||
<InfoLabel | ||
info={ | ||
<div className="flex flex-col gap-2xl"> | ||
<div> | ||
<div className="bodyMd-medium">Public</div> | ||
<p> | ||
Public environments will expose services to the public | ||
internet. | ||
</p> | ||
</div> | ||
<div> | ||
<div className="bodyMd-medium">Private</div> | ||
<p> | ||
Private environments will be accessible when Kloudlite VPN | ||
is active. | ||
</p> | ||
</div> | ||
</div> | ||
} | ||
/> | ||
</div> | ||
<Checkbox | ||
label="Public" | ||
checked={values.environmentRoutingMode} | ||
onChange={(checked) => { | ||
handleChange('environmentRoutingMode')(dummyEvent(checked)); | ||
}} | ||
/> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. suggestion (llm): Replacing the detailed InfoLabel with a Banner for displaying environment access information simplifies the UI. However, ensure that the condensed information in the Banner is sufficient for users to understand the implications of public vs. private environments without the need for additional context. |
||
<Banner | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. question (llm): I noticed the introduction of a |
||
type="info" | ||
body={ | ||
<span> | ||
Public environments will expose services to the public internet. | ||
Private environments will be accessible when Kloudlite VPN is | ||
active. | ||
</span> | ||
} | ||
/> | ||
<div className="flex flex-row items-center gap-3xl"> | ||
<div className="flex-1"> | ||
<TextInput | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ import useForm, { dummyEvent } from '~/root/lib/client/hooks/use-form'; | |
import Yup from '~/root/lib/server/helpers/yup'; | ||
import { handleError } from '~/root/lib/utils/common'; | ||
import { InfoLabel } from '~/console/components/commons'; | ||
import Banner from '~/components/molecule/banner'; | ||
|
||
type IDialog = IDialogBase<ExtractNodeType<IEnvironments>>; | ||
|
||
|
@@ -87,35 +88,23 @@ const Root = (props: IDialog) => { | |
handleChange={handleChange} | ||
nameErrorLabel="isNameError" | ||
/> | ||
<div className="flex flex-row items-center gap-lg"> | ||
<Checkbox | ||
label="Public" | ||
checked={values.environmentRoutingMode} | ||
onChange={(val) => { | ||
handleChange('environmentRoutingMode')(dummyEvent(val)); | ||
}} | ||
/> | ||
<InfoLabel | ||
info={ | ||
<div className="flex flex-col gap-2xl"> | ||
<div> | ||
<div className="bodyMd-medium">Public</div> | ||
<p> | ||
Public environments will expose services to the public | ||
internet. | ||
</p> | ||
</div> | ||
<div> | ||
<div className="bodyMd-medium">Private</div> | ||
<p> | ||
Private environments will be accessible when Kloudlite VPN | ||
is active. | ||
</p> | ||
</div> | ||
</div> | ||
} | ||
/> | ||
</div> | ||
<Checkbox | ||
label="Public" | ||
checked={values.environmentRoutingMode} | ||
onChange={(val) => { | ||
handleChange('environmentRoutingMode')(dummyEvent(val)); | ||
}} | ||
/> | ||
<Banner | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. question (llm): The replacement of the detailed |
||
type="info" | ||
body={ | ||
<span> | ||
Public environments will expose services to the public internet. | ||
Private environments will be accessible when Kloudlite VPN is | ||
active. | ||
</span> | ||
} | ||
/> | ||
</div> | ||
</Popup.Content> | ||
<Popup.Footer> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question (llm): Given the introduction of the
Banner
component to convey information about the public and private environment settings in the new scope creation flow, it's essential to validate that this information is presented correctly to the user. Testing for the presence and correctness of theBanner
content in this context would be beneficial. If such tests are not yet implemented, I suggest adding them to ensure the feature's integrity and to prevent any misinformation.