Add Moodle + Pohoda connectors

- Moodle: courses->goals, assignments->tasks, completion, grades, webhook
- Pohoda: XML-RPC adapter, invoice sync, webhook
- All 3 connectors (Odoo, Moodle, Pohoda) returning 200

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Claude CLI Agent
2026-03-29 12:56:50 +00:00
parent aa5cb5f733
commit 6c38c9438f
7 changed files with 176 additions and 306 deletions

View File

@@ -12,17 +12,17 @@ interface TaskFormProps {
}
const STATUSES = [
{ value: "pending", label: "\u010Cek\u00e1" },
{ value: "in_progress", label: "Prob\u00edh\u00e1" },
{ value: "pending", label: "Čeká" },
{ value: "in_progress", label: "Probíhá" },
{ value: "done", label: "Hotovo" },
{ value: "cancelled", label: "Zru\u0161eno" },
{ value: "cancelled", label: "Zrušeno" },
];
const PRIORITIES = [
{ value: "low", label: "N\u00edzk\u00e1" },
{ value: "medium", label: "St\u0159edn\u00ed" },
{ value: "high", label: "Vysok\u00e1" },
{ value: "urgent", label: "Urgentn\u00ed" },
{ value: "low", label: "Nízká" },
{ value: "medium", label: "Střední" },
{ value: "high", label: "Vysoká" },
{ value: "urgent", label: "Urgentní" },
];
export default function TaskForm({
@@ -30,7 +30,7 @@ export default function TaskForm({
initial,
onSubmit,
onCancel,
submitLabel = "Ulo\u017eit",
submitLabel = "Uložit",
}: TaskFormProps) {
const [title, setTitle] = useState(initial?.title || "");
const [description, setDescription] = useState(initial?.description || "");
@@ -46,7 +46,7 @@ export default function TaskForm({
async function handleSubmit(e: React.FormEvent) {
e.preventDefault();
if (!title.trim()) {
setError("N\u00e1zev je povinn\u00fd");
setError("Název je povinný");
return;
}
setLoading(true);
@@ -62,7 +62,7 @@ export default function TaskForm({
});
} catch (err) {
setError(
err instanceof Error ? err.message : "Chyba p\u0159i ukl\u00e1d\u00e1n\u00ed"
err instanceof Error ? err.message : "Chyba při ukládání"
);
} finally {
setLoading(false);
@@ -78,13 +78,13 @@ export default function TaskForm({
)}
<div>
<label className="block text-sm font-medium mb-1">N\u00e1zev *</label>
<label className="block text-sm font-medium mb-1">Název *</label>
<input
type="text"
value={title}
onChange={(e) => setTitle(e.target.value)}
className="w-full px-3 py-2.5 border border-gray-300 dark:border-gray-600 rounded-lg bg-white dark:bg-gray-800 focus:ring-2 focus:ring-blue-500 focus:border-transparent outline-none transition-shadow"
placeholder="Co je t\u0159eba ud\u011blat..."
placeholder="Co je třeba udělat..."
autoFocus
/>
</div>
@@ -158,7 +158,7 @@ export default function TaskForm({
</div>
<div>
<label className="block text-sm font-medium mb-1">Term\u00edn</label>
<label className="block text-sm font-medium mb-1">Termín</label>
<input
type="datetime-local"
value={dueAt}
@@ -174,14 +174,14 @@ export default function TaskForm({
disabled={loading}
className="flex-1 bg-blue-600 hover:bg-blue-700 text-white font-medium py-2.5 px-4 rounded-lg transition-colors disabled:opacity-50 min-h-[44px]"
>
{loading ? "Ukl\u00e1d\u00e1m..." : submitLabel}
{loading ? "Ukládám..." : submitLabel}
</button>
<button
type="button"
onClick={onCancel}
className="px-4 py-2.5 border border-gray-300 dark:border-gray-600 rounded-lg hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors min-h-[44px]"
>
Zru\u0161it
Zrušit
</button>
</div>
</form>