refactor: rename ManagedEnvironment context badge to Environment context
Some checks failed
PR Fast Feedback / fast-feedback (pull_request) Failing after 1m0s
Some checks failed
PR Fast Feedback / fast-feedback (pull_request) Failing after 1m0s
This commit is contained in:
parent
dcff46a261
commit
a64563c1b1
@ -948,7 +948,7 @@ private function operationsEntry(
|
||||
targetKind: $rule->targetType,
|
||||
priority: $rule->priority,
|
||||
actionLabel: $this->labels->actionLabel($rule->relationKey),
|
||||
contextBadge: 'ManagedEnvironment context',
|
||||
contextBadge: 'Environment context',
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@ -60,7 +60,7 @@ public function resolve(ReferenceDescriptor $descriptor): ResolvedReference
|
||||
targetKind: ReferenceClass::OperationRun->value,
|
||||
url: OperationRunLinks::tenantlessView($run, $navigationContext),
|
||||
actionLabel: OperationRunLinks::openLabel(),
|
||||
contextBadge: $run->managed_environment_id ? 'ManagedEnvironment context' : 'Workspace',
|
||||
contextBadge: $run->managed_environment_id ? 'Environment context' : 'Workspace',
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@ -56,7 +56,7 @@
|
||||
'linkTarget' => [
|
||||
'url' => '/admin/operations/189',
|
||||
'actionLabel' => 'Open operation',
|
||||
'contextBadge' => 'ManagedEnvironment context',
|
||||
'contextBadge' => 'Environment context',
|
||||
],
|
||||
'technicalDetail' => [
|
||||
'displayId' => '189',
|
||||
@ -81,7 +81,7 @@
|
||||
],
|
||||
);
|
||||
|
||||
$referenceBadgePosition = strpos($html, 'ManagedEnvironment context');
|
||||
$referenceBadgePosition = strpos($html, 'Environment context');
|
||||
$referenceActionPosition = strpos($html, 'Open operation');
|
||||
$fallbackBadgePosition = strpos($html, 'Workspace context');
|
||||
$fallbackActionPosition = strpos($html, 'Inspect operations');
|
||||
|
||||
@ -33,7 +33,7 @@
|
||||
targetKind: ReferenceClass::OperationRun->value,
|
||||
url: '/admin/operations/44',
|
||||
actionLabel: 'Open operation',
|
||||
contextBadge: 'ManagedEnvironment context',
|
||||
contextBadge: 'Environment context',
|
||||
),
|
||||
technicalDetail: ReferenceTechnicalDetail::forIdentifier('44'),
|
||||
),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user