Skip to content

Commit

Permalink
Merge pull request #726 from jembi/fix/CU-86c0h813z-channels_action_menu
Browse files Browse the repository at this point in the history
fix: set font weight to bold.
  • Loading branch information
drizzentic authored Jan 29, 2025
2 parents c0dc9ad + 848d7d2 commit c9ff101
Show file tree
Hide file tree
Showing 27 changed files with 1,365 additions and 1,263 deletions.
45 changes: 28 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions packages/channels-app/src/screens/steps/BasicInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
Checkbox,
Divider,
FormControlLabel,
FormHelperText,
Grid,
IconButton,
Paper,
Expand Down Expand Up @@ -98,6 +99,7 @@ export function BasicInfo(props: {
: 'Choose a short but descriptive name.'
}
/>
<FormHelperText>Choose a short but descriptive name</FormHelperText>
</Grid>

<Grid item xs={12}>
Expand Down Expand Up @@ -164,6 +166,9 @@ export function BasicInfo(props: {
setChannel({...channel, description: e.target.value})
}
/>
<FormHelperText>
Help other users understand this channel
</FormHelperText>
</Grid>
<Grid item xs={12}>
<Typography variant="h6">Channel Type</Typography>
Expand Down
9 changes: 9 additions & 0 deletions packages/channels-app/src/screens/steps/RequestMatching.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
Checkbox,
Divider,
FormControlLabel,
FormHelperText,
FormLabel,
Grid,
IconButton,
Expand Down Expand Up @@ -102,6 +103,9 @@ export function RequestMatching(props: {
: undefined
}
/>
<FormHelperText>
Which URL patterns will match this channel?
</FormHelperText>
</Grid>

<Grid item xs={12}>
Expand Down Expand Up @@ -173,6 +177,11 @@ export function RequestMatching(props: {
setChannel({...channel, priority: Number(e.target.value)})
}
/>
<FormHelperText>
Transactions matched to multiple channels go to the highest
channel. Priority 1 is highest; higher numbers are lower
priority.
</FormHelperText>
</Grid>
<Grid item xs={12} style={{marginBottom: '20px'}}>
<Typography variant="h6">
Expand Down
50 changes: 24 additions & 26 deletions packages/channels-app/src/screens/steps/routes/ChannelRoute.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
import {
Box,
Button,
Checkbox,
Divider,
FormControlLabel,
FormHelperText,
Grid,
Radio,
RadioGroup,
Switch,
TextField,
Typography
} from '@mui/material'
import {makeStyles} from '@mui/styles'
import React from 'react'
import {ChannelRoute as ChannelRouteDef, ChannelRouteType} from '../../../types'

Expand Down Expand Up @@ -45,7 +44,9 @@ export function ChannelRoute(props: {

<Grid spacing={1} container sx={{pt: '10px'}}>
<Grid item xs={12}>
<Typography variant="h6">Essential Details</Typography>
<Typography sx={{fontWeight: 'bold'}} variant="h6">
Essential Details
</Typography>
</Grid>

<Grid item xs={12}>
Expand All @@ -54,6 +55,7 @@ export function ChannelRoute(props: {
variant="outlined"
fullWidth
margin="normal"
size="small"
value={route.name}
onChange={e => {
setFormIsTouched(true)
Expand All @@ -77,6 +79,7 @@ export function ChannelRoute(props: {
label="Host"
variant="outlined"
fullWidth
size="small"
margin="normal"
value={route.host}
onChange={e => setRoute({...route, host: e.target.value})}
Expand All @@ -87,6 +90,7 @@ export function ChannelRoute(props: {
label="Port"
variant="outlined"
fullWidth
size="small"
type="number"
margin="normal"
value={route.port}
Expand All @@ -105,6 +109,7 @@ export function ChannelRoute(props: {
label="Route Path"
variant="outlined"
fullWidth
size="small"
margin="normal"
value={route.path}
onChange={e => setRoute({...route, path: e.target.value})}
Expand All @@ -115,6 +120,7 @@ export function ChannelRoute(props: {
label="Route Path Transform"
variant="outlined"
fullWidth
size="small"
margin="normal"
value={route.pathTransform}
onChange={e =>
Expand All @@ -132,6 +138,7 @@ export function ChannelRoute(props: {
label="Basic Authentication Username"
variant="outlined"
fullWidth
size="small"
margin="normal"
value={route.username}
onChange={e =>
Expand All @@ -146,6 +153,7 @@ export function ChannelRoute(props: {
fullWidth
type="password"
margin="normal"
size="small"
value={route.password}
onChange={e =>
setRoute({...route, password: e.target.value})
Expand All @@ -166,6 +174,7 @@ export function ChannelRoute(props: {
label="Client ID"
variant="outlined"
fullWidth
size="small"
margin="normal"
value={route.kafkaClientId}
onChange={e =>
Expand All @@ -178,6 +187,7 @@ export function ChannelRoute(props: {
label="Topic Name"
variant="outlined"
fullWidth
size="small"
margin="normal"
value={route.kafkaTopic}
onChange={e =>
Expand All @@ -193,7 +203,7 @@ export function ChannelRoute(props: {
<Grid item xs={12}>
<FormControlLabel
control={
<Switch
<Checkbox
checked={route.status === 'enabled'}
onChange={e =>
setRoute({
Expand All @@ -205,13 +215,12 @@ export function ChannelRoute(props: {
}
label="Enable Route"
/>
<FormHelperText style={{marginLeft: '45px'}}>
Toggle on to enable this route.
</FormHelperText>
</Grid>

<Grid item xs={12}>
<Typography variant="h6">Route Type</Typography>
<Typography sx={{fontWeight: 'bold'}} variant="h6">
Route Type
</Typography>
<RadioGroup
style={{paddingLeft: '10px'}}
defaultValue="http"
Expand All @@ -230,7 +239,9 @@ export function ChannelRoute(props: {
</Grid>

<Grid item xs={12}>
<Typography variant="h6">Settings</Typography>
<Typography sx={{fontWeight: 'bold'}} variant="h6">
Settings
</Typography>
<FormHelperText>Choose all that apply.</FormHelperText>
</Grid>

Expand All @@ -239,7 +250,7 @@ export function ChannelRoute(props: {
<Grid item xs={12}>
<FormControlLabel
control={
<Switch
<Checkbox
checked={route.primary}
onChange={e =>
setRoute({...route, primary: e.target.checked})
Expand All @@ -248,14 +259,11 @@ export function ChannelRoute(props: {
}
label="Primary Route?"
/>
<FormHelperText style={{marginLeft: '45px'}}>
Toggle on if this is the primary route.
</FormHelperText>
</Grid>
<Grid item xs={12}>
<FormControlLabel
control={
<Switch
<Checkbox
checked={route.waitPrimaryResponse}
onChange={e =>
setRoute({...route, waitPrimaryResponse: e.target.checked})
Expand All @@ -264,33 +272,26 @@ export function ChannelRoute(props: {
}
label="Wait for Primary Response?"
/>
<FormHelperText style={{marginLeft: '45px'}}>
Toggle on to wait for the response from the primary route before
proceeding.
</FormHelperText>
</Grid>
</React.Fragment>
)}

<Grid item xs={12}>
<FormControlLabel
control={
<Switch
<Checkbox
checked={route.secured}
onChange={e => setRoute({...route, secured: e.target.checked})}
/>
}
label="Secured Route?"
/>
<FormHelperText style={{marginLeft: '45px'}}>
Toggle on if the route is secured. Uses default certificate authority.
</FormHelperText>
</Grid>

<Grid item xs={12}>
<FormControlLabel
control={
<Switch
<Checkbox
checked={route.forwardAuthHeader}
onChange={e =>
setRoute({
Expand All @@ -302,9 +303,6 @@ export function ChannelRoute(props: {
}
label="Forward Auth Header?"
/>
<FormHelperText style={{marginLeft: '45px'}}>
Toggle on to foward the existing authorization header
</FormHelperText>
</Grid>

<Divider sx={{pt: '10px'}} />
Expand Down
Loading

0 comments on commit c9ff101

Please sign in to comment.