Skip to content

chore: various fixes#1186

Merged
MODSetter merged 6 commits intodevfrom
dev_mod
Apr 8, 2026
Merged

chore: various fixes#1186
MODSetter merged 6 commits intodevfrom
dev_mod

Conversation

@MODSetter
Copy link
Copy Markdown
Owner

@MODSetter MODSetter commented Apr 8, 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 bumps the version from 0.0.14 to 0.0.15 across all project components (backend, browser extension, desktop app, and web frontend) and includes various minor code quality improvements. The changes include formatting fixes for multi-line logical expressions, removing duplicate className attributes, converting non-semantic div elements to proper button elements for better accessibility, fixing animation properties in motion components, adding missing "use client" directives, removing redundant dynamic import statements, and updating the pricing page to reflect 500 pages (down from 1,000) included in the free plan.

⏱️ Estimated Review Time: 5-15 minutes

💡 Review Order Suggestion
Order File Path
1 VERSION
2 surfsense_backend/pyproject.toml
3 surfsense_browser_extension/package.json
4 surfsense_desktop/package.json
5 surfsense_web/package.json
6 surfsense_web/components/pricing/pricing-section.tsx
7 surfsense_web/app/docs/sidebar-separator.tsx
8 surfsense_web/components/homepage/navbar.tsx
9 surfsense_web/app/desktop/suggestion/page.tsx
10 surfsense_web/components/sources/DocumentUploadTab.tsx
11 surfsense_web/components/layout/ui/sidebar/SidebarSlideOutPanel.tsx
12 surfsense_web/components/new-chat/chat-share-button.tsx
13 surfsense_web/components/public-chat-snapshots/public-chat-snapshots-manager.tsx
14 surfsense_web/components/settings/image-model-manager.tsx
15 surfsense_web/components/settings/model-config-manager.tsx
16 surfsense_web/app/dashboard/[search_space_id]/new-chat/[[...chat_id]]/page.tsx
17 surfsense_backend/uv.lock

Need help? Join our Discord

Analyze latest changes

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 8, 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 Apr 8, 2026 11:22pm

Request Review

@MODSetter MODSetter merged commit edd226c into dev Apr 8, 2026
6 of 8 checks passed
Copy link
Copy Markdown

@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 fe6f830..5891dfa

  Severity     Location     Issue     Delete  
High surfsense_web/app/dashboard/[search_space_id]/new-chat/[[...chat_id]]/page.tsx:81 Invalid dynamic import syntax
✅ Files analyzed, no issues (15)

VERSION
surfsense_backend/pyproject.toml
surfsense_browser_extension/package.json
surfsense_desktop/package.json
surfsense_web/app/desktop/suggestion/page.tsx
surfsense_web/app/docs/sidebar-separator.tsx
surfsense_web/components/homepage/navbar.tsx
surfsense_web/components/layout/ui/sidebar/SidebarSlideOutPanel.tsx
surfsense_web/components/new-chat/chat-share-button.tsx
surfsense_web/components/pricing/pricing-section.tsx
surfsense_web/components/public-chat-snapshots/public-chat-snapshots-manager.tsx
surfsense_web/components/settings/image-model-manager.tsx
surfsense_web/components/settings/model-config-manager.tsx
surfsense_web/components/sources/DocumentUploadTab.tsx
surfsense_web/package.json

⏭️ Files skipped (1)
  Locations  
surfsense_backend/uv.lock

import Loading from "../loading";

const MobileEditorPanel = dynamic(
() =>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Invalid Next.js dynamic import syntax: duplicate import function passed as second argument. The dynamic() function from Next.js accepts exactly two arguments: (1) a function returning a dynamic import, and (2) an optional options object like { ssr: false }. However, this code passes THREE arguments:

Arg 1 (lines 81-84): () => import(...) - Correct
Arg 2 (lines 85-88): () => import(...) - INCORRECT (duplicate function, should be options object)
Arg 3 (line 89): { ssr: false } - This will be ignored

This will cause:

  1. TypeScript compilation error: 'dynamic()' expects at most 2 arguments, but got 3
  2. Runtime error: Next.js will treat the second function argument as the options object, causing type errors when it tries to read properties like 'ssr', 'loading', etc. from a function
  3. The intended SSR disabling behavior will not work as the { ssr: false } option is passed as a 3rd argument and will be ignored

The same bug occurs for MobileEditorPanel (line 81), MobileHitlEditPanel (line 92), and MobileReportPanel (line 103). The fix is to remove the duplicate arrow function at lines 81-84, 92-95, and 103-106, leaving only the original import function and the options object.


React with 👍 to tell me that this comment was useful, or 👎 if not (and I'll stop posting more comments like this in the future)

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.

1 participant