Commit graph

35 commits

Author SHA1 Message Date
root
607ad076d9 Fix email module integration - update build and UI server 2026-02-07 16:28:36 +00:00
661edc09fa Fix 404 errors for static assets with bot name prefixes
All checks were successful
BotUI CI / build (push) Successful in 3m42s
Removed root-level static routes (/:dir/*path) that conflicted with
bot name prefixes like /edu. Now all assets are served under /suite/
path, allowing the fallback handler to properly detect and strip
bot prefixes before resolving file paths.

Fixes:
- /edu/suite/js/api-client.js now returns 200 OK
- /edu/suite/css/apps-extended.css now returns 200 OK
- /edu/suite/admin/admin.js now returns 200 OK
- Base href injection working correctly for bot prefixes
2026-02-06 16:24:56 -03:00
07da8a4e88 Fix rust-embed: correct folder path and remove duplicate feature
- Fix RustEmbed folder path to use $CARGO_MANIFEST_DIR/ui
- Remove duplicate interpolate-folder-path feature (now in workspace)
- Verified: 13 HTML files embedded, binary works from any directory
2026-02-06 11:36:48 -03:00
a1a30adb2c Fix embed-ui feature: correct rust-embed folder path
- Changed rust-embed folder from '../ui' to 'ui' (relative to crate root)
- Added conditional imports to eliminate unused import warnings
- Now UI files properly embed into botui binary during compilation
- Resolves production error: 'Asset suite/index.html not found in embedded binary'
2026-02-06 09:26:30 -03:00
cdf8bea155 Fix RustEmbed folder path for embedded UI 2026-02-05 18:40:34 -03:00
abdd2ff615 Fix UI directory detection: skip filesystem checks when embed-ui is enabled 2026-02-05 09:44:20 -03:00
91a750127c Fix ServeDir import compilation error 2026-02-05 08:00:37 -03:00
5618ed4367 Update: UI files and add error-reporter.js 2026-02-04 13:54:26 -03:00
27e839f22a Fix bot_id routing: Extract bot name from URL path
- Add bot_name field to WsQuery struct
- Extract bot_name from URL path (e.g., /edu, /chat/edu)
- Pass bot_name to backend WebSocket URL
- Use URL path for bot identification instead of relying on client message
2026-01-28 17:17:36 -03:00
497d0dd18c fix(ui): add filesystem fallback for embedded mode
Some checks failed
GBCI / build (push) Failing after 11s
2026-01-26 14:53:32 -03:00
22fa29b3ec fix(ui): improve asset discovery and error logging
Some checks failed
GBCI / build (push) Failing after 11s
2026-01-26 14:50:27 -03:00
12c1e3210f feat(ui): implement embedded ui assets and robust path resolution
Some checks failed
GBCI / build (push) Failing after 12s
2026-01-26 11:44:47 -03:00
fee8b3d2a3 fix(clippy): resolve unused code warning 2026-01-25 10:29:56 -03:00
74a2122827 fix(ui): resolve clippy warnings and update dependencies 2026-01-25 08:42:35 -03:00
97b96faa89 Update UI 2026-01-24 22:06:22 -03:00
55947a20b9 feat: add app feature flags and gate static routes 2026-01-22 21:23:41 -03:00
1435d1016f Update PROMPT.md and UI changes 2026-01-22 20:24:16 -03:00
e3b5929b99 fix(slides): remove duplicate cacheElements/bindEvents functions causing null error
The duplicate functions at lines 455-486 were redefining cacheElements and
bindEvents with wrong element IDs (kebab-case vs camelCase in HTML).
This caused 'Cannot read properties of null' error on slides app init.
2026-01-12 14:05:06 -03:00
80c91f6304 Redesign home page with beautiful layout, add People/Contacts, rename Tools to Compliance
- Complete home page redesign with large icons, full descriptions, recent documents
- Add People (Contacts) menu item and page with contacts management
- Move Paper right after Chat in menu order
- Rename Tools to Compliance with shield icon
- Settings moved to end of menu
- Logo click now shows home page
- Add Project, Canvas, Goals, Player, Workspace, Video, Learn to menu
- New CSS for home page with modern card layout
2026-01-09 20:56:59 -03:00
d8e52bf330 feat(auth): Add user profile loading and auth state management
- Add JavaScript to load user profile from /api/auth/me endpoint
- Save access_token to localStorage/sessionStorage on login
- Update user menu to show actual user name and email
- Toggle Sign in/Sign out based on authentication state
- Add IDs to user menu elements for dynamic updates
2026-01-06 22:57:00 -03:00
b51c542afa Fix duplicate WS progress bug - rebuild tree on structure change
- Normalize task ID comparison in retry logic for consistent lookups
- Use normalized keys in pendingManifestUpdates Map
- Skip manifest_update in ProgressPanel (already handled by tasks.js)
- Clean up existing handler before registering new one in ProgressPanel.init
- Add name-based fallback lookups for sections/children/items when IDs change
- Detect structure changes (section count, children, items, names) and rebuild tree
- Clear progress-empty placeholder before rendering tree
- Add detailed BUILD_TREE logging for debugging
- Add cache-busting version to tasks.js script tag
2026-01-02 12:48:54 -03:00
4a3eb0cc4f Fix tasks UI and add WebSocket proxy for task progress
Tasks UI:
- Add proper CSS for task cards with status-based colors
- Add task detail panel CSS for header, progress, sections
- Remove duplicate empty state div
- Add All Tasks filter pill
- Fix updateFilterCounts to use /api/tasks/stats/json
- Remove fake demo agent activity simulation
- Add detailed console logging for WebSocket debugging
- Update floating progress panel with terminal-style metrics

WebSocket proxy:
- Add /ws/task-progress proxy route without required params
- Add handle_task_progress_ws_proxy for task progress WebSocket
- Support optional task_id filtering
2025-12-30 22:42:54 -03:00
1df0df222f Update UI components and state management 2025-12-23 15:53:07 -03:00
9a2596ed4a Update botui 2025-12-21 23:40:44 -03:00
1a50680712 refactor: eliminate router duplication, graceful shutdown, data-driven static routes
Some checks failed
GBCI / build (push) Failing after 9s
2025-12-20 19:58:04 -03:00
c8903d88c0 fix: resolve warnings
Some checks failed
GBCI / build (push) Failing after 8s
2025-12-17 17:42:55 -03:00
9fe234aa3c Update UI components, styling, and add theme-sentient and intents 2025-12-15 23:16:09 -03:00
734c611f2b Remove unused import from tungstenite 2025-12-12 17:33:11 -03:00
3aba805f93 fix: suite screens routing and research CSS
- Add missing routes for all app directories (paper, calendar, research, meet, analytics, monitoring, admin, auth, settings, sources, tools, assets, partials, attendant)
- Fix malformed CSS in research.html (border-right property was split incorrectly across style tag)
- All screens now load correctly: Chat, Research, Paper, Calendar, Meet, Analytics, Monitoring
2025-12-10 23:33:25 -03:00
f2e2e96b3e fix: suite chat now works like minimal UI with HTMX loading
- Fixed chat layout CSS to use absolute positioning for proper HTMX loading
- Fixed CSS path from relative to absolute (/chat/chat.css)
- Added chat CSS to main index.html for pre-loading
- Added HTMX afterSettle event listener to initialize chat module
- Added WebSocket proxy for SSL cert handling (Cargo.toml, mod.rs)
2025-12-10 22:58:09 -03:00
f12e858f74 Change default UI from minimal to suite 2025-12-10 21:55:25 -03:00
0143ad49b1 Implement real code, remove dead code
- AppState now uses BotServerClient directly
- BOTSERVER_URL env var support for configuration
- index() handler properly integrated into router
- Removed unused web module (DTOs were never used)
- Removed all #[allow(dead_code)] attributes
- Zero warnings, cargo audit clean
2025-12-04 09:33:31 -03:00
38fc25b2a2 Fix warnings: allow dead_code for future-use modules
- shared/state.rs: AppState prepared for future use
- ui_server/mod.rs: index() handler prepared
- web/mod.rs: DTOs for API layer
- shared/mod.rs: Removed unused imports (cargo fix)
2025-12-04 09:20:28 -03:00
09356bb28e Remove Tauri dependencies - botui is now pure web
Tauri-specific code has been moved to the botapp crate.

Changes:
- Removed tauri, tauri-plugin-*, trayicon, ksni dependencies
- Removed desktop feature flags
- Removed src/desktop/ module (moved to botapp)
- Removed tauri.conf.json (moved to botapp)
- Simplified build.rs (no tauri_build)
- Updated lib.rs and main.rs for pure web operation

Architecture:
- botui: Pure web UI (this crate) - no native deps
- botapp: Tauri wrapper that loads botui's suite

This separation allows:
- Same UI code for web, desktop, and mobile
- Clean dependency management
- App-specific features only in native app
2025-12-04 09:03:03 -03:00
5486318321 - Spliting from botserver. 2025-12-03 18:42:22 -03:00