Skip to content

Conversation

@raaymax
Copy link
Owner

@raaymax raaymax commented Jan 31, 2026

Summary

Fixes several development environment issues and resolves mobile search functionality that was broken due to commented-out code and null reference errors.

Changes

Development Environment

  • Change default backend port from 8080 to 3001 to align with Vite proxy configuration
  • Fix default database URL from tests to chat database - server was connecting to wrong database
  • Enable network access for Vite dev server (host: true) for remote development
  • Remove deprecated @storybook/addon-essentials and @storybook/addon-interactions (not available in Storybook 9)

Mobile Search

  • Enable search route that was commented out in Router.tsx
  • Add null checks in MessageListScroller to prevent crashes when messages model is not ready
  • Add navigation back to channel when closing search
  • Show placeholder text while waiting for search query

Bug Fixes

  • Fix import path in DiscussionHeader.stories.tsx (was using absolute path)

Testing

  • Verified backend starts on port 3001 and connects to correct database
  • Tested login with default admin credentials
  • Verified mobile search opens, displays results, and closes properly
  • Storybook starts without addon-essentials errors

- Remove deprecated storybook addon-essentials and addon-interactions (Storybook 9)
- Enable search route that was commented out in Router
- Fix import path in DiscussionHeader.stories.tsx
- Add null checks in MessageListScroller to prevent crashes
- Add navigation on search close and null check for messages model
- Enable network access for Vite dev server (host: true)
- Change default backend port from 8080 to 3001
- Fix default database from 'tests' to 'chat'
@raaymax raaymax force-pushed the fix/dev-environment-and-mobile-search branch from b95af6a to 99ac34e Compare January 31, 2026 22:48
@raaymax raaymax merged commit bda36aa into dev Jan 31, 2026
1 check passed
@raaymax raaymax deleted the fix/dev-environment-and-mobile-search branch January 31, 2026 22:53
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