@burdenoff/fe-libs 2026.1018.1 → 2026.1019.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chrome/AccountSwitcher.js +90 -89
- package/dist/chrome/Breadcrumbs.js +1 -1
- package/dist/chrome/CommandPalette.js +91 -90
- package/dist/chrome/Footer.js +31 -8
- package/dist/chrome/GlobalSearch.js +78 -77
- package/dist/chrome/HeaderBar.js +1 -1
- package/dist/chrome/HeaderThemeSwitcher.js +48 -47
- package/dist/chrome/LanguagePickerSheet.js +23 -22
- package/dist/chrome/NavCustomizeDialog.d.ts +0 -14
- package/dist/chrome/NavCustomizeDialog.js +114 -122
- package/dist/chrome/PanelTabs.js +45 -41
- package/dist/chrome/PersonaSurfaceControls.d.ts +0 -17
- package/dist/chrome/PersonaSurfaceControls.js +115 -118
- package/dist/chrome/PluginSettingsPage.js +29 -28
- package/dist/chrome/PluginWidgetGrid.js +19 -18
- package/dist/chrome/ProductPickerSheet.js +44 -47
- package/dist/chrome/ProductSwitcher.js +2 -6
- package/dist/chrome/ProfileSwitcher.js +6 -10
- package/dist/chrome/ShortcutHelpDialog.js +60 -65
- package/dist/chrome/SideNavigation.js +2 -2
- package/dist/chrome/Sidebar.js +44 -43
- package/dist/chrome/ThemePreferences.js +289 -267
- package/dist/chrome/contextSwitcher/EmptyState.js +31 -27
- package/dist/chrome/contextSwitcher/OrganizationList.js +40 -30
- package/dist/chrome/contextSwitcher/ProjectList.js +48 -44
- package/dist/chrome/contextSwitcher/SearchInput.js +44 -40
- package/dist/chrome/contextSwitcher/TriggerButton.js +2 -2
- package/dist/chrome/contextSwitcher/WorkspaceList.js +36 -32
- package/dist/chrome/globalSearch/AdvancedFiltersPanel.js +128 -126
- package/dist/chrome/globalSearch/ResultsList.js +25 -27
- package/dist/chrome/globalSearch/SearchInput.js +16 -14
- package/dist/chrome/notificationCenter/NotificationCardItem.js +58 -47
- package/dist/chrome/notificationCenter/NotificationFilters.js +76 -62
- package/dist/chrome/notificationCenter/NotificationFooter.js +21 -21
- package/dist/chrome/notificationCenter/NotificationHeader.js +67 -63
- package/dist/chrome/notificationCenter/NotificationList.js +75 -71
- package/dist/chrome/notificationCenter/NotificationPanel.js +37 -33
- package/dist/chrome/notificationCenter/PushOptInToggle.js +33 -32
- package/dist/chrome/notificationCenter/constants.d.ts +6 -1
- package/dist/chrome/notificationCenter/constants.js +12 -11
- package/dist/chrome/useThemeOptionLabels.d.ts +33 -0
- package/dist/chrome/useThemeOptionLabels.js +39 -0
- package/dist/shared/assistant/conversation.d.ts +8 -0
- package/dist/shared/assistant/history/historyMapping.js +1 -1
- package/dist/shared/assistant/ui/AssistantMarkdownRenderer.d.ts +6 -6
- package/dist/shared/assistant/ui/AssistantMarkdownRenderer.js +86 -85
- package/dist/shared/assistant/ui/AssistantMessageItem.js +101 -96
- package/dist/shared/assistant/ui/AssistantWriteProposalCard.d.ts +2 -0
- package/dist/shared/assistant/ui/AssistantWriteProposalCard.js +93 -89
- package/dist/shared/assistant/ui/WorkflowAssistantPanel.js +152 -140
- package/dist/shared/assistant/ui/useWriteProposals.js +122 -85
- package/dist/shared/assistant/writeProposalDiscovery.d.ts +3 -1
- package/dist/shared/assistant/writeProposalDiscovery.js +2 -2
- package/dist/shared/events/sinks/RybbitSink.js +2 -2
- package/dist/shared/providers/shell/interpolateShellLabel.d.ts +3 -0
- package/dist/shared/providers/shell/interpolateShellLabel.js +11 -0
- package/dist/shared/providers/shell/useAssistantShellLabels.d.ts +45 -0
- package/dist/shared/providers/shell/useAssistantShellLabels.js +54 -0
- package/dist/shared/tours/TourPlayer.js +33 -32
- package/dist/shared/tours/TourTooltip.js +108 -109
- package/dist/shared/tours/tourTrigger/MobileTourSheet.js +98 -85
- package/dist/shared/tours/tourTrigger/TourListItemDesktop.js +20 -18
- package/dist/shared/tours/tourTrigger/TourListItemMobile.js +23 -25
- package/dist/shared-assistant.js +188 -188
- package/package.json +2 -2
|
@@ -1,253 +1,255 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useShellLabel as e } from "../../shared/providers/shell/useShellLabel.js";
|
|
2
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
2
3
|
//#region src/chrome/globalSearch/AdvancedFiltersPanel.tsx
|
|
3
|
-
function
|
|
4
|
-
|
|
4
|
+
function r({ filters: r }) {
|
|
5
|
+
let i = e();
|
|
6
|
+
return /* @__PURE__ */ n("div", {
|
|
5
7
|
className: "px-3 py-2 border-b border-border-subtle space-y-2 bg-bg-sunken/40 max-h-64 overflow-y-auto",
|
|
6
8
|
children: [
|
|
7
|
-
/* @__PURE__ */
|
|
9
|
+
/* @__PURE__ */ n("div", {
|
|
8
10
|
className: "flex items-center gap-2",
|
|
9
|
-
children: [/* @__PURE__ */
|
|
11
|
+
children: [/* @__PURE__ */ t("label", {
|
|
10
12
|
className: "text-[10px] font-medium text-text-muted w-16 flex-shrink-0",
|
|
11
|
-
children: "Sort by"
|
|
12
|
-
}), /* @__PURE__ */
|
|
13
|
-
value:
|
|
14
|
-
onChange: (e) =>
|
|
13
|
+
children: i("search.sortBy", "Sort by")
|
|
14
|
+
}), /* @__PURE__ */ n("select", {
|
|
15
|
+
value: r.sortBy,
|
|
16
|
+
onChange: (e) => r.setSortBy(e.target.value),
|
|
15
17
|
className: "flex-1 h-7 text-xs rounded-input border border-border-subtle bg-bg-surface text-text-primary px-2 outline-none focus:border-border-strong scheme-normal dark:scheme-dark transition-colors [&_option]:bg-bg-surface [&_option]:text-text-primary",
|
|
16
18
|
children: [
|
|
17
|
-
/* @__PURE__ */
|
|
19
|
+
/* @__PURE__ */ t("option", {
|
|
18
20
|
value: "SCORE_DESC",
|
|
19
|
-
children: "Relevance"
|
|
21
|
+
children: i("search.relevance", "Relevance")
|
|
20
22
|
}),
|
|
21
|
-
/* @__PURE__ */
|
|
23
|
+
/* @__PURE__ */ t("option", {
|
|
22
24
|
value: "CREATED_DESC",
|
|
23
|
-
children: "Newest first"
|
|
25
|
+
children: i("search.newestFirst", "Newest first")
|
|
24
26
|
}),
|
|
25
|
-
/* @__PURE__ */
|
|
27
|
+
/* @__PURE__ */ t("option", {
|
|
26
28
|
value: "CREATED_ASC",
|
|
27
|
-
children: "Oldest first"
|
|
29
|
+
children: i("search.oldestFirst", "Oldest first")
|
|
28
30
|
}),
|
|
29
|
-
/* @__PURE__ */
|
|
31
|
+
/* @__PURE__ */ t("option", {
|
|
30
32
|
value: "UPDATED_DESC",
|
|
31
|
-
children: "Recently updated"
|
|
33
|
+
children: i("search.recentlyUpdated", "Recently updated")
|
|
32
34
|
}),
|
|
33
|
-
/* @__PURE__ */
|
|
35
|
+
/* @__PURE__ */ t("option", {
|
|
34
36
|
value: "UPDATED_ASC",
|
|
35
|
-
children: "Least recently updated"
|
|
37
|
+
children: i("search.leastRecentlyUpdated", "Least recently updated")
|
|
36
38
|
}),
|
|
37
|
-
/* @__PURE__ */
|
|
39
|
+
/* @__PURE__ */ t("option", {
|
|
38
40
|
value: "TITLE_ASC",
|
|
39
|
-
children: "Title A-Z"
|
|
41
|
+
children: i("search.titleAZ", "Title A-Z")
|
|
40
42
|
}),
|
|
41
|
-
/* @__PURE__ */
|
|
43
|
+
/* @__PURE__ */ t("option", {
|
|
42
44
|
value: "TITLE_DESC",
|
|
43
|
-
children: "Title Z-A"
|
|
45
|
+
children: i("search.titleZA", "Title Z-A")
|
|
44
46
|
})
|
|
45
47
|
]
|
|
46
48
|
})]
|
|
47
49
|
}),
|
|
48
|
-
/* @__PURE__ */
|
|
50
|
+
/* @__PURE__ */ n("div", {
|
|
49
51
|
className: "flex items-center gap-2",
|
|
50
|
-
children: [/* @__PURE__ */
|
|
52
|
+
children: [/* @__PURE__ */ t("label", {
|
|
51
53
|
className: "text-[10px] font-medium text-text-muted w-16 flex-shrink-0",
|
|
52
|
-
children: "Products"
|
|
53
|
-
}), /* @__PURE__ */
|
|
54
|
-
"aria-label": "Product sources filter",
|
|
54
|
+
children: i("search.products", "Products")
|
|
55
|
+
}), /* @__PURE__ */ t("input", {
|
|
56
|
+
"aria-label": i("search.productSourcesFilter", "Product sources filter"),
|
|
55
57
|
type: "text",
|
|
56
58
|
placeholder: "vibecontrols, wspace-tags",
|
|
57
|
-
value:
|
|
58
|
-
onChange: (e) =>
|
|
59
|
+
value: r.productSourcesInput,
|
|
60
|
+
onChange: (e) => r.setProductSourcesInput(e.target.value),
|
|
59
61
|
className: "flex-1 h-7 text-xs rounded-input border border-border-subtle bg-bg-surface text-text-primary px-2 outline-none focus:border-border-strong placeholder:text-text-placeholder transition-colors"
|
|
60
62
|
})]
|
|
61
63
|
}),
|
|
62
|
-
/* @__PURE__ */
|
|
64
|
+
/* @__PURE__ */ n("div", {
|
|
63
65
|
className: "flex items-center gap-2",
|
|
64
|
-
children: [/* @__PURE__ */
|
|
66
|
+
children: [/* @__PURE__ */ t("label", {
|
|
65
67
|
className: "text-[10px] font-medium text-text-muted w-16 flex-shrink-0",
|
|
66
|
-
children: "Project"
|
|
67
|
-
}), /* @__PURE__ */
|
|
68
|
-
"aria-label": "Project ID filter",
|
|
68
|
+
children: i("contextSwitcher.project", "Project")
|
|
69
|
+
}), /* @__PURE__ */ t("input", {
|
|
70
|
+
"aria-label": i("search.projectIDFilter", "Project ID filter"),
|
|
69
71
|
type: "text",
|
|
70
|
-
placeholder: "Project ID",
|
|
71
|
-
value:
|
|
72
|
-
onChange: (e) =>
|
|
72
|
+
placeholder: i("projectDetail.projectId", "Project ID"),
|
|
73
|
+
value: r.projectId,
|
|
74
|
+
onChange: (e) => r.setProjectId(e.target.value),
|
|
73
75
|
className: "flex-1 h-7 text-xs rounded-input border border-border-subtle bg-bg-surface text-text-primary px-2 outline-none focus:border-border-strong placeholder:text-text-placeholder transition-colors"
|
|
74
76
|
})]
|
|
75
77
|
}),
|
|
76
|
-
/* @__PURE__ */
|
|
78
|
+
/* @__PURE__ */ n("div", {
|
|
77
79
|
className: "flex items-center gap-2",
|
|
78
|
-
children: [/* @__PURE__ */
|
|
80
|
+
children: [/* @__PURE__ */ t("label", {
|
|
79
81
|
className: "text-[10px] font-medium text-text-muted w-16 flex-shrink-0",
|
|
80
|
-
children: "Created by"
|
|
81
|
-
}), /* @__PURE__ */
|
|
82
|
+
children: i("search.createdBy", "Created by")
|
|
83
|
+
}), /* @__PURE__ */ t("input", {
|
|
82
84
|
type: "text",
|
|
83
|
-
placeholder: "Actor ID",
|
|
84
|
-
value:
|
|
85
|
-
onChange: (e) =>
|
|
85
|
+
placeholder: i("rbac.checker.form.actorId.label", "Actor ID"),
|
|
86
|
+
value: r.createdBy,
|
|
87
|
+
onChange: (e) => r.setCreatedBy(e.target.value),
|
|
86
88
|
className: "flex-1 h-7 text-xs rounded-input border border-border-subtle bg-bg-surface text-text-primary px-2 outline-none focus:border-border-strong placeholder:text-text-placeholder transition-colors"
|
|
87
89
|
})]
|
|
88
90
|
}),
|
|
89
|
-
/* @__PURE__ */
|
|
91
|
+
/* @__PURE__ */ n("div", {
|
|
90
92
|
className: "flex items-center gap-2",
|
|
91
|
-
children: [/* @__PURE__ */
|
|
93
|
+
children: [/* @__PURE__ */ t("label", {
|
|
92
94
|
className: "text-[10px] font-medium text-text-muted w-16 flex-shrink-0",
|
|
93
|
-
children: "Updated by"
|
|
94
|
-
}), /* @__PURE__ */
|
|
95
|
-
"aria-label": "Updated by filter",
|
|
95
|
+
children: i("search.updatedBy", "Updated by")
|
|
96
|
+
}), /* @__PURE__ */ t("input", {
|
|
97
|
+
"aria-label": i("search.updatedByFilter", "Updated by filter"),
|
|
96
98
|
type: "text",
|
|
97
|
-
placeholder: "Actor ID",
|
|
98
|
-
value:
|
|
99
|
-
onChange: (e) =>
|
|
99
|
+
placeholder: i("rbac.checker.form.actorId.label", "Actor ID"),
|
|
100
|
+
value: r.updatedBy,
|
|
101
|
+
onChange: (e) => r.setUpdatedBy(e.target.value),
|
|
100
102
|
className: "flex-1 h-7 text-xs rounded-input border border-border-subtle bg-bg-surface text-text-primary px-2 outline-none focus:border-border-strong placeholder:text-text-placeholder transition-colors"
|
|
101
103
|
})]
|
|
102
104
|
}),
|
|
103
|
-
/* @__PURE__ */
|
|
105
|
+
/* @__PURE__ */ n("div", {
|
|
104
106
|
className: "flex items-center gap-2",
|
|
105
|
-
children: [/* @__PURE__ */
|
|
107
|
+
children: [/* @__PURE__ */ t("label", {
|
|
106
108
|
className: "text-[10px] font-medium text-text-muted w-16 flex-shrink-0",
|
|
107
|
-
children: "Date from"
|
|
108
|
-
}), /* @__PURE__ */
|
|
109
|
+
children: i("search.dateFrom", "Date from")
|
|
110
|
+
}), /* @__PURE__ */ t("input", {
|
|
109
111
|
type: "date",
|
|
110
|
-
value:
|
|
111
|
-
onChange: (e) =>
|
|
112
|
+
value: r.dateFrom,
|
|
113
|
+
onChange: (e) => r.setDateFrom(e.target.value),
|
|
112
114
|
className: "flex-1 h-7 text-xs rounded-input border border-border-subtle bg-bg-surface text-text-primary px-2 outline-none focus:border-border-strong transition-colors"
|
|
113
115
|
})]
|
|
114
116
|
}),
|
|
115
|
-
/* @__PURE__ */
|
|
117
|
+
/* @__PURE__ */ n("div", {
|
|
116
118
|
className: "flex items-center gap-2",
|
|
117
|
-
children: [/* @__PURE__ */
|
|
119
|
+
children: [/* @__PURE__ */ t("label", {
|
|
118
120
|
className: "text-[10px] font-medium text-text-muted w-16 flex-shrink-0",
|
|
119
|
-
children: "Date to"
|
|
120
|
-
}), /* @__PURE__ */
|
|
121
|
+
children: i("search.dateTo", "Date to")
|
|
122
|
+
}), /* @__PURE__ */ t("input", {
|
|
121
123
|
type: "date",
|
|
122
|
-
value:
|
|
123
|
-
onChange: (e) =>
|
|
124
|
+
value: r.dateTo,
|
|
125
|
+
onChange: (e) => r.setDateTo(e.target.value),
|
|
124
126
|
className: "flex-1 h-7 text-xs rounded-input border border-border-subtle bg-bg-surface text-text-primary px-2 outline-none focus:border-border-strong transition-colors"
|
|
125
127
|
})]
|
|
126
128
|
}),
|
|
127
|
-
/* @__PURE__ */
|
|
129
|
+
/* @__PURE__ */ n("div", {
|
|
128
130
|
className: "flex items-center gap-2",
|
|
129
|
-
children: [/* @__PURE__ */
|
|
131
|
+
children: [/* @__PURE__ */ t("label", {
|
|
130
132
|
className: "text-[10px] font-medium text-text-muted w-16 flex-shrink-0",
|
|
131
|
-
children: "Updated from"
|
|
132
|
-
}), /* @__PURE__ */
|
|
133
|
-
"aria-label": "Updated from date",
|
|
133
|
+
children: i("search.updatedFrom", "Updated from")
|
|
134
|
+
}), /* @__PURE__ */ t("input", {
|
|
135
|
+
"aria-label": i("search.updatedFromDate", "Updated from date"),
|
|
134
136
|
type: "date",
|
|
135
|
-
value:
|
|
136
|
-
onChange: (e) =>
|
|
137
|
+
value: r.updatedDateFrom,
|
|
138
|
+
onChange: (e) => r.setUpdatedDateFrom(e.target.value),
|
|
137
139
|
className: "flex-1 h-7 text-xs rounded-input border border-border-subtle bg-bg-surface text-text-primary px-2 outline-none focus:border-border-strong transition-colors"
|
|
138
140
|
})]
|
|
139
141
|
}),
|
|
140
|
-
/* @__PURE__ */
|
|
142
|
+
/* @__PURE__ */ n("div", {
|
|
141
143
|
className: "flex items-center gap-2",
|
|
142
|
-
children: [/* @__PURE__ */
|
|
144
|
+
children: [/* @__PURE__ */ t("label", {
|
|
143
145
|
className: "text-[10px] font-medium text-text-muted w-16 flex-shrink-0",
|
|
144
|
-
children: "Updated to"
|
|
145
|
-
}), /* @__PURE__ */
|
|
146
|
-
"aria-label": "Updated to date",
|
|
146
|
+
children: i("search.updatedTo", "Updated to")
|
|
147
|
+
}), /* @__PURE__ */ t("input", {
|
|
148
|
+
"aria-label": i("search.updatedToDate", "Updated to date"),
|
|
147
149
|
type: "date",
|
|
148
|
-
value:
|
|
149
|
-
onChange: (e) =>
|
|
150
|
+
value: r.updatedDateTo,
|
|
151
|
+
onChange: (e) => r.setUpdatedDateTo(e.target.value),
|
|
150
152
|
className: "flex-1 h-7 text-xs rounded-input border border-border-subtle bg-bg-surface text-text-primary px-2 outline-none focus:border-border-strong transition-colors"
|
|
151
153
|
})]
|
|
152
154
|
}),
|
|
153
|
-
/* @__PURE__ */
|
|
155
|
+
/* @__PURE__ */ n("div", {
|
|
154
156
|
className: "flex items-center gap-2",
|
|
155
|
-
children: [/* @__PURE__ */
|
|
157
|
+
children: [/* @__PURE__ */ t("label", {
|
|
156
158
|
className: "text-[10px] font-medium text-text-muted w-16 flex-shrink-0",
|
|
157
|
-
children: "Tag keys"
|
|
158
|
-
}), /* @__PURE__ */
|
|
159
|
-
"aria-label": "Tag keys filter",
|
|
159
|
+
children: i("search.tagKeys", "Tag keys")
|
|
160
|
+
}), /* @__PURE__ */ t("input", {
|
|
161
|
+
"aria-label": i("search.tagKeysFilter", "Tag keys filter"),
|
|
160
162
|
type: "text",
|
|
161
163
|
placeholder: "search, team/platform",
|
|
162
|
-
value:
|
|
163
|
-
onChange: (e) =>
|
|
164
|
+
value: r.tagKeysInput,
|
|
165
|
+
onChange: (e) => r.setTagKeysInput(e.target.value),
|
|
164
166
|
className: "flex-1 h-7 text-xs rounded-input border border-border-subtle bg-bg-surface text-text-primary px-2 outline-none focus:border-border-strong placeholder:text-text-placeholder transition-colors"
|
|
165
167
|
})]
|
|
166
168
|
}),
|
|
167
|
-
/* @__PURE__ */
|
|
169
|
+
/* @__PURE__ */ n("div", {
|
|
168
170
|
className: "flex items-center gap-2",
|
|
169
|
-
children: [/* @__PURE__ */
|
|
171
|
+
children: [/* @__PURE__ */ t("label", {
|
|
170
172
|
className: "text-[10px] font-medium text-text-muted w-16 flex-shrink-0",
|
|
171
|
-
children: "Tag IDs"
|
|
172
|
-
}), /* @__PURE__ */
|
|
173
|
-
"aria-label": "Tag IDs filter",
|
|
173
|
+
children: i("search.tagIDs", "Tag IDs")
|
|
174
|
+
}), /* @__PURE__ */ t("input", {
|
|
175
|
+
"aria-label": i("search.tagIDsFilter", "Tag IDs filter"),
|
|
174
176
|
type: "text",
|
|
175
|
-
placeholder: "Comma-separated IDs",
|
|
176
|
-
value:
|
|
177
|
-
onChange: (e) =>
|
|
177
|
+
placeholder: i("search.commaSeparatedIDs", "Comma-separated IDs"),
|
|
178
|
+
value: r.tagIdsInput,
|
|
179
|
+
onChange: (e) => r.setTagIdsInput(e.target.value),
|
|
178
180
|
className: "flex-1 h-7 text-xs rounded-input border border-border-subtle bg-bg-surface text-text-primary px-2 outline-none focus:border-border-strong placeholder:text-text-placeholder transition-colors"
|
|
179
181
|
})]
|
|
180
182
|
}),
|
|
181
|
-
/* @__PURE__ */
|
|
183
|
+
/* @__PURE__ */ n("div", {
|
|
182
184
|
className: "flex items-center gap-2",
|
|
183
|
-
children: [/* @__PURE__ */
|
|
185
|
+
children: [/* @__PURE__ */ t("label", {
|
|
184
186
|
className: "text-[10px] font-medium text-text-muted w-16 flex-shrink-0",
|
|
185
|
-
children: "Tag paths"
|
|
186
|
-
}), /* @__PURE__ */
|
|
187
|
-
"aria-label": "Tag hierarchy filter",
|
|
187
|
+
children: i("search.tagPaths", "Tag paths")
|
|
188
|
+
}), /* @__PURE__ */ t("input", {
|
|
189
|
+
"aria-label": i("search.tagHierarchyFilter", "Tag hierarchy filter"),
|
|
188
190
|
type: "text",
|
|
189
191
|
placeholder: "team/engineering",
|
|
190
|
-
value:
|
|
191
|
-
onChange: (e) =>
|
|
192
|
+
value: r.tagPathsInput,
|
|
193
|
+
onChange: (e) => r.setTagPathsInput(e.target.value),
|
|
192
194
|
className: "flex-1 h-7 text-xs rounded-input border border-border-subtle bg-bg-surface text-text-primary px-2 outline-none focus:border-border-strong placeholder:text-text-placeholder transition-colors"
|
|
193
195
|
})]
|
|
194
196
|
}),
|
|
195
|
-
/* @__PURE__ */
|
|
197
|
+
/* @__PURE__ */ n("div", {
|
|
196
198
|
className: "grid grid-cols-[1fr_auto_1fr] gap-2 items-center",
|
|
197
199
|
children: [
|
|
198
|
-
/* @__PURE__ */
|
|
199
|
-
"aria-label": "Metadata key filter",
|
|
200
|
+
/* @__PURE__ */ t("input", {
|
|
201
|
+
"aria-label": i("search.metadataKeyFilter", "Metadata key filter"),
|
|
200
202
|
type: "text",
|
|
201
203
|
placeholder: "metadata.path",
|
|
202
|
-
value:
|
|
203
|
-
onChange: (e) =>
|
|
204
|
+
value: r.metadataKey,
|
|
205
|
+
onChange: (e) => r.setMetadataKey(e.target.value),
|
|
204
206
|
className: "h-7 text-xs rounded-input border border-border-subtle bg-bg-surface text-text-primary px-2 outline-none focus:border-border-strong placeholder:text-text-placeholder transition-colors"
|
|
205
207
|
}),
|
|
206
|
-
/* @__PURE__ */
|
|
207
|
-
"aria-label": "Metadata operator filter",
|
|
208
|
-
value:
|
|
209
|
-
onChange: (e) =>
|
|
208
|
+
/* @__PURE__ */ n("select", {
|
|
209
|
+
"aria-label": i("search.metadataOperatorFilter", "Metadata operator filter"),
|
|
210
|
+
value: r.metadataOperator,
|
|
211
|
+
onChange: (e) => r.setMetadataOperator(e.target.value),
|
|
210
212
|
className: "h-7 text-xs rounded-input border border-border-subtle bg-bg-surface text-text-primary px-2 outline-none focus:border-border-strong scheme-normal dark:scheme-dark transition-colors [&_option]:bg-bg-surface [&_option]:text-text-primary",
|
|
211
213
|
children: [
|
|
212
|
-
/* @__PURE__ */
|
|
214
|
+
/* @__PURE__ */ t("option", {
|
|
213
215
|
value: "EQUALS",
|
|
214
216
|
children: "="
|
|
215
217
|
}),
|
|
216
|
-
/* @__PURE__ */
|
|
218
|
+
/* @__PURE__ */ t("option", {
|
|
217
219
|
value: "NOT_EQUALS",
|
|
218
220
|
children: "≠"
|
|
219
221
|
}),
|
|
220
|
-
/* @__PURE__ */
|
|
222
|
+
/* @__PURE__ */ t("option", {
|
|
221
223
|
value: "CONTAINS",
|
|
222
|
-
children: "contains"
|
|
224
|
+
children: i("search.contains", "contains")
|
|
223
225
|
}),
|
|
224
|
-
/* @__PURE__ */
|
|
226
|
+
/* @__PURE__ */ t("option", {
|
|
225
227
|
value: "STARTS_WITH",
|
|
226
|
-
children: "starts"
|
|
228
|
+
children: i("search.starts", "starts")
|
|
227
229
|
})
|
|
228
230
|
]
|
|
229
231
|
}),
|
|
230
|
-
/* @__PURE__ */
|
|
231
|
-
"aria-label": "Metadata value filter",
|
|
232
|
+
/* @__PURE__ */ t("input", {
|
|
233
|
+
"aria-label": i("search.metadataValueFilter", "Metadata value filter"),
|
|
232
234
|
type: "text",
|
|
233
|
-
placeholder: "Value",
|
|
234
|
-
value:
|
|
235
|
-
onChange: (e) =>
|
|
235
|
+
placeholder: i("search.value", "Value"),
|
|
236
|
+
value: r.metadataValue,
|
|
237
|
+
onChange: (e) => r.setMetadataValue(e.target.value),
|
|
236
238
|
className: "h-7 text-xs rounded-input border border-border-subtle bg-bg-surface text-text-primary px-2 outline-none focus:border-border-strong placeholder:text-text-placeholder transition-colors"
|
|
237
239
|
})
|
|
238
240
|
]
|
|
239
241
|
}),
|
|
240
|
-
/* @__PURE__ */
|
|
242
|
+
/* @__PURE__ */ t("div", {
|
|
241
243
|
className: "flex justify-end",
|
|
242
|
-
children: /* @__PURE__ */
|
|
244
|
+
children: /* @__PURE__ */ t("button", {
|
|
243
245
|
type: "button",
|
|
244
|
-
onClick:
|
|
246
|
+
onClick: r.reset,
|
|
245
247
|
className: "text-[10px] text-text-muted hover:text-text-primary transition-colors",
|
|
246
|
-
children: "Clear filters"
|
|
248
|
+
children: i("common.clearFilters", "Clear filters")
|
|
247
249
|
})
|
|
248
250
|
})
|
|
249
251
|
]
|
|
250
252
|
});
|
|
251
253
|
}
|
|
252
254
|
//#endregion
|
|
253
|
-
export {
|
|
255
|
+
export { r as AdvancedFiltersPanel };
|
|
@@ -1,50 +1,48 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useShellLabel as e } from "../../shared/providers/shell/useShellLabel.js";
|
|
2
|
+
import { Clock as t, Loader2 as n } from "lucide-react";
|
|
3
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
3
4
|
//#region src/chrome/globalSearch/ResultsList.tsx
|
|
4
|
-
function
|
|
5
|
-
|
|
5
|
+
function a({ loading: a, error: o, query: s, results: c, groupedResults: l, recentSearches: u, onRecentSelect: d, onResultSelect: f }) {
|
|
6
|
+
let p = e();
|
|
7
|
+
return /* @__PURE__ */ i("div", {
|
|
6
8
|
className: "max-h-[60dvh] overflow-y-auto p-2",
|
|
7
9
|
children: [
|
|
8
|
-
|
|
10
|
+
a && /* @__PURE__ */ r("div", {
|
|
9
11
|
className: "flex items-center justify-center py-6",
|
|
10
|
-
children: /* @__PURE__ */ n
|
|
12
|
+
children: /* @__PURE__ */ r(n, { className: "size-4 animate-spin" })
|
|
11
13
|
}),
|
|
12
|
-
|
|
14
|
+
o && /* @__PURE__ */ r("div", {
|
|
13
15
|
className: "py-6 text-center text-sm text-status-error-text",
|
|
14
|
-
children:
|
|
16
|
+
children: o
|
|
15
17
|
}),
|
|
16
|
-
!
|
|
18
|
+
!a && !o && !s && u.length > 0 && /* @__PURE__ */ i("div", { children: [/* @__PURE__ */ r("div", {
|
|
17
19
|
className: "px-2 py-1.5 text-[11px] font-medium uppercase tracking-wider text-text-muted",
|
|
18
|
-
children: "Recent Searches"
|
|
19
|
-
}),
|
|
20
|
+
children: p("search.recentSearches", "Recent Searches")
|
|
21
|
+
}), u.map((e, n) => /* @__PURE__ */ i("button", {
|
|
20
22
|
type: "button",
|
|
21
|
-
onClick: () =>
|
|
23
|
+
onClick: () => d(e),
|
|
22
24
|
className: "w-full flex items-center gap-2 px-2 py-2 text-sm rounded-button text-text-secondary hover:bg-bg-sunken hover:text-text-primary transition-colors text-left",
|
|
23
|
-
children: [/* @__PURE__ */
|
|
24
|
-
},
|
|
25
|
-
!
|
|
25
|
+
children: [/* @__PURE__ */ r(t, { className: "size-4 opacity-50" }), e]
|
|
26
|
+
}, n))] }),
|
|
27
|
+
!a && !o && s && c.length === 0 && /* @__PURE__ */ r("div", {
|
|
26
28
|
className: "py-6 text-center text-sm text-text-muted",
|
|
27
|
-
children:
|
|
28
|
-
"No results found for \"",
|
|
29
|
-
o,
|
|
30
|
-
"\""
|
|
31
|
-
]
|
|
29
|
+
children: p("search.noResultsFor", "No results found for \"{{query}}\"", { query: s })
|
|
32
30
|
}),
|
|
33
|
-
!
|
|
31
|
+
!a && !o && Object.entries(l).map(([e, t]) => /* @__PURE__ */ i("div", { children: [/* @__PURE__ */ r("div", {
|
|
34
32
|
className: "px-2 py-1.5 text-[11px] font-medium uppercase tracking-wider text-text-muted",
|
|
35
33
|
children: e
|
|
36
34
|
}), t.map((e) => {
|
|
37
35
|
let t = e.icon;
|
|
38
|
-
return /* @__PURE__ */
|
|
36
|
+
return /* @__PURE__ */ i("button", {
|
|
39
37
|
type: "button",
|
|
40
|
-
onClick: () =>
|
|
38
|
+
onClick: () => f(e),
|
|
41
39
|
className: "w-full flex items-start gap-2 px-2 py-2 text-sm rounded-button text-text-secondary hover:bg-bg-sunken hover:text-text-primary transition-colors text-left",
|
|
42
|
-
children: [t && /* @__PURE__ */
|
|
40
|
+
children: [t && /* @__PURE__ */ r(t, { className: "size-4 mt-0.5 flex-shrink-0" }), /* @__PURE__ */ i("div", {
|
|
43
41
|
className: "flex-1 min-w-0",
|
|
44
|
-
children: [/* @__PURE__ */
|
|
42
|
+
children: [/* @__PURE__ */ r("div", {
|
|
45
43
|
className: "font-medium truncate text-text-primary",
|
|
46
44
|
children: e.title
|
|
47
|
-
}), e.description && /* @__PURE__ */
|
|
45
|
+
}), e.description && /* @__PURE__ */ r("div", {
|
|
48
46
|
className: "text-xs text-text-muted truncate",
|
|
49
47
|
children: e.description
|
|
50
48
|
})]
|
|
@@ -55,4 +53,4 @@ function i({ loading: i, error: a, query: o, results: s, groupedResults: c, rece
|
|
|
55
53
|
});
|
|
56
54
|
}
|
|
57
55
|
//#endregion
|
|
58
|
-
export {
|
|
56
|
+
export { a as ResultsList };
|
|
@@ -1,28 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useShellLabel as e } from "../../shared/providers/shell/useShellLabel.js";
|
|
2
|
+
import { Search as t, X as n } from "lucide-react";
|
|
3
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
3
4
|
//#region src/chrome/globalSearch/SearchInput.tsx
|
|
4
|
-
function
|
|
5
|
-
|
|
5
|
+
function a({ value: a, placeholder: o, onChange: s, onClear: c }) {
|
|
6
|
+
let l = e();
|
|
7
|
+
return /* @__PURE__ */ i("div", {
|
|
6
8
|
className: "flex items-center border-b border-border-subtle px-4",
|
|
7
9
|
children: [
|
|
8
|
-
/* @__PURE__ */
|
|
9
|
-
/* @__PURE__ */
|
|
10
|
+
/* @__PURE__ */ r(t, { className: "size-4 mr-2 flex-shrink-0 text-text-muted" }),
|
|
11
|
+
/* @__PURE__ */ r("input", {
|
|
10
12
|
type: "text",
|
|
11
|
-
placeholder:
|
|
12
|
-
value:
|
|
13
|
-
onChange: (e) =>
|
|
13
|
+
placeholder: o,
|
|
14
|
+
value: a,
|
|
15
|
+
onChange: (e) => s(e.target.value),
|
|
14
16
|
className: "flex-1 bg-transparent py-3.5 text-sm text-text-primary outline-none placeholder:text-text-placeholder",
|
|
15
17
|
autoFocus: !0
|
|
16
18
|
}),
|
|
17
|
-
|
|
19
|
+
a && /* @__PURE__ */ r("button", {
|
|
18
20
|
type: "button",
|
|
19
|
-
onClick:
|
|
21
|
+
onClick: c,
|
|
20
22
|
className: "ml-2 rounded-button p-1 text-text-muted hover:bg-bg-sunken hover:text-text-primary transition-colors",
|
|
21
|
-
"aria-label": "Clear search",
|
|
22
|
-
children: /* @__PURE__ */ n
|
|
23
|
+
"aria-label": l("common.clearSearch", "Clear search"),
|
|
24
|
+
children: /* @__PURE__ */ r(n, { className: "size-4" })
|
|
23
25
|
})
|
|
24
26
|
]
|
|
25
27
|
});
|
|
26
28
|
}
|
|
27
29
|
//#endregion
|
|
28
|
-
export {
|
|
30
|
+
export { a as SearchInput };
|