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,
|
targetKind: $rule->targetType,
|
||||||
priority: $rule->priority,
|
priority: $rule->priority,
|
||||||
actionLabel: $this->labels->actionLabel($rule->relationKey),
|
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,
|
targetKind: ReferenceClass::OperationRun->value,
|
||||||
url: OperationRunLinks::tenantlessView($run, $navigationContext),
|
url: OperationRunLinks::tenantlessView($run, $navigationContext),
|
||||||
actionLabel: OperationRunLinks::openLabel(),
|
actionLabel: OperationRunLinks::openLabel(),
|
||||||
contextBadge: $run->managed_environment_id ? 'ManagedEnvironment context' : 'Workspace',
|
contextBadge: $run->managed_environment_id ? 'Environment context' : 'Workspace',
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -56,7 +56,7 @@
|
|||||||
'linkTarget' => [
|
'linkTarget' => [
|
||||||
'url' => '/admin/operations/189',
|
'url' => '/admin/operations/189',
|
||||||
'actionLabel' => 'Open operation',
|
'actionLabel' => 'Open operation',
|
||||||
'contextBadge' => 'ManagedEnvironment context',
|
'contextBadge' => 'Environment context',
|
||||||
],
|
],
|
||||||
'technicalDetail' => [
|
'technicalDetail' => [
|
||||||
'displayId' => '189',
|
'displayId' => '189',
|
||||||
@ -81,7 +81,7 @@
|
|||||||
],
|
],
|
||||||
);
|
);
|
||||||
|
|
||||||
$referenceBadgePosition = strpos($html, 'ManagedEnvironment context');
|
$referenceBadgePosition = strpos($html, 'Environment context');
|
||||||
$referenceActionPosition = strpos($html, 'Open operation');
|
$referenceActionPosition = strpos($html, 'Open operation');
|
||||||
$fallbackBadgePosition = strpos($html, 'Workspace context');
|
$fallbackBadgePosition = strpos($html, 'Workspace context');
|
||||||
$fallbackActionPosition = strpos($html, 'Inspect operations');
|
$fallbackActionPosition = strpos($html, 'Inspect operations');
|
||||||
|
|||||||
@ -33,7 +33,7 @@
|
|||||||
targetKind: ReferenceClass::OperationRun->value,
|
targetKind: ReferenceClass::OperationRun->value,
|
||||||
url: '/admin/operations/44',
|
url: '/admin/operations/44',
|
||||||
actionLabel: 'Open operation',
|
actionLabel: 'Open operation',
|
||||||
contextBadge: 'ManagedEnvironment context',
|
contextBadge: 'Environment context',
|
||||||
),
|
),
|
||||||
technicalDetail: ReferenceTechnicalDetail::forIdentifier('44'),
|
technicalDetail: ReferenceTechnicalDetail::forIdentifier('44'),
|
||||||
),
|
),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user