feat(phase5): list channels - todo/in_progress/done columns, CRUD
This commit is contained in:
@@ -11,7 +11,7 @@ interface ChannelApiResponse {
|
||||
id: string;
|
||||
server_id: string;
|
||||
name: string;
|
||||
type: 'text' | 'voice' | 'forum' | 'calendar' | 'docs';
|
||||
type: 'text' | 'voice' | 'forum' | 'calendar' | 'docs' | 'list';
|
||||
category: string;
|
||||
position: number;
|
||||
slowmode_seconds: number;
|
||||
@@ -29,7 +29,7 @@ const SLOWMODE_OPTIONS = [
|
||||
|
||||
export function CreateChannelModal({ serverId, onClose }: CreateChannelModalProps) {
|
||||
const [name, setName] = useState('');
|
||||
const [type, setType] = useState<'text' | 'voice' | 'forum' | 'calendar' | 'docs'>('text');
|
||||
const [type, setType] = useState<'text' | 'voice' | 'forum' | 'calendar' | 'docs' | 'list'>('text');
|
||||
const [category, setCategory] = useState('general');
|
||||
const [slowmodeSeconds, setSlowmodeSeconds] = useState(0);
|
||||
const [loading, setLoading] = useState(false);
|
||||
@@ -107,7 +107,7 @@ export function CreateChannelModal({ serverId, onClose }: CreateChannelModalProp
|
||||
<label className="text-xs text-gb-fg-f block mb-1">TYPE:</label>
|
||||
<select
|
||||
value={type}
|
||||
onChange={(e) => setType(e.target.value as 'text' | 'voice' | 'forum' | 'calendar' | 'docs')}
|
||||
onChange={(e) => setType(e.target.value as 'text' | 'voice' | 'forum' | 'calendar' | 'docs' | 'list')}
|
||||
className="terminal-input w-full"
|
||||
>
|
||||
<option value="text">text</option>
|
||||
@@ -115,6 +115,7 @@ export function CreateChannelModal({ serverId, onClose }: CreateChannelModalProp
|
||||
<option value="forum">forum</option>
|
||||
<option value="calendar">calendar</option>
|
||||
<option value="docs">docs</option>
|
||||
<option value="list">list</option>
|
||||
</select>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
Reference in New Issue
Block a user