feat(organization): implement searchable organizations feature
- Added a 'searchable' flag to organizations, allowing them to be discoverable and joinable by ID without an invite code. - Introduced API endpoints for searching and joining searchable organizations. - Updated UI components to support searching for organizations and displaying results. - Enhanced localization for new search-related features in both English and Chinese. This update improves user experience by enabling easier discovery and joining of organizations.
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
-- Rollback: 000012_organizations_searchable
|
||||
ALTER TABLE organizations DROP COLUMN IF EXISTS searchable;
|
||||
@@ -0,0 +1,8 @@
|
||||
-- Migration: 000012_organizations_searchable
|
||||
-- Description: Add searchable flag to organizations (open for discovery)
|
||||
DO $$ BEGIN RAISE NOTICE '[Migration 000012] Adding searchable to organizations...'; END $$;
|
||||
|
||||
ALTER TABLE organizations ADD COLUMN IF NOT EXISTS searchable BOOLEAN NOT NULL DEFAULT FALSE;
|
||||
COMMENT ON COLUMN organizations.searchable IS 'When true, space appears in search and can be joined by org ID';
|
||||
|
||||
DO $$ BEGIN RAISE NOTICE '[Migration 000012] Organizations searchable column added.'; END $$;
|
||||
Reference in New Issue
Block a user