some clean up and added a all log option
Browse files- app/commit.json +1 -1
- app/components/settings/event-logs/EventLogsTab.tsx +3 -2
- package.json +6 -6
- pnpm-lock.yaml +0 -0
app/commit.json
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{ "commit": "
|
|
|
1 |
+
{ "commit": "d13da30bda2d10eb2da42113493625cd55e0d34d" }
|
app/components/settings/event-logs/EventLogsTab.tsx
CHANGED
@@ -9,7 +9,7 @@ import { classNames } from '~/utils/classNames';
|
|
9 |
export default function EventLogsTab() {
|
10 |
const {} = useSettings();
|
11 |
const showLogs = useStore(logStore.showLogs);
|
12 |
-
const [logLevel, setLogLevel] = useState<LogEntry['level']>('info');
|
13 |
const [autoScroll, setAutoScroll] = useState(true);
|
14 |
const [searchQuery, setSearchQuery] = useState('');
|
15 |
const [, forceUpdate] = useState({});
|
@@ -17,7 +17,7 @@ export default function EventLogsTab() {
|
|
17 |
const filteredLogs = useMemo(() => {
|
18 |
const logs = logStore.getLogs();
|
19 |
return logs.filter((log) => {
|
20 |
-
const matchesLevel = !logLevel || log.level === logLevel;
|
21 |
const matchesSearch =
|
22 |
!searchQuery ||
|
23 |
log.message?.toLowerCase().includes(searchQuery.toLowerCase()) ||
|
@@ -143,6 +143,7 @@ export default function EventLogsTab() {
|
|
143 |
onChange={(e) => setLogLevel(e.target.value as LogEntry['level'])}
|
144 |
className="flex-1 p-2 rounded-lg border border-bolt-elements-borderColor bg-bolt-elements-prompt-background text-bolt-elements-textPrimary focus:outline-none focus:ring-2 focus:ring-bolt-elements-focus transition-all lg:max-w-[20%] text-sm min-w-[100px]"
|
145 |
>
|
|
|
146 |
<option value="info">Info</option>
|
147 |
<option value="warning">Warning</option>
|
148 |
<option value="error">Error</option>
|
|
|
9 |
export default function EventLogsTab() {
|
10 |
const {} = useSettings();
|
11 |
const showLogs = useStore(logStore.showLogs);
|
12 |
+
const [logLevel, setLogLevel] = useState<LogEntry['level'] | 'all'>('info');
|
13 |
const [autoScroll, setAutoScroll] = useState(true);
|
14 |
const [searchQuery, setSearchQuery] = useState('');
|
15 |
const [, forceUpdate] = useState({});
|
|
|
17 |
const filteredLogs = useMemo(() => {
|
18 |
const logs = logStore.getLogs();
|
19 |
return logs.filter((log) => {
|
20 |
+
const matchesLevel = !logLevel || log.level === logLevel || logLevel === 'all';
|
21 |
const matchesSearch =
|
22 |
!searchQuery ||
|
23 |
log.message?.toLowerCase().includes(searchQuery.toLowerCase()) ||
|
|
|
143 |
onChange={(e) => setLogLevel(e.target.value as LogEntry['level'])}
|
144 |
className="flex-1 p-2 rounded-lg border border-bolt-elements-borderColor bg-bolt-elements-prompt-background text-bolt-elements-textPrimary focus:outline-none focus:ring-2 focus:ring-bolt-elements-focus transition-all lg:max-w-[20%] text-sm min-w-[100px]"
|
145 |
>
|
146 |
+
<option value="all">All</option>
|
147 |
<option value="info">Info</option>
|
148 |
<option value="warning">Warning</option>
|
149 |
<option value="error">Error</option>
|
package.json
CHANGED
@@ -86,6 +86,8 @@
|
|
86 |
"jszip": "^3.10.1",
|
87 |
"nanostores": "^0.10.3",
|
88 |
"ollama-ai-provider": "^0.15.2",
|
|
|
|
|
89 |
"react-hotkeys-hook": "^4.6.1",
|
90 |
"react-markdown": "^9.0.1",
|
91 |
"react-resizable-panels": "^2.1.7",
|
@@ -106,16 +108,14 @@
|
|
106 |
"@types/dom-speech-recognition": "^0.0.4",
|
107 |
"@types/file-saver": "^2.0.7",
|
108 |
"@types/js-cookie": "^3.0.6",
|
109 |
-
"@types/react": "^18.3.
|
110 |
-
"@types/react-dom": "^18.3.
|
111 |
"fast-glob": "^3.3.2",
|
112 |
"husky": "9.1.7",
|
113 |
"is-ci": "^3.0.1",
|
114 |
"node-fetch": "^3.3.2",
|
115 |
"pnpm": "^9.14.4",
|
116 |
-
"prettier": "^3.
|
117 |
-
"react": "^19.0.0",
|
118 |
-
"react-dom": "^19.0.0",
|
119 |
"sass-embedded": "^1.81.0",
|
120 |
"typescript": "^5.7.2",
|
121 |
"unified": "^11.0.5",
|
@@ -132,4 +132,4 @@
|
|
132 |
"@typescript-eslint/utils": "^8.0.0-alpha.30"
|
133 |
},
|
134 |
"packageManager": "[email protected]"
|
135 |
-
}
|
|
|
86 |
"jszip": "^3.10.1",
|
87 |
"nanostores": "^0.10.3",
|
88 |
"ollama-ai-provider": "^0.15.2",
|
89 |
+
"react": "^18.3.1",
|
90 |
+
"react-dom": "^18.3.1",
|
91 |
"react-hotkeys-hook": "^4.6.1",
|
92 |
"react-markdown": "^9.0.1",
|
93 |
"react-resizable-panels": "^2.1.7",
|
|
|
108 |
"@types/dom-speech-recognition": "^0.0.4",
|
109 |
"@types/file-saver": "^2.0.7",
|
110 |
"@types/js-cookie": "^3.0.6",
|
111 |
+
"@types/react": "^18.3.12",
|
112 |
+
"@types/react-dom": "^18.3.1",
|
113 |
"fast-glob": "^3.3.2",
|
114 |
"husky": "9.1.7",
|
115 |
"is-ci": "^3.0.1",
|
116 |
"node-fetch": "^3.3.2",
|
117 |
"pnpm": "^9.14.4",
|
118 |
+
"prettier": "^3.4.1",
|
|
|
|
|
119 |
"sass-embedded": "^1.81.0",
|
120 |
"typescript": "^5.7.2",
|
121 |
"unified": "^11.0.5",
|
|
|
132 |
"@typescript-eslint/utils": "^8.0.0-alpha.30"
|
133 |
},
|
134 |
"packageManager": "[email protected]"
|
135 |
+
}
|
pnpm-lock.yaml
CHANGED
The diff for this file is too large to render.
See raw diff
|
|