-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev-toolbar.component.html
More file actions
77 lines (72 loc) · 2.88 KB
/
dev-toolbar.component.html
File metadata and controls
77 lines (72 loc) · 2.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!-- Copyright The Linux Foundation and each contributor to LFX. -->
<!-- SPDX-License-Identifier: MIT -->
@if (showDevToolbar()) {
<div class="fixed top-0 left-0 right-0 z-50 bg-gray-900 text-white px-4 py-2" data-testid="dev-tools-bar">
<div class="flex items-center gap-4 max-w-full">
<!-- Persona Selector -->
<div class="flex items-center gap-2" data-testid="dev-tools-bar-persona">
<label for="persona-select" class="text-xs text-gray-400">Persona:</label>
<lfx-select
[form]="form"
control="persona"
[options]="personaPresets"
optionLabel="label"
optionValue="value"
[showClear]="false"
styleClass="min-w-44 dev-tools-select"
inputId="persona-select"
data-testid="dev-tools-bar-persona-selector" />
</div>
<!-- Project/Foundation Selector (hidden on Me lens) -->
@if (showProjectSelector()) {
<div class="flex items-center gap-2" data-testid="dev-tools-bar-project-override">
<label for="project-override-select" class="text-xs text-gray-400">{{ selectorLabel() }}</label>
<lfx-select
[form]="form"
control="selectedProjectUid"
[options]="projectContextService.availableProjects()"
optionLabel="name"
optionValue="uid"
[filter]="true"
filterPlaceholder="Search..."
placeholder="Select..."
[showClear]="false"
styleClass="min-w-52 dev-tools-select"
inputId="project-override-select"
data-testid="dev-tools-bar-project-override-select" />
</div>
}
<!-- Organization Selector (visible on foundation lens) -->
@if (isFoundationLens() && showOrganizationSelector()) {
<div class="flex items-center gap-2" data-testid="dev-tools-bar-organization">
<label for="organization-select" class="text-xs text-gray-400">Organization:</label>
<lfx-select
[form]="form"
control="selectedAccountId"
[options]="availableAccounts()"
optionLabel="accountName"
optionValue="accountId"
[filter]="true"
filterPlaceholder="Search organizations..."
placeholder="Select an organization"
[showClear]="false"
styleClass="min-w-64 dev-tools-select"
inputId="organization-select"
data-testid="dev-tools-bar-organization-select" />
</div>
}
<!-- Spacer -->
<div class="flex-1"></div>
<lfx-button
icon="fa-solid fa-trash-can"
label="Clear Cache"
severity="secondary"
size="small"
[text]="true"
styleClass="!text-gray-300 hover:!text-white hover:!bg-gray-800"
(onClick)="clearCache()"
data-testid="dev-tools-bar-clear-cache">
</lfx-button>
</div>
</div>
}