+
+
+
+ Tag no Word:
+ {`{{${section.sectionKey || 'tag'}}}`}
+
+
+
+
+
+
+
+
+
+ handleUpdateSection(idx, {
+ sectionKey: e.target.value.toLowerCase().replace(/[^a-z0-9_]/g, '_'),
+ })
+ }
+ placeholder="ex: resumo_projeto"
+ className="w-full px-2.5 py-1.5 rounded-lg border border-border-soft bg-surface text-xs font-mono text-foreground focus:outline-hidden focus:border-brand"
+ />
+
+
+
+
+ handleUpdateSection(idx, { title: e.target.value })}
+ placeholder="ex: Resumo do Andamento"
+ className="w-full px-2.5 py-1.5 rounded-lg border border-border-soft bg-surface text-xs text-foreground focus:outline-hidden focus:border-brand"
+ />
+
+
+
+
+
+ handleUpdateSection(idx, { sectionType: val as 'FREE_TEXT' | 'TASK_LIST' })
+ }
+ options={[
+ { value: 'FREE_TEXT', label: 'Texto Livre (Digitado)' },
+ { value: 'TASK_LIST', label: 'Lista de Tarefas do Período' },
+ ]}
+ />
+
+
+
+ {section.sectionType === 'TASK_LIST' && (
+
+
+
+
+ handleUpdateSection(idx, {
+ filterCategoryId: Number(val) === 0 ? undefined : Number(val),
+ })
+ }
+ options={[
+ { value: 0, label: 'Todas as Categorias' },
+ ...categories.map((c) => ({
+ value: c.id,
+ label: c.name,
+ color: c.color,
+ })),
+ ]}
+ />
+
+
+
+
+
+
+ )}
+