Skip to content

feat: fixed bad UI/UX#871

Merged
MODSetter merged 12 commits intomainfrom
dev
Mar 11, 2026
Merged

feat: fixed bad UI/UX#871
MODSetter merged 12 commits intomainfrom
dev

Conversation

@MODSetter
Copy link
Owner

@MODSetter MODSetter commented Mar 11, 2026

Description

Motivation and Context

FIX #

Screenshots

API Changes

  • This PR includes API changes

Change Type

  • Bug fix
  • New feature
  • Performance improvement
  • Refactoring
  • Documentation
  • Dependency/Build system
  • Breaking change
  • Other (specify):

Testing Performed

  • Tested locally
  • Manual/QA verification

Checklist

  • Follows project coding standards and conventions
  • Documentation updated as needed
  • Dependencies updated as needed
  • No lint/build errors or new warnings
  • All relevant tests are passing

High-level PR Summary

This PR addresses multiple UI/UX issues across the application, including fixes for dialog state management and race conditions causing unexpected closures, improvements to the connector management flow, prevention of displaying search spaces pending deletion, better handling of edge cases when spaces are deleted or users lose access, addition of bulk document deletion capabilities, restoration of the right panel's collapsed state when closing reports, improved mobile responsiveness for various components, accessibility enhancements (ARIA attributes, focus management), and addition of referral tracking via URL parameters. The changes span both backend filtering logic and frontend dialog/state synchronization.

⏱️ Estimated Review Time: 30-90 minutes

💡 Review Order Suggestion
Order File Path
1 surfsense_backend/app/routes/search_spaces_routes.py
2 surfsense_backend/tests/integration/document_upload/conftest.py
3 surfsense_web/atoms/chat/report-panel.atom.ts
4 surfsense_web/components/assistant-ui/connector-popup.tsx
5 surfsense_web/components/assistant-ui/connector-popup/hooks/use-connector-dialog.ts
6 surfsense_web/components/assistant-ui/thread.tsx
7 surfsense_web/components/layout/ui/sidebar/ChatListItem.tsx
8 surfsense_web/components/layout/ui/sidebar/Sidebar.tsx
9 surfsense_web/components/layout/ui/sidebar/DocumentsSidebar.tsx
10 surfsense_web/app/dashboard/[search_space_id]/documents/(manage)/components/DocumentsTableShell.tsx
11 surfsense_web/hooks/use-documents.ts
12 surfsense_web/components/layout/providers/LayoutDataProvider.tsx
13 surfsense_web/components/layout/ui/shell/LayoutShell.tsx
14 surfsense_web/components/layout/ui/sidebar/SidebarUserProfile.tsx
15 surfsense_web/components/assistant-ui/connector-popup/connector-configs/components/composio-drive-config.tsx
16 surfsense_web/atoms/agent-tools/agent-tools.atoms.ts
17 surfsense_web/hooks/use-google-picker.ts
18 surfsense_web/instrumentation-client.ts
19 surfsense_web/lib/posthog/events.ts
20 surfsense_web/components/providers/PostHogProvider.tsx
21 surfsense_web/components/providers/PostHogReferral.tsx

Need help? Join our Discord

Analyze latest changes

AnishSarkar22 and others added 12 commits March 11, 2026 11:37
fix: document cleanup logic and mock Celery task in tests & some UI fixes
…ndling

- Added referral code tracking in PostHog initialization to capture initial and last seen referral codes.
- Wrapped PostHog capture calls in a safeCapture function to prevent app breakage due to ad-blockers.
- Introduced PostHogReferral component in PostHogProvider for improved referral tracking.
…etion and improve search space filtering

- Added bulk delete functionality for documents in DocumentsTableShell and DocumentsSidebar.
- Enhanced search space retrieval to exclude spaces marked for deletion in read_search_spaces.
- Updated connector dialog to synchronize URL parameters when opened externally.
- Improved layout behavior to handle search space deletion and redirection more effectively.
@vercel
Copy link

vercel bot commented Mar 11, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
surf-sense-frontend Building Building Preview, Comment Mar 11, 2026 10:11pm

Request Review

@MODSetter MODSetter merged commit 52248ac into main Mar 11, 2026
6 of 8 checks passed
Copy link

@recurseml recurseml bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review by RecurseML

🔍 Review performed on 1ab5640..d960a06

✨ No bugs found, your code is sparkling clean

✅ Files analyzed, no issues (21)

surfsense_backend/app/routes/search_spaces_routes.py
surfsense_backend/tests/integration/document_upload/conftest.py
surfsense_web/app/dashboard/[search_space_id]/documents/(manage)/components/DocumentsTableShell.tsx
surfsense_web/atoms/agent-tools/agent-tools.atoms.ts
surfsense_web/atoms/chat/report-panel.atom.ts
surfsense_web/components/assistant-ui/connector-popup.tsx
surfsense_web/components/assistant-ui/connector-popup/connector-configs/components/composio-drive-config.tsx
surfsense_web/components/assistant-ui/connector-popup/hooks/use-connector-dialog.ts
surfsense_web/components/assistant-ui/thread.tsx
surfsense_web/components/layout/providers/LayoutDataProvider.tsx
surfsense_web/components/layout/ui/shell/LayoutShell.tsx
surfsense_web/components/layout/ui/sidebar/ChatListItem.tsx
surfsense_web/components/layout/ui/sidebar/DocumentsSidebar.tsx
surfsense_web/components/layout/ui/sidebar/Sidebar.tsx
surfsense_web/components/layout/ui/sidebar/SidebarUserProfile.tsx
surfsense_web/components/providers/PostHogProvider.tsx
surfsense_web/components/providers/PostHogReferral.tsx
surfsense_web/hooks/use-documents.ts
surfsense_web/hooks/use-google-picker.ts
surfsense_web/instrumentation-client.ts
surfsense_web/lib/posthog/events.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants