Commit Graph

1501 Commits

Author SHA1 Message Date
Saumya 7693de456c show paginated details in admin dialog 2025-10-09 16:07:23 +05:30
Saumya d3f5d4fec8 add variables in trigger prompt 2025-10-09 14:02:09 +05:30
Saumya 014e6cf222 add variables in trigger prompt 2025-10-09 13:59:40 +05:30
Saumya a9452dc7cd fix: infinite render 2025-10-08 15:13:18 +05:30
Saumya 97b0d8a299 add missing tool views 2025-10-08 15:02:54 +05:30
Saumya 9ddadcce6c differentiate triggers in tasks list 2025-10-08 14:13:20 +05:30
Saumya 6a7999211b fix: remove pagination for kortix templates 2025-10-07 23:42:23 +05:30
Bobbie 13f32c9e85
Merge pull request #1781 from escapade-mckv/fix-trigger-installation
Fix trigger installation
2025-10-07 16:06:17 +05:30
Saumya ae81e8e403 fix: model preservation during update 2025-10-07 16:05:02 +05:30
Saumya 89a4996dfd fix: fix agent trigger installation 2025-10-07 15:33:44 +05:30
marko-kraemer 9166530351 rem 30min stream timeout fe 2025-10-07 10:32:23 +02:00
Saumya 44bd6470c0 fix: add model name for triggers 2025-10-06 23:30:16 +05:30
Saumya 9aad9f3014 add agent usage examples to preview dialog 2025-10-06 16:43:48 +05:30
marko-kraemer f0f14de35a refactor: move URL construction to frontend 2025-10-05 18:33:30 +02:00
marko-kraemer ddf2d32f59 feat(admin): add user thread viewer with admin access bypass
 Features:
- Add admin portal thread viewer with pagination
- Display thread list with project names and public status
- Add clickable links to view threads via /share/{thread_id}
- Add admin bypass for accessing all threads (public and private)

🔧 Backend Refactoring:
- Consolidate admin APIs into admin_api.py and billing_admin_api.py
- Remove unused files: users_admin.py, admin/api.py
- Remove unused endpoints: user search, grant-bulk-credits, migrate-user
- Update admin thread endpoint to use share URLs

 Performance:
- Remove message_count from UserThreadSummary (optimization)
- Remove N+1 query issue in thread listing

🔒 Authorization:
- Add admin role bypass in verify_and_authorize_thread_access
- Create RLS migration (20251005160000_admin_roles_access.sql)
- Update thread_select_policy for admin access
- Update message_select_policy for admin access
- Update project_select_policy for admin access
- Update agent_runs_select_policy for admin access

💻 Frontend:
- Add Threads tab to admin user details dialog
- Add useAdminUserThreads hook with pagination
- Remove unused admin hooks (useAdminUserSearch, useAdminAdvancedSearch)
- Display thread metadata with Open button and ExternalLink icon

🗃️ Database:
- Apply RLS policies allowing admin/super_admin roles to bypass restrictions
- Admins can now view any thread, message, project, or agent_run

This enables admins to view and debug any user's threads through the
share page interface, regardless of public/private status.
2025-10-05 18:09:26 +02:00
marko-kraemer 0c9c78ec40 wip 2025-10-05 02:55:08 +02:00
marko-kraemer afe689472f tools 2025-10-05 02:10:57 +02:00
marko-kraemer ec5ec498b3 fix: remove playbooks tab from chat-input dialog type
- Remove 'playbooks' from agentConfigDialog tab union type
- Fixes TypeScript build error after workflow system removal
- Build now passes successfully
2025-10-05 02:00:32 +02:00
marko-kraemer e7362c9370 refactor: remove all execution_type references
- Remove execution_type from ScheduleTriggerConfig defaults
- Remove execution_type from trigger creation dialogs
- Remove execution_type display from upcoming runs dropdown
- Remove execution_type field from UpcomingRun interface
- Hardcode 'Agent' as the only execution mode everywhere

Completes workflow system removal by eliminating the last
execution_type remnants that caused TypeScript build errors.
2025-10-05 01:56:50 +02:00
marko-kraemer 0ec17b0d3a refactor: completely remove workflow and playbook system
- Remove workflow_tool.py and all workflow-related backend code
- Delete all workflow database tables and create migration
- Remove workflow API endpoints and execution logic
- Clean workflow references from agent tools and triggers
- Remove playbooks tab and UI from agent configuration
- Eliminate workflow_id, workflow_input, and execution_type fields
- Simplify trigger system to agent-only execution
- Remove workflow tool definitions from tool registry
- Clean up TypeScript interfaces and remove workflow types
- Remove playbooks button from chat input
- Update all trigger components to remove workflow selection
- Clean workflow metadata from threads and sidebar
- Remove 80+ critical workflow code references

Simplifies codebase by eliminating complex dual-mode (agent/workflow)
execution system in favor of pure agent-based automation.
2025-10-05 01:51:44 +02:00
marko-kraemer 98e9196d41 refactor: simplify backend - fix naming conflicts and centralize DB dependencies
Backend improvements:
- Fixed duplicate TemplateService naming conflict:
  * Renamed marketplace_service.py::TemplateService → MarketplaceService
  * Eliminates confusion between two classes with same name

- Created centralized DB dependency helpers (db_helpers.py):
  * get_db() - FastAPI dependency for DB connection (singleton)
  * get_db_client() - Returns initialized Supabase client
  * get_initialized_db() - For module-level backward compatibility
  * Addresses 100+ DBConnection() instantiations across 53 files

- Applied new DB helpers to high-usage files:
  * services/api_keys_api.py - Now uses get_db() dependency
  * templates/services/marketplace_service.py - Uses get_initialized_db()

- Comprehensive simplification analysis document:
  * Identified 9 modules with duplicate initialize() patterns
  * Documented large files needing breakdown (1700-2000 lines)
  * Analyzed 35 tool files for common patterns
  * Prioritized recommendations for future work

Frontend cleanup:
- Removed unused template preview components and pages
2025-10-04 22:40:16 +02:00
marko-kraemer 4f3a7e813c Add enterprise page to public routes 2025-10-04 16:41:17 +02:00
marko-kraemer 8c7714d1ab wip 2025-10-03 11:47:42 +02:00
marko-kraemer e168505f3a dark mode model provider icons 2025-10-03 11:12:36 +02:00
Krishav Raj Singh abbb933d27 ui: expand msg 2025-10-03 08:55:12 +05:30
Vukasin 23d5dfc0fe fix: show attached files in tools 2025-10-01 22:32:21 +02:00
Saumya 07ebffe91e chore: show all agents in dashboard 2025-10-01 22:56:43 +05:30
Saumya ccbfe7d975 Merge branch 'main' of https://github.com/kortix-ai/suna into prebuilt-agents 2025-10-01 12:19:15 +05:30
Saumya 9b0e1f94ad fix: scheduled trigger ui fix 2025-10-01 12:19:03 +05:30
Bobbie b82e0f757f
Merge pull request #1759 from escapade-mckv/research-agent
Research agent
2025-09-30 21:01:41 +05:30
Saumya 87e83e37a3 disable doc parser tool 2025-09-30 20:56:47 +05:30
Saumya 4908f174d6 chore: research agent v1 2025-09-30 20:53:55 +05:30
marko-kraemer 6c05cbc710 onboarding wip 2025-09-30 15:38:49 +02:00
marko-kraemer 4de5299a0d fix 2025-09-29 22:59:10 +02:00
marko-kraemer f8ab7059b7 fixes 2025-09-29 22:52:49 +02:00
marko-kraemer c395be2b68 Fix knowledge base assignments loading and improve integration removal
- Load assignments immediately when Knowledge tab opens in agent config
- Auto-expand all folders and fetch entries in assignment mode for instant visibility
- Remove 'Loading assignments...' text and improve skeleton loading state
- Create realistic skeleton that matches actual KB tree structure with assignment switches
- Fix integration removal to save immediately instead of requiring Save Changes button
- Add comprehensive debug logging for assignment loading troubleshooting
- Simplify file preview modal to focus on summary editing only
- Remove broken file download/preview functionality that was causing 404 errors
- Update file tree UI text from 'Click to preview file' to 'Click to edit summary'
- Enhance MCP change handler to auto-save integration changes with success feedback
2025-09-29 22:00:50 +02:00
marko-kraemer 192552dd62 Refactor knowledge base system: enable CRUD in agent config, unify components, remove legacy code
- Added full CRUD operations to agent configuration dialog knowledge base section
- Replaced simplified agent-kb-tree with full-featured agent-knowledge-base-manager
- Created unified KB entry modal merging file upload and text entry modals
- Enhanced folder selection UX with inline folder creation capability
- Integrated standard FileRenderer for consistent file preview across app
- Removed outdated backend/core/knowledge_base/ system causing table reference errors
- Moved FileProcessor to correct location in backend/knowledge_base/
- Extracted reusable KnowledgeBaseManager component to eliminate code duplication
- Updated agent KB tree to use assignment system instead of old table structure
- Simplified file preview modal to focus on summary editing instead of broken file preview
- Added proper loading states and error handling throughout
- Removed unused legacy components and hooks
- Updated all imports to use correct table structure (knowledge_base_folders/entries)
- Fixed API routes to work with new assignment-based system
2025-09-29 21:43:23 +02:00
Saumya 22fc672a4d Merge branch 'main' into doc-parser 2025-09-29 23:17:00 +05:30
marko-kraemer b319969e59 feat: Add model provider icons and consolidate agent selection components
- Created model provider icon mapping utility with provider-specific SVG icons
- Updated model selector to display provider icons (OpenAI, Anthropic, Google, xAI, MoonshotAI)
- Increased icon sizes to 24px for better visibility across all components
- Consolidated agent selection into single AgentSelector component
- Removed duplicate AgentSelectionDropdown component
- Updated trigger creation and schedule config to use new AgentSelector
- Maintained UnifiedConfigMenu's integrated implementation for chat input
- Aligned visual styling between agent avatars and model provider icons
2025-09-29 19:10:39 +02:00
marko-kraemer 0b29c8960c avatar refactor fe, fix round agent avatar
:wq
2025-09-29 17:35:22 +02:00
marko-kraemer 8306a344a4 fix round agent avatar 2025-09-29 16:53:13 +02:00
marko-kraemer 8108afe706 fix 2025-09-29 16:39:15 +02:00
marko-kraemer ef61e0e1f2 feat: clean up agent schema and remove outdated fields
- Remove all profile_image_url references from frontend agent config
- Remove ProfilePictureDialog component usage entirely
- Clean up agent API models: remove profile_image_url and tags fields
- Standardize on icon system: icon_name, icon_color, icon_background
- Fix icon saving logic to persist changes immediately to backend
- Remove duplicate/outdated avatar and avatar_color references
- Improve agent configuration dialog UX with proper icon-only system

BREAKING CHANGE: profile_image_url field removed from agent APIs
Database migration needed to remove outdated columns from agents table
2025-09-29 14:51:43 +02:00
marko-kraemer 2c2eaf61f8 feat: improve agent config modal UX with seamless agent switching
- Remove 'General' tab from agent configuration modal
- Add inline agent switcher integrated into dialog title area
- Fix name editing functionality to work with agent switching
- Display proper Suna icons in agent dropdown
- Remove redundant description text for cleaner UI
- Fix DialogTitle accessibility requirements
- Clean up duplicate close buttons

The agent switcher now seamlessly replaces the static title when onAgentChange is provided, creating a smooth dropdown experience that maintains visual hierarchy while enabling easy agent switching without closing the modal.
2025-09-29 14:27:26 +02:00
marko-kraemer bc6620569f rm general tab, integrations tab default 2025-09-29 14:12:45 +02:00
marko-kraemer 9f7327159a Merge branch 'main' into onboarding-wip 2025-09-29 13:07:17 +02:00
Saumya c9890866fa fix: ui issues 2025-09-29 11:30:10 +05:30
Saumya 8141428fb6 doc parser tool 2025-09-29 10:59:50 +05:30
marko-kraemer 1b14afc446 fix 2025-09-29 00:10:42 +02:00
marko-kraemer 079d7347da model changes 2025-09-28 23:36:14 +02:00