From 33af4cd7ea3439826cd7f6a44341f6525547cf94 Mon Sep 17 00:00:00 2001
From: lisbet-alvarez <107949262+lisbet-alvarez@users.noreply.github.com>
Date: Thu, 6 Apr 2023 10:45:19 -0700
Subject: [PATCH] Icu 8801 update settings icon to link in target edit screen
(#188)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* refactor: 💡 update settings icon to link in target edit screen
* style: 💄 whitespace
✅ Closes: ICU-8801
* test: 💍 remove unnecessary a11yAudit() check
* test: 💍 fix test
* refactor: 💡 fix translation
* refactor: 💡 settings link shouldn't be visible under button
---
addons/core/translations/resources/en-us.yaml | 1 +
.../components/link-list-panel/item/index.hbs | 2 +-
.../scopes/scope/storage-buckets/new.js | 2 +-
ui/admin/app/styles/app.scss | 24 ++++---------------
.../scopes/scope/targets/target/index.hbs | 19 +++++++--------
.../tests/acceptance/targets/read-test.js | 22 +++++++++++------
.../components/link-list-panel/index-test.js | 2 +-
7 files changed, 32 insertions(+), 40 deletions(-)
diff --git a/addons/core/translations/resources/en-us.yaml b/addons/core/translations/resources/en-us.yaml
index c63974fe8..4396ac2dc 100644
--- a/addons/core/translations/resources/en-us.yaml
+++ b/addons/core/translations/resources/en-us.yaml
@@ -408,6 +408,7 @@ target:
sidebar:
label: Session Recording
help: Record SSH sessions on this target and save them to an Amazon S3 bucket.
+ link: Session Recording settings
questions:
delete-host-sources:
title: Remove associated host sources?
diff --git a/ui/admin/app/components/link-list-panel/item/index.hbs b/ui/admin/app/components/link-list-panel/item/index.hbs
index 898cf91e3..c2eb34a6a 100644
--- a/ui/admin/app/components/link-list-panel/item/index.hbs
+++ b/ui/admin/app/components/link-list-panel/item/index.hbs
@@ -10,7 +10,7 @@
{{#if @route}}
-
+
{{/if}}
\ No newline at end of file
diff --git a/ui/admin/app/routes/scopes/scope/storage-buckets/new.js b/ui/admin/app/routes/scopes/scope/storage-buckets/new.js
index 8eeb7bce6..080365109 100644
--- a/ui/admin/app/routes/scopes/scope/storage-buckets/new.js
+++ b/ui/admin/app/routes/scopes/scope/storage-buckets/new.js
@@ -22,7 +22,7 @@ export default class ScopesScopeStorageBucketsNewRoute extends Route {
* @return {StorageBucket}
*/
model() {
- const scopeModel = this.modelFor('scopes.scope');
+ const scopeModel = this.store.peekRecord('scope', 'global');
const record = this.store.createRecord('storage-bucket', {
type: TYPE_STORAGE_BUCKET_PLUGIN,
compositeType: TYPE_STORAGE_BUCKET_PLUGIN_AWS_S3,
diff --git a/ui/admin/app/styles/app.scss b/ui/admin/app/styles/app.scss
index 250f533e5..8068f309e 100644
--- a/ui/admin/app/styles/app.scss
+++ b/ui/admin/app/styles/app.scss
@@ -660,23 +660,15 @@
// target sidebar
.target-sidebar {
- .title-wrapper {
- display: flex;
- justify-content: space-between;
- align-items: baseline;
-
- .hds-button {
- box-shadow: none;
- border: none;
- background-color: transparent;
- }
- }
-
.description {
color: var(--token-form-helper-text-color);
font-weight: var(--token-typography-font-weight-normal);
font-size: var(--token-typography-body-200-font-size);
}
+
+ .hds-link-standalone {
+ margin-top: 1rem;
+ }
}
.link-list-item {
@@ -698,15 +690,9 @@
margin-bottom: 0.25rem;
}
- .flight-icon-chevron-right {
+ .flight-icon-arrow-right {
color: var(--token-color-foreground-faint);
}
-
- .hds-button {
- box-shadow: none;
- border: none;
- background-color: transparent;
- }
}
.key-value-list {
diff --git a/ui/admin/app/templates/scopes/scope/targets/target/index.hbs b/ui/admin/app/templates/scopes/scope/targets/target/index.hbs
index fc3152c1a..96d43b530 100644
--- a/ui/admin/app/templates/scopes/scope/targets/target/index.hbs
+++ b/ui/admin/app/templates/scopes/scope/targets/target/index.hbs
@@ -38,16 +38,7 @@
}}