mirror of https://github.com/kortix-ai/suna.git
✨ 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. |
||
---|---|---|
.. | ||
agent_builder_tools | ||
data_providers | ||
templates | ||
utils | ||
__init__.py | ||
agent_creation_tool.py | ||
browser_tool.py | ||
company_search_tool.py | ||
computer_use_tool.py | ||
data_providers_tool.py | ||
expand_msg_tool.py | ||
image_context_manager.py | ||
image_search_tool.py | ||
mcp_tool_wrapper.py | ||
message_tool.py | ||
paper_search_tool.py | ||
people_search_tool.py | ||
presentation_styles_config.py | ||
sb_browser_tool.py | ||
sb_deploy_tool.py | ||
sb_designer_tool.py | ||
sb_docs_tool.py | ||
sb_document_parser.py | ||
sb_expose_tool.py | ||
sb_files_tool.py | ||
sb_image_edit_tool.py | ||
sb_kb_tool.py | ||
sb_presentation_outline_tool.py | ||
sb_presentation_tool.py | ||
sb_sheets_tool.py | ||
sb_shell_tool.py | ||
sb_templates_tool.py | ||
sb_upload_file_tool.py | ||
sb_vision_tool.py | ||
sb_web_dev_tool.py | ||
task_list_tool.py | ||
test_agent_management_integration.py | ||
web_search_tool.py |