Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions libs/i18n/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -953,8 +953,8 @@
"Enrollment request approval failed": "Enrollment request approval failed",
"Internal task failed": "Internal task failed",
"Internal task permanently failed": "Internal task permanently failed",
"Repository is accessible": "Repository is accessible",
"Repository is inaccessible": "Repository is inaccessible",
"Repository is available": "Repository is available",
"Repository is not available": "Repository is not available",
"Referenced repository was updated": "Referenced repository was updated",
"Fleet specification is valid": "Fleet specification is valid",
"Fleet specification is invalid": "Fleet specification is invalid",
Expand All @@ -969,8 +969,8 @@
"Resourcesync synchronization failed": "Resourcesync synchronization failed",
"Resourcesync parsed successfully": "Resourcesync parsed successfully",
"Resourcesync parsing failed": "Resourcesync parsing failed",
"Resourcesync is accessible": "Resourcesync is accessible",
"Resourcesync is not accessible": "Resourcesync is not accessible",
"Resourcesync is available": "Resourcesync is available",
"Resourcesync is not available": "Resourcesync is not available",
"Resourcesync new commit detected": "Resourcesync new commit detected",
"Dependency sync probe failed": "Dependency sync probe failed",
"Dependency change detected": "Dependency change detected",
Expand Down Expand Up @@ -1076,8 +1076,7 @@
"File must be an image under 256 KB.": "File must be an image under 256 KB.",
"Resolved": "Resolved",
"Name must be unique": "Name must be unique",
"Accessible": "Accessible",
"Not accessible": "Not accessible",
"Available": "Available",
"Missing repository": "Missing repository",
"Repository": "Repository",
"Select a repository": "Select a repository",
Expand Down Expand Up @@ -1337,7 +1336,7 @@
"The image build \"{{buildName}}\" was created successfully, however the following export(s) failed:": "The image build \"{{buildName}}\" was created successfully, however the following export(s) failed:",
"Promotion name": "Promotion name",
"Catalog item": "Catalog item",
"Checking image accessibility": "Checking image accessibility",
"Checking image availability": "Checking image availability",
"Delete image promotion?": "Delete image promotion?",
"<0>{promotion.metadata.name}</0> will be deleted permanently.": "<0>{promotion.metadata.name}</0> will be deleted permanently.",
"The existing catalog item will be unaffected.": "The existing catalog item will be unaffected.",
Expand Down Expand Up @@ -1525,7 +1524,7 @@
"HTTP": "HTTP",
"SSH": "SSH",
"Validation suffix": "Validation suffix",
"Suffix to the repository's base URL used to validate if the HTTP service is accessible.": "Suffix to the repository's base URL used to validate if the HTTP service is accessible.",
"Suffix to the repository's base URL used to validate if the HTTP service is available.": "Suffix to the repository's base URL used to validate if the HTTP service is available.",
"Full validation URL: <1>{`${values.url}${values.validationSuffix || ''}`}</1>": "Full validation URL: <1>{`${values.url}${values.validationSuffix || ''}`}</1>",
"mTLS authentication": "mTLS authentication",
"Client TLS certificate": "Client TLS certificate",
Expand Down
8 changes: 4 additions & 4 deletions libs/ui-components/src/components/Events/useEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ const getEventReasonTitles = (t: TFunction, kindType: string): Record<Event.reas
[Event.reason.INTERNAL_TASK_FAILED]: t('Internal task failed'),
[Event.reason.INTERNAL_TASK_PERMANENTLY_FAILED]: t('Internal task permanently failed'),
// Repository events
[Event.reason.REPOSITORY_ACCESSIBLE]: t('Repository is accessible'),
[Event.reason.REPOSITORY_INACCESSIBLE]: t('Repository is inaccessible'),
[Event.reason.REPOSITORY_ACCESSIBLE]: t('Repository is available'),
[Event.reason.REPOSITORY_INACCESSIBLE]: t('Repository is not available'),
[Event.reason.REFERENCED_REPOSITORY_UPDATED]: t('Referenced repository was updated'),
// Fleet events
[Event.reason.FLEET_VALID]: t('Fleet specification is valid'),
Expand All @@ -109,8 +109,8 @@ const getEventReasonTitles = (t: TFunction, kindType: string): Record<Event.reas
[Event.reason.RESOURCE_SYNC_SYNC_FAILED]: t('Resourcesync synchronization failed'),
[Event.reason.RESOURCE_SYNC_PARSED]: t('Resourcesync parsed successfully'),
[Event.reason.RESOURCE_SYNC_PARSING_FAILED]: t('Resourcesync parsing failed'),
[Event.reason.RESOURCE_SYNC_ACCESSIBLE]: t('Resourcesync is accessible'),
[Event.reason.RESOURCE_SYNC_INACCESSIBLE]: t('Resourcesync is not accessible'),
[Event.reason.RESOURCE_SYNC_ACCESSIBLE]: t('Resourcesync is available'),
[Event.reason.RESOURCE_SYNC_INACCESSIBLE]: t('Resourcesync is not available'),
[Event.reason.RESOURCE_SYNC_COMMIT_DETECTED]: t('Resourcesync new commit detected'),
// Dependency sync events
[Event.reason.DEPENDENCY_SYNC_PROBE_FAILED]: t('Dependency sync probe failed'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ const SourceImageValidation = ({ repository, imageName, imageTag }: SourceImageV
}

if (isLoading) {
return <StatusDisplay item={{ label: t('Checking image accessibility'), level: 'info' }} />;
return <StatusDisplay item={{ label: t('Checking image availability'), level: 'info' }} />;
}

return response?.accessible ? (
<StatusDisplay item={{ label: t('Accessible'), level: 'success' }} />
<StatusDisplay item={{ label: t('Available'), level: 'success' }} />
) : (
<StatusDisplay
item={{ label: t('Not accessible'), level: 'warning' }}
item={{ label: t('Not available'), level: 'warning' }}
message={
response?.errorCode || response?.errorMessage ? `${response?.errorCode}: ${response?.errorMessage}` : undefined
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ const AdvancedSection = () => {
<FormSection>
<FormGroupWithHelperText
label={t('Validation suffix')}
content={t("Suffix to the repository's base URL used to validate if the HTTP service is accessible.")}
content={t("Suffix to the repository's base URL used to validate if the HTTP service is available.")}
>
<TextField
aria-label={t('Validation suffix')}
Expand Down
4 changes: 2 additions & 2 deletions libs/ui-components/src/components/form/RepositorySelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ export const getRepositoryItems = (
let accessText = t('Unknown');
let level: StatusLevel = 'unknown';
if (isAccessible) {
accessText = t('Accessible');
accessText = t('Available');
level = 'success';
} else if (isInaccessible) {
accessText = t('Not accessible');
accessText = t('Not available');
level = 'danger';
}

Expand Down
4 changes: 2 additions & 2 deletions libs/ui-components/src/utils/status/repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ const repositoryStatusLabels = (t: TFunction) => ({
'Not synced': t('Not synced'),
[ConditionType.ResourceSyncResourceParsed]: t('Parsed'),
'Not parsed': t('Not parsed'),
[ConditionType.RepositoryAccessible]: t('Accessible'),
'Not accessible': t('Not accessible'),
[ConditionType.RepositoryAccessible]: t('Available'),
'Not accessible': t('Not available'),
'Sync pending': t('Sync pending'),
});

Expand Down
Loading