1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Support for data-telemetry-title for custom title

Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
This commit is contained in:
Juho Heikka 2022-08-12 11:24:31 +03:00
parent 396d08051f
commit 40be0f37c7
39 changed files with 821 additions and 232 deletions

View File

@ -262,7 +262,7 @@ export class MetricsSettings extends React.Component<MetricsSettingsProps> {
</section>
<section>
<OpenLensButton
<Button
label={this.buttonLabel}
waiting={this.inProgress}
onClick={() => this.save()}

View File

@ -299,11 +299,9 @@ exports[`add-cluster - navigation using application menu when navigating to add
<button
class="Button primary"
disabled=""
type="button"
>
Add clusters
</button>
<div />
</div>
</div>
<div

View File

@ -468,7 +468,6 @@ exports[`force user to update when too long since update was downloaded when app
<button
class="Button primary"
data-testid="update-now-from-must-update-immediately-modal"
type="button"
>
Update

View File

@ -336,6 +336,7 @@ exports[`cluster - order of sidebar items when rendered renders 1`] = `
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-telemetry-title="Tab Overview"
data-testid="tab-link-for-overview"
role="tab"
tabindex="0"
@ -973,6 +974,7 @@ exports[`cluster - order of sidebar items when rendered when parent is expanded
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-telemetry-title="Tab Overview"
data-testid="tab-link-for-overview"
role="tab"
tabindex="0"

View File

@ -305,6 +305,7 @@ exports[`cluster - sidebar and tab navigation for core given core registrations
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-telemetry-title="Tab Overview"
data-testid="tab-link-for-overview"
role="tab"
tabindex="0"
@ -853,6 +854,7 @@ exports[`cluster - sidebar and tab navigation for core given core registrations
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-telemetry-title="Tab Overview"
data-testid="tab-link-for-overview"
role="tab"
tabindex="0"
@ -1423,6 +1425,7 @@ exports[`cluster - sidebar and tab navigation for core given core registrations
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-telemetry-title="Tab Overview"
data-testid="tab-link-for-overview"
role="tab"
tabindex="0"
@ -2872,6 +2875,7 @@ exports[`cluster - sidebar and tab navigation for core given core registrations
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-telemetry-title="Tab Overview"
data-testid="tab-link-for-overview"
role="tab"
tabindex="0"
@ -3420,6 +3424,7 @@ exports[`cluster - sidebar and tab navigation for core given core registrations
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-telemetry-title="Tab Overview"
data-testid="tab-link-for-overview"
role="tab"
tabindex="0"

View File

@ -305,6 +305,7 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-telemetry-title="Tab Overview"
data-testid="tab-link-for-overview"
role="tab"
tabindex="0"
@ -853,6 +854,7 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-telemetry-title="Tab Overview"
data-testid="tab-link-for-overview"
role="tab"
tabindex="0"
@ -1441,6 +1443,7 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-telemetry-title="Tab Overview"
data-testid="tab-link-for-overview"
role="tab"
tabindex="0"
@ -2030,6 +2033,7 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-telemetry-title="Tab Child 1"
data-testid="tab-link-for-some-extension-name-some-child-id"
role="tab"
tabindex="0"
@ -2043,6 +2047,7 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
<div
class="Tab flex gaps align-center"
data-is-active-test="false"
data-telemetry-title="Tab Child 2"
data-testid="tab-link-for-some-extension-name-some-other-child-id"
role="tab"
tabindex="0"
@ -2538,6 +2543,7 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
<div
class="Tab flex gaps align-center"
data-is-active-test="false"
data-telemetry-title="Tab Child 1"
data-testid="tab-link-for-some-extension-name-some-child-id"
role="tab"
tabindex="0"
@ -2551,6 +2557,7 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-telemetry-title="Tab Child 2"
data-testid="tab-link-for-some-extension-name-some-other-child-id"
role="tab"
tabindex="0"
@ -3005,6 +3012,7 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-telemetry-title="Tab Child 1"
data-testid="tab-link-for-some-extension-name-some-child-id"
role="tab"
tabindex="0"
@ -3018,6 +3026,7 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
<div
class="Tab flex gaps align-center"
data-is-active-test="false"
data-telemetry-title="Tab Child 2"
data-testid="tab-link-for-some-extension-name-some-other-child-id"
role="tab"
tabindex="0"
@ -3512,6 +3521,7 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-telemetry-title="Tab Overview"
data-testid="tab-link-for-overview"
role="tab"
tabindex="0"
@ -4060,6 +4070,7 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-telemetry-title="Tab Overview"
data-testid="tab-link-for-overview"
role="tab"
tabindex="0"

View File

@ -275,6 +275,7 @@ exports[`cluster - visibility of sidebar items given kube resource for route is
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-telemetry-title="Tab Overview"
data-testid="tab-link-for-overview"
role="tab"
tabindex="0"
@ -837,6 +838,7 @@ exports[`cluster - visibility of sidebar items given kube resource for route is
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-telemetry-title="Tab Overview"
data-testid="tab-link-for-overview"
role="tab"
tabindex="0"

View File

@ -677,6 +677,7 @@ exports[`disable-cluster-pages-when-cluster-is-not-relevant given extension shou
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-telemetry-title="Tab Overview"
data-testid="tab-link-for-overview"
role="tab"
tabindex="0"
@ -1197,6 +1198,7 @@ exports[`disable-cluster-pages-when-cluster-is-not-relevant given not yet known
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-telemetry-title="Tab Overview"
data-testid="tab-link-for-overview"
role="tab"
tabindex="0"

View File

@ -296,6 +296,7 @@ exports[`disable sidebar items when cluster is not relevant given extension shou
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-telemetry-title="Tab Overview"
data-testid="tab-link-for-overview"
role="tab"
tabindex="0"
@ -816,6 +817,7 @@ exports[`disable sidebar items when cluster is not relevant given extension shou
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-telemetry-title="Tab Overview"
data-testid="tab-link-for-overview"
role="tab"
tabindex="0"
@ -1336,6 +1338,7 @@ exports[`disable sidebar items when cluster is not relevant given not yet known
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-telemetry-title="Tab Overview"
data-testid="tab-link-for-overview"
role="tab"
tabindex="0"

View File

@ -489,7 +489,7 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
>
<button
class="Button add-button primary big round"
type="button"
tooltip="Add Namespace"
>
<i
class="Icon material focusable"
@ -502,9 +502,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
</span>
</i>
</button>
<div>
Add Namespace
</div>
</div>
</div>
</div>
@ -1140,7 +1137,7 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
>
<button
class="Button add-button primary big round"
type="button"
tooltip="Add Namespace"
>
<i
class="Icon material focusable"
@ -1153,9 +1150,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
</span>
</i>
</button>
<div>
Add Namespace
</div>
</div>
</div>
</div>
@ -1796,7 +1790,7 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
>
<button
class="Button add-button primary big round"
type="button"
tooltip="Add Namespace"
>
<i
class="Icon material focusable"
@ -1809,9 +1803,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
</span>
</i>
</button>
<div>
Add Namespace
</div>
</div>
</div>
</div>
@ -2521,7 +2512,7 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
>
<button
class="Button add-button primary big round"
type="button"
tooltip="Add Namespace"
>
<i
class="Icon material focusable"
@ -2534,9 +2525,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
</span>
</i>
</button>
<div>
Add Namespace
</div>
</div>
</div>
</div>
@ -3221,7 +3209,7 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
>
<button
class="Button add-button primary big round"
type="button"
tooltip="Add Namespace"
>
<i
class="Icon material focusable"
@ -3234,9 +3222,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
</span>
</i>
</button>
<div>
Add Namespace
</div>
</div>
</div>
</div>
@ -3993,7 +3978,7 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
>
<button
class="Button add-button primary big round"
type="button"
tooltip="Add Namespace"
>
<i
class="Icon material focusable"
@ -4006,9 +3991,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
</span>
</i>
</button>
<div>
Add Namespace
</div>
</div>
</div>
</div>
@ -4767,7 +4749,7 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
>
<button
class="Button add-button primary big round"
type="button"
tooltip="Add Namespace"
>
<i
class="Icon material focusable"
@ -4780,9 +4762,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
</span>
</i>
</button>
<div>
Add Namespace
</div>
</div>
</div>
</div>
@ -5506,7 +5485,7 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
>
<button
class="Button add-button primary big round"
type="button"
tooltip="Add Namespace"
>
<i
class="Icon material focusable"
@ -5519,9 +5498,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
</span>
</i>
</button>
<div>
Add Namespace
</div>
</div>
</div>
</div>
@ -6240,7 +6216,7 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
>
<button
class="Button add-button primary big round"
type="button"
tooltip="Add Namespace"
>
<i
class="Icon material focusable"
@ -6253,9 +6229,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
</span>
</i>
</button>
<div>
Add Namespace
</div>
</div>
</div>
</div>
@ -6965,7 +6938,7 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
>
<button
class="Button add-button primary big round"
type="button"
tooltip="Add Namespace"
>
<i
class="Icon material focusable"
@ -6978,9 +6951,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
</span>
</i>
</button>
<div>
Add Namespace
</div>
</div>
</div>
</div>
@ -7690,7 +7660,7 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
>
<button
class="Button add-button primary big round"
type="button"
tooltip="Add Namespace"
>
<i
class="Icon material focusable"
@ -7703,9 +7673,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
</span>
</i>
</button>
<div>
Add Namespace
</div>
</div>
</div>
</div>
@ -8415,7 +8382,7 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
>
<button
class="Button add-button primary big round"
type="button"
tooltip="Add Namespace"
>
<i
class="Icon material focusable"
@ -8428,9 +8395,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
</span>
</i>
</button>
<div>
Add Namespace
</div>
</div>
</div>
</div>
@ -8978,7 +8942,7 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
>
<button
class="Button add-button primary big round"
type="button"
tooltip="Add Namespace"
>
<i
class="Icon material focusable"
@ -8991,9 +8955,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
</span>
</i>
</button>
<div>
Add Namespace
</div>
</div>
</div>
</div>
@ -9712,7 +9673,7 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
>
<button
class="Button add-button primary big round"
type="button"
tooltip="Add Namespace"
>
<i
class="Icon material focusable"
@ -9725,9 +9686,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
</span>
</i>
</button>
<div>
Add Namespace
</div>
</div>
</div>
</div>
@ -10275,7 +10233,7 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
>
<button
class="Button add-button primary big round"
type="button"
tooltip="Add Namespace"
>
<i
class="Icon material focusable"
@ -10288,9 +10246,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
</span>
</i>
</button>
<div>
Add Namespace
</div>
</div>
</div>
</div>
@ -10838,7 +10793,7 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
>
<button
class="Button add-button primary big round"
type="button"
tooltip="Add Namespace"
>
<i
class="Icon material focusable"
@ -10851,9 +10806,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
</span>
</i>
</button>
<div>
Add Namespace
</div>
</div>
</div>
</div>

View File

@ -303,6 +303,7 @@ exports[`cluster/namespaces - edit namespaces from previously opened tab given t
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-telemetry-title="Tab Overview"
data-testid="tab-link-for-overview"
role="tab"
tabindex="0"
@ -860,6 +861,7 @@ exports[`cluster/namespaces - edit namespaces from previously opened tab given t
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-telemetry-title="Tab Overview"
data-testid="tab-link-for-overview"
role="tab"
tabindex="0"

View File

@ -276,6 +276,7 @@ exports[`disable workloads overview details when cluster is not relevant given e
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-telemetry-title="Tab Overview"
data-testid="tab-link-for-overview"
role="tab"
tabindex="0"
@ -801,6 +802,7 @@ exports[`disable workloads overview details when cluster is not relevant given e
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-telemetry-title="Tab Overview"
data-testid="tab-link-for-overview"
role="tab"
tabindex="0"
@ -1321,6 +1323,7 @@ exports[`disable workloads overview details when cluster is not relevant given n
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-telemetry-title="Tab Overview"
data-testid="tab-link-for-overview"
role="tab"
tabindex="0"

View File

@ -306,7 +306,6 @@ exports[`extensions - navigation using application menu when navigating to exten
<div>
<button
class="Button button primary"
type="button"
>
Install
</button>

View File

@ -328,7 +328,6 @@ exports[`add custom helm repository in preferences when navigating to preference
>
<button
class="Button PathPicker primary"
type="button"
>
Sync Files and Folders
</button>
@ -454,8 +453,8 @@ exports[`add custom helm repository in preferences when navigating to preference
</div>
<button
class="Button primary"
data-telemetry-title="Add Custom Helm Repo Custom Title"
data-testid="add-custom-helm-repo-button"
type="button"
>
Add Custom Helm Repo
</button>
@ -906,7 +905,6 @@ exports[`add custom helm repository in preferences when navigating to preference
>
<button
class="Button PathPicker primary"
type="button"
>
Sync Files and Folders
</button>
@ -1017,8 +1015,8 @@ exports[`add custom helm repository in preferences when navigating to preference
</div>
<button
class="Button primary"
data-telemetry-title="Add Custom Helm Repo Custom Title"
data-testid="add-custom-helm-repo-button"
type="button"
>
Add Custom Helm Repo
</button>
@ -1495,7 +1493,6 @@ exports[`add custom helm repository in preferences when navigating to preference
>
<button
class="Button PathPicker primary"
type="button"
>
Sync Files and Folders
</button>
@ -1606,8 +1603,8 @@ exports[`add custom helm repository in preferences when navigating to preference
</div>
<button
class="Button primary"
data-telemetry-title="Add Custom Helm Repo Custom Title"
data-testid="add-custom-helm-repo-button"
type="button"
>
Add Custom Helm Repo
</button>
@ -1823,7 +1820,6 @@ exports[`add custom helm repository in preferences when navigating to preference
<button
class="Button accordion plain"
data-testid="toggle-maximal-options-for-custom-helm-repository-button"
type="button"
>
More
<i
@ -1848,7 +1844,6 @@ exports[`add custom helm repository in preferences when navigating to preference
<button
class="Button back-btn plain"
data-testid="custom-helm-repository-cancel-button"
type="button"
>
Cancel
</button>
@ -2195,7 +2190,6 @@ exports[`add custom helm repository in preferences when navigating to preference
>
<button
class="Button PathPicker primary"
type="button"
>
Sync Files and Folders
</button>
@ -2306,8 +2300,8 @@ exports[`add custom helm repository in preferences when navigating to preference
</div>
<button
class="Button primary"
data-telemetry-title="Add Custom Helm Repo Custom Title"
data-testid="add-custom-helm-repo-button"
type="button"
>
Add Custom Helm Repo
</button>
@ -2792,7 +2786,6 @@ exports[`add custom helm repository in preferences when navigating to preference
>
<button
class="Button PathPicker primary"
type="button"
>
Sync Files and Folders
</button>
@ -2903,8 +2896,8 @@ exports[`add custom helm repository in preferences when navigating to preference
</div>
<button
class="Button primary"
data-telemetry-title="Add Custom Helm Repo Custom Title"
data-testid="add-custom-helm-repo-button"
type="button"
>
Add Custom Helm Repo
</button>
@ -3120,7 +3113,6 @@ exports[`add custom helm repository in preferences when navigating to preference
<button
class="Button accordion plain"
data-testid="toggle-maximal-options-for-custom-helm-repository-button"
type="button"
>
More
<i
@ -3145,7 +3137,6 @@ exports[`add custom helm repository in preferences when navigating to preference
<button
class="Button back-btn plain"
data-testid="custom-helm-repository-cancel-button"
type="button"
>
Cancel
</button>
@ -3492,7 +3483,6 @@ exports[`add custom helm repository in preferences when navigating to preference
>
<button
class="Button PathPicker primary"
type="button"
>
Sync Files and Folders
</button>
@ -3603,8 +3593,8 @@ exports[`add custom helm repository in preferences when navigating to preference
</div>
<button
class="Button primary"
data-telemetry-title="Add Custom Helm Repo Custom Title"
data-testid="add-custom-helm-repo-button"
type="button"
>
Add Custom Helm Repo
</button>
@ -3820,7 +3810,6 @@ exports[`add custom helm repository in preferences when navigating to preference
<button
class="Button accordion plain"
data-testid="toggle-maximal-options-for-custom-helm-repository-button"
type="button"
>
More
<i
@ -4027,7 +4016,6 @@ exports[`add custom helm repository in preferences when navigating to preference
<button
class="Button back-btn plain"
data-testid="custom-helm-repository-cancel-button"
type="button"
>
Cancel
</button>
@ -4374,7 +4362,6 @@ exports[`add custom helm repository in preferences when navigating to preference
>
<button
class="Button PathPicker primary"
type="button"
>
Sync Files and Folders
</button>
@ -4485,8 +4472,8 @@ exports[`add custom helm repository in preferences when navigating to preference
</div>
<button
class="Button primary"
data-telemetry-title="Add Custom Helm Repo Custom Title"
data-testid="add-custom-helm-repo-button"
type="button"
>
Add Custom Helm Repo
</button>
@ -4702,7 +4689,6 @@ exports[`add custom helm repository in preferences when navigating to preference
<button
class="Button accordion plain"
data-testid="toggle-maximal-options-for-custom-helm-repository-button"
type="button"
>
More
<i
@ -4727,7 +4713,6 @@ exports[`add custom helm repository in preferences when navigating to preference
<button
class="Button back-btn plain"
data-testid="custom-helm-repository-cancel-button"
type="button"
>
Cancel
</button>
@ -5074,7 +5059,6 @@ exports[`add custom helm repository in preferences when navigating to preference
>
<button
class="Button PathPicker primary"
type="button"
>
Sync Files and Folders
</button>
@ -5185,8 +5169,8 @@ exports[`add custom helm repository in preferences when navigating to preference
</div>
<button
class="Button primary"
data-telemetry-title="Add Custom Helm Repo Custom Title"
data-testid="add-custom-helm-repo-button"
type="button"
>
Add Custom Helm Repo
</button>
@ -5402,7 +5386,6 @@ exports[`add custom helm repository in preferences when navigating to preference
<button
class="Button accordion plain"
data-testid="toggle-maximal-options-for-custom-helm-repository-button"
type="button"
>
More
<i
@ -5609,12 +5592,11 @@ exports[`add custom helm repository in preferences when navigating to preference
<button
class="Button back-btn plain"
data-testid="custom-helm-repository-cancel-button"
type="button"
>
Cancel
</button>
<button
class="Button primary"
class="Button waiting primary"
data-testid="custom-helm-repository-submit-button"
type="submit"
>
@ -5956,7 +5938,6 @@ exports[`add custom helm repository in preferences when navigating to preference
>
<button
class="Button PathPicker primary"
type="button"
>
Sync Files and Folders
</button>
@ -6067,8 +6048,8 @@ exports[`add custom helm repository in preferences when navigating to preference
</div>
<button
class="Button primary"
data-telemetry-title="Add Custom Helm Repo Custom Title"
data-testid="add-custom-helm-repo-button"
type="button"
>
Add Custom Helm Repo
</button>
@ -6284,7 +6265,6 @@ exports[`add custom helm repository in preferences when navigating to preference
<button
class="Button accordion plain"
data-testid="toggle-maximal-options-for-custom-helm-repository-button"
type="button"
>
More
<i
@ -6309,7 +6289,6 @@ exports[`add custom helm repository in preferences when navigating to preference
<button
class="Button back-btn plain"
data-testid="custom-helm-repository-cancel-button"
type="button"
>
Cancel
</button>
@ -6656,7 +6635,6 @@ exports[`add custom helm repository in preferences when navigating to preference
>
<button
class="Button PathPicker primary"
type="button"
>
Sync Files and Folders
</button>
@ -6767,8 +6745,8 @@ exports[`add custom helm repository in preferences when navigating to preference
</div>
<button
class="Button primary"
data-telemetry-title="Add Custom Helm Repo Custom Title"
data-testid="add-custom-helm-repo-button"
type="button"
>
Add Custom Helm Repo
</button>
@ -7253,7 +7231,6 @@ exports[`add custom helm repository in preferences when navigating to preference
>
<button
class="Button PathPicker primary"
type="button"
>
Sync Files and Folders
</button>
@ -7379,8 +7356,8 @@ exports[`add custom helm repository in preferences when navigating to preference
</div>
<button
class="Button primary"
data-telemetry-title="Add Custom Helm Repo Custom Title"
data-testid="add-custom-helm-repo-button"
type="button"
>
Add Custom Helm Repo
</button>
@ -7839,7 +7816,6 @@ exports[`add custom helm repository in preferences when navigating to preference
>
<button
class="Button PathPicker primary"
type="button"
>
Sync Files and Folders
</button>
@ -7965,8 +7941,8 @@ exports[`add custom helm repository in preferences when navigating to preference
</div>
<button
class="Button primary"
data-telemetry-title="Add Custom Helm Repo Custom Title"
data-testid="add-custom-helm-repo-button"
type="button"
>
Add Custom Helm Repo
</button>
@ -8156,7 +8132,6 @@ exports[`add custom helm repository in preferences when navigating to preference
<button
class="Button accordion plain"
data-testid="toggle-maximal-options-for-custom-helm-repository-button"
type="button"
>
More
<i
@ -8181,7 +8156,6 @@ exports[`add custom helm repository in preferences when navigating to preference
<button
class="Button back-btn plain"
data-testid="custom-helm-repository-cancel-button"
type="button"
>
Cancel
</button>

View File

@ -328,7 +328,6 @@ exports[`add helm repository from list in preferences when navigating to prefere
>
<button
class="Button PathPicker primary"
type="button"
>
Sync Files and Folders
</button>
@ -454,8 +453,8 @@ exports[`add helm repository from list in preferences when navigating to prefere
</div>
<button
class="Button primary"
data-telemetry-title="Add Custom Helm Repo Custom Title"
data-testid="add-custom-helm-repo-button"
type="button"
>
Add Custom Helm Repo
</button>
@ -906,7 +905,6 @@ exports[`add helm repository from list in preferences when navigating to prefere
>
<button
class="Button PathPicker primary"
type="button"
>
Sync Files and Folders
</button>
@ -1017,8 +1015,8 @@ exports[`add helm repository from list in preferences when navigating to prefere
</div>
<button
class="Button primary"
data-telemetry-title="Add Custom Helm Repo Custom Title"
data-testid="add-custom-helm-repo-button"
type="button"
>
Add Custom Helm Repo
</button>
@ -1495,7 +1493,6 @@ exports[`add helm repository from list in preferences when navigating to prefere
>
<button
class="Button PathPicker primary"
type="button"
>
Sync Files and Folders
</button>
@ -1608,8 +1605,8 @@ exports[`add helm repository from list in preferences when navigating to prefere
</div>
<button
class="Button primary"
data-telemetry-title="Add Custom Helm Repo Custom Title"
data-testid="add-custom-helm-repo-button"
type="button"
>
Add Custom Helm Repo
</button>
@ -2137,7 +2134,6 @@ exports[`add helm repository from list in preferences when navigating to prefere
>
<button
class="Button PathPicker primary"
type="button"
>
Sync Files and Folders
</button>
@ -2248,8 +2244,8 @@ exports[`add helm repository from list in preferences when navigating to prefere
</div>
<button
class="Button primary"
data-telemetry-title="Add Custom Helm Repo Custom Title"
data-testid="add-custom-helm-repo-button"
type="button"
>
Add Custom Helm Repo
</button>
@ -2726,7 +2722,6 @@ exports[`add helm repository from list in preferences when navigating to prefere
>
<button
class="Button PathPicker primary"
type="button"
>
Sync Files and Folders
</button>
@ -2837,8 +2832,8 @@ exports[`add helm repository from list in preferences when navigating to prefere
</div>
<button
class="Button primary"
data-telemetry-title="Add Custom Helm Repo Custom Title"
data-testid="add-custom-helm-repo-button"
type="button"
>
Add Custom Helm Repo
</button>
@ -3315,7 +3310,6 @@ exports[`add helm repository from list in preferences when navigating to prefere
>
<button
class="Button PathPicker primary"
type="button"
>
Sync Files and Folders
</button>
@ -3441,8 +3435,8 @@ exports[`add helm repository from list in preferences when navigating to prefere
</div>
<button
class="Button primary"
data-telemetry-title="Add Custom Helm Repo Custom Title"
data-testid="add-custom-helm-repo-button"
type="button"
>
Add Custom Helm Repo
</button>
@ -3893,7 +3887,6 @@ exports[`add helm repository from list in preferences when navigating to prefere
>
<button
class="Button PathPicker primary"
type="button"
>
Sync Files and Folders
</button>
@ -4004,8 +3997,8 @@ exports[`add helm repository from list in preferences when navigating to prefere
</div>
<button
class="Button primary"
data-telemetry-title="Add Custom Helm Repo Custom Title"
data-testid="add-custom-helm-repo-button"
type="button"
>
Add Custom Helm Repo
</button>
@ -4516,7 +4509,6 @@ exports[`add helm repository from list in preferences when navigating to prefere
>
<button
class="Button PathPicker primary"
type="button"
>
Sync Files and Folders
</button>
@ -4629,8 +4621,8 @@ exports[`add helm repository from list in preferences when navigating to prefere
</div>
<button
class="Button primary"
data-telemetry-title="Add Custom Helm Repo Custom Title"
data-testid="add-custom-helm-repo-button"
type="button"
>
Add Custom Helm Repo
</button>
@ -5202,7 +5194,6 @@ exports[`add helm repository from list in preferences when navigating to prefere
>
<button
class="Button PathPicker primary"
type="button"
>
Sync Files and Folders
</button>
@ -5313,8 +5304,8 @@ exports[`add helm repository from list in preferences when navigating to prefere
</div>
<button
class="Button primary"
data-telemetry-title="Add Custom Helm Repo Custom Title"
data-testid="add-custom-helm-repo-button"
type="button"
>
Add Custom Helm Repo
</button>
@ -5825,7 +5816,6 @@ exports[`add helm repository from list in preferences when navigating to prefere
>
<button
class="Button PathPicker primary"
type="button"
>
Sync Files and Folders
</button>
@ -5951,8 +5941,8 @@ exports[`add helm repository from list in preferences when navigating to prefere
</div>
<button
class="Button primary"
data-telemetry-title="Add Custom Helm Repo Custom Title"
data-testid="add-custom-helm-repo-button"
type="button"
>
Add Custom Helm Repo
</button>

View File

@ -328,7 +328,6 @@ exports[`listing active helm repositories in preferences when navigating to pref
>
<button
class="Button PathPicker primary"
type="button"
>
Sync Files and Folders
</button>
@ -454,8 +453,8 @@ exports[`listing active helm repositories in preferences when navigating to pref
</div>
<button
class="Button primary"
data-telemetry-title="Add Custom Helm Repo Custom Title"
data-testid="add-custom-helm-repo-button"
type="button"
>
Add Custom Helm Repo
</button>
@ -906,7 +905,6 @@ exports[`listing active helm repositories in preferences when navigating to pref
>
<button
class="Button PathPicker primary"
type="button"
>
Sync Files and Folders
</button>
@ -1032,8 +1030,8 @@ exports[`listing active helm repositories in preferences when navigating to pref
</div>
<button
class="Button primary"
data-telemetry-title="Add Custom Helm Repo Custom Title"
data-testid="add-custom-helm-repo-button"
type="button"
>
Add Custom Helm Repo
</button>
@ -1484,7 +1482,6 @@ exports[`listing active helm repositories in preferences when navigating to pref
>
<button
class="Button PathPicker primary"
type="button"
>
Sync Files and Folders
</button>
@ -1954,7 +1951,6 @@ exports[`listing active helm repositories in preferences when navigating to pref
>
<button
class="Button PathPicker primary"
type="button"
>
Sync Files and Folders
</button>
@ -2080,8 +2076,8 @@ exports[`listing active helm repositories in preferences when navigating to pref
</div>
<button
class="Button primary"
data-telemetry-title="Add Custom Helm Repo Custom Title"
data-testid="add-custom-helm-repo-button"
type="button"
>
Add Custom Helm Repo
</button>
@ -2532,7 +2528,6 @@ exports[`listing active helm repositories in preferences when navigating to pref
>
<button
class="Button PathPicker primary"
type="button"
>
Sync Files and Folders
</button>
@ -3002,7 +2997,6 @@ exports[`listing active helm repositories in preferences when navigating to pref
>
<button
class="Button PathPicker primary"
type="button"
>
Sync Files and Folders
</button>
@ -3128,8 +3122,8 @@ exports[`listing active helm repositories in preferences when navigating to pref
</div>
<button
class="Button primary"
data-telemetry-title="Add Custom Helm Repo Custom Title"
data-testid="add-custom-helm-repo-button"
type="button"
>
Add Custom Helm Repo
</button>
@ -3580,7 +3574,6 @@ exports[`listing active helm repositories in preferences when navigating to pref
>
<button
class="Button PathPicker primary"
type="button"
>
Sync Files and Folders
</button>
@ -3691,8 +3684,8 @@ exports[`listing active helm repositories in preferences when navigating to pref
</div>
<button
class="Button primary"
data-telemetry-title="Add Custom Helm Repo Custom Title"
data-testid="add-custom-helm-repo-button"
type="button"
>
Add Custom Helm Repo
</button>
@ -4203,7 +4196,6 @@ exports[`listing active helm repositories in preferences when navigating to pref
>
<button
class="Button PathPicker primary"
type="button"
>
Sync Files and Folders
</button>
@ -4673,7 +4665,6 @@ exports[`listing active helm repositories in preferences when navigating to pref
>
<button
class="Button PathPicker primary"
type="button"
>
Sync Files and Folders
</button>
@ -5143,7 +5134,6 @@ exports[`listing active helm repositories in preferences when navigating to pref
>
<button
class="Button PathPicker primary"
type="button"
>
Sync Files and Folders
</button>

View File

@ -328,7 +328,6 @@ exports[`remove helm repository from list of active repositories in preferences
>
<button
class="Button PathPicker primary"
type="button"
>
Sync Files and Folders
</button>
@ -454,8 +453,8 @@ exports[`remove helm repository from list of active repositories in preferences
</div>
<button
class="Button primary"
data-telemetry-title="Add Custom Helm Repo Custom Title"
data-testid="add-custom-helm-repo-button"
type="button"
>
Add Custom Helm Repo
</button>
@ -906,7 +905,6 @@ exports[`remove helm repository from list of active repositories in preferences
>
<button
class="Button PathPicker primary"
type="button"
>
Sync Files and Folders
</button>
@ -1017,8 +1015,8 @@ exports[`remove helm repository from list of active repositories in preferences
</div>
<button
class="Button primary"
data-telemetry-title="Add Custom Helm Repo Custom Title"
data-testid="add-custom-helm-repo-button"
type="button"
>
Add Custom Helm Repo
</button>
@ -1495,7 +1493,6 @@ exports[`remove helm repository from list of active repositories in preferences
>
<button
class="Button PathPicker primary"
type="button"
>
Sync Files and Folders
</button>
@ -1606,8 +1603,8 @@ exports[`remove helm repository from list of active repositories in preferences
</div>
<button
class="Button primary"
data-telemetry-title="Add Custom Helm Repo Custom Title"
data-testid="add-custom-helm-repo-button"
type="button"
>
Add Custom Helm Repo
</button>
@ -2084,7 +2081,6 @@ exports[`remove helm repository from list of active repositories in preferences
>
<button
class="Button PathPicker primary"
type="button"
>
Sync Files and Folders
</button>
@ -2210,8 +2206,8 @@ exports[`remove helm repository from list of active repositories in preferences
</div>
<button
class="Button primary"
data-telemetry-title="Add Custom Helm Repo Custom Title"
data-testid="add-custom-helm-repo-button"
type="button"
>
Add Custom Helm Repo
</button>

View File

@ -276,6 +276,7 @@ exports[`installing helm chart from previously opened tab given tab for installi
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-telemetry-title="Tab Overview"
data-testid="tab-link-for-overview"
role="tab"
tabindex="0"
@ -806,6 +807,7 @@ exports[`installing helm chart from previously opened tab given tab for installi
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-telemetry-title="Tab Overview"
data-testid="tab-link-for-overview"
role="tab"
tabindex="0"

View File

@ -276,6 +276,7 @@ exports[`opening dock tab for installing helm chart given application is started
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-telemetry-title="Tab Charts"
data-testid="tab-link-for-charts"
role="tab"
tabindex="0"
@ -289,6 +290,7 @@ exports[`opening dock tab for installing helm chart given application is started
<div
class="Tab flex gaps align-center"
data-is-active-test="false"
data-telemetry-title="Tab Releases"
data-testid="tab-link-for-releases"
role="tab"
tabindex="0"
@ -793,6 +795,7 @@ exports[`opening dock tab for installing helm chart given application is started
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-telemetry-title="Tab Charts"
data-testid="tab-link-for-charts"
role="tab"
tabindex="0"
@ -806,6 +809,7 @@ exports[`opening dock tab for installing helm chart given application is started
<div
class="Tab flex gaps align-center"
data-is-active-test="false"
data-telemetry-title="Tab Releases"
data-testid="tab-link-for-releases"
role="tab"
tabindex="0"
@ -984,6 +988,7 @@ exports[`opening dock tab for installing helm chart given application is started
>
<div
class="TableCell icon"
data-telemetry-title="Table Row helm charts"
>
<figure>
<div>
@ -1028,29 +1033,35 @@ exports[`opening dock tab for installing helm chart given application is started
</div>
<div
class="TableCell name"
data-telemetry-title="Table Row helm charts"
>
some-name
</div>
<div
class="TableCell description"
data-telemetry-title="Table Row helm charts"
>
some-description
</div>
<div
class="TableCell version"
data-telemetry-title="Table Row helm charts"
>
some-version
</div>
<div
class="TableCell app-version"
data-telemetry-title="Table Row helm charts"
/>
<div
class="TableCell some-repository repository"
data-telemetry-title="Table Row helm charts"
>
some-repository
</div>
<div
class="TableCell menu"
data-telemetry-title="Table Row helm charts"
/>
</div>
</div>
@ -1063,6 +1074,7 @@ exports[`opening dock tab for installing helm chart given application is started
>
<div
class="TableCell icon"
data-telemetry-title="Table Row helm charts"
>
<figure>
<div>
@ -1107,29 +1119,35 @@ exports[`opening dock tab for installing helm chart given application is started
</div>
<div
class="TableCell name"
data-telemetry-title="Table Row helm charts"
>
some-other-name
</div>
<div
class="TableCell description"
data-telemetry-title="Table Row helm charts"
>
some-description
</div>
<div
class="TableCell version"
data-telemetry-title="Table Row helm charts"
>
some-version
</div>
<div
class="TableCell app-version"
data-telemetry-title="Table Row helm charts"
/>
<div
class="TableCell some-repository repository"
data-telemetry-title="Table Row helm charts"
>
some-repository
</div>
<div
class="TableCell menu"
data-telemetry-title="Table Row helm charts"
/>
</div>
</div>
@ -1474,6 +1492,7 @@ exports[`opening dock tab for installing helm chart given application is started
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-telemetry-title="Tab Charts"
data-testid="tab-link-for-charts"
role="tab"
tabindex="0"
@ -1487,6 +1506,7 @@ exports[`opening dock tab for installing helm chart given application is started
<div
class="Tab flex gaps align-center"
data-is-active-test="false"
data-telemetry-title="Tab Releases"
data-testid="tab-link-for-releases"
role="tab"
tabindex="0"
@ -1665,6 +1685,7 @@ exports[`opening dock tab for installing helm chart given application is started
>
<div
class="TableCell icon"
data-telemetry-title="Table Row helm charts"
>
<figure>
<div>
@ -1709,29 +1730,35 @@ exports[`opening dock tab for installing helm chart given application is started
</div>
<div
class="TableCell name"
data-telemetry-title="Table Row helm charts"
>
some-name
</div>
<div
class="TableCell description"
data-telemetry-title="Table Row helm charts"
>
some-description
</div>
<div
class="TableCell version"
data-telemetry-title="Table Row helm charts"
>
some-version
</div>
<div
class="TableCell app-version"
data-telemetry-title="Table Row helm charts"
/>
<div
class="TableCell some-repository repository"
data-telemetry-title="Table Row helm charts"
>
some-repository
</div>
<div
class="TableCell menu"
data-telemetry-title="Table Row helm charts"
/>
</div>
</div>
@ -1744,6 +1771,7 @@ exports[`opening dock tab for installing helm chart given application is started
>
<div
class="TableCell icon"
data-telemetry-title="Table Row helm charts"
>
<figure>
<div>
@ -1788,29 +1816,35 @@ exports[`opening dock tab for installing helm chart given application is started
</div>
<div
class="TableCell name"
data-telemetry-title="Table Row helm charts"
>
some-other-name
</div>
<div
class="TableCell description"
data-telemetry-title="Table Row helm charts"
>
some-description
</div>
<div
class="TableCell version"
data-telemetry-title="Table Row helm charts"
>
some-version
</div>
<div
class="TableCell app-version"
data-telemetry-title="Table Row helm charts"
/>
<div
class="TableCell some-repository repository"
data-telemetry-title="Table Row helm charts"
>
some-repository
</div>
<div
class="TableCell menu"
data-telemetry-title="Table Row helm charts"
/>
</div>
</div>
@ -2212,6 +2246,7 @@ exports[`opening dock tab for installing helm chart given application is started
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-telemetry-title="Tab Charts"
data-testid="tab-link-for-charts"
role="tab"
tabindex="0"
@ -2225,6 +2260,7 @@ exports[`opening dock tab for installing helm chart given application is started
<div
class="Tab flex gaps align-center"
data-is-active-test="false"
data-telemetry-title="Tab Releases"
data-testid="tab-link-for-releases"
role="tab"
tabindex="0"
@ -2403,6 +2439,7 @@ exports[`opening dock tab for installing helm chart given application is started
>
<div
class="TableCell icon"
data-telemetry-title="Table Row helm charts"
>
<figure>
<div>
@ -2447,29 +2484,35 @@ exports[`opening dock tab for installing helm chart given application is started
</div>
<div
class="TableCell name"
data-telemetry-title="Table Row helm charts"
>
some-name
</div>
<div
class="TableCell description"
data-telemetry-title="Table Row helm charts"
>
some-description
</div>
<div
class="TableCell version"
data-telemetry-title="Table Row helm charts"
>
some-version
</div>
<div
class="TableCell app-version"
data-telemetry-title="Table Row helm charts"
/>
<div
class="TableCell some-repository repository"
data-telemetry-title="Table Row helm charts"
>
some-repository
</div>
<div
class="TableCell menu"
data-telemetry-title="Table Row helm charts"
/>
</div>
</div>
@ -2482,6 +2525,7 @@ exports[`opening dock tab for installing helm chart given application is started
>
<div
class="TableCell icon"
data-telemetry-title="Table Row helm charts"
>
<figure>
<div>
@ -2526,29 +2570,35 @@ exports[`opening dock tab for installing helm chart given application is started
</div>
<div
class="TableCell name"
data-telemetry-title="Table Row helm charts"
>
some-other-name
</div>
<div
class="TableCell description"
data-telemetry-title="Table Row helm charts"
>
some-description
</div>
<div
class="TableCell version"
data-telemetry-title="Table Row helm charts"
>
some-version
</div>
<div
class="TableCell app-version"
data-telemetry-title="Table Row helm charts"
/>
<div
class="TableCell some-repository repository"
data-telemetry-title="Table Row helm charts"
>
some-repository
</div>
<div
class="TableCell menu"
data-telemetry-title="Table Row helm charts"
/>
</div>
</div>
@ -2718,7 +2768,6 @@ exports[`opening dock tab for installing helm chart given application is started
<button
class="Button primary"
data-testid="install-chart-for-some-repository-some-name"
type="button"
>
Install
</button>
@ -3129,6 +3178,7 @@ exports[`opening dock tab for installing helm chart given application is started
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-telemetry-title="Tab Charts"
data-testid="tab-link-for-charts"
role="tab"
tabindex="0"
@ -3142,6 +3192,7 @@ exports[`opening dock tab for installing helm chart given application is started
<div
class="Tab flex gaps align-center"
data-is-active-test="false"
data-telemetry-title="Tab Releases"
data-testid="tab-link-for-releases"
role="tab"
tabindex="0"
@ -3320,6 +3371,7 @@ exports[`opening dock tab for installing helm chart given application is started
>
<div
class="TableCell icon"
data-telemetry-title="Table Row helm charts"
>
<figure>
<div>
@ -3364,29 +3416,35 @@ exports[`opening dock tab for installing helm chart given application is started
</div>
<div
class="TableCell name"
data-telemetry-title="Table Row helm charts"
>
some-name
</div>
<div
class="TableCell description"
data-telemetry-title="Table Row helm charts"
>
some-description
</div>
<div
class="TableCell version"
data-telemetry-title="Table Row helm charts"
>
some-version
</div>
<div
class="TableCell app-version"
data-telemetry-title="Table Row helm charts"
/>
<div
class="TableCell some-repository repository"
data-telemetry-title="Table Row helm charts"
>
some-repository
</div>
<div
class="TableCell menu"
data-telemetry-title="Table Row helm charts"
/>
</div>
</div>
@ -3399,6 +3457,7 @@ exports[`opening dock tab for installing helm chart given application is started
>
<div
class="TableCell icon"
data-telemetry-title="Table Row helm charts"
>
<figure>
<div>
@ -3443,29 +3502,35 @@ exports[`opening dock tab for installing helm chart given application is started
</div>
<div
class="TableCell name"
data-telemetry-title="Table Row helm charts"
>
some-other-name
</div>
<div
class="TableCell description"
data-telemetry-title="Table Row helm charts"
>
some-description
</div>
<div
class="TableCell version"
data-telemetry-title="Table Row helm charts"
>
some-version
</div>
<div
class="TableCell app-version"
data-telemetry-title="Table Row helm charts"
/>
<div
class="TableCell some-repository repository"
data-telemetry-title="Table Row helm charts"
>
some-repository
</div>
<div
class="TableCell menu"
data-telemetry-title="Table Row helm charts"
/>
</div>
</div>
@ -3635,7 +3700,6 @@ exports[`opening dock tab for installing helm chart given application is started
<button
class="Button primary"
data-testid="install-chart-for-some-repository-some-name"
type="button"
>
Install
</button>
@ -4056,6 +4120,7 @@ exports[`opening dock tab for installing helm chart given application is started
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-telemetry-title="Tab Charts"
data-testid="tab-link-for-charts"
role="tab"
tabindex="0"
@ -4069,6 +4134,7 @@ exports[`opening dock tab for installing helm chart given application is started
<div
class="Tab flex gaps align-center"
data-is-active-test="false"
data-telemetry-title="Tab Releases"
data-testid="tab-link-for-releases"
role="tab"
tabindex="0"
@ -4247,6 +4313,7 @@ exports[`opening dock tab for installing helm chart given application is started
>
<div
class="TableCell icon"
data-telemetry-title="Table Row helm charts"
>
<figure>
<div>
@ -4291,29 +4358,35 @@ exports[`opening dock tab for installing helm chart given application is started
</div>
<div
class="TableCell name"
data-telemetry-title="Table Row helm charts"
>
some-name
</div>
<div
class="TableCell description"
data-telemetry-title="Table Row helm charts"
>
some-description
</div>
<div
class="TableCell version"
data-telemetry-title="Table Row helm charts"
>
some-version
</div>
<div
class="TableCell app-version"
data-telemetry-title="Table Row helm charts"
/>
<div
class="TableCell some-repository repository"
data-telemetry-title="Table Row helm charts"
>
some-repository
</div>
<div
class="TableCell menu"
data-telemetry-title="Table Row helm charts"
/>
</div>
</div>
@ -4326,6 +4399,7 @@ exports[`opening dock tab for installing helm chart given application is started
>
<div
class="TableCell icon"
data-telemetry-title="Table Row helm charts"
>
<figure>
<div>
@ -4370,29 +4444,35 @@ exports[`opening dock tab for installing helm chart given application is started
</div>
<div
class="TableCell name"
data-telemetry-title="Table Row helm charts"
>
some-other-name
</div>
<div
class="TableCell description"
data-telemetry-title="Table Row helm charts"
>
some-description
</div>
<div
class="TableCell version"
data-telemetry-title="Table Row helm charts"
>
some-version
</div>
<div
class="TableCell app-version"
data-telemetry-title="Table Row helm charts"
/>
<div
class="TableCell some-repository repository"
data-telemetry-title="Table Row helm charts"
>
some-repository
</div>
<div
class="TableCell menu"
data-telemetry-title="Table Row helm charts"
/>
</div>
</div>
@ -4562,7 +4642,6 @@ exports[`opening dock tab for installing helm chart given application is started
<button
class="Button primary"
data-testid="install-chart-for-some-repository-some-name"
type="button"
>
Install
</button>
@ -4973,6 +5052,7 @@ exports[`opening dock tab for installing helm chart given application is started
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-telemetry-title="Tab Charts"
data-testid="tab-link-for-charts"
role="tab"
tabindex="0"
@ -4986,6 +5066,7 @@ exports[`opening dock tab for installing helm chart given application is started
<div
class="Tab flex gaps align-center"
data-is-active-test="false"
data-telemetry-title="Tab Releases"
data-testid="tab-link-for-releases"
role="tab"
tabindex="0"
@ -5164,6 +5245,7 @@ exports[`opening dock tab for installing helm chart given application is started
>
<div
class="TableCell icon"
data-telemetry-title="Table Row helm charts"
>
<figure>
<div>
@ -5208,29 +5290,35 @@ exports[`opening dock tab for installing helm chart given application is started
</div>
<div
class="TableCell name"
data-telemetry-title="Table Row helm charts"
>
some-name
</div>
<div
class="TableCell description"
data-telemetry-title="Table Row helm charts"
>
some-description
</div>
<div
class="TableCell version"
data-telemetry-title="Table Row helm charts"
>
some-version
</div>
<div
class="TableCell app-version"
data-telemetry-title="Table Row helm charts"
/>
<div
class="TableCell some-repository repository"
data-telemetry-title="Table Row helm charts"
>
some-repository
</div>
<div
class="TableCell menu"
data-telemetry-title="Table Row helm charts"
/>
</div>
</div>
@ -5243,6 +5331,7 @@ exports[`opening dock tab for installing helm chart given application is started
>
<div
class="TableCell icon"
data-telemetry-title="Table Row helm charts"
>
<figure>
<div>
@ -5287,29 +5376,35 @@ exports[`opening dock tab for installing helm chart given application is started
</div>
<div
class="TableCell name"
data-telemetry-title="Table Row helm charts"
>
some-other-name
</div>
<div
class="TableCell description"
data-telemetry-title="Table Row helm charts"
>
some-description
</div>
<div
class="TableCell version"
data-telemetry-title="Table Row helm charts"
>
some-version
</div>
<div
class="TableCell app-version"
data-telemetry-title="Table Row helm charts"
/>
<div
class="TableCell some-repository repository"
data-telemetry-title="Table Row helm charts"
>
some-repository
</div>
<div
class="TableCell menu"
data-telemetry-title="Table Row helm charts"
/>
</div>
</div>
@ -5479,7 +5574,6 @@ exports[`opening dock tab for installing helm chart given application is started
<button
class="Button primary"
data-testid="install-chart-for-some-repository-some-name"
type="button"
>
Install
</button>
@ -5900,6 +5994,7 @@ exports[`opening dock tab for installing helm chart given application is started
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-telemetry-title="Tab Charts"
data-testid="tab-link-for-charts"
role="tab"
tabindex="0"
@ -5913,6 +6008,7 @@ exports[`opening dock tab for installing helm chart given application is started
<div
class="Tab flex gaps align-center"
data-is-active-test="false"
data-telemetry-title="Tab Releases"
data-testid="tab-link-for-releases"
role="tab"
tabindex="0"
@ -6091,6 +6187,7 @@ exports[`opening dock tab for installing helm chart given application is started
>
<div
class="TableCell icon"
data-telemetry-title="Table Row helm charts"
>
<figure>
<div>
@ -6135,29 +6232,35 @@ exports[`opening dock tab for installing helm chart given application is started
</div>
<div
class="TableCell name"
data-telemetry-title="Table Row helm charts"
>
some-name
</div>
<div
class="TableCell description"
data-telemetry-title="Table Row helm charts"
>
some-description
</div>
<div
class="TableCell version"
data-telemetry-title="Table Row helm charts"
>
some-version
</div>
<div
class="TableCell app-version"
data-telemetry-title="Table Row helm charts"
/>
<div
class="TableCell some-repository repository"
data-telemetry-title="Table Row helm charts"
>
some-repository
</div>
<div
class="TableCell menu"
data-telemetry-title="Table Row helm charts"
/>
</div>
</div>
@ -6170,6 +6273,7 @@ exports[`opening dock tab for installing helm chart given application is started
>
<div
class="TableCell icon"
data-telemetry-title="Table Row helm charts"
>
<figure>
<div>
@ -6214,29 +6318,35 @@ exports[`opening dock tab for installing helm chart given application is started
</div>
<div
class="TableCell name"
data-telemetry-title="Table Row helm charts"
>
some-other-name
</div>
<div
class="TableCell description"
data-telemetry-title="Table Row helm charts"
>
some-description
</div>
<div
class="TableCell version"
data-telemetry-title="Table Row helm charts"
>
some-version
</div>
<div
class="TableCell app-version"
data-telemetry-title="Table Row helm charts"
/>
<div
class="TableCell some-repository repository"
data-telemetry-title="Table Row helm charts"
>
some-repository
</div>
<div
class="TableCell menu"
data-telemetry-title="Table Row helm charts"
/>
</div>
</div>

View File

@ -5,7 +5,7 @@
import type { AsyncFnMock } from "@async-fn/jest";
import asyncFn from "@async-fn/jest";
import type { RenderResult } from "@testing-library/react";
import { fireEvent } from "@testing-library/react";
import { fireEvent } from "@testing-library/react";
import type { ApplicationBuilder } from "../../../renderer/components/test-utils/get-application-builder";
import { getApplicationBuilder } from "../../../renderer/components/test-utils/get-application-builder";
import type { CallForHelmCharts } from "../../../renderer/components/+helm-charts/helm-charts/call-for-helm-charts.injectable";
@ -54,6 +54,13 @@ describe("installing helm chart from new tab", () => {
callForCreateHelmReleaseMock = asyncFn();
builder.beforeApplicationStart(({ rendererDi }) => {
/*rendererDi.override(
onClickTelemetryDecoratorInjectable,
() => ({
onClick: (f) => (e) => { return f(e); },
}),
);*/
rendererDi.override(
directoryForLensLocalStorageInjectable,
() => "/some-directory-for-lens-local-storage",
@ -370,6 +377,8 @@ describe("installing helm chart from new tab", () => {
});
it("install button is disabled", () => {
fireEvent.click(installButton);
expect(installButton).toHaveAttribute("disabled");
});

View File

@ -965,7 +965,6 @@ exports[`preferences - navigation to kubernetes preferences given in preferences
>
<button
class="Button PathPicker primary"
type="button"
>
Sync Files and Folders
</button>
@ -1076,8 +1075,8 @@ exports[`preferences - navigation to kubernetes preferences given in preferences
</div>
<button
class="Button primary"
data-telemetry-title="Add Custom Helm Repo Custom Title"
data-testid="add-custom-helm-repo-button"
type="button"
>
Add Custom Helm Repo
</button>

View File

@ -17,6 +17,7 @@ const NonInjectedActivationOfCustomHelmRepositoryOpenButton = ({ showDialog }: D
label="Add Custom Helm Repo"
onClick={showDialog}
data-testid="add-custom-helm-repo-button"
data-telemetry-title="Add Custom Helm Repo Custom Title"
/>
);

View File

@ -5,11 +5,22 @@
import React from "react";
import "@testing-library/jest-dom/extend-expect";
import { render } from "@testing-library/react";
import { Avatar } from "../avatar";
import { Icon } from "../../icon";
import type { DiContainer } from "@ogre-tools/injectable";
import type { DiRender } from "../../test-utils/renderFor";
import { renderFor } from "../../test-utils/renderFor";
import { getDiForUnitTesting } from "../../../getDiForUnitTesting";
describe("<Avatar/>", () => {
let di: DiContainer;
let render: DiRender;
beforeEach(() => {
di = getDiForUnitTesting({ doGeneralOverrides: true });
render = renderFor(di);
});
test("renders w/o errors", () => {
const { container } = render(<Avatar title="John Ferguson"/>);

View File

@ -11,7 +11,7 @@ import randomColor from "randomcolor";
import GraphemeSplitter from "grapheme-splitter";
import type { SingleOrMany } from "../../utils";
import { cssNames, isDefined, iter } from "../../utils";
import { OpenLensButton } from "../button";
import { OnClickDecorated } from "../on-click-decorated/on-click-decorated";
export interface AvatarProps {
title: string;
@ -78,7 +78,8 @@ export const Avatar = ({
onClick,
"data-testid": dataTestId,
}: AvatarProps) => (
<OpenLensButton
<OnClickDecorated
tagName="div"
className={cssNames(styles.Avatar, {
[styles.circle]: variant == "circle",
[styles.rounded]: variant == "rounded",
@ -106,5 +107,5 @@ export const Avatar = ({
/>
)
: children || getLabelFromTitle(title)}
</OpenLensButton>
</OnClickDecorated>
);

View File

@ -25,48 +25,61 @@ export interface ButtonProps extends ButtonHTMLAttributes<any> {
round?: boolean;
href?: string; // render as hyperlink
target?: "_blank"; // in case of using @href
Component?: React.ComponentType<any>;
}
const PlainButton = (props: React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>) => <button {...props} />;
const PlainAnchor = (props: React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>) => <a {...props} />;
export const Button = withTooltip((props: ButtonProps) => {
const prepareProps = (props: ButtonProps) => {
const {
waiting, label, primary, accent, plain, hidden, active, big,
round, outlined, light, children, Component, ...btnProps
round, outlined, light, children, ...btnProps
} = props;
if (hidden) return null;
const ButtonComponent = Component ?? (props.href ? PlainAnchor : PlainButton);
btnProps.className = cssNames("Button", btnProps.className, {
waiting, primary, accent, plain, active, big, round, outlined, light,
});
return btnProps;
};
export const Button = withTooltip((props: ButtonProps) => {
const { label, children, hidden } = props;
if (hidden) return null;
const btnProps = prepareProps(props);
// render as link
if (props.href) {
return (
<ButtonComponent
<a
{...btnProps}>
{label}
{children}
</ButtonComponent>
</a>
);
}
// render as button
return (
<ButtonComponent
<button
type="button"
{...btnProps}>
{label}
{children}
</ButtonComponent>
</button>
);
});
export const OpenLensButton = (props: ButtonProps & TooltipDecoratorProps) => {
return <Button {...props} Component={(props) => <OnClickDecorated {...props} tagName={props.href ? "a" : "button"} />} />;
const { label, children, hidden } = props;
if (hidden) return null;
const buttonProps = prepareProps(props);
return (
<OnClickDecorated {...buttonProps} tagName={props.href ? "a" : "button"}>
{label}
{children}
</OnClickDecorated>
);
};

View File

@ -10,7 +10,7 @@ import React, { Component } from "react";
import { computed, observable, reaction, makeObservable } from "mobx";
import { disposeOnUnmount, observer } from "mobx-react";
import { cssNames } from "../../utils";
import { OpenLensButton } from "../button";
import { Button } from "../button";
import { Icon } from "../icon";
import { Spinner } from "../spinner";
import type { DockStore, TabId } from "./dock/store";
@ -146,13 +146,13 @@ class NonInjectedInfoPanel extends Component<InfoPanelProps & Dependencies> {
)}
{showButtons && (
<>
<OpenLensButton
<Button
plain
label="Cancel"
onClick={close}
data-testid={this.props.cancelTestId}
/>
<OpenLensButton
<Button
active
outlined={showSubmitClose}
primary={!showSubmitClose}// one button always should be primary (blue)
@ -162,7 +162,7 @@ class NonInjectedInfoPanel extends Component<InfoPanelProps & Dependencies> {
data-testid={this.props.submitTestId}
/>
{showSubmitClose && (
<OpenLensButton
<Button
primary
active
label={`${submitLabel} & Close`}

View File

@ -103,6 +103,7 @@ class NonInjectedItemListLayoutContent<
copyClassNameFromHeadCells, customizeTableRowProps = () => ({}), detailsItem,
} = this.props;
const { isSelected } = store;
const telemetryTitle = `Table Row ${this.props.tableId?.split("_").join(" ")}`;
return (
<TableRow
@ -134,7 +135,12 @@ class NonInjectedItemListLayoutContent<
}
if (!headCell || this.showColumn(headCell)) {
return <TableCell key={index} {...cellProps} />;
return (
<TableCell
key={index}
{...cellProps}
telemetryTitle={telemetryTitle} />
);
}
return null;

View File

@ -115,14 +115,12 @@ exports[`kube-object-menu given kube object when removing kube object renders 1`
>
<button
class="Button cancel plain"
type="button"
>
Cancel
</button>
<button
class="Button ok primary"
data-testid="confirm"
type="button"
>
Remove
</button>
@ -241,14 +239,12 @@ exports[`kube-object-menu given kube object when rerendered with different kube
>
<button
class="Button cancel plain"
type="button"
>
Cancel
</button>
<button
class="Button ok primary"
data-testid="confirm"
type="button"
>
Remove
</button>
@ -333,14 +329,12 @@ exports[`kube-object-menu given kube object with namespace when removing kube ob
>
<button
class="Button cancel plain"
type="button"
>
Cancel
</button>
<button
class="Button ok primary"
data-testid="confirm"
type="button"
>
Remove
</button>
@ -425,14 +419,12 @@ exports[`kube-object-menu given kube object without namespace when removing kube
>
<button
class="Button cancel plain"
type="button"
>
Cancel
</button>
<button
class="Button ok primary"
data-testid="confirm"
type="button"
>
Remove
</button>

View File

@ -43,6 +43,7 @@ export const TabLayout = observer(
active={active}
data-is-active-test={active}
data-testid={`tab-link-for-${registration.id}`}
data-telemetry-title={`Tab ${registration.title?.toString()}`}
/>
);
})}

View File

@ -1,11 +0,0 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`foobar given A -element 1`] = `
<body>
<div>
<a
data-testid="some-anchor"
/>
</div>
</body>
`;

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`foobar given A -element 1`] = `
exports[`<OnClickDecorated /> given A -element 1`] = `
<body>
<div>
<a

View File

@ -14,7 +14,7 @@ import type { DiContainer } from "@ogre-tools/injectable";
import { getInjectable } from "@ogre-tools/injectable";
import { OnClickDecorated } from "./on-click-decorated";
describe("foobar", () => {
describe("<OnClickDecorated />", () => {
let di: DiContainer;
let render: DiRender;

View File

@ -15,16 +15,21 @@ interface Dependencies {
interface ClickDecoratedProps extends HTMLAttributes<any> {
onClick?: MouseEventHandler<any>;
tagName: "button" | "a";
tagName: "button" | "a" | "div";
}
const NonInjectedOnClickDecorated = ({ decorators, tagName: TagName, onClick, ...props }: Dependencies & ClickDecoratedProps) => {
const NonInjectedOnClickDecorated = React.forwardRef<HTMLButtonElement & HTMLAnchorElement & HTMLDivElement, Dependencies & ClickDecoratedProps>(({ decorators, tagName: TagName, onClick, ...props }, ref) => {
const onClickDecorators = decorators.map(decorator => decorator.onClick);
const decoratedOnClick = onClick ? flow(...onClickDecorators)(onClick) : undefined;
return <TagName {...props} onClick={decoratedOnClick} />;
};
return (
<TagName
{...props}
ref={ref}
onClick={decoratedOnClick} />
);
});
export const OnClickDecorated = withInjectables<Dependencies, ClickDecoratedProps>(
NonInjectedOnClickDecorated,

View File

@ -38,7 +38,10 @@ function getEventName(el: HTMLElement, pathname: string, parentLevels = 3) {
}
function captureMouseEvent(eventBus: EventEmitter<[AppEvent]>, event: React.MouseEvent) {
const name = getEventName(event.target as HTMLElement, window.location.pathname);
const eventTarget = event.target as HTMLElement;
const customTitle = eventTarget?.dataset.telemetryTitle;
const name = customTitle ?? getEventName(eventTarget, window.location.pathname);
eventBus.emit({
name,

View File

@ -11,6 +11,7 @@ import React from "react";
import { autoBind, cssNames } from "../../utils";
import { Icon } from "../icon";
import { Checkbox } from "../checkbox";
import { OnClickDecorated } from "../on-click-decorated/on-click-decorated";
export type TableCellElem = React.ReactElement<TableCellProps>;
@ -70,6 +71,8 @@ export interface TableCellProps extends React.DOMAttributes<HTMLDivElement> {
* indicator, might come from parent <TableHead>, don't use this prop outside (!)
*/
_nowrap?: boolean;
telemetryTitle?: string;
}
export class TableCell extends React.Component<TableCellProps> {
@ -132,6 +135,7 @@ export class TableCell extends React.Component<TableCellProps> {
children,
title,
showWithColumn,
telemetryTitle,
...cellProps
} = this.props;
@ -144,7 +148,9 @@ export class TableCell extends React.Component<TableCellProps> {
const content = title || children;
return (
<div
<OnClickDecorated
tagName="div"
data-telemetry-title={telemetryTitle}
{...cellProps}
className={classNames}
onClick={this.onClick}
@ -152,7 +158,7 @@ export class TableCell extends React.Component<TableCellProps> {
{this.renderCheckbox()}
{_nowrap ? <div className="content">{content}</div> : content}
{this.renderSortIcon()}
</div>
</OnClickDecorated>
);
}
}

View File

@ -8,6 +8,7 @@ import type { DOMAttributes } from "react";
import React from "react";
import { autoBind, cssNames } from "../../utils";
import { Icon } from "../icon";
import { OnClickDecorated } from "../on-click-decorated/on-click-decorated";
const TabsContext = React.createContext<TabsContextValue>({});
@ -124,7 +125,8 @@ export class Tab extends React.PureComponent<TabProps> {
});
return (
<div
<OnClickDecorated
tagName="div"
{...elemProps}
className={className}
tabIndex={0}
@ -138,7 +140,7 @@ export class Tab extends React.PureComponent<TabProps> {
<div className="label">
{label}
</div>
</div>
</OnClickDecorated>
);
}
}

View File

@ -1267,6 +1267,7 @@ exports[`<ClusterFrame /> given cluster without list nodes, but with namespaces
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-telemetry-title="Tab Overview"
data-testid="tab-link-for-overview"
role="tab"
tabindex="0"