presentation/screens/domains/curriculum_creator_screens library

Deferred-load barrel for the content-authoring flows (/domains/curriculum-creator and /domains/upload-curriculum). Only opened by content creators; defers file_picker for everyone else.

Classes

CurriculumCreatorScreen
Informational screen explaining how to use the Curriculum Creator CLI tool. Links to the GitHub repo and navigates to the upload screen.
UploadCurriculumScreen
Screen for uploading curriculum output (manifest + structure + chunks).

Functions

buildChunkRowsForUpload({required List chunks, required Map<String, String> titleToId, required Uuid uuid}) List<Map<String, dynamic>>
Build flat chunk row maps for Supabase insertion.
buildTopicRowsForUpload({required List topics, required String domainId, required String? parentId, required List<Map<String, dynamic>> rows, required Map<String, String> titleToId, required Uuid uuid}) → void
Build flat topic row maps for Supabase insertion (depth-first).
countTopicsInStructure(List topics) int
Count total topics including nested children.