feat: enhance OllaHub with new features and UI improvements

- Introduced a comprehensive README.md detailing the application, its architecture, and key features.
- Implemented a local-first architecture with deep research capabilities, including query decomposition and parallel web scraping.
- Added a reactive UI built with React and Next.js, featuring Tailwind CSS for styling and Zustand for state management.
- Integrated a task scheduler for recurring tasks and system monitoring for real-time resource management.
- Enhanced settings page with debug mode options and improved hardware dashboard loading states.
- Updated chat interface to include debug data visualization and improved user experience during message streaming.
- Removed unused favicon and updated application icons for better branding.
- Improved navigation handling with non-blocking transitions and state management for setup completion.
This commit is contained in:
Evandro Fonseca Junior committed 2025-11-28 15:15:38 -03:00
1 parent 55749c07e3
commit c7da6cb8a8
36 files changed
+1458 -293

No files matched your search

+21 -3
View File
@@ -59,6 +59,9 @@ export interface SettingsState {
// Updates
autoCheckUpdates: boolean;
// Debug
debugMode: boolean;
// Query Preprocessing
queryPreprocessing: {
enabled: boolean;
@@ -102,6 +105,9 @@ export interface SettingsState {
// Updates Actions
setAutoCheckUpdates: (enabled: boolean) => void;
// Debug Actions
setDebugMode: (enabled: boolean) => void;
// Query Preprocessing Actions
setQueryPreprocessingEnabled: (enabled: boolean) => void;
setQueryPreprocessingMinLength: (min: number) => void;
@@ -161,7 +167,7 @@ const defaultCategories: SearchCategory[] = [
'pubmed.ncbi.nlm.nih.gov',
'researchgate.net',
],
enabled: false,
enabled: true,
},
{
id: 'news',
@@ -197,7 +203,7 @@ const defaultCategories: SearchCategory[] = [
'investing.com',
'yahoo.com/finance',
],
enabled: false,
enabled: true,
},
];
@@ -228,6 +234,7 @@ const initialState = {
keywords: [],
},
autoCheckUpdates: true,
debugMode: false,
queryPreprocessing: {
enabled: true,
minLength: 3,
@@ -418,6 +425,10 @@ export const useSettingsStore = create<SettingsState>()(
setAutoCheckUpdates: (enabled) =>
set({ autoCheckUpdates: enabled }),
// Debug Actions
setDebugMode: (enabled) =>
set({ debugMode: enabled }),
// Query Preprocessing Actions
setQueryPreprocessingEnabled: (enabled) =>
set((state) => ({
@@ -490,7 +501,7 @@ export const useSettingsStore = create<SettingsState>()(
}),
{
name: 'ollahub-settings',
version: 3,
version: 4,
migrate: (persistedState: any, version: number) => {
// Migração da versão 1 para 3
if (version < 3) {
@@ -499,6 +510,13 @@ export const useSettingsStore = create<SettingsState>()(
autoCheckUpdates: persistedState.autoCheckUpdates ?? true,
};
}
// Migração da versão 3 para 4
if (version < 4) {
return {
...persistedState,
debugMode: persistedState.debugMode ?? false,
};
}
return persistedState;
},
}