Skip to content

Commit

Permalink
build(deps-dev): bump prettier from 3.0.3 to 3.3.3 (#1361)
Browse files Browse the repository at this point in the history
* build(deps-dev): bump prettier from 3.0.3 to 3.3.3

Bumps [prettier](https://github.com/prettier/prettier) from 3.0.3 to 3.3.3.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](prettier/prettier@3.0.3...3.3.3)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* apply prettier

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Andrew Azores <[email protected]>
  • Loading branch information
dependabot[bot] and andrewazores authored Sep 17, 2024
1 parent e0d0008 commit 9db10b5
Show file tree
Hide file tree
Showing 11 changed files with 52 additions and 59 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"miragejs": "^0.1.48",
"mock-socket": "^9.3.1",
"npm-run-all": "^4.1.5",
"prettier": "^3.0.3",
"prettier": "^3.3.3",
"prop-types": "^15.7.2",
"raw-loader": "^4.0.2",
"react-test-renderer": "^17.0.2",
Expand Down
7 changes: 5 additions & 2 deletions src/app/Archives/AllTargetsArchivedRecordingsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,11 @@ const tableColumns: TableColumn[] = [
return target.alias === target.connectUrl || !target.alias
? `${target.connectUrl}`
: t
? t('AllTargetsArchivedRecordingsTable.TARGET_DISPLAY', { alias: target.alias, connectUrl: target.connectUrl })
: `${target.alias} (${target.connectUrl})`;
? t('AllTargetsArchivedRecordingsTable.TARGET_DISPLAY', {
alias: target.alias,
connectUrl: target.connectUrl,
})
: `${target.alias} (${target.connectUrl})`;
},
sortable: true,
width: 80,
Expand Down
14 changes: 7 additions & 7 deletions src/app/CreateRecording/CustomRecordingForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -373,14 +373,14 @@ export const CustomRecordingForm: React.FC = () => {
nameValid: !name
? ValidatedOptions.default
: isRecordingNameValid(name)
? ValidatedOptions.success
: ValidatedOptions.error,
? ValidatedOptions.success
: ValidatedOptions.error,
template,
restart: restart ?? false,
continuous: continuous || false,
labels: labels ?? [],
labelsValid: ValidatedOptions.default, // RecordingLabelFields component handles validating
duration: continuous ? 0 : duration ?? 30,
duration: continuous ? 0 : (duration ?? 30),
durationUnit: durationUnit ?? 1000,
durationValid:
skipDurationCheck || continuous || (duration ?? 30) > 0 ? ValidatedOptions.success : ValidatedOptions.error,
Expand Down Expand Up @@ -479,10 +479,10 @@ export const CustomRecordingForm: React.FC = () => {
{formData.durationValid === ValidatedOptions.error
? 'The Recording duration must be a positive integer.'
: formData.continuous
? 'A continuous recording will never be automatically stopped.'
: formData.archiveOnStop
? 'Time before the Recording is automatically stopped and copied to archive.'
: 'Time before the Recording is automatically stopped.'}
? 'A continuous recording will never be automatically stopped.'
: formData.archiveOnStop
? 'Time before the Recording is automatically stopped and copied to archive.'
: 'Time before the Recording is automatically stopped.'}
</HelperTextItem>
</HelperText>
</FormHelperText>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,9 @@ export const AutomatedAnalysisConfigForm: React.FC<AutomatedAnalysisConfigFormPr
() => !target,
of([]),
context.api
.doGet<EventTemplate[]>(
`targets/${encodeURIComponent(target?.connectUrl || '')}/templates`,
'v1',
undefined,
undefined,
true,
)
.doGet<
EventTemplate[]
>(`targets/${encodeURIComponent(target?.connectUrl || '')}/templates`, 'v1', undefined, undefined, true)
.pipe(first()),
).subscribe({
next: (templates: EventTemplate[]) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,20 @@ export const ClickableAutomatedAnalysisLabel: React.FC<ClickableAutomatedAnalysi
return result.score == AutomatedAnalysisScore.NA_SCORE
? 'grey'
: result.score < AutomatedAnalysisScore.ORANGE_SCORE_THRESHOLD
? 'green'
: result.score < AutomatedAnalysisScore.RED_SCORE_THRESHOLD
? 'orange'
: 'red';
? 'green'
: result.score < AutomatedAnalysisScore.RED_SCORE_THRESHOLD
? 'orange'
: 'red';
}, [result.score]);

const alertPopoverVariant = React.useMemo(() => {
return result.score == AutomatedAnalysisScore.NA_SCORE
? 'custom'
: result.score < AutomatedAnalysisScore.ORANGE_SCORE_THRESHOLD
? 'success'
: result.score < AutomatedAnalysisScore.RED_SCORE_THRESHOLD
? 'warning'
: 'danger';
? 'success'
: result.score < AutomatedAnalysisScore.RED_SCORE_THRESHOLD
? 'warning'
: 'danger';
}, [result.score]);

const icon = React.useMemo(() => {
Expand Down
22 changes: 9 additions & 13 deletions src/app/Rules/CreateRule.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ export const CreateRuleForm: React.FC<CreateRuleFormProps> = (_props) => {
nameValid: !name
? ValidatedOptions.default
: isRuleNameValid(name)
? ValidatedOptions.success
: ValidatedOptions.error,
? ValidatedOptions.success
: ValidatedOptions.error,
})),
[setFormData],
);
Expand Down Expand Up @@ -274,13 +274,9 @@ export const CreateRuleForm: React.FC<CreateRuleFormProps> = (_props) => {
forkJoin(
targets.map((t) =>
context.api
.doGet<EventTemplate[]>(
`targets/${encodeURIComponent(t.connectUrl)}/templates`,
'v1',
undefined,
true,
true,
)
.doGet<
EventTemplate[]
>(`targets/${encodeURIComponent(t.connectUrl)}/templates`, 'v1', undefined, true, true)
.pipe(
catchError((_) => of<EventTemplate[]>([])), // Fail silently
),
Expand Down Expand Up @@ -336,10 +332,10 @@ export const CreateRuleForm: React.FC<CreateRuleFormProps> = (_props) => {
matchExpressionValid: err
? ValidatedOptions.error
: !ts
? ValidatedOptions.default
: ts.length
? ValidatedOptions.success
: ValidatedOptions.warning,
? ValidatedOptions.default
: ts.length
? ValidatedOptions.success
: ValidatedOptions.warning,
}));
matchedTargets.next(ts || []);
}),
Expand Down
8 changes: 4 additions & 4 deletions src/app/SecurityPanel/Credentials/CreateCredentialModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,10 @@ export const AuthForm: React.FC<AuthFormProps> = ({ onDismiss, onPropsSave, prog
err
? ValidatedOptions.error
: !ts
? ValidatedOptions.default
: ts.length
? ValidatedOptions.success
: ValidatedOptions.warning,
? ValidatedOptions.default
: ts.length
? ValidatedOptions.success
: ValidatedOptions.warning,
);
}),
);
Expand Down
4 changes: 2 additions & 2 deletions src/app/SecurityPanel/Credentials/CredentialTestTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,8 @@ export const CredentialTestRow: React.FC<CredentialTestRowProps> = ({
state: !err
? CredentialTestState.VALID
: err.severeLevel === ValidatedOptions.warning
? CredentialTestState.NA
: CredentialTestState.INVALID,
? CredentialTestState.NA
: CredentialTestState.INVALID,
});
}),
);
Expand Down
14 changes: 7 additions & 7 deletions src/app/Topology/Actions/CreateTarget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ export const CreateTarget: React.FC<CreateTargetProps> = ({ prefilled }) => {
connectUrl === ''
? ValidatedOptions.default
: isValidTargetConnectURL(connectUrl)
? ValidatedOptions.success
: ValidatedOptions.error,
? ValidatedOptions.success
: ValidatedOptions.error,
}));
resetTestState();
},
Expand Down Expand Up @@ -461,11 +461,11 @@ export const SampleNodeDonut: React.FC<SampleNodeDonutProps> = ({
message: 'Target definition is valid.',
}
: validation.option === ValidatedOptions.error
? {
icon: <ExclamationCircleIcon color="var(--pf-global--danger-color--100)" />,
message: validation.errorMessage,
}
: { icon: <PendingIcon />, message: '' };
? {
icon: <ExclamationCircleIcon color="var(--pf-global--danger-color--100)" />,
message: validation.errorMessage,
}
: { icon: <PendingIcon />, message: '' };
}, [validation, testing]);

return (
Expand Down
4 changes: 1 addition & 3 deletions src/app/Topology/Entity/EntityDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,7 @@ const MBeanDetails: React.FC<{
helperDescription: 'The time when this JVM process started.',
content:
(mbeanMetrics?.runtime?.startTime || 0) > 0 ? (
dayjs(mbeanMetrics?.runtime?.startTime)
.tz(dateTimeFormat.timeZone.full)
.format('LLLL')
dayjs(mbeanMetrics?.runtime?.startTime).tz(dateTimeFormat.timeZone.full).format('LLLL')
) : (
<EmptyText text="Unknown start time" />
),
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4389,7 +4389,7 @@ __metadata:
mock-socket: ^9.3.1
nanoid: ^3.3.4
npm-run-all: ^4.1.5
prettier: ^3.0.3
prettier: ^3.3.3
prop-types: ^15.7.2
raw-loader: ^4.0.2
react: ^17.0.2
Expand Down Expand Up @@ -10779,12 +10779,12 @@ __metadata:
languageName: node
linkType: hard

"prettier@npm:^3.0.3":
version: 3.0.3
resolution: "prettier@npm:3.0.3"
"prettier@npm:^3.3.3":
version: 3.3.3
resolution: "prettier@npm:3.3.3"
bin:
prettier: bin/prettier.cjs
checksum: e10b9af02b281f6c617362ebd2571b1d7fc9fb8a3bd17e371754428cda992e5e8d8b7a046e8f7d3e2da1dcd21aa001e2e3c797402ebb6111b5cd19609dd228e0
checksum: bc8604354805acfdde6106852d14b045bb20827ad76a5ffc2455b71a8257f94de93f17f14e463fe844808d2ccc87248364a5691488a3304f1031326e62d9276e
languageName: node
linkType: hard

Expand Down

0 comments on commit 9db10b5

Please sign in to comment.