feat(organization): enhance searchable organizations with member limit and search by ID
- Added a member limit field to the SearchableOrganizationItem interface, allowing organizations to specify a maximum number of members. - Updated API and service layers to support searching organizations by name, description, or ID. - Enhanced UI components to display member limits and updated localization strings in English and Chinese for new features. - Included migration files to add the searchable column to the organizations table. This update improves the organization search functionality and membership management, enhancing user experience and administrative control.
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