ui styles fixed
Browse files- app/commit.json +1 -1
- app/components/settings/event-logs/EventLogsTab.tsx +19 -8
- app/components/sidebar/Menu.client.tsx +1 -2
- package-lock.json +0 -0
- package.json +0 -1
- pnpm-lock.yaml +0 -0
app/commit.json
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
{ "commit": "
|
|
|
|
| 1 |
+
{ "commit": "4ba5d37fcd16414a06dbeba56c7732173e734c63" }
|
app/components/settings/event-logs/EventLogsTab.tsx
CHANGED
|
@@ -4,6 +4,7 @@ import { toast } from 'react-toastify';
|
|
| 4 |
import { Switch } from '~/components/ui/Switch';
|
| 5 |
import { logStore, type LogEntry } from '~/lib/stores/logs';
|
| 6 |
import { useStore } from '@nanostores/react';
|
|
|
|
| 7 |
|
| 8 |
export default function EventLogsTab() {
|
| 9 |
const {} = useSettings();
|
|
@@ -19,8 +20,8 @@ export default function EventLogsTab() {
|
|
| 19 |
const matchesLevel = !logLevel || log.level === logLevel;
|
| 20 |
const matchesSearch =
|
| 21 |
!searchQuery ||
|
| 22 |
-
log.message
|
| 23 |
-
JSON.stringify(log.details)
|
| 24 |
|
| 25 |
return matchesLevel && matchesSearch;
|
| 26 |
});
|
|
@@ -118,7 +119,7 @@ export default function EventLogsTab() {
|
|
| 118 |
};
|
| 119 |
|
| 120 |
return (
|
| 121 |
-
<div className="p-4">
|
| 122 |
<div className="flex flex-col space-y-4 mb-4">
|
| 123 |
{/* Title and Toggles Row */}
|
| 124 |
<div className="flex flex-col sm:flex-row justify-between items-start sm:items-center gap-4">
|
|
@@ -140,7 +141,7 @@ export default function EventLogsTab() {
|
|
| 140 |
<select
|
| 141 |
value={logLevel}
|
| 142 |
onChange={(e) => setLogLevel(e.target.value as LogEntry['level'])}
|
| 143 |
-
className="
|
| 144 |
>
|
| 145 |
<option value="info">Info</option>
|
| 146 |
<option value="warning">Warning</option>
|
|
@@ -153,20 +154,30 @@ export default function EventLogsTab() {
|
|
| 153 |
placeholder="Search logs..."
|
| 154 |
value={searchQuery}
|
| 155 |
onChange={(e) => setSearchQuery(e.target.value)}
|
| 156 |
-
className="w-full bg-bolt-elements-
|
| 157 |
/>
|
| 158 |
</div>
|
| 159 |
{showLogs && (
|
| 160 |
<div className="flex items-center gap-2 flex-nowrap">
|
| 161 |
<button
|
| 162 |
onClick={handleExportLogs}
|
| 163 |
-
className=
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 164 |
>
|
| 165 |
Export Logs
|
| 166 |
</button>
|
| 167 |
<button
|
| 168 |
onClick={handleClearLogs}
|
| 169 |
-
className=
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 170 |
>
|
| 171 |
Clear Logs
|
| 172 |
</button>
|
|
@@ -175,7 +186,7 @@ export default function EventLogsTab() {
|
|
| 175 |
</div>
|
| 176 |
</div>
|
| 177 |
|
| 178 |
-
<div className="bg-bolt-elements-bg-depth-1 rounded-lg p-4 h-[calc(100vh-250px)] min-h-[400px] overflow-y-auto logs-container">
|
| 179 |
{filteredLogs.length === 0 ? (
|
| 180 |
<div className="text-center text-bolt-elements-textSecondary py-8">No logs found</div>
|
| 181 |
) : (
|
|
|
|
| 4 |
import { Switch } from '~/components/ui/Switch';
|
| 5 |
import { logStore, type LogEntry } from '~/lib/stores/logs';
|
| 6 |
import { useStore } from '@nanostores/react';
|
| 7 |
+
import { classNames } from '~/utils/classNames';
|
| 8 |
|
| 9 |
export default function EventLogsTab() {
|
| 10 |
const {} = useSettings();
|
|
|
|
| 20 |
const matchesLevel = !logLevel || log.level === logLevel;
|
| 21 |
const matchesSearch =
|
| 22 |
!searchQuery ||
|
| 23 |
+
log.message?.toLowerCase().includes(searchQuery.toLowerCase()) ||
|
| 24 |
+
JSON.stringify(log.details)?.toLowerCase()?.includes(searchQuery?.toLowerCase());
|
| 25 |
|
| 26 |
return matchesLevel && matchesSearch;
|
| 27 |
});
|
|
|
|
| 119 |
};
|
| 120 |
|
| 121 |
return (
|
| 122 |
+
<div className="p-4 h-full flex flex-col">
|
| 123 |
<div className="flex flex-col space-y-4 mb-4">
|
| 124 |
{/* Title and Toggles Row */}
|
| 125 |
<div className="flex flex-col sm:flex-row justify-between items-start sm:items-center gap-4">
|
|
|
|
| 141 |
<select
|
| 142 |
value={logLevel}
|
| 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>
|
|
|
|
| 154 |
placeholder="Search logs..."
|
| 155 |
value={searchQuery}
|
| 156 |
onChange={(e) => setSearchQuery(e.target.value)}
|
| 157 |
+
className="w-full bg-white dark:bg-bolt-elements-background-depth-4 relative px-2 py-1.5 rounded-md focus:outline-none placeholder-bolt-elements-textTertiary text-bolt-elements-textPrimary dark:text-bolt-elements-textPrimary border border-bolt-elements-borderColor"
|
| 158 |
/>
|
| 159 |
</div>
|
| 160 |
{showLogs && (
|
| 161 |
<div className="flex items-center gap-2 flex-nowrap">
|
| 162 |
<button
|
| 163 |
onClick={handleExportLogs}
|
| 164 |
+
className={classNames(
|
| 165 |
+
'bg-bolt-elements-button-primary-background',
|
| 166 |
+
'rounded-lg px-4 py-2 transition-colors duration-200',
|
| 167 |
+
'hover:bg-bolt-elements-button-primary-backgroundHover',
|
| 168 |
+
'text-bolt-elements-button-primary-text',
|
| 169 |
+
)}
|
| 170 |
>
|
| 171 |
Export Logs
|
| 172 |
</button>
|
| 173 |
<button
|
| 174 |
onClick={handleClearLogs}
|
| 175 |
+
className={classNames(
|
| 176 |
+
'bg-bolt-elements-button-danger-background',
|
| 177 |
+
'rounded-lg px-4 py-2 transition-colors duration-200',
|
| 178 |
+
'hover:bg-bolt-elements-button-danger-backgroundHover',
|
| 179 |
+
'text-bolt-elements-button-danger-text',
|
| 180 |
+
)}
|
| 181 |
>
|
| 182 |
Clear Logs
|
| 183 |
</button>
|
|
|
|
| 186 |
</div>
|
| 187 |
</div>
|
| 188 |
|
| 189 |
+
<div className="bg-bolt-elements-bg-depth-1 rounded-lg p-4 h-[calc(100vh - 250px)] min-h-[400px] overflow-y-auto logs-container overflow-y-auto">
|
| 190 |
{filteredLogs.length === 0 ? (
|
| 191 |
<div className="text-center text-bolt-elements-textSecondary py-8">No logs found</div>
|
| 192 |
) : (
|
app/components/sidebar/Menu.client.tsx
CHANGED
|
@@ -11,7 +11,6 @@ import { logger } from '~/utils/logger';
|
|
| 11 |
import { HistoryItem } from './HistoryItem';
|
| 12 |
import { binDates } from './date-binning';
|
| 13 |
import { useSearchFilter } from '~/lib/hooks/useSearchFilter';
|
| 14 |
-
import { ClockIcon } from '@heroicons/react/24/outline';
|
| 15 |
|
| 16 |
const menuVariants = {
|
| 17 |
closed: {
|
|
@@ -49,7 +48,7 @@ function CurrentDateTime() {
|
|
| 49 |
|
| 50 |
return (
|
| 51 |
<div className="flex items-center gap-2 px-4 py-3 font-bold text-gray-700 dark:text-gray-300 border-b border-bolt-elements-borderColor">
|
| 52 |
-
<
|
| 53 |
{dateTime.toLocaleDateString()} {dateTime.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' })}
|
| 54 |
</div>
|
| 55 |
);
|
|
|
|
| 11 |
import { HistoryItem } from './HistoryItem';
|
| 12 |
import { binDates } from './date-binning';
|
| 13 |
import { useSearchFilter } from '~/lib/hooks/useSearchFilter';
|
|
|
|
| 14 |
|
| 15 |
const menuVariants = {
|
| 16 |
closed: {
|
|
|
|
| 48 |
|
| 49 |
return (
|
| 50 |
<div className="flex items-center gap-2 px-4 py-3 font-bold text-gray-700 dark:text-gray-300 border-b border-bolt-elements-borderColor">
|
| 51 |
+
<div className="h-4 w-4 i-ph:clock-thin" />
|
| 52 |
{dateTime.toLocaleDateString()} {dateTime.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' })}
|
| 53 |
</div>
|
| 54 |
);
|
package-lock.json
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|
package.json
CHANGED
|
@@ -51,7 +51,6 @@
|
|
| 51 |
"@codemirror/search": "^6.5.8",
|
| 52 |
"@codemirror/state": "^6.4.1",
|
| 53 |
"@codemirror/view": "^6.35.0",
|
| 54 |
-
"@heroicons/react": "^2.2.0",
|
| 55 |
"@iconify-json/ph": "^1.2.1",
|
| 56 |
"@iconify-json/svg-spinners": "^1.2.1",
|
| 57 |
"@lezer/highlight": "^1.2.1",
|
|
|
|
| 51 |
"@codemirror/search": "^6.5.8",
|
| 52 |
"@codemirror/state": "^6.4.1",
|
| 53 |
"@codemirror/view": "^6.35.0",
|
|
|
|
| 54 |
"@iconify-json/ph": "^1.2.1",
|
| 55 |
"@iconify-json/svg-spinners": "^1.2.1",
|
| 56 |
"@lezer/highlight": "^1.2.1",
|
pnpm-lock.yaml
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|