repo_name
stringlengths
11
64
message
stringlengths
1
3.54k
files
dict
file_tree_before
listlengths
0
1.52k
index
int64
0
2.21k
conversations
listlengths
2
2
gmrdaniel/grm-meta
Run SQL scripts Apply the SQL scripts to update the database schema.
{ "changed": [ "src/pages/admin/test/index.tsx" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[id].tsx", "selectors": null } ]
491
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nRun SQL scripts\n\nApply the SQL scripts to update the database schema.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[id].tsx\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/pages/admin/test/index.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Remove "back" button from welcome page Remove the "back" button from the welcome page component.
{ "changed": [ "src/components/invitation/WelcomeForm.tsx" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[id].tsx", "selectors": null } ]
492
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nRemove \"back\" button from welcome page\n\nRemove the \"back\" button from the welcome page component.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[id].tsx\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/components/invitation/WelcomeForm.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Fix: Disable continue button until terms accepted Disable the "Continue" button in the MetaWelcomePage until the user accepts the terms and conditions.
{ "changed": [ "src/components/invitation/WelcomeForm.tsx" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[id].tsx", "selectors": null } ]
493
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nFix: Disable continue button until terms accepted\n\nDisable the \"Continue\" button in the MetaWelcomePage until the user accepts the terms and conditions.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[id].tsx\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/components/invitation/WelcomeForm.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Create meta/FbCreation/[id] view \ This commit creates a new view "meta/FbCreation/[id]" that reads the invitation_code parameter and retrieves data from the creator_invitations table.
{ "changed": [ "src/App.tsx", "src/pages/meta/welcome/[id].tsx" ], "created": [ "src/pages/meta/FbCreation/[id].tsx" ], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[id].tsx", "selectors": null } ]
494
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nCreate meta/FbCreation/[id] view\n\n\\\nThis commit creates a new view \"meta/FbCreation/[id]\" that reads the invitation_code parameter and retrieves data from the creator_invitations table.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[id].tsx\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/App.tsx\",\n \"src/pages/meta/welcome/[id].tsx\"\n ],\n \"created\": [\n \"src/pages/meta/FbCreation/[id].tsx\"\n ],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Reverted to edit edt-7378f1ff-96b6-4392-aad8-5db630e942bf: "Fix: Disable continue button until terms accepted Disable the "Continue" button in the MetaWelcomePage until the user accepts the terms and conditions."
{ "changed": [ "src/App.tsx", "src/pages/meta/welcome/[id].tsx" ], "created": [], "deleted": [ "src/pages/meta/FbCreation/[id].tsx" ] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handleBack", "handleComplete" ], "keys": null, "path": "src/pages/meta/FbCreation/[id].tsx", "selectors": null } ]
495
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nReverted to edit edt-7378f1ff-96b6-4392-aad8-5db630e942bf: \"Fix: Disable continue button until terms accepted\n\nDisable the \"Continue\" button in the MetaWelcomePage until the user accepts the terms and conditions.\"\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleBack\",\n \"handleComplete\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[id].tsx\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/App.tsx\",\n \"src/pages/meta/welcome/[id].tsx\"\n ],\n \"created\": [],\n \"deleted\": [\n \"src/pages/meta/FbCreation/[id].tsx\"\n ]\n}" } ]
gmrdaniel/grm-meta
Add meta complete profile page This commit adds a new page at /meta/completeProfile/[invitation_code] that reads the invitation_code parameter and retrieves data from the creator_invitations table.
{ "changed": [ "src/App.tsx", "src/components/invitation/WelcomeForm.tsx", "src/pages/meta/welcome/[id].tsx", "src/types/invitation.ts" ], "created": [ "src/pages/meta/completeProfile/[invitation_code].tsx" ], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[id].tsx", "selectors": null } ]
496
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nAdd meta complete profile page\n\nThis commit adds a new page at /meta/completeProfile/[invitation_code] that reads the invitation_code parameter and retrieves data from the creator_invitations table.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[id].tsx\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/App.tsx\",\n \"src/components/invitation/WelcomeForm.tsx\",\n \"src/pages/meta/welcome/[id].tsx\",\n \"src/types/invitation.ts\"\n ],\n \"created\": [\n \"src/pages/meta/completeProfile/[invitation_code].tsx\"\n ],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Remove back button from complete profile page Remove the back button from the complete profile page.
{ "changed": [ "src/pages/meta/completeProfile/[invitation_code].tsx" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "fetchInvitation", "handleInputChange", "handleSubmit", "handleBack" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[id].tsx", "selectors": null } ]
497
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nRemove back button from complete profile page\n\nRemove the back button from the complete profile page.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleSubmit\",\n \"handleBack\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[id].tsx\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/pages/meta/completeProfile/[invitation_code].tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Fix: Change "Other Social Media" to "Instagram" Updated the CompleteProfilePage to display "Instagram" instead of "Other Social Media" in the form.
{ "changed": [ "src/pages/meta/completeProfile/[invitation_code].tsx", "src/types/invitation.ts" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "fetchInvitation", "handleInputChange", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[id].tsx", "selectors": null } ]
498
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nFix: Change \"Other Social Media\" to \"Instagram\"\n\nUpdated the CompleteProfilePage to display \"Instagram\" instead of \"Other Social Media\" in the form.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[id].tsx\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"src/types/invitation.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Reverted to edit edt-57ebf272-222f-4081-98ac-9e3bfecf22a1: "Remove back button from complete profile page Remove the back button from the complete profile page."
{ "changed": [ "src/pages/meta/completeProfile/[invitation_code].tsx", "src/types/invitation.ts" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "fetchInvitation", "handleInputChange", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[id].tsx", "selectors": null } ]
499
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nReverted to edit edt-57ebf272-222f-4081-98ac-9e3bfecf22a1: \"Remove back button from complete profile page\n\nRemove the back button from the complete profile page.\"\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[id].tsx\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"src/types/invitation.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Reverted to edit edt-cf12bb2a-44c4-4840-b690-342a5d75c6f3: "Fix: Change "Other Social Media" to "Instagram" Updated the CompleteProfilePage to display "Instagram" instead of "Other Social Media" in the form."
{ "changed": [ "src/pages/meta/completeProfile/[invitation_code].tsx", "src/types/invitation.ts" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "fetchInvitation", "handleInputChange", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[id].tsx", "selectors": null } ]
500
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nReverted to edit edt-cf12bb2a-44c4-4840-b690-342a5d75c6f3: \"Fix: Change \"Other Social Media\" to \"Instagram\"\n\nUpdated the CompleteProfilePage to display \"Instagram\" instead of \"Other Social Media\" in the form.\"\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[id].tsx\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"src/types/invitation.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Fix type error in CompleteProfilePage The update data in CompleteProfilePage was not compatible with the database type. This commit fixes the type error by ensuring the update data matches the expected type.
{ "changed": [ "src/pages/meta/completeProfile/[invitation_code].tsx", "src/types/invitation.ts" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "fetchInvitation", "handleInputChange", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[id].tsx", "selectors": null } ]
501
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nFix type error in CompleteProfilePage\n\nThe update data in CompleteProfilePage was not compatible with the database type. This commit fixes the type error by ensuring the update data matches the expected type.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[id].tsx\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"src/types/invitation.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Run SQL scripts
{ "changed": [ "src/integrations/supabase/types.ts", "src/pages/meta/completeProfile/[invitation_code].tsx" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "fetchInvitation", "handleInputChange", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[id].tsx", "selectors": null } ]
502
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nRun SQL scripts\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[id].tsx\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/integrations/supabase/types.ts\",\n \"src/pages/meta/completeProfile/[invitation_code].tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Refactor: Split CompleteProfilePage into components Refactor the CompleteProfilePage component into smaller, reusable components to improve maintainability and readability.
{ "changed": [ "src/pages/meta/completeProfile/[invitation_code].tsx" ], "created": [ "src/components/invitation/CompleteProfileForm.tsx", "src/components/invitation/InvitationError.tsx" ], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "fetchInvitation", "handleInputChange", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[id].tsx", "selectors": null } ]
503
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nRefactor: Split CompleteProfilePage into components\n\nRefactor the CompleteProfilePage component into smaller, reusable components to improve maintainability and readability.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[id].tsx\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/pages/meta/completeProfile/[invitation_code].tsx\"\n ],\n \"created\": [\n \"src/components/invitation/CompleteProfileForm.tsx\",\n \"src/components/invitation/InvitationError.tsx\"\n ],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Add Supabase API keys Add Supabase API keys to the project.
{ "changed": [ "src/components/invitation/CompleteProfileForm.tsx", "src/pages/meta/completeProfile/[invitation_code].tsx" ], "created": [ "src/components/invitation/PhoneVerification.tsx", "supabase/functions/phone-verification/index.ts" ], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[id].tsx", "selectors": null }, { "functions": [ "handleInputChange", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null } ]
504
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nAdd Supabase API keys\n\nAdd Supabase API keys to the project.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleInputChange\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/components/invitation/CompleteProfileForm.tsx\",\n \"src/pages/meta/completeProfile/[invitation_code].tsx\"\n ],\n \"created\": [\n \"src/components/invitation/PhoneVerification.tsx\",\n \"supabase/functions/phone-verification/index.ts\"\n ],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Fix: InputOTPSlot type error The InputOTPSlot component was missing the `index` property in its props, causing a TypeScript error. This commit adds the missing `index` property to the component's props to resolve the error.
{ "changed": [ "src/components/invitation/PhoneVerification.tsx" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[id].tsx", "selectors": null }, { "functions": [ "handleInputChange", "handlePhoneChange", "handleVerificationSuccess", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "getFullPhoneNumber", "sendVerificationCode", "verifyCode" ], "keys": null, "path": "src/components/invitation/PhoneVerification.tsx", "selectors": null } ]
505
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nFix: InputOTPSlot type error\n\nThe InputOTPSlot component was missing the `index` property in its props, causing a TypeScript error. This commit adds the missing `index` property to the component's props to resolve the error.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleInputChange\",\n \"handlePhoneChange\",\n \"handleVerificationSuccess\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getFullPhoneNumber\",\n \"sendVerificationCode\",\n \"verifyCode\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/PhoneVerification.tsx\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/components/invitation/PhoneVerification.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Fix: Phone number verification Refactor phone number validation logic and integrate with Twilio API for sending and verifying SMS codes.
{ "changed": [ "supabase/functions/phone-verification/index.ts" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[id].tsx", "selectors": null }, { "functions": [ "handleInputChange", "handlePhoneChange", "handleVerificationSuccess", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "getFullPhoneNumber", "sendVerificationCode", "verifyCode" ], "keys": null, "path": "src/components/invitation/PhoneVerification.tsx", "selectors": null } ]
506
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nFix: Phone number verification\n\nRefactor phone number validation logic and integrate with Twilio API for sending and verifying SMS codes.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleInputChange\",\n \"handlePhoneChange\",\n \"handleVerificationSuccess\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getFullPhoneNumber\",\n \"sendVerificationCode\",\n \"verifyCode\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/PhoneVerification.tsx\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"supabase/functions/phone-verification/index.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Fix: TypeError in invitation service Fixes a TypeError related to reading properties of undefined in the invitation service.
{ "changed": [ "src/components/invitation/PhoneVerification.tsx" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[id].tsx", "selectors": null }, { "functions": [ "handleInputChange", "handlePhoneChange", "handleVerificationSuccess", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "getFullPhoneNumber", "sendVerificationCode", "verifyCode" ], "keys": null, "path": "src/components/invitation/PhoneVerification.tsx", "selectors": null } ]
507
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nFix: TypeError in invitation service\n\nFixes a TypeError related to reading properties of undefined in the invitation service.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleInputChange\",\n \"handlePhoneChange\",\n \"handleVerificationSuccess\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getFullPhoneNumber\",\n \"sendVerificationCode\",\n \"verifyCode\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/PhoneVerification.tsx\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/components/invitation/PhoneVerification.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Reverted to edit edt-b82f1975-8980-40a0-9cfb-5425972448a7: "Refactor: Split CompleteProfilePage into components Refactor the CompleteProfilePage component into smaller, reusable components to improve maintainability and readability."
{ "changed": [ "src/components/invitation/CompleteProfileForm.tsx", "src/pages/meta/completeProfile/[invitation_code].tsx" ], "created": [], "deleted": [ "src/components/invitation/PhoneVerification.tsx", "supabase/functions/phone-verification/index.ts" ] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[id].tsx", "selectors": null }, { "functions": [ "handleInputChange", "handlePhoneChange", "handleVerificationSuccess", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "getFullPhoneNumber", "sendVerificationCode", "verifyCode" ], "keys": null, "path": "src/components/invitation/PhoneVerification.tsx", "selectors": null } ]
508
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nReverted to edit edt-b82f1975-8980-40a0-9cfb-5425972448a7: \"Refactor: Split CompleteProfilePage into components\n\nRefactor the CompleteProfilePage component into smaller, reusable components to improve maintainability and readability.\"\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleInputChange\",\n \"handlePhoneChange\",\n \"handleVerificationSuccess\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getFullPhoneNumber\",\n \"sendVerificationCode\",\n \"verifyCode\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/PhoneVerification.tsx\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/components/invitation/CompleteProfileForm.tsx\",\n \"src/pages/meta/completeProfile/[invitation_code].tsx\"\n ],\n \"created\": [],\n \"deleted\": [\n \"src/components/invitation/PhoneVerification.tsx\",\n \"supabase/functions/phone-verification/index.ts\"\n ]\n}" } ]
gmrdaniel/grm-meta
Reverted to edit edt-0ba74e82-14fa-45a5-8ccf-e690280e6f6b: "Run SQL scripts"
{ "changed": [ "src/pages/meta/completeProfile/[invitation_code].tsx" ], "created": [], "deleted": [ "src/components/invitation/CompleteProfileForm.tsx", "src/components/invitation/InvitationError.tsx" ] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[id].tsx", "selectors": null }, { "functions": [ "handleInputChange", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null } ]
509
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nReverted to edit edt-0ba74e82-14fa-45a5-8ccf-e690280e6f6b: \"Run SQL scripts\"\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleInputChange\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/pages/meta/completeProfile/[invitation_code].tsx\"\n ],\n \"created\": [],\n \"deleted\": [\n \"src/components/invitation/CompleteProfileForm.tsx\",\n \"src/components/invitation/InvitationError.tsx\"\n ]\n}" } ]
gmrdaniel/grm-meta
Reverted to edit edt-b82f1975-8980-40a0-9cfb-5425972448a7: "Refactor: Split CompleteProfilePage into components Refactor the CompleteProfilePage component into smaller, reusable components to improve maintainability and readability."
{ "changed": [ "src/pages/meta/completeProfile/[invitation_code].tsx" ], "created": [ "src/components/invitation/CompleteProfileForm.tsx", "src/components/invitation/InvitationError.tsx" ], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "fetchInvitation", "handleInputChange", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[id].tsx", "selectors": null } ]
510
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nReverted to edit edt-b82f1975-8980-40a0-9cfb-5425972448a7: \"Refactor: Split CompleteProfilePage into components\n\nRefactor the CompleteProfilePage component into smaller, reusable components to improve maintainability and readability.\"\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[id].tsx\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/pages/meta/completeProfile/[invitation_code].tsx\"\n ],\n \"created\": [\n \"src/components/invitation/CompleteProfileForm.tsx\",\n \"src/components/invitation/InvitationError.tsx\"\n ],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Reverted to edit edt-0ba74e82-14fa-45a5-8ccf-e690280e6f6b: "Run SQL scripts"
{ "changed": [ "src/pages/meta/completeProfile/[invitation_code].tsx" ], "created": [], "deleted": [ "src/components/invitation/CompleteProfileForm.tsx", "src/components/invitation/InvitationError.tsx" ] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[id].tsx", "selectors": null }, { "functions": [ "handleInputChange", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null } ]
511
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nReverted to edit edt-0ba74e82-14fa-45a5-8ccf-e690280e6f6b: \"Run SQL scripts\"\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleInputChange\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/pages/meta/completeProfile/[invitation_code].tsx\"\n ],\n \"created\": [],\n \"deleted\": [\n \"src/components/invitation/CompleteProfileForm.tsx\",\n \"src/components/invitation/InvitationError.tsx\"\n ]\n}" } ]
gmrdaniel/grm-meta
Reverted to edit edt-b82f1975-8980-40a0-9cfb-5425972448a7: "Refactor: Split CompleteProfilePage into components Refactor the CompleteProfilePage component into smaller, reusable components to improve maintainability and readability."
{ "changed": [ "src/pages/meta/completeProfile/[invitation_code].tsx" ], "created": [ "src/components/invitation/CompleteProfileForm.tsx", "src/components/invitation/InvitationError.tsx" ], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "fetchInvitation", "handleInputChange", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[id].tsx", "selectors": null } ]
512
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nReverted to edit edt-b82f1975-8980-40a0-9cfb-5425972448a7: \"Refactor: Split CompleteProfilePage into components\n\nRefactor the CompleteProfilePage component into smaller, reusable components to improve maintainability and readability.\"\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[id].tsx\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/pages/meta/completeProfile/[invitation_code].tsx\"\n ],\n \"created\": [\n \"src/components/invitation/CompleteProfileForm.tsx\",\n \"src/components/invitation/InvitationError.tsx\"\n ],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Run SQL migration
{ "changed": [ "src/components/invitation/CompleteProfileForm.tsx", "src/integrations/supabase/types.ts", "src/pages/meta/completeProfile/[invitation_code].tsx" ], "created": [ "supabase/functions/verify-phone/index.ts" ], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "handleInputChange", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[id].tsx", "selectors": null } ]
513
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nRun SQL migration\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleInputChange\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[id].tsx\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/components/invitation/CompleteProfileForm.tsx\",\n \"src/integrations/supabase/types.ts\",\n \"src/pages/meta/completeProfile/[invitation_code].tsx\"\n ],\n \"created\": [\n \"supabase/functions/verify-phone/index.ts\"\n ],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Fix: Disable registration button Disable the "Complete Registration" button in the CompleteProfilePage until the phone number is verified.
{ "changed": [ "src/components/invitation/CompleteProfileForm.tsx", "src/services/invitationService.ts", "src/types/invitation.ts" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[id].tsx", "selectors": null } ]
514
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nFix: Disable registration button\n\nDisable the \"Complete Registration\" button in the CompleteProfilePage until the phone number is verified.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[id].tsx\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/components/invitation/CompleteProfileForm.tsx\",\n \"src/services/invitationService.ts\",\n \"src/types/invitation.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Fix: Resolve type error in invitation service The `CreateInvitationData` type was not recognized in `src/services/invitationService.ts`. This commit resolves the type error.
{ "changed": [ "src/services/invitationService.ts", "src/types/invitation.ts" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[id].tsx", "selectors": null } ]
515
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nFix: Resolve type error in invitation service\n\nThe `CreateInvitationData` type was not recognized in `src/services/invitationService.ts`. This commit resolves the type error.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[id].tsx\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/services/invitationService.ts\",\n \"src/types/invitation.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Add image section to welcome view Add the image section to the welcome view in the "/meta/welcome/" route.
{ "changed": [ "src/components/invitation/WelcomeForm.tsx" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[id].tsx", "selectors": null } ]
516
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nAdd image section to welcome view\n\nAdd the image section to the welcome view in the \"/meta/welcome/\" route.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[id].tsx\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/components/invitation/WelcomeForm.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Reverted to edit edt-da3ca49f-d652-4203-8b37-a22d0b0b29c2: "Fix: Resolve type error in invitation service The `CreateInvitationData` type was not recognized in `src/services/invitationService.ts`. This commit resolves the type error."
{ "changed": [ "src/components/invitation/WelcomeForm.tsx" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[id].tsx", "selectors": null } ]
517
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nReverted to edit edt-da3ca49f-d652-4203-8b37-a22d0b0b29c2: \"Fix: Resolve type error in invitation service\n\nThe `CreateInvitationData` type was not recognized in `src/services/invitationService.ts`. This commit resolves the type error.\"\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[id].tsx\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/components/invitation/WelcomeForm.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Add welcome section to form Add a welcome section to the form in the /meta/welcome/ view.
{ "changed": [ "src/components/invitation/WelcomeForm.tsx" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[id].tsx", "selectors": null } ]
518
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nAdd welcome section to form\n\nAdd a welcome section to the form in the /meta/welcome/ view.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[id].tsx\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/components/invitation/WelcomeForm.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Move welcome message Moves the welcome message in the WelcomeForm component to be displayed after the benefits section.
{ "changed": [ "src/components/invitation/WelcomeForm.tsx", "src/pages/meta/welcome/[id].tsx" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[id].tsx", "selectors": null } ]
519
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nMove welcome message\n\nMoves the welcome message in the WelcomeForm component to be displayed after the benefits section.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[id].tsx\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/components/invitation/WelcomeForm.tsx\",\n \"src/pages/meta/welcome/[id].tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
cambio de texto
{ "changed": [ "src/components/invitation/WelcomeForm.tsx" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[id].tsx", "selectors": null } ]
520
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\ncambio de texto\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[id].tsx\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/components/invitation/WelcomeForm.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
feat: Create Meta FB Creation view Create a new view for Meta FB Creation and remove the back button.
{ "changed": [ "src/App.tsx" ], "created": [ "src/pages/meta/FbCreation/[invitation_code].tsx" ], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[id].tsx", "selectors": null } ]
521
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nfeat: Create Meta FB Creation view\n\nCreate a new view for Meta FB Creation and remove the back button.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[id].tsx\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/App.tsx\"\n ],\n \"created\": [\n \"src/pages/meta/FbCreation/[invitation_code].tsx\"\n ],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Fix: Update Facebook page creation instructions Update the Facebook page creation instructions with links and additional information.
{ "changed": [ "src/pages/meta/FbCreation/[invitation_code].tsx" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleSubmit" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[id].tsx", "selectors": null } ]
522
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nFix: Update Facebook page creation instructions\n\nUpdate the Facebook page creation instructions with links and additional information.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[id].tsx\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/pages/meta/FbCreation/[invitation_code].tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
feat: Save Facebook page URL When submitting the form, fetch the invitation by code and save the Facebook page URL to the "creator_invitations" table.
{ "changed": [ "src/integrations/supabase/types.ts", "src/pages/meta/FbCreation/[invitation_code].tsx" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleSubmit" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[id].tsx", "selectors": null } ]
523
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nfeat: Save Facebook page URL\n\nWhen submitting the form, fetch the invitation by code and save the Facebook page URL to the \"creator_invitations\" table.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[id].tsx\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/integrations/supabase/types.ts\",\n \"src/pages/meta/FbCreation/[invitation_code].tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Fix: Disable submit button until URL is filled Disable the "Submit for Validation" button until the "Facebook Page URL" input field is filled by the user.
{ "changed": [ "src/pages/meta/FbCreation/[invitation_code].tsx" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleSubmit" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[id].tsx", "selectors": null } ]
524
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nFix: Disable submit button until URL is filled\n\nDisable the \"Submit for Validation\" button until the \"Facebook Page URL\" input field is filled by the user.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[id].tsx\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/pages/meta/FbCreation/[invitation_code].tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
feat: Save Facebook Page URL Saves the Facebook Page URL to the creator_invitations table when the "Submit for Validation" button is pressed, using the invitation code.
{ "changed": [ "src/pages/meta/FbCreation/[invitation_code].tsx" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleSubmit" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[id].tsx", "selectors": null } ]
525
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nfeat: Save Facebook Page URL\n\nSaves the Facebook Page URL to the creator_invitations table when the \"Submit for Validation\" button is pressed, using the invitation code.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[id].tsx\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/pages/meta/FbCreation/[invitation_code].tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Fix: Persist Facebook page URL Ensure the Facebook page URL is correctly persisted in the database.
{ "changed": [ "src/pages/meta/FbCreation/[invitation_code].tsx" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleSubmit" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[id].tsx", "selectors": null } ]
526
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nFix: Persist Facebook page URL\n\nEnsure the Facebook page URL is correctly persisted in the database.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[id].tsx\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/pages/meta/FbCreation/[invitation_code].tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Fix: Add facebook_page to CreatorInvitation type Added the facebook_page property to the CreatorInvitation type definition to resolve TypeScript errors.
{ "changed": [ "src/types/invitation.ts" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleSubmit" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[id].tsx", "selectors": null } ]
527
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nFix: Add facebook_page to CreatorInvitation type\n\nAdded the facebook_page property to the CreatorInvitation type definition to resolve TypeScript errors.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[id].tsx\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/types/invitation.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Fix: Update Facebook page on submit Update the Facebook page URL in the database when submitting the form on the FbCreation page.
{ "changed": [ "src/pages/meta/FbCreation/[invitation_code].tsx" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleSubmit" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[id].tsx", "selectors": null } ]
528
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nFix: Update Facebook page on submit\n\nUpdate the Facebook page URL in the database when submitting the form on the FbCreation page.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[id].tsx\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/pages/meta/FbCreation/[invitation_code].tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Fix: Handle data save error Handle the case where there is an issue saving the Facebook page URL and display an error message to the user.
{ "changed": [ "src/pages/meta/FbCreation/[invitation_code].tsx" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleSubmit" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[id].tsx", "selectors": null } ]
529
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nFix: Handle data save error\n\nHandle the case where there is an issue saving the Facebook page URL and display an error message to the user.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[id].tsx\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/pages/meta/FbCreation/[invitation_code].tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Fix: Pass invitation ID to FB page Pass the invitation ID to the Facebook page creation component to persist the Facebook page URL.
{ "changed": [ "src/pages/meta/FbCreation/[invitation_code].tsx" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleSubmit" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[id].tsx", "selectors": null } ]
530
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nFix: Pass invitation ID to FB page\n\nPass the invitation ID to the Facebook page creation component to persist the Facebook page URL.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[id].tsx\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/pages/meta/FbCreation/[invitation_code].tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Review validation policies Review the validation policies to identify potential errors.
{ "changed": [ "src/pages/meta/FbCreation/[invitation_code].tsx", "src/services/invitationService.ts", "src/types/invitation.ts" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleSubmit" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[id].tsx", "selectors": null } ]
531
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nReview validation policies\n\nReview the validation policies to identify potential errors.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[id].tsx\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"src/services/invitationService.ts\",\n \"src/types/invitation.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Fix invitation fetching errors Addresses errors encountered when fetching invitations, particularly when no rows are returned.
{ "changed": [ "src/services/invitationService.ts" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleSubmit" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[id].tsx", "selectors": null } ]
532
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nFix invitation fetching errors\n\nAddresses errors encountered when fetching invitations, particularly when no rows are returned.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[id].tsx\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/services/invitationService.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Fix: Handle multiple/no rows in invitation query The API was returning an error when the invitation query returned multiple or no rows. This commit addresses the issue.
{ "changed": [ "src/services/invitationService.ts" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleSubmit" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[id].tsx", "selectors": null } ]
533
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nFix: Handle multiple/no rows in invitation query\n\nThe API was returning an error when the invitation query returned multiple or no rows. This commit addresses the issue.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[id].tsx\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/services/invitationService.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Fix: Facebook page not saving Fixes an issue where the Facebook page URL was not being saved, resulting in a PGRST116 error.
{ "changed": [ "src/pages/meta/FbCreation/[invitation_code].tsx", "src/services/invitationService.ts" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleSubmit" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[id].tsx", "selectors": null } ]
534
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nFix: Facebook page not saving\n\nFixes an issue where the Facebook page URL was not being saved, resulting in a PGRST116 error.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[id].tsx\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"src/services/invitationService.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Update invitation status on continue Updates the creator_invitations.status to "accepted" when the "continue" button is pressed on the "/meta/welcome/" view.
{ "changed": [ "src/components/invitation/WelcomeForm.tsx", "src/pages/meta/welcome/[id].tsx" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleSubmit" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[id].tsx", "selectors": null } ]
535
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nUpdate invitation status on continue\n\nUpdates the creator_invitations.status to \"accepted\" when the \"continue\" button is pressed on the \"/meta/welcome/\" view.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[id].tsx\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/components/invitation/WelcomeForm.tsx\",\n \"src/pages/meta/welcome/[id].tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Fix: Pass invitation code to MetaWelcomePage Pass the invitation code as a parameter to the MetaWelcomePage component.
{ "changed": [ "src/App.tsx" ], "created": [ "src/pages/meta/welcome/[invitation_code].tsx" ], "deleted": [ "src/pages/meta/welcome/[id].tsx" ] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleSubmit" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[id].tsx", "selectors": null } ]
536
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nFix: Pass invitation code to MetaWelcomePage\n\nPass the invitation code as a parameter to the MetaWelcomePage component.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[id].tsx\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/App.tsx\"\n ],\n \"created\": [\n \"src/pages/meta/welcome/[invitation_code].tsx\"\n ],\n \"deleted\": [\n \"src/pages/meta/welcome/[id].tsx\"\n ]\n}" } ]
gmrdaniel/grm-meta
Fix: Resolve import error in App.tsx The error "Failed to resolve import \"./pages/meta/welcome/[id]\" from \"src/App.tsx\"" indicates an issue with the import path. This commit should fix the import path to correctly point to the MetaWelcomePage component.
{ "changed": [ "src/App.tsx" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleSubmit" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null } ]
537
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nFix: Resolve import error in App.tsx\n\nThe error \"Failed to resolve import \\\"./pages/meta/welcome/[id]\\\" from \\\"src/App.tsx\\\"\" indicates an issue with the import path. This commit should fix the import path to correctly point to the MetaWelcomePage component.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/App.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
feat: Add submission review and user creation Add a section to display a submission review message and implement user creation based on invitation data.
{ "changed": [ "src/integrations/supabase/types.ts", "src/pages/meta/FbCreation/[invitation_code].tsx" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleSubmit" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null } ]
538
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nfeat: Add submission review and user creation\n\nAdd a section to display a submission review message and implement user creation based on invitation data.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/integrations/supabase/types.ts\",\n \"src/pages/meta/FbCreation/[invitation_code].tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Fix invitation status type error The updateInvitationStatus function was throwing a TypeScript error because the type of the status parameter was not correctly defined. This commit fixes the issue by ensuring that the status parameter is of type CreatorInvitation['status'].
{ "changed": [ "src/services/invitationService.ts" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handlePasswordChange", "handleCheckboxChange", "handleSubmit", "handleSetPassword" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null } ]
539
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nFix invitation status type error\n\nThe updateInvitationStatus function was throwing a TypeScript error because the type of the status parameter was not correctly defined. This commit fixes the issue by ensuring that the status parameter is of type CreatorInvitation['status'].\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handlePasswordChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\",\n \"handleSetPassword\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/services/invitationService.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Make phone number fields read-only After phone number verification, the "Phone Number" fields in the /meta/completeProfile view are now read-only.
{ "changed": [ "src/components/invitation/CompleteProfileForm.tsx", "src/services/invitationService.ts" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handlePasswordChange", "handleCheckboxChange", "handleSubmit", "handleSetPassword" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null } ]
540
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nMake phone number fields read-only\n\nAfter phone number verification, the \"Phone Number\" fields in the /meta/completeProfile view are now read-only.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handlePasswordChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\",\n \"handleSetPassword\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/components/invitation/CompleteProfileForm.tsx\",\n \"src/services/invitationService.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Fix: Invitation status type error Fixes an issue where the invitation status was not correctly typed, leading to a TypeScript error.
{ "changed": [ "src/services/invitationService.ts" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handlePasswordChange", "handleCheckboxChange", "handleSubmit", "handleSetPassword" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null } ]
541
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nFix: Invitation status type error\n\nFixes an issue where the invitation status was not correctly typed, leading to a TypeScript error.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handlePasswordChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\",\n \"handleSetPassword\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/services/invitationService.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
feat: Save project relation on invitation creation
{ "changed": [ "src/components/admin/invitations/InvitationForm.tsx", "src/integrations/supabase/types.ts", "src/services/invitationService.ts", "src/types/invitation.ts" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handlePasswordChange", "handleCheckboxChange", "handleSubmit", "handleSetPassword" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null } ]
542
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nfeat: Save project relation on invitation creation\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handlePasswordChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\",\n \"handleSetPassword\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/components/admin/invitations/InvitationForm.tsx\",\n \"src/integrations/supabase/types.ts\",\n \"src/services/invitationService.ts\",\n \"src/types/invitation.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Fix: Invitation status type error Implement a solution to fix the TypeScript error related to invalid invitation status.
{ "changed": [ "src/components/admin/invitations/InvitationsList.tsx", "src/services/invitationService.ts", "src/types/invitation.ts" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleStatusChange", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handlePasswordChange", "handleCheckboxChange", "handleSubmit", "handleSetPassword" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null } ]
543
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nFix: Invitation status type error\n\nImplement a solution to fix the TypeScript error related to invalid invitation status.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleStatusChange\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handlePasswordChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\",\n \"handleSetPassword\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/components/admin/invitations/InvitationsList.tsx\",\n \"src/services/invitationService.ts\",\n \"src/types/invitation.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
feat: Redirect to FbCreation page Redirect to the FbCreation page after completing registration.
{ "changed": [ "src/pages/meta/completeProfile/[invitation_code].tsx" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handlePasswordChange", "handleCheckboxChange", "handleSubmit", "handleSetPassword" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null } ]
544
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nfeat: Redirect to FbCreation page\n\nRedirect to the FbCreation page after completing registration.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handlePasswordChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\",\n \"handleSetPassword\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/pages/meta/completeProfile/[invitation_code].tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Run SQL scripts
{ "changed": [ "src/integrations/supabase/types.ts", "src/types/invitation.ts", "src/types/project.ts" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handlePasswordChange", "handleCheckboxChange", "handleSubmit", "handleSetPassword" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null } ]
545
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nRun SQL scripts\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handlePasswordChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\",\n \"handleSetPassword\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/integrations/supabase/types.ts\",\n \"src/types/invitation.ts\",\n \"src/types/project.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Add task creation on submit Create a task record when submitting the Facebook page information. The task title is "Validar registro", project_id is taken from creator_invitations.project_id, stage_id is selected where view = 'meta/FbCreation', status is 'pending', and creator_invitation_id is selected from creator_invitations where invitation_code matches the current invitation code.
{ "changed": [ "src/pages/meta/FbCreation/[invitation_code].tsx", "src/services/projectService.ts" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handlePasswordChange", "handleCheckboxChange", "handleSubmit", "handleSetPassword" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null } ]
546
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nAdd task creation on submit\n\nCreate a task record when submitting the Facebook page information.\nThe task title is \"Validar registro\", project_id is taken from creator_invitations.project_id, stage_id is selected where view = 'meta/FbCreation', status is 'pending', and creator_invitation_id is selected from creator_invitations where invitation_code matches the current invitation code.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handlePasswordChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\",\n \"handleSetPassword\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"src/services/projectService.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Reverted to edit edt-7cc3c84c-06a5-41ec-81ee-0cdb9d7a112c: "Run SQL scripts"
{ "changed": [ "src/pages/meta/FbCreation/[invitation_code].tsx", "src/services/projectService.ts" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handlePasswordChange", "handleCheckboxChange", "handleSubmit", "handleSetPassword" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null } ]
547
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nReverted to edit edt-7cc3c84c-06a5-41ec-81ee-0cdb9d7a112c: \"Run SQL scripts\"\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handlePasswordChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\",\n \"handleSetPassword\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"src/services/projectService.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Update invitation status on submit Update invitation status to 'accepted' when submitting the Facebook page information in the FbCreation page.
{ "changed": [ "src/pages/meta/FbCreation/[invitation_code].tsx", "src/services/invitationService.ts", "src/types/invitation.ts" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handlePasswordChange", "handleCheckboxChange", "handleSubmit", "handleSetPassword" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null } ]
548
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nUpdate invitation status on submit\n\nUpdate invitation status to 'accepted' when submitting the Facebook page information in the FbCreation page.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handlePasswordChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\",\n \"handleSetPassword\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"src/services/invitationService.ts\",\n \"src/types/invitation.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
feat: Add tasks menu with pagination and filters Adds a new "Tasks" menu item under the admin section. This menu includes a paginated view of tasks, with filtering options based on task status.
{ "changed": [ "src/App.tsx", "src/components/sidebar/navigation-items.tsx", "src/integrations/supabase/types.ts", "src/types/invitation.ts" ], "created": [ "src/components/admin/tasks/TasksList.tsx", "src/pages/admin/tasks/index.tsx", "src/services/tasksService.ts" ], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handlePasswordChange", "handleCheckboxChange", "handleSubmit", "handleSetPassword" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null } ]
549
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nfeat: Add tasks menu with pagination and filters\n\nAdds a new \"Tasks\" menu item under the admin section. This menu includes a paginated view of tasks, with filtering options based on task status.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handlePasswordChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\",\n \"handleSetPassword\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/App.tsx\",\n \"src/components/sidebar/navigation-items.tsx\",\n \"src/integrations/supabase/types.ts\",\n \"src/types/invitation.ts\"\n ],\n \"created\": [\n \"src/components/admin/tasks/TasksList.tsx\",\n \"src/pages/admin/tasks/index.tsx\",\n \"src/services/tasksService.ts\"\n ],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Fix: Task status type Correct the task status type definition.
{ "changed": [ "src/services/tasksService.ts" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "TasksList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TasksList.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/tasksService.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "AdminTasks" ], "keys": null, "path": "src/pages/admin/tasks/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handlePasswordChange", "handleCheckboxChange", "handleSubmit", "handleSetPassword" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null } ]
550
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nFix: Task status type\n\nCorrect the task status type definition.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TasksList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TasksList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tasksService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTasks\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/tasks/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handlePasswordChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\",\n \"handleSetPassword\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/services/tasksService.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Refactor: Improve type safety for status
{ "changed": [ "src/components/admin/tasks/TasksList.tsx" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "TasksList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TasksList.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/tasksService.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "AdminTasks" ], "keys": null, "path": "src/pages/admin/tasks/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handlePasswordChange", "handleCheckboxChange", "handleSubmit", "handleSetPassword" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null } ]
551
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nRefactor: Improve type safety for status\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TasksList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TasksList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tasksService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTasks\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/tasks/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handlePasswordChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\",\n \"handleSetPassword\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/components/admin/tasks/TasksList.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
feat: Add task detail tab to tasks view Adds a new tab to the admin tasks view to display task details.
{ "changed": [ "src/components/admin/tasks/TasksList.tsx", "src/pages/admin/tasks/index.tsx", "src/services/tasksService.ts" ], "created": [ "src/components/admin/tasks/TaskDetail.tsx" ], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "TasksList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TasksList.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/tasksService.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "AdminTasks" ], "keys": null, "path": "src/pages/admin/tasks/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handlePasswordChange", "handleCheckboxChange", "handleSubmit", "handleSetPassword" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null } ]
552
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nfeat: Add task detail tab to tasks view\n\nAdds a new tab to the admin tasks view to display task details.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TasksList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TasksList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tasksService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTasks\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/tasks/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handlePasswordChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\",\n \"handleSetPassword\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/components/admin/tasks/TasksList.tsx\",\n \"src/pages/admin/tasks/index.tsx\",\n \"src/services/tasksService.ts\"\n ],\n \"created\": [\n \"src/components/admin/tasks/TaskDetail.tsx\"\n ],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Fix: Adjust tabs view Adjust the tabs view to match the image provided.
{ "changed": [ "src/components/ui/tabs.tsx", "src/pages/admin/tasks/index.tsx" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "TasksList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TasksList.tsx", "selectors": null }, { "functions": [ "TaskDetail", "handleStatusUpdate", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TaskDetail.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/tasksService.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "AdminTasks" ], "keys": null, "path": "src/pages/admin/tasks/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handlePasswordChange", "handleCheckboxChange", "handleSubmit", "handleSetPassword" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null } ]
553
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nFix: Adjust tabs view\n\nAdjust the tabs view to match the image provided.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TasksList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TasksList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TaskDetail\",\n \"handleStatusUpdate\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TaskDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tasksService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTasks\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/tasks/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handlePasswordChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\",\n \"handleSetPassword\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/components/ui/tabs.tsx\",\n \"src/pages/admin/tasks/index.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
feat: Show table and filter when no tasks exist
{ "changed": [ "src/components/admin/tasks/TasksList.tsx" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "TasksList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TasksList.tsx", "selectors": null }, { "functions": [ "TaskDetail", "handleStatusUpdate", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TaskDetail.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/tasksService.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "AdminTasks", "handleTaskSelect" ], "keys": null, "path": "src/pages/admin/tasks/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handlePasswordChange", "handleCheckboxChange", "handleSubmit", "handleSetPassword" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null } ]
554
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nfeat: Show table and filter when no tasks exist\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TasksList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TasksList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TaskDetail\",\n \"handleStatusUpdate\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TaskDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tasksService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTasks\",\n \"handleTaskSelect\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/tasks/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handlePasswordChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\",\n \"handleSetPassword\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/components/admin/tasks/TasksList.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Add Header component Add the Header component to the admin tasks page.
{ "changed": [ "src/pages/admin/tasks/index.tsx" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "TasksList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TasksList.tsx", "selectors": null }, { "functions": [ "TaskDetail", "handleStatusUpdate", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TaskDetail.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/tasksService.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "AdminTasks", "handleTaskSelect" ], "keys": null, "path": "src/pages/admin/tasks/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handlePasswordChange", "handleCheckboxChange", "handleSubmit", "handleSetPassword" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null } ]
555
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nAdd Header component\n\nAdd the Header component to the admin tasks page.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TasksList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TasksList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TaskDetail\",\n \"handleStatusUpdate\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TaskDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tasksService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTasks\",\n \"handleTaskSelect\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/tasks/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handlePasswordChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\",\n \"handleSetPassword\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/pages/admin/tasks/index.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Run SQL scripts
{ "changed": [ "src/components/admin/inventory/CreatorForm.tsx", "src/components/admin/inventory/CreatorsList.tsx", "src/integrations/supabase/types.ts", "src/types/creator.ts" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate", "handleEdit", "handlePageChange" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "TasksList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TasksList.tsx", "selectors": null }, { "functions": [ "TaskDetail", "handleStatusUpdate", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TaskDetail.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/tasksService.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "AdminTasks", "handleTaskSelect" ], "keys": null, "path": "src/pages/admin/tasks/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handlePasswordChange", "handleCheckboxChange", "handleSubmit", "handleSetPassword" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null } ]
556
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nRun SQL scripts\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\",\n \"handleEdit\",\n \"handlePageChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TasksList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TasksList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TaskDetail\",\n \"handleStatusUpdate\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TaskDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tasksService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTasks\",\n \"handleTaskSelect\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/tasks/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handlePasswordChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\",\n \"handleSetPassword\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/components/admin/inventory/CreatorForm.tsx\",\n \"src/components/admin/inventory/CreatorsList.tsx\",\n \"src/integrations/supabase/types.ts\",\n \"src/types/creator.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Run SQL scripts Apply the SQL scripts to the database.
{ "changed": [ "src/components/admin/inventory/CreatorForm.tsx", "src/components/admin/inventory/CreatorsList.tsx", "src/integrations/supabase/types.ts", "src/types/creator.ts" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "getInitials", "formatDate" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "TasksList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TasksList.tsx", "selectors": null }, { "functions": [ "TaskDetail", "handleStatusUpdate", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TaskDetail.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/tasksService.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "AdminTasks", "handleTaskSelect" ], "keys": null, "path": "src/pages/admin/tasks/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handlePasswordChange", "handleCheckboxChange", "handleSubmit", "handleSetPassword" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null } ]
557
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nRun SQL scripts\n\nApply the SQL scripts to the database.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getInitials\",\n \"formatDate\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TasksList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TasksList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TaskDetail\",\n \"handleStatusUpdate\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TaskDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tasksService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTasks\",\n \"handleTaskSelect\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/tasks/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handlePasswordChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\",\n \"handleSetPassword\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/components/admin/inventory/CreatorForm.tsx\",\n \"src/components/admin/inventory/CreatorsList.tsx\",\n \"src/integrations/supabase/types.ts\",\n \"src/types/creator.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Run SQL scripts
{ "changed": [ "src/components/admin/inventory/CreatorsList.tsx", "src/integrations/supabase/types.ts", "src/pages/admin/inventory/index.tsx", "src/types/creator.ts" ], "created": [ "src/components/admin/inventory/CreatorDetail.tsx", "src/components/admin/inventory/TikTokVideosList.tsx", "src/services/tiktokVideoService.ts" ], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "getInitials", "formatDate" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "TasksList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TasksList.tsx", "selectors": null }, { "functions": [ "TaskDetail", "handleStatusUpdate", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TaskDetail.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/tasksService.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "AdminTasks", "handleTaskSelect" ], "keys": null, "path": "src/pages/admin/tasks/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handlePasswordChange", "handleCheckboxChange", "handleSubmit", "handleSetPassword" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null } ]
558
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nRun SQL scripts\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getInitials\",\n \"formatDate\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TasksList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TasksList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TaskDetail\",\n \"handleStatusUpdate\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TaskDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tasksService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTasks\",\n \"handleTaskSelect\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/tasks/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handlePasswordChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\",\n \"handleSetPassword\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/components/admin/inventory/CreatorsList.tsx\",\n \"src/integrations/supabase/types.ts\",\n \"src/pages/admin/inventory/index.tsx\",\n \"src/types/creator.ts\"\n ],\n \"created\": [\n \"src/components/admin/inventory/CreatorDetail.tsx\",\n \"src/components/admin/inventory/TikTokVideosList.tsx\",\n \"src/services/tiktokVideoService.ts\"\n ],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
feat: Add TikTok video type Adds a typed object for TikTok videos with optional validation.
{ "changed": [ "src/components/admin/inventory/TikTokVideosList.tsx", "src/services/tiktokVideoService.ts" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "TikTokVideosList", "onSubmit", "formatNumber", "formatDate", "formatDuration", "handleDelete" ], "keys": null, "path": "src/components/admin/inventory/TikTokVideosList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "getInitials", "formatDate" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "CreatorDetail" ], "keys": null, "path": "src/components/admin/inventory/CreatorDetail.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "TasksList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TasksList.tsx", "selectors": null }, { "functions": [ "TaskDetail", "handleStatusUpdate", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TaskDetail.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/tasksService.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory", "handleCreatorSelect", "handleBackToList" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "AdminTasks", "handleTaskSelect" ], "keys": null, "path": "src/pages/admin/tasks/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handlePasswordChange", "handleCheckboxChange", "handleSubmit", "handleSetPassword" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "addTikTokVideo", "if" ], "keys": null, "path": "src/services/tiktokVideoService.ts", "selectors": null } ]
559
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nfeat: Add TikTok video type\n\nAdds a typed object for TikTok videos with optional validation.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TikTokVideosList\",\n \"onSubmit\",\n \"formatNumber\",\n \"formatDate\",\n \"formatDuration\",\n \"handleDelete\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/TikTokVideosList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getInitials\",\n \"formatDate\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TasksList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TasksList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TaskDetail\",\n \"handleStatusUpdate\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TaskDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tasksService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\",\n \"handleCreatorSelect\",\n \"handleBackToList\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTasks\",\n \"handleTaskSelect\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/tasks/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handlePasswordChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\",\n \"handleSetPassword\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"addTikTokVideo\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tiktokVideoService.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/components/admin/inventory/TikTokVideosList.tsx\",\n \"src/services/tiktokVideoService.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
feat: Add TikTok detail functionality Adds functionality to select creators and fetch TikTok details, persisting the results to the database. Includes a "TikTok Detail" button that triggers an API call to retrieve user data and updates the UI with processing status.
{ "changed": [ "src/components/admin/inventory/CreatorsList.tsx", "src/components/ui/checkbox.tsx" ], "created": [ "src/services/creatorTikTokService.ts", "supabase/functions/fetch-tiktok-details/index.ts" ], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "TikTokVideosList", "onSubmit", "formatNumber", "formatDate", "formatDuration", "handleDelete" ], "keys": null, "path": "src/components/admin/inventory/TikTokVideosList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "getInitials", "formatDate" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "CreatorDetail" ], "keys": null, "path": "src/components/admin/inventory/CreatorDetail.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "TasksList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TasksList.tsx", "selectors": null }, { "functions": [ "TaskDetail", "handleStatusUpdate", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TaskDetail.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/tasksService.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory", "handleCreatorSelect", "handleBackToList" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "AdminTasks", "handleTaskSelect" ], "keys": null, "path": "src/pages/admin/tasks/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handlePasswordChange", "handleCheckboxChange", "handleSubmit", "handleSetPassword" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "addTikTokVideo", "if" ], "keys": null, "path": "src/services/tiktokVideoService.ts", "selectors": null } ]
560
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nfeat: Add TikTok detail functionality\n\nAdds functionality to select creators and fetch TikTok details, persisting the results to the database. Includes a \"TikTok Detail\" button that triggers an API call to retrieve user data and updates the UI with processing status.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TikTokVideosList\",\n \"onSubmit\",\n \"formatNumber\",\n \"formatDate\",\n \"formatDuration\",\n \"handleDelete\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/TikTokVideosList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getInitials\",\n \"formatDate\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TasksList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TasksList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TaskDetail\",\n \"handleStatusUpdate\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TaskDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tasksService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\",\n \"handleCreatorSelect\",\n \"handleBackToList\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTasks\",\n \"handleTaskSelect\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/tasks/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handlePasswordChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\",\n \"handleSetPassword\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"addTikTokVideo\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tiktokVideoService.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/components/admin/inventory/CreatorsList.tsx\",\n \"src/components/ui/checkbox.tsx\"\n ],\n \"created\": [\n \"src/services/creatorTikTokService.ts\",\n \"supabase/functions/fetch-tiktok-details/index.ts\"\n ],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Run SQL scripts Apply the SQL scripts to the database to set up tables, functions, and triggers.
{ "changed": [ "src/components/admin/invitations/InvitationForm.tsx", "src/services/invitationService.ts" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "TikTokVideosList", "onSubmit", "formatNumber", "formatDate", "formatDuration", "handleDelete" ], "keys": null, "path": "src/components/admin/inventory/TikTokVideosList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "getInitials", "formatDate", "if" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "CreatorDetail" ], "keys": null, "path": "src/components/admin/inventory/CreatorDetail.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "TasksList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TasksList.tsx", "selectors": null }, { "functions": [ "TaskDetail", "handleStatusUpdate", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TaskDetail.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/tasksService.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory", "handleCreatorSelect", "handleBackToList" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "AdminTasks", "handleTaskSelect" ], "keys": null, "path": "src/pages/admin/tasks/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handlePasswordChange", "handleCheckboxChange", "handleSubmit", "handleSetPassword" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "addTikTokVideo", "if" ], "keys": null, "path": "src/services/tiktokVideoService.ts", "selectors": null }, { "functions": [ "error" ], "keys": null, "path": "src/services/creatorTikTokService.ts", "selectors": null }, { "functions": [ "processRequest" ], "keys": null, "path": "supabase/functions/fetch-tiktok-details/index.ts", "selectors": null } ]
561
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nRun SQL scripts\n\nApply the SQL scripts to the database to set up tables, functions, and triggers.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TikTokVideosList\",\n \"onSubmit\",\n \"formatNumber\",\n \"formatDate\",\n \"formatDuration\",\n \"handleDelete\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/TikTokVideosList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getInitials\",\n \"formatDate\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TasksList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TasksList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TaskDetail\",\n \"handleStatusUpdate\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TaskDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tasksService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\",\n \"handleCreatorSelect\",\n \"handleBackToList\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTasks\",\n \"handleTaskSelect\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/tasks/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handlePasswordChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\",\n \"handleSetPassword\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"addTikTokVideo\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tiktokVideoService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"error\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorTikTokService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"processRequest\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/fetch-tiktok-details/index.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/components/admin/invitations/InvitationForm.tsx\",\n \"src/services/invitationService.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Fix: TikTok details update Ensure correct function name and data persistence in the database.
{ "changed": [ "src/services/creatorTikTokService.ts", "src/types/invitation.ts", "supabase/functions/fetch-tiktok-details/index.ts" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "TikTokVideosList", "onSubmit", "formatNumber", "formatDate", "formatDuration", "handleDelete" ], "keys": null, "path": "src/components/admin/inventory/TikTokVideosList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "getInitials", "formatDate", "if" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "CreatorDetail" ], "keys": null, "path": "src/components/admin/inventory/CreatorDetail.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "TasksList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TasksList.tsx", "selectors": null }, { "functions": [ "TaskDetail", "handleStatusUpdate", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TaskDetail.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/tasksService.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory", "handleCreatorSelect", "handleBackToList" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "AdminTasks", "handleTaskSelect" ], "keys": null, "path": "src/pages/admin/tasks/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handlePasswordChange", "handleCheckboxChange", "handleSubmit", "handleSetPassword" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode", "catch" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "addTikTokVideo", "if" ], "keys": null, "path": "src/services/tiktokVideoService.ts", "selectors": null }, { "functions": [ "error" ], "keys": null, "path": "src/services/creatorTikTokService.ts", "selectors": null }, { "functions": [ "processRequest" ], "keys": null, "path": "supabase/functions/fetch-tiktok-details/index.ts", "selectors": null } ]
562
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nFix: TikTok details update\n\nEnsure correct function name and data persistence in the database.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TikTokVideosList\",\n \"onSubmit\",\n \"formatNumber\",\n \"formatDate\",\n \"formatDuration\",\n \"handleDelete\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/TikTokVideosList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getInitials\",\n \"formatDate\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TasksList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TasksList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TaskDetail\",\n \"handleStatusUpdate\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TaskDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tasksService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\",\n \"handleCreatorSelect\",\n \"handleBackToList\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTasks\",\n \"handleTaskSelect\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/tasks/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handlePasswordChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\",\n \"handleSetPassword\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\",\n \"catch\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"addTikTokVideo\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tiktokVideoService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"error\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorTikTokService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"processRequest\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/fetch-tiktok-details/index.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/services/creatorTikTokService.ts\",\n \"src/types/invitation.ts\",\n \"supabase/functions/fetch-tiktok-details/index.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Fix: Call service correctly Ensure the service is called correctly.
{ "changed": [ "src/types/invitation.ts", "supabase/functions/fetch-tiktok-details/index.ts" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "TikTokVideosList", "onSubmit", "formatNumber", "formatDate", "formatDuration", "handleDelete" ], "keys": null, "path": "src/components/admin/inventory/TikTokVideosList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "getInitials", "formatDate", "if" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "CreatorDetail" ], "keys": null, "path": "src/components/admin/inventory/CreatorDetail.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "TasksList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TasksList.tsx", "selectors": null }, { "functions": [ "TaskDetail", "handleStatusUpdate", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TaskDetail.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/tasksService.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory", "handleCreatorSelect", "handleBackToList" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "AdminTasks", "handleTaskSelect" ], "keys": null, "path": "src/pages/admin/tasks/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handlePasswordChange", "handleCheckboxChange", "handleSubmit", "handleSetPassword" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode", "catch" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "addTikTokVideo", "if" ], "keys": null, "path": "src/services/tiktokVideoService.ts", "selectors": null }, { "functions": [ "error" ], "keys": null, "path": "src/services/creatorTikTokService.ts", "selectors": null }, { "functions": [ "processRequest" ], "keys": null, "path": "supabase/functions/fetch-tiktok-details/index.ts", "selectors": null } ]
563
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nFix: Call service correctly\n\nEnsure the service is called correctly.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TikTokVideosList\",\n \"onSubmit\",\n \"formatNumber\",\n \"formatDate\",\n \"formatDuration\",\n \"handleDelete\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/TikTokVideosList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getInitials\",\n \"formatDate\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TasksList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TasksList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TaskDetail\",\n \"handleStatusUpdate\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TaskDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tasksService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\",\n \"handleCreatorSelect\",\n \"handleBackToList\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTasks\",\n \"handleTaskSelect\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/tasks/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handlePasswordChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\",\n \"handleSetPassword\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\",\n \"catch\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"addTikTokVideo\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tiktokVideoService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"error\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorTikTokService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"processRequest\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/fetch-tiktok-details/index.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/types/invitation.ts\",\n \"supabase/functions/fetch-tiktok-details/index.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Fix: Resolve import and type errors - Fixed relative import path in `fetch-tiktok-details` function. - Resolved type error in `InvitationForm` component.
{ "changed": [ "src/components/admin/invitations/InvitationForm.tsx", "src/types/invitation.ts", "supabase/functions/fetch-tiktok-details/index.ts" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "TikTokVideosList", "onSubmit", "formatNumber", "formatDate", "formatDuration", "handleDelete" ], "keys": null, "path": "src/components/admin/inventory/TikTokVideosList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "getInitials", "formatDate", "if" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "CreatorDetail" ], "keys": null, "path": "src/components/admin/inventory/CreatorDetail.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "TasksList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TasksList.tsx", "selectors": null }, { "functions": [ "TaskDetail", "handleStatusUpdate", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TaskDetail.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/tasksService.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory", "handleCreatorSelect", "handleBackToList" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "AdminTasks", "handleTaskSelect" ], "keys": null, "path": "src/pages/admin/tasks/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handlePasswordChange", "handleCheckboxChange", "handleSubmit", "handleSetPassword" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode", "catch" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "addTikTokVideo", "if" ], "keys": null, "path": "src/services/tiktokVideoService.ts", "selectors": null }, { "functions": [ "error" ], "keys": null, "path": "src/services/creatorTikTokService.ts", "selectors": null }, { "functions": [ "processRequest", "fetchTikTokData" ], "keys": null, "path": "supabase/functions/fetch-tiktok-details/index.ts", "selectors": null } ]
564
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nFix: Resolve import and type errors\n\n- Fixed relative import path in `fetch-tiktok-details` function.\n- Resolved type error in `InvitationForm` component.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TikTokVideosList\",\n \"onSubmit\",\n \"formatNumber\",\n \"formatDate\",\n \"formatDuration\",\n \"handleDelete\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/TikTokVideosList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getInitials\",\n \"formatDate\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TasksList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TasksList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TaskDetail\",\n \"handleStatusUpdate\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TaskDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tasksService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\",\n \"handleCreatorSelect\",\n \"handleBackToList\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTasks\",\n \"handleTaskSelect\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/tasks/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handlePasswordChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\",\n \"handleSetPassword\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\",\n \"catch\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"addTikTokVideo\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tiktokVideoService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"error\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorTikTokService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"processRequest\",\n \"fetchTikTokData\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/fetch-tiktok-details/index.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/components/admin/invitations/InvitationForm.tsx\",\n \"src/types/invitation.ts\",\n \"supabase/functions/fetch-tiktok-details/index.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Fix: Handle TikTok API errors The error message "Failed to update TikTok details: Error from TikTok API:" indicates an issue with the TikTok API. This commit addresses the error.
{ "changed": [ "src/services/creatorTikTokService.ts", "supabase/functions/fetch-tiktok-details/index.ts" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "TikTokVideosList", "onSubmit", "formatNumber", "formatDate", "formatDuration", "handleDelete" ], "keys": null, "path": "src/components/admin/inventory/TikTokVideosList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "getInitials", "formatDate", "if" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "CreatorDetail" ], "keys": null, "path": "src/components/admin/inventory/CreatorDetail.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "TasksList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TasksList.tsx", "selectors": null }, { "functions": [ "TaskDetail", "handleStatusUpdate", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TaskDetail.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/tasksService.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory", "handleCreatorSelect", "handleBackToList" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "AdminTasks", "handleTaskSelect" ], "keys": null, "path": "src/pages/admin/tasks/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handlePasswordChange", "handleCheckboxChange", "handleSubmit", "handleSetPassword" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode", "catch" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "addTikTokVideo", "if" ], "keys": null, "path": "src/services/tiktokVideoService.ts", "selectors": null }, { "functions": [ "error" ], "keys": null, "path": "src/services/creatorTikTokService.ts", "selectors": null }, { "functions": [ "processRequest" ], "keys": null, "path": "supabase/functions/fetch-tiktok-details/index.ts", "selectors": null } ]
565
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nFix: Handle TikTok API errors\n\nThe error message \"Failed to update TikTok details: Error from TikTok API:\" indicates an issue with the TikTok API. This commit addresses the error.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TikTokVideosList\",\n \"onSubmit\",\n \"formatNumber\",\n \"formatDate\",\n \"formatDuration\",\n \"handleDelete\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/TikTokVideosList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getInitials\",\n \"formatDate\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TasksList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TasksList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TaskDetail\",\n \"handleStatusUpdate\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TaskDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tasksService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\",\n \"handleCreatorSelect\",\n \"handleBackToList\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTasks\",\n \"handleTaskSelect\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/tasks/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handlePasswordChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\",\n \"handleSetPassword\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\",\n \"catch\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"addTikTokVideo\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tiktokVideoService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"error\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorTikTokService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"processRequest\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/fetch-tiktok-details/index.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/services/creatorTikTokService.ts\",\n \"supabase/functions/fetch-tiktok-details/index.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Fix: Handle TikTok API error and improve logging The TikTok API was failing to return data, leading to errors. This commit addresses the issue by improving error handling and logging within the Supabase Edge Function. It also includes the use of the 'request' library to make the API call.
{ "changed": [ "src/services/creatorTikTokService.ts", "supabase/functions/fetch-tiktok-details/index.ts" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "TikTokVideosList", "onSubmit", "formatNumber", "formatDate", "formatDuration", "handleDelete" ], "keys": null, "path": "src/components/admin/inventory/TikTokVideosList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "getInitials", "formatDate", "if" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "CreatorDetail" ], "keys": null, "path": "src/components/admin/inventory/CreatorDetail.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "TasksList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TasksList.tsx", "selectors": null }, { "functions": [ "TaskDetail", "handleStatusUpdate", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TaskDetail.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/tasksService.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory", "handleCreatorSelect", "handleBackToList" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "AdminTasks", "handleTaskSelect" ], "keys": null, "path": "src/pages/admin/tasks/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handlePasswordChange", "handleCheckboxChange", "handleSubmit", "handleSetPassword" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode", "catch" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "addTikTokVideo", "if" ], "keys": null, "path": "src/services/tiktokVideoService.ts", "selectors": null }, { "functions": [ "error" ], "keys": null, "path": "src/services/creatorTikTokService.ts", "selectors": null }, { "functions": [ "processRequest" ], "keys": null, "path": "supabase/functions/fetch-tiktok-details/index.ts", "selectors": null } ]
566
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nFix: Handle TikTok API error and improve logging\n\nThe TikTok API was failing to return data, leading to errors. This commit addresses the issue by improving error handling and logging within the Supabase Edge Function. It also includes the use of the 'request' library to make the API call.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TikTokVideosList\",\n \"onSubmit\",\n \"formatNumber\",\n \"formatDate\",\n \"formatDuration\",\n \"handleDelete\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/TikTokVideosList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getInitials\",\n \"formatDate\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TasksList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TasksList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TaskDetail\",\n \"handleStatusUpdate\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TaskDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tasksService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\",\n \"handleCreatorSelect\",\n \"handleBackToList\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTasks\",\n \"handleTaskSelect\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/tasks/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handlePasswordChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\",\n \"handleSetPassword\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\",\n \"catch\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"addTikTokVideo\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tiktokVideoService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"error\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorTikTokService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"processRequest\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/fetch-tiktok-details/index.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/services/creatorTikTokService.ts\",\n \"supabase/functions/fetch-tiktok-details/index.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Refactor: Use request library for TikTok API calls Use the 'request' library to make API calls to the TikTok API.
{ "changed": [ "supabase/functions/fetch-tiktok-details/index.ts" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "TikTokVideosList", "onSubmit", "formatNumber", "formatDate", "formatDuration", "handleDelete" ], "keys": null, "path": "src/components/admin/inventory/TikTokVideosList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "getInitials", "formatDate", "if" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "CreatorDetail" ], "keys": null, "path": "src/components/admin/inventory/CreatorDetail.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "TasksList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TasksList.tsx", "selectors": null }, { "functions": [ "TaskDetail", "handleStatusUpdate", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TaskDetail.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/tasksService.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory", "handleCreatorSelect", "handleBackToList" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "AdminTasks", "handleTaskSelect" ], "keys": null, "path": "src/pages/admin/tasks/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handlePasswordChange", "handleCheckboxChange", "handleSubmit", "handleSetPassword" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode", "catch" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "addTikTokVideo", "if" ], "keys": null, "path": "src/services/tiktokVideoService.ts", "selectors": null }, { "functions": [ "error" ], "keys": null, "path": "src/services/creatorTikTokService.ts", "selectors": null }, { "functions": [ "processRequest" ], "keys": null, "path": "supabase/functions/fetch-tiktok-details/index.ts", "selectors": null } ]
567
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nRefactor: Use request library for TikTok API calls\n\nUse the 'request' library to make API calls to the TikTok API.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TikTokVideosList\",\n \"onSubmit\",\n \"formatNumber\",\n \"formatDate\",\n \"formatDuration\",\n \"handleDelete\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/TikTokVideosList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getInitials\",\n \"formatDate\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TasksList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TasksList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TaskDetail\",\n \"handleStatusUpdate\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TaskDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tasksService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\",\n \"handleCreatorSelect\",\n \"handleBackToList\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTasks\",\n \"handleTaskSelect\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/tasks/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handlePasswordChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\",\n \"handleSetPassword\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\",\n \"catch\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"addTikTokVideo\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tiktokVideoService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"error\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorTikTokService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"processRequest\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/fetch-tiktok-details/index.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"supabase/functions/fetch-tiktok-details/index.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
feat: Add TikTok details test tab Adds a new tab to the admin test page for testing TikTok details functionality. Includes a card, text input, and button for testing the service.
{ "changed": [ "src/pages/admin/test/index.tsx" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "TikTokVideosList", "onSubmit", "formatNumber", "formatDate", "formatDuration", "handleDelete" ], "keys": null, "path": "src/components/admin/inventory/TikTokVideosList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "getInitials", "formatDate", "if" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "CreatorDetail" ], "keys": null, "path": "src/components/admin/inventory/CreatorDetail.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "TasksList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TasksList.tsx", "selectors": null }, { "functions": [ "TaskDetail", "handleStatusUpdate", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TaskDetail.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/tasksService.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory", "handleCreatorSelect", "handleBackToList" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "AdminTasks", "handleTaskSelect" ], "keys": null, "path": "src/pages/admin/tasks/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handlePasswordChange", "handleCheckboxChange", "handleSubmit", "handleSetPassword" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode", "catch" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "addTikTokVideo", "if" ], "keys": null, "path": "src/services/tiktokVideoService.ts", "selectors": null }, { "functions": [ "error" ], "keys": null, "path": "src/services/creatorTikTokService.ts", "selectors": null }, { "functions": [ "processRequest" ], "keys": null, "path": "supabase/functions/fetch-tiktok-details/index.ts", "selectors": null } ]
568
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nfeat: Add TikTok details test tab\n\nAdds a new tab to the admin test page for testing TikTok details functionality. Includes a card, text input, and button for testing the service.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TikTokVideosList\",\n \"onSubmit\",\n \"formatNumber\",\n \"formatDate\",\n \"formatDuration\",\n \"handleDelete\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/TikTokVideosList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getInitials\",\n \"formatDate\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TasksList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TasksList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TaskDetail\",\n \"handleStatusUpdate\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TaskDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tasksService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\",\n \"handleCreatorSelect\",\n \"handleBackToList\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTasks\",\n \"handleTaskSelect\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/tasks/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handlePasswordChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\",\n \"handleSetPassword\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\",\n \"catch\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"addTikTokVideo\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tiktokVideoService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"error\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorTikTokService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"processRequest\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/fetch-tiktok-details/index.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/pages/admin/test/index.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
feat: Implement TikTok API call and display result Adds functionality to call the TikTok API and display the JSON response on the /admin/test page.
{ "changed": [ "src/pages/admin/test/index.tsx" ], "created": [ "supabase/functions/tiktok-direct/index.ts" ], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "TikTokVideosList", "onSubmit", "formatNumber", "formatDate", "formatDuration", "handleDelete" ], "keys": null, "path": "src/components/admin/inventory/TikTokVideosList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "getInitials", "formatDate", "if" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "CreatorDetail" ], "keys": null, "path": "src/components/admin/inventory/CreatorDetail.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "TasksList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TasksList.tsx", "selectors": null }, { "functions": [ "TaskDetail", "handleStatusUpdate", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TaskDetail.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/tasksService.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory", "handleCreatorSelect", "handleBackToList" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "AdminTasks", "handleTaskSelect" ], "keys": null, "path": "src/pages/admin/tasks/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest", "handleTikTokTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handlePasswordChange", "handleCheckboxChange", "handleSubmit", "handleSetPassword" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode", "catch" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "addTikTokVideo", "if" ], "keys": null, "path": "src/services/tiktokVideoService.ts", "selectors": null }, { "functions": [ "error" ], "keys": null, "path": "src/services/creatorTikTokService.ts", "selectors": null }, { "functions": [ "processRequest" ], "keys": null, "path": "supabase/functions/fetch-tiktok-details/index.ts", "selectors": null } ]
569
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nfeat: Implement TikTok API call and display result\n\nAdds functionality to call the TikTok API and display the JSON response on the /admin/test page.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TikTokVideosList\",\n \"onSubmit\",\n \"formatNumber\",\n \"formatDate\",\n \"formatDuration\",\n \"handleDelete\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/TikTokVideosList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getInitials\",\n \"formatDate\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TasksList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TasksList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TaskDetail\",\n \"handleStatusUpdate\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TaskDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tasksService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\",\n \"handleCreatorSelect\",\n \"handleBackToList\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTasks\",\n \"handleTaskSelect\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/tasks/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\",\n \"handleTikTokTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handlePasswordChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\",\n \"handleSetPassword\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\",\n \"catch\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"addTikTokVideo\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tiktokVideoService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"error\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorTikTokService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"processRequest\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/fetch-tiktok-details/index.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/pages/admin/test/index.tsx\"\n ],\n \"created\": [\n \"supabase/functions/tiktok-direct/index.ts\"\n ],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Refactor: Use request library for TikTok API
{ "changed": [ "supabase/functions/tiktok-direct/index.ts" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "TikTokVideosList", "onSubmit", "formatNumber", "formatDate", "formatDuration", "handleDelete" ], "keys": null, "path": "src/components/admin/inventory/TikTokVideosList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "getInitials", "formatDate", "if" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "CreatorDetail" ], "keys": null, "path": "src/components/admin/inventory/CreatorDetail.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "TasksList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TasksList.tsx", "selectors": null }, { "functions": [ "TaskDetail", "handleStatusUpdate", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TaskDetail.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/tasksService.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory", "handleCreatorSelect", "handleBackToList" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "AdminTasks", "handleTaskSelect" ], "keys": null, "path": "src/pages/admin/tasks/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest", "handleTikTokTest", "handleDirectTikTokTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handlePasswordChange", "handleCheckboxChange", "handleSubmit", "handleSetPassword" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode", "catch" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "addTikTokVideo", "if" ], "keys": null, "path": "src/services/tiktokVideoService.ts", "selectors": null }, { "functions": [ "error" ], "keys": null, "path": "src/services/creatorTikTokService.ts", "selectors": null }, { "functions": [ "processRequest" ], "keys": null, "path": "supabase/functions/fetch-tiktok-details/index.ts", "selectors": null } ]
570
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nRefactor: Use request library for TikTok API\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TikTokVideosList\",\n \"onSubmit\",\n \"formatNumber\",\n \"formatDate\",\n \"formatDuration\",\n \"handleDelete\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/TikTokVideosList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getInitials\",\n \"formatDate\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TasksList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TasksList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TaskDetail\",\n \"handleStatusUpdate\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TaskDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tasksService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\",\n \"handleCreatorSelect\",\n \"handleBackToList\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTasks\",\n \"handleTaskSelect\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/tasks/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\",\n \"handleTikTokTest\",\n \"handleDirectTikTokTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handlePasswordChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\",\n \"handleSetPassword\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\",\n \"catch\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"addTikTokVideo\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tiktokVideoService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"error\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorTikTokService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"processRequest\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/fetch-tiktok-details/index.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"supabase/functions/tiktok-direct/index.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Reverted to edit edt-de923aee-c299-4cce-a3ef-0c620f49f030: "feat: Add TikTok details test tab Adds a new tab to the admin test page for testing TikTok details functionality. Includes a card, text input, and button for testing the service."
{ "changed": [ "src/pages/admin/test/index.tsx" ], "created": [], "deleted": [ "supabase/functions/tiktok-direct/index.ts" ] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "TikTokVideosList", "onSubmit", "formatNumber", "formatDate", "formatDuration", "handleDelete" ], "keys": null, "path": "src/components/admin/inventory/TikTokVideosList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "getInitials", "formatDate", "if" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "CreatorDetail" ], "keys": null, "path": "src/components/admin/inventory/CreatorDetail.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "TasksList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TasksList.tsx", "selectors": null }, { "functions": [ "TaskDetail", "handleStatusUpdate", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TaskDetail.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/tasksService.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory", "handleCreatorSelect", "handleBackToList" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "AdminTasks", "handleTaskSelect" ], "keys": null, "path": "src/pages/admin/tasks/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest", "handleTikTokTest", "handleDirectTikTokTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handlePasswordChange", "handleCheckboxChange", "handleSubmit", "handleSetPassword" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode", "catch" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "addTikTokVideo", "if" ], "keys": null, "path": "src/services/tiktokVideoService.ts", "selectors": null }, { "functions": [ "error" ], "keys": null, "path": "src/services/creatorTikTokService.ts", "selectors": null }, { "functions": [ "processRequest" ], "keys": null, "path": "supabase/functions/fetch-tiktok-details/index.ts", "selectors": null } ]
571
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nReverted to edit edt-de923aee-c299-4cce-a3ef-0c620f49f030: \"feat: Add TikTok details test tab\n\nAdds a new tab to the admin test page for testing TikTok details functionality. Includes a card, text input, and button for testing the service.\"\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TikTokVideosList\",\n \"onSubmit\",\n \"formatNumber\",\n \"formatDate\",\n \"formatDuration\",\n \"handleDelete\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/TikTokVideosList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getInitials\",\n \"formatDate\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TasksList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TasksList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TaskDetail\",\n \"handleStatusUpdate\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TaskDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tasksService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\",\n \"handleCreatorSelect\",\n \"handleBackToList\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTasks\",\n \"handleTaskSelect\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/tasks/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\",\n \"handleTikTokTest\",\n \"handleDirectTikTokTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handlePasswordChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\",\n \"handleSetPassword\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\",\n \"catch\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"addTikTokVideo\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tiktokVideoService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"error\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorTikTokService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"processRequest\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/fetch-tiktok-details/index.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/pages/admin/test/index.tsx\"\n ],\n \"created\": [],\n \"deleted\": [\n \"supabase/functions/tiktok-direct/index.ts\"\n ]\n}" } ]
gmrdaniel/grm-meta
Reverted to edit edt-92fe3174-4506-48e8-9863-ca0bc8c33236: "feat: Add TikTok detail functionality Adds functionality to select creators and fetch TikTok details, persisting the results to the database. Includes a "TikTok Detail" button that triggers an API call to retrieve user data and updates the UI with processing status."
{ "changed": [ "src/components/admin/invitations/InvitationForm.tsx", "src/pages/admin/test/index.tsx", "src/services/creatorTikTokService.ts", "src/services/invitationService.ts", "src/types/invitation.ts", "supabase/functions/fetch-tiktok-details/index.ts" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "TikTokVideosList", "onSubmit", "formatNumber", "formatDate", "formatDuration", "handleDelete" ], "keys": null, "path": "src/components/admin/inventory/TikTokVideosList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "getInitials", "formatDate", "if" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "CreatorDetail" ], "keys": null, "path": "src/components/admin/inventory/CreatorDetail.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "TasksList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TasksList.tsx", "selectors": null }, { "functions": [ "TaskDetail", "handleStatusUpdate", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TaskDetail.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/tasksService.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory", "handleCreatorSelect", "handleBackToList" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "AdminTasks", "handleTaskSelect" ], "keys": null, "path": "src/pages/admin/tasks/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest", "handleTikTokTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handlePasswordChange", "handleCheckboxChange", "handleSubmit", "handleSetPassword" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode", "catch" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "addTikTokVideo", "if" ], "keys": null, "path": "src/services/tiktokVideoService.ts", "selectors": null }, { "functions": [ "error" ], "keys": null, "path": "src/services/creatorTikTokService.ts", "selectors": null }, { "functions": [ "processRequest" ], "keys": null, "path": "supabase/functions/fetch-tiktok-details/index.ts", "selectors": null } ]
572
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nReverted to edit edt-92fe3174-4506-48e8-9863-ca0bc8c33236: \"feat: Add TikTok detail functionality\n\nAdds functionality to select creators and fetch TikTok details, persisting the results to the database. Includes a \"TikTok Detail\" button that triggers an API call to retrieve user data and updates the UI with processing status.\"\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TikTokVideosList\",\n \"onSubmit\",\n \"formatNumber\",\n \"formatDate\",\n \"formatDuration\",\n \"handleDelete\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/TikTokVideosList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getInitials\",\n \"formatDate\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TasksList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TasksList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TaskDetail\",\n \"handleStatusUpdate\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TaskDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tasksService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\",\n \"handleCreatorSelect\",\n \"handleBackToList\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTasks\",\n \"handleTaskSelect\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/tasks/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\",\n \"handleTikTokTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handlePasswordChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\",\n \"handleSetPassword\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\",\n \"catch\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"addTikTokVideo\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tiktokVideoService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"error\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorTikTokService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"processRequest\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/fetch-tiktok-details/index.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/components/admin/invitations/InvitationForm.tsx\",\n \"src/pages/admin/test/index.tsx\",\n \"src/services/creatorTikTokService.ts\",\n \"src/services/invitationService.ts\",\n \"src/types/invitation.ts\",\n \"supabase/functions/fetch-tiktok-details/index.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Reverted to edit edt-e8669ccf-64c1-4577-86f2-0882f01d44b2: "Run SQL scripts"
{ "changed": [ "src/components/admin/inventory/CreatorsList.tsx", "src/components/admin/inventory/TikTokVideosList.tsx", "src/components/ui/checkbox.tsx", "src/services/tiktokVideoService.ts" ], "created": [], "deleted": [ "src/services/creatorTikTokService.ts", "supabase/functions/fetch-tiktok-details/index.ts" ] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "TikTokVideosList", "onSubmit", "formatNumber", "formatDate", "formatDuration", "handleDelete" ], "keys": null, "path": "src/components/admin/inventory/TikTokVideosList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "getInitials", "formatDate", "if" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "CreatorDetail" ], "keys": null, "path": "src/components/admin/inventory/CreatorDetail.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "TasksList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TasksList.tsx", "selectors": null }, { "functions": [ "TaskDetail", "handleStatusUpdate", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TaskDetail.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/tasksService.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory", "handleCreatorSelect", "handleBackToList" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "AdminTasks", "handleTaskSelect" ], "keys": null, "path": "src/pages/admin/tasks/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handlePasswordChange", "handleCheckboxChange", "handleSubmit", "handleSetPassword" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "addTikTokVideo", "if" ], "keys": null, "path": "src/services/tiktokVideoService.ts", "selectors": null }, { "functions": [ "error" ], "keys": null, "path": "src/services/creatorTikTokService.ts", "selectors": null }, { "functions": [ "processRequest" ], "keys": null, "path": "supabase/functions/fetch-tiktok-details/index.ts", "selectors": null } ]
573
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nReverted to edit edt-e8669ccf-64c1-4577-86f2-0882f01d44b2: \"Run SQL scripts\"\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TikTokVideosList\",\n \"onSubmit\",\n \"formatNumber\",\n \"formatDate\",\n \"formatDuration\",\n \"handleDelete\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/TikTokVideosList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getInitials\",\n \"formatDate\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TasksList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TasksList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TaskDetail\",\n \"handleStatusUpdate\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TaskDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tasksService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\",\n \"handleCreatorSelect\",\n \"handleBackToList\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTasks\",\n \"handleTaskSelect\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/tasks/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handlePasswordChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\",\n \"handleSetPassword\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"addTikTokVideo\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tiktokVideoService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"error\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorTikTokService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"processRequest\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/fetch-tiktok-details/index.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/components/admin/inventory/CreatorsList.tsx\",\n \"src/components/admin/inventory/TikTokVideosList.tsx\",\n \"src/components/ui/checkbox.tsx\",\n \"src/services/tiktokVideoService.ts\"\n ],\n \"created\": [],\n \"deleted\": [\n \"src/services/creatorTikTokService.ts\",\n \"supabase/functions/fetch-tiktok-details/index.ts\"\n ]\n}" } ]
gmrdaniel/grm-meta
feat: Add TikTok API test tab Adds a new tab to the admin test page for testing the TikTok API. Includes a text input for the username and a button to test the service.
{ "changed": [ "src/pages/admin/test/index.tsx", "src/services/tiktokVideoService.ts" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "TikTokVideosList", "onSubmit", "formatNumber", "formatDate", "formatDuration", "handleDelete" ], "keys": null, "path": "src/components/admin/inventory/TikTokVideosList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "getInitials", "formatDate" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "CreatorDetail" ], "keys": null, "path": "src/components/admin/inventory/CreatorDetail.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "TasksList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TasksList.tsx", "selectors": null }, { "functions": [ "TaskDetail", "handleStatusUpdate", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TaskDetail.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/tasksService.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory", "handleCreatorSelect", "handleBackToList" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "AdminTasks", "handleTaskSelect" ], "keys": null, "path": "src/pages/admin/tasks/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handlePasswordChange", "handleCheckboxChange", "handleSubmit", "handleSetPassword" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "if", "log" ], "keys": null, "path": "src/services/tiktokVideoService.ts", "selectors": null } ]
574
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nfeat: Add TikTok API test tab\n\nAdds a new tab to the admin test page for testing the TikTok API. Includes a text input for the username and a button to test the service.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TikTokVideosList\",\n \"onSubmit\",\n \"formatNumber\",\n \"formatDate\",\n \"formatDuration\",\n \"handleDelete\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/TikTokVideosList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getInitials\",\n \"formatDate\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TasksList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TasksList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TaskDetail\",\n \"handleStatusUpdate\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TaskDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tasksService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\",\n \"handleCreatorSelect\",\n \"handleBackToList\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTasks\",\n \"handleTaskSelect\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/tasks/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handlePasswordChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\",\n \"handleSetPassword\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"log\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tiktokVideoService.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/pages/admin/test/index.tsx\",\n \"src/services/tiktokVideoService.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Fix: TikTokVideosList.tsx Refactor TikTok video data mapping and validation.
{ "changed": [ "src/components/admin/inventory/TikTokVideosList.tsx" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "TikTokVideosList", "onSubmit", "formatNumber", "formatDate", "formatDuration", "handleDelete" ], "keys": null, "path": "src/components/admin/inventory/TikTokVideosList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "getInitials", "formatDate" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "CreatorDetail" ], "keys": null, "path": "src/components/admin/inventory/CreatorDetail.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "TasksList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TasksList.tsx", "selectors": null }, { "functions": [ "TaskDetail", "handleStatusUpdate", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TaskDetail.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/tasksService.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory", "handleCreatorSelect", "handleBackToList" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "AdminTasks", "handleTaskSelect" ], "keys": null, "path": "src/pages/admin/tasks/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest", "handleTiktokTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handlePasswordChange", "handleCheckboxChange", "handleSubmit", "handleSetPassword" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "if", "log" ], "keys": null, "path": "src/services/tiktokVideoService.ts", "selectors": null } ]
575
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nFix: TikTokVideosList.tsx\n\nRefactor TikTok video data mapping and validation.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TikTokVideosList\",\n \"onSubmit\",\n \"formatNumber\",\n \"formatDate\",\n \"formatDuration\",\n \"handleDelete\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/TikTokVideosList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getInitials\",\n \"formatDate\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TasksList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TasksList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TaskDetail\",\n \"handleStatusUpdate\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TaskDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tasksService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\",\n \"handleCreatorSelect\",\n \"handleBackToList\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTasks\",\n \"handleTaskSelect\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/tasks/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\",\n \"handleTiktokTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handlePasswordChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\",\n \"handleSetPassword\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"log\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tiktokVideoService.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/components/admin/inventory/TikTokVideosList.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Add TikTok info button to inventory table Adds a "TikTok info" button to the inventory table in the admin section. This button calls the `fetchTikTokUserInfo` function and updates the `seguidores_tiktok` field in the `inventario_creadores` table with the follower count from the API response.
{ "changed": [ "src/components/admin/inventory/CreatorsList.tsx", "src/services/tiktokVideoService.ts" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "if", "TikTokVideosList", "onSubmit", "formatNumber", "formatDate", "formatDuration", "handleDelete" ], "keys": null, "path": "src/components/admin/inventory/TikTokVideosList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "getInitials", "formatDate" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "CreatorDetail" ], "keys": null, "path": "src/components/admin/inventory/CreatorDetail.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "TasksList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TasksList.tsx", "selectors": null }, { "functions": [ "TaskDetail", "handleStatusUpdate", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TaskDetail.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/tasksService.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory", "handleCreatorSelect", "handleBackToList" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "AdminTasks", "handleTaskSelect" ], "keys": null, "path": "src/pages/admin/tasks/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest", "handleTiktokTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handlePasswordChange", "handleCheckboxChange", "handleSubmit", "handleSetPassword" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "if", "log" ], "keys": null, "path": "src/services/tiktokVideoService.ts", "selectors": null } ]
576
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nAdd TikTok info button to inventory table\n\nAdds a \"TikTok info\" button to the inventory table in the admin section. This button calls the `fetchTikTokUserInfo` function and updates the `seguidores_tiktok` field in the `inventario_creadores` table with the follower count from the API response.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"TikTokVideosList\",\n \"onSubmit\",\n \"formatNumber\",\n \"formatDate\",\n \"formatDuration\",\n \"handleDelete\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/TikTokVideosList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getInitials\",\n \"formatDate\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TasksList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TasksList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TaskDetail\",\n \"handleStatusUpdate\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TaskDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tasksService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\",\n \"handleCreatorSelect\",\n \"handleBackToList\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTasks\",\n \"handleTaskSelect\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/tasks/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\",\n \"handleTiktokTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handlePasswordChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\",\n \"handleSetPassword\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"log\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tiktokVideoService.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/components/admin/inventory/CreatorsList.tsx\",\n \"src/services/tiktokVideoService.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Refactor: Use react-icons for brand icons
{ "changed": [ "src/components/admin/inventory/CreatorsList.tsx" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "if", "TikTokVideosList", "onSubmit", "formatNumber", "formatDate", "formatDuration", "handleDelete" ], "keys": null, "path": "src/components/admin/inventory/TikTokVideosList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "CreatorDetail" ], "keys": null, "path": "src/components/admin/inventory/CreatorDetail.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "TasksList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TasksList.tsx", "selectors": null }, { "functions": [ "TaskDetail", "handleStatusUpdate", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TaskDetail.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/tasksService.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory", "handleCreatorSelect", "handleBackToList" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "AdminTasks", "handleTaskSelect" ], "keys": null, "path": "src/pages/admin/tasks/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest", "handleTiktokTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handlePasswordChange", "handleCheckboxChange", "handleSubmit", "handleSetPassword" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "if", "log" ], "keys": null, "path": "src/services/tiktokVideoService.ts", "selectors": null } ]
577
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nRefactor: Use react-icons for brand icons\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"TikTokVideosList\",\n \"onSubmit\",\n \"formatNumber\",\n \"formatDate\",\n \"formatDuration\",\n \"handleDelete\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/TikTokVideosList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TasksList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TasksList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TaskDetail\",\n \"handleStatusUpdate\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TaskDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tasksService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\",\n \"handleCreatorSelect\",\n \"handleBackToList\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTasks\",\n \"handleTaskSelect\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/tasks/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\",\n \"handleTiktokTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handlePasswordChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\",\n \"handleSetPassword\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"log\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tiktokVideoService.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/components/admin/inventory/CreatorsList.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Fix: Handle TikTok follower count error Handle the error when fetching TikTok follower count.
{ "changed": [ "src/components/admin/inventory/CreatorsList.tsx", "src/services/tiktokVideoService.ts" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "if", "TikTokVideosList", "onSubmit", "formatNumber", "formatDate", "formatDuration", "handleDelete" ], "keys": null, "path": "src/components/admin/inventory/TikTokVideosList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "CreatorDetail" ], "keys": null, "path": "src/components/admin/inventory/CreatorDetail.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "TasksList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TasksList.tsx", "selectors": null }, { "functions": [ "TaskDetail", "handleStatusUpdate", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TaskDetail.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/tasksService.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory", "handleCreatorSelect", "handleBackToList" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "AdminTasks", "handleTaskSelect" ], "keys": null, "path": "src/pages/admin/tasks/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest", "handleTiktokTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handlePasswordChange", "handleCheckboxChange", "handleSubmit", "handleSetPassword" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "if", "log" ], "keys": null, "path": "src/services/tiktokVideoService.ts", "selectors": null } ]
578
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nFix: Handle TikTok follower count error\n\nHandle the error when fetching TikTok follower count.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"TikTokVideosList\",\n \"onSubmit\",\n \"formatNumber\",\n \"formatDate\",\n \"formatDuration\",\n \"handleDelete\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/TikTokVideosList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TasksList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TasksList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TaskDetail\",\n \"handleStatusUpdate\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TaskDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tasksService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\",\n \"handleCreatorSelect\",\n \"handleBackToList\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTasks\",\n \"handleTaskSelect\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/tasks/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\",\n \"handleTiktokTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handlePasswordChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\",\n \"handleSetPassword\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"log\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tiktokVideoService.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/components/admin/inventory/CreatorsList.tsx\",\n \"src/services/tiktokVideoService.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Fix: TikTok info button style Change the "TikTok Info" button to use the button style.
{ "changed": [ "src/components/admin/inventory/CreatorsList.tsx", "src/components/ui/button.tsx" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "if", "TikTokVideosList", "onSubmit", "formatNumber", "formatDate", "formatDuration", "handleDelete" ], "keys": null, "path": "src/components/admin/inventory/TikTokVideosList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "CreatorDetail" ], "keys": null, "path": "src/components/admin/inventory/CreatorDetail.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "TasksList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TasksList.tsx", "selectors": null }, { "functions": [ "TaskDetail", "handleStatusUpdate", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TaskDetail.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/tasksService.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory", "handleCreatorSelect", "handleBackToList" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "AdminTasks", "handleTaskSelect" ], "keys": null, "path": "src/pages/admin/tasks/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest", "handleTiktokTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handlePasswordChange", "handleCheckboxChange", "handleSubmit", "handleSetPassword" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "if", "log" ], "keys": null, "path": "src/services/tiktokVideoService.ts", "selectors": null } ]
579
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nFix: TikTok info button style\n\nChange the \"TikTok Info\" button to use the button style.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"TikTokVideosList\",\n \"onSubmit\",\n \"formatNumber\",\n \"formatDate\",\n \"formatDuration\",\n \"handleDelete\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/TikTokVideosList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TasksList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TasksList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TaskDetail\",\n \"handleStatusUpdate\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TaskDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tasksService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\",\n \"handleCreatorSelect\",\n \"handleBackToList\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTasks\",\n \"handleTaskSelect\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/tasks/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\",\n \"handleTiktokTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handlePasswordChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\",\n \"handleSetPassword\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"log\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tiktokVideoService.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/components/admin/inventory/CreatorsList.tsx\",\n \"src/components/ui/button.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
feat: Update TikTok eligibility Add logic to update the `elegible_tiktok` field based on the `seguidores_tiktok` count. If `seguidores_tiktok` is greater than 100,000, set `elegible_tiktok` to true.
{ "changed": [ "src/components/admin/inventory/CreatorsList.tsx", "src/services/tiktokVideoService.ts" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "if", "TikTokVideosList", "onSubmit", "formatNumber", "formatDate", "formatDuration", "handleDelete" ], "keys": null, "path": "src/components/admin/inventory/TikTokVideosList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "CreatorDetail" ], "keys": null, "path": "src/components/admin/inventory/CreatorDetail.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "TasksList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TasksList.tsx", "selectors": null }, { "functions": [ "TaskDetail", "handleStatusUpdate", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TaskDetail.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/tasksService.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory", "handleCreatorSelect", "handleBackToList" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "AdminTasks", "handleTaskSelect" ], "keys": null, "path": "src/pages/admin/tasks/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest", "handleTiktokTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handlePasswordChange", "handleCheckboxChange", "handleSubmit", "handleSetPassword" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "if", "log" ], "keys": null, "path": "src/services/tiktokVideoService.ts", "selectors": null } ]
580
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nfeat: Update TikTok eligibility\n\nAdd logic to update the `elegible_tiktok` field based on the `seguidores_tiktok` count. If `seguidores_tiktok` is greater than 100,000, set `elegible_tiktok` to true.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"TikTokVideosList\",\n \"onSubmit\",\n \"formatNumber\",\n \"formatDate\",\n \"formatDuration\",\n \"handleDelete\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/TikTokVideosList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TasksList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TasksList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TaskDetail\",\n \"handleStatusUpdate\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TaskDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tasksService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\",\n \"handleCreatorSelect\",\n \"handleBackToList\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTasks\",\n \"handleTaskSelect\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/tasks/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\",\n \"handleTiktokTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handlePasswordChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\",\n \"handleSetPassword\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"log\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tiktokVideoService.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/components/admin/inventory/CreatorsList.tsx\",\n \"src/services/tiktokVideoService.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
feat: Add import creators tab to inventory Adds an "Import Creators" tab to the admin inventory page. Includes a "Templates" section with a "TikTok User" template. This template allows importing creators with fields: name, last name, email, and TikTok username. Inserts imported data into the `inventario_creadores` table and displays any import errors.
{ "changed": [ "src/components/ui/alert.tsx", "src/components/ui/textarea.tsx", "src/pages/admin/inventory/index.tsx" ], "created": [ "src/components/admin/inventory/ImportCreators.tsx", "src/components/admin/inventory/import-templates/TikTokImportTemplate.tsx" ], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "if", "TikTokVideosList", "onSubmit", "formatNumber", "formatDate", "formatDuration", "handleDelete" ], "keys": null, "path": "src/components/admin/inventory/TikTokVideosList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "CreatorDetail" ], "keys": null, "path": "src/components/admin/inventory/CreatorDetail.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "TasksList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TasksList.tsx", "selectors": null }, { "functions": [ "TaskDetail", "handleStatusUpdate", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TaskDetail.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/tasksService.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory", "handleCreatorSelect", "handleBackToList" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "AdminTasks", "handleTaskSelect" ], "keys": null, "path": "src/pages/admin/tasks/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest", "handleTiktokTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handlePasswordChange", "handleCheckboxChange", "handleSubmit", "handleSetPassword" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "if", "log" ], "keys": null, "path": "src/services/tiktokVideoService.ts", "selectors": null } ]
581
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nfeat: Add import creators tab to inventory\n\nAdds an \"Import Creators\" tab to the admin inventory page. Includes a \"Templates\" section with a \"TikTok User\" template. This template allows importing creators with fields: name, last name, email, and TikTok username. Inserts imported data into the `inventario_creadores` table and displays any import errors.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"TikTokVideosList\",\n \"onSubmit\",\n \"formatNumber\",\n \"formatDate\",\n \"formatDuration\",\n \"handleDelete\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/TikTokVideosList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TasksList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TasksList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TaskDetail\",\n \"handleStatusUpdate\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TaskDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tasksService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\",\n \"handleCreatorSelect\",\n \"handleBackToList\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTasks\",\n \"handleTaskSelect\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/tasks/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\",\n \"handleTiktokTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handlePasswordChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\",\n \"handleSetPassword\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"log\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tiktokVideoService.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/components/ui/alert.tsx\",\n \"src/components/ui/textarea.tsx\",\n \"src/pages/admin/inventory/index.tsx\"\n ],\n \"created\": [\n \"src/components/admin/inventory/ImportCreators.tsx\",\n \"src/components/admin/inventory/import-templates/TikTokImportTemplate.tsx\"\n ],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Fix: Add status to creator import Add the status field to the creator import process to ensure the correct data is passed.
{ "changed": [ "src/components/admin/inventory/import-templates/TikTokImportTemplate.tsx", "src/pages/admin/inventory/index.tsx" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "ImportCreators" ], "keys": null, "path": "src/components/admin/inventory/ImportCreators.tsx", "selectors": null }, { "functions": [ "if", "TikTokVideosList", "onSubmit", "formatNumber", "formatDate", "formatDuration", "handleDelete" ], "keys": null, "path": "src/components/admin/inventory/TikTokVideosList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "CreatorDetail" ], "keys": null, "path": "src/components/admin/inventory/CreatorDetail.tsx", "selectors": null }, { "functions": [ "TikTokImportTemplate", "downloadTemplate", "processImport" ], "keys": null, "path": "src/components/admin/inventory/import-templates/TikTokImportTemplate.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "TasksList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TasksList.tsx", "selectors": null }, { "functions": [ "TaskDetail", "handleStatusUpdate", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TaskDetail.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/tasksService.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory", "handleCreatorSelect", "handleBackToList" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "AdminTasks", "handleTaskSelect" ], "keys": null, "path": "src/pages/admin/tasks/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest", "handleTiktokTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handlePasswordChange", "handleCheckboxChange", "handleSubmit", "handleSetPassword" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "if", "log" ], "keys": null, "path": "src/services/tiktokVideoService.ts", "selectors": null } ]
582
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nFix: Add status to creator import\n\nAdd the status field to the creator import process to ensure the correct data is passed.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ImportCreators\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/ImportCreators.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"TikTokVideosList\",\n \"onSubmit\",\n \"formatNumber\",\n \"formatDate\",\n \"formatDuration\",\n \"handleDelete\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/TikTokVideosList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TikTokImportTemplate\",\n \"downloadTemplate\",\n \"processImport\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/import-templates/TikTokImportTemplate.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TasksList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TasksList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TaskDetail\",\n \"handleStatusUpdate\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TaskDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tasksService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\",\n \"handleCreatorSelect\",\n \"handleBackToList\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTasks\",\n \"handleTaskSelect\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/tasks/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\",\n \"handleTiktokTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handlePasswordChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\",\n \"handleSetPassword\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"log\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tiktokVideoService.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/components/admin/inventory/import-templates/TikTokImportTemplate.tsx\",\n \"src/pages/admin/inventory/index.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
feat: Support xls import and download Update "Importar Creadores con TikTok" to allow uploading .xls files and downloading the template in xls format.
{ "changed": [ "src/components/admin/inventory/import-templates/TikTokImportTemplate.tsx" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "ImportCreators" ], "keys": null, "path": "src/components/admin/inventory/ImportCreators.tsx", "selectors": null }, { "functions": [ "if", "TikTokVideosList", "onSubmit", "formatNumber", "formatDate", "formatDuration", "handleDelete" ], "keys": null, "path": "src/components/admin/inventory/TikTokVideosList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "CreatorDetail" ], "keys": null, "path": "src/components/admin/inventory/CreatorDetail.tsx", "selectors": null }, { "functions": [ "TikTokImportTemplate", "downloadTemplate", "processImport" ], "keys": null, "path": "src/components/admin/inventory/import-templates/TikTokImportTemplate.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "TasksList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TasksList.tsx", "selectors": null }, { "functions": [ "TaskDetail", "handleStatusUpdate", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TaskDetail.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/tasksService.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory", "handleCreatorSelect", "handleBackToList" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "AdminTasks", "handleTaskSelect" ], "keys": null, "path": "src/pages/admin/tasks/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest", "handleTiktokTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handlePasswordChange", "handleCheckboxChange", "handleSubmit", "handleSetPassword" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "if", "log" ], "keys": null, "path": "src/services/tiktokVideoService.ts", "selectors": null } ]
583
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nfeat: Support xls import and download\n\nUpdate \"Importar Creadores con TikTok\" to allow uploading .xls files and downloading the template in xls format.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ImportCreators\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/ImportCreators.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"TikTokVideosList\",\n \"onSubmit\",\n \"formatNumber\",\n \"formatDate\",\n \"formatDuration\",\n \"handleDelete\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/TikTokVideosList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TikTokImportTemplate\",\n \"downloadTemplate\",\n \"processImport\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/import-templates/TikTokImportTemplate.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TasksList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TasksList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TaskDetail\",\n \"handleStatusUpdate\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TaskDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tasksService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\",\n \"handleCreatorSelect\",\n \"handleBackToList\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTasks\",\n \"handleTaskSelect\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/tasks/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\",\n \"handleTiktokTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handlePasswordChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\",\n \"handleSetPassword\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"log\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tiktokVideoService.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/components/admin/inventory/import-templates/TikTokImportTemplate.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Run SQL scripts Apply the SQL scripts for database setup and migrations.
{ "changed": [ "src/components/admin/inventory/ImportCreators.tsx", "src/components/admin/inventory/import-templates/TikTokImportTemplate.tsx", "src/integrations/supabase/types.ts" ], "created": [ "src/components/admin/inventory/BulkInvitationsHistory.tsx" ], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "ImportCreators" ], "keys": null, "path": "src/components/admin/inventory/ImportCreators.tsx", "selectors": null }, { "functions": [ "if", "TikTokVideosList", "onSubmit", "formatNumber", "formatDate", "formatDuration", "handleDelete" ], "keys": null, "path": "src/components/admin/inventory/TikTokVideosList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "CreatorDetail" ], "keys": null, "path": "src/components/admin/inventory/CreatorDetail.tsx", "selectors": null }, { "functions": [ "TikTokImportTemplate", "downloadTemplate", "handleFileChange", "processExcelFile" ], "keys": null, "path": "src/components/admin/inventory/import-templates/TikTokImportTemplate.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "TasksList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TasksList.tsx", "selectors": null }, { "functions": [ "TaskDetail", "handleStatusUpdate", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TaskDetail.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/tasksService.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory", "handleCreatorSelect", "handleBackToList" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "AdminTasks", "handleTaskSelect" ], "keys": null, "path": "src/pages/admin/tasks/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest", "handleTiktokTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handlePasswordChange", "handleCheckboxChange", "handleSubmit", "handleSetPassword" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "if", "log" ], "keys": null, "path": "src/services/tiktokVideoService.ts", "selectors": null } ]
584
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nRun SQL scripts\n\nApply the SQL scripts for database setup and migrations.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ImportCreators\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/ImportCreators.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"TikTokVideosList\",\n \"onSubmit\",\n \"formatNumber\",\n \"formatDate\",\n \"formatDuration\",\n \"handleDelete\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/TikTokVideosList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TikTokImportTemplate\",\n \"downloadTemplate\",\n \"handleFileChange\",\n \"processExcelFile\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/import-templates/TikTokImportTemplate.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TasksList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TasksList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TaskDetail\",\n \"handleStatusUpdate\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TaskDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tasksService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\",\n \"handleCreatorSelect\",\n \"handleBackToList\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTasks\",\n \"handleTaskSelect\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/tasks/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\",\n \"handleTiktokTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handlePasswordChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\",\n \"handleSetPassword\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"log\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tiktokVideoService.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/components/admin/inventory/ImportCreators.tsx\",\n \"src/components/admin/inventory/import-templates/TikTokImportTemplate.tsx\",\n \"src/integrations/supabase/types.ts\"\n ],\n \"created\": [\n \"src/components/admin/inventory/BulkInvitationsHistory.tsx\"\n ],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Refactor: Split TikTokImportTemplate into smaller components Refactor the TikTokImportTemplate component into smaller, more manageable components to improve readability and maintainability.
{ "changed": [ "src/components/admin/inventory/ImportCreators.tsx", "src/components/admin/inventory/import-templates/TikTokImportTemplate.tsx" ], "created": [ "src/components/admin/inventory/import-templates/components/FileUploader.tsx", "src/components/admin/inventory/import-templates/components/ImportMethodSelector.tsx", "src/components/admin/inventory/import-templates/components/ImportResultCard.tsx", "src/components/admin/inventory/import-templates/types.ts", "src/components/admin/inventory/import-templates/utils/importUtils.ts" ], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "ImportCreators" ], "keys": null, "path": "src/components/admin/inventory/ImportCreators.tsx", "selectors": null }, { "functions": [ "if", "TikTokVideosList", "onSubmit", "formatNumber", "formatDate", "formatDuration", "handleDelete" ], "keys": null, "path": "src/components/admin/inventory/TikTokVideosList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "BulkInvitationsHistory", "handleViewDetails", "getStatusBadge" ], "keys": null, "path": "src/components/admin/inventory/BulkInvitationsHistory.tsx", "selectors": null }, { "functions": [ "CreatorDetail" ], "keys": null, "path": "src/components/admin/inventory/CreatorDetail.tsx", "selectors": null }, { "functions": [ "TikTokImportTemplate", "downloadTemplate", "handleFileChange", "processExcelFile" ], "keys": null, "path": "src/components/admin/inventory/import-templates/TikTokImportTemplate.tsx", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "TasksList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TasksList.tsx", "selectors": null }, { "functions": [ "TaskDetail", "handleStatusUpdate", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TaskDetail.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/tasksService.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory", "handleCreatorSelect", "handleBackToList" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "AdminTasks", "handleTaskSelect" ], "keys": null, "path": "src/pages/admin/tasks/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest", "handleTiktokTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handlePasswordChange", "handleCheckboxChange", "handleSubmit", "handleSetPassword" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "if", "log" ], "keys": null, "path": "src/services/tiktokVideoService.ts", "selectors": null } ]
585
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nRefactor: Split TikTokImportTemplate into smaller components\n\nRefactor the TikTokImportTemplate component into smaller, more manageable components to improve readability and maintainability.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ImportCreators\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/ImportCreators.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"TikTokVideosList\",\n \"onSubmit\",\n \"formatNumber\",\n \"formatDate\",\n \"formatDuration\",\n \"handleDelete\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/TikTokVideosList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BulkInvitationsHistory\",\n \"handleViewDetails\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/BulkInvitationsHistory.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TikTokImportTemplate\",\n \"downloadTemplate\",\n \"handleFileChange\",\n \"processExcelFile\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/import-templates/TikTokImportTemplate.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TasksList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TasksList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TaskDetail\",\n \"handleStatusUpdate\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TaskDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tasksService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\",\n \"handleCreatorSelect\",\n \"handleBackToList\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTasks\",\n \"handleTaskSelect\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/tasks/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\",\n \"handleTiktokTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handlePasswordChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\",\n \"handleSetPassword\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"log\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tiktokVideoService.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/components/admin/inventory/ImportCreators.tsx\",\n \"src/components/admin/inventory/import-templates/TikTokImportTemplate.tsx\"\n ],\n \"created\": [\n \"src/components/admin/inventory/import-templates/components/FileUploader.tsx\",\n \"src/components/admin/inventory/import-templates/components/ImportMethodSelector.tsx\",\n \"src/components/admin/inventory/import-templates/components/ImportResultCard.tsx\",\n \"src/components/admin/inventory/import-templates/types.ts\",\n \"src/components/admin/inventory/import-templates/utils/importUtils.ts\"\n ],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
feat: Add pagination and filters to creators list Implement pagination and add filters for TikTok eligibility and users in the creators list view.
{ "changed": [ "src/components/admin/inventory/CreatorsList.tsx", "src/components/admin/inventory/import-templates/types.ts", "src/pages/admin/inventory/index.tsx", "src/services/creatorService.ts" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "ImportCreators" ], "keys": null, "path": "src/components/admin/inventory/ImportCreators.tsx", "selectors": null }, { "functions": [ "if", "TikTokVideosList", "onSubmit", "formatNumber", "formatDate", "formatDuration", "handleDelete" ], "keys": null, "path": "src/components/admin/inventory/TikTokVideosList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "CreatorsList", "getInitials", "formatDate" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "BulkInvitationsHistory", "handleViewDetails", "getStatusBadge" ], "keys": null, "path": "src/components/admin/inventory/BulkInvitationsHistory.tsx", "selectors": null }, { "functions": [ "CreatorDetail" ], "keys": null, "path": "src/components/admin/inventory/CreatorDetail.tsx", "selectors": null }, { "functions": [ "TikTokImportTemplate", "downloadTemplate", "handleProcessExcelFile", "handleImportCsv" ], "keys": null, "path": "src/components/admin/inventory/import-templates/TikTokImportTemplate.tsx", "selectors": null }, { "functions": [ "ImportResultCard" ], "keys": null, "path": "src/components/admin/inventory/import-templates/components/ImportResultCard.tsx", "selectors": null }, { "functions": [ "FileUploader", "handleFileChange" ], "keys": null, "path": "src/components/admin/inventory/import-templates/components/FileUploader.tsx", "selectors": null }, { "functions": [ "ImportMethodSelector" ], "keys": null, "path": "src/components/admin/inventory/import-templates/components/ImportMethodSelector.tsx", "selectors": null }, { "functions": [ "updateBulkInvitation", "if" ], "keys": null, "path": "src/components/admin/inventory/import-templates/utils/importUtils.ts", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "TasksList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TasksList.tsx", "selectors": null }, { "functions": [ "TaskDetail", "handleStatusUpdate", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TaskDetail.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/tasksService.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory", "handleCreatorSelect", "handleBackToList" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "AdminTasks", "handleTaskSelect" ], "keys": null, "path": "src/pages/admin/tasks/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest", "handleTiktokTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handlePasswordChange", "handleCheckboxChange", "handleSubmit", "handleSetPassword" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "if", "log" ], "keys": null, "path": "src/services/tiktokVideoService.ts", "selectors": null } ]
586
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nfeat: Add pagination and filters to creators list\n\nImplement pagination and add filters for TikTok eligibility and users in the creators list view.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ImportCreators\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/ImportCreators.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"TikTokVideosList\",\n \"onSubmit\",\n \"formatNumber\",\n \"formatDate\",\n \"formatDuration\",\n \"handleDelete\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/TikTokVideosList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorsList\",\n \"getInitials\",\n \"formatDate\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BulkInvitationsHistory\",\n \"handleViewDetails\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/BulkInvitationsHistory.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TikTokImportTemplate\",\n \"downloadTemplate\",\n \"handleProcessExcelFile\",\n \"handleImportCsv\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/import-templates/TikTokImportTemplate.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ImportResultCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/import-templates/components/ImportResultCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FileUploader\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/import-templates/components/FileUploader.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ImportMethodSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/import-templates/components/ImportMethodSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"updateBulkInvitation\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/import-templates/utils/importUtils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TasksList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TasksList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TaskDetail\",\n \"handleStatusUpdate\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TaskDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tasksService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\",\n \"handleCreatorSelect\",\n \"handleBackToList\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTasks\",\n \"handleTaskSelect\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/tasks/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\",\n \"handleTiktokTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handlePasswordChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\",\n \"handleSetPassword\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"log\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tiktokVideoService.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/components/admin/inventory/CreatorsList.tsx\",\n \"src/components/admin/inventory/import-templates/types.ts\",\n \"src/pages/admin/inventory/index.tsx\",\n \"src/services/creatorService.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Run SQL scripts Apply the SQL scripts to the database.
{ "changed": [ "src/components/admin/inventory/CreatorForm.tsx", "src/components/admin/inventory/import-templates/types.ts", "src/integrations/supabase/types.ts", "src/types/creator.ts" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "ImportCreators" ], "keys": null, "path": "src/components/admin/inventory/ImportCreators.tsx", "selectors": null }, { "functions": [ "if", "TikTokVideosList", "onSubmit", "formatNumber", "formatDate", "formatDuration", "handleDelete" ], "keys": null, "path": "src/components/admin/inventory/TikTokVideosList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "getInitials", "formatDate", "if" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "BulkInvitationsHistory", "handleViewDetails", "getStatusBadge" ], "keys": null, "path": "src/components/admin/inventory/BulkInvitationsHistory.tsx", "selectors": null }, { "functions": [ "CreatorDetail" ], "keys": null, "path": "src/components/admin/inventory/CreatorDetail.tsx", "selectors": null }, { "functions": [ "TikTokImportTemplate", "downloadTemplate", "handleProcessExcelFile", "handleImportCsv" ], "keys": null, "path": "src/components/admin/inventory/import-templates/TikTokImportTemplate.tsx", "selectors": null }, { "functions": [ "ImportResultCard" ], "keys": null, "path": "src/components/admin/inventory/import-templates/components/ImportResultCard.tsx", "selectors": null }, { "functions": [ "FileUploader", "handleFileChange" ], "keys": null, "path": "src/components/admin/inventory/import-templates/components/FileUploader.tsx", "selectors": null }, { "functions": [ "ImportMethodSelector" ], "keys": null, "path": "src/components/admin/inventory/import-templates/components/ImportMethodSelector.tsx", "selectors": null }, { "functions": [ "updateBulkInvitation", "if" ], "keys": null, "path": "src/components/admin/inventory/import-templates/utils/importUtils.ts", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "TasksList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TasksList.tsx", "selectors": null }, { "functions": [ "TaskDetail", "handleStatusUpdate", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TaskDetail.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/tasksService.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory", "handleCreatorSelect", "handleBackToList", "handleFilterChange" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "AdminTasks", "handleTaskSelect" ], "keys": null, "path": "src/pages/admin/tasks/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest", "handleTiktokTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handlePasswordChange", "handleCheckboxChange", "handleSubmit", "handleSetPassword" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "if", "log" ], "keys": null, "path": "src/services/tiktokVideoService.ts", "selectors": null } ]
587
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nRun SQL scripts\n\nApply the SQL scripts to the database.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ImportCreators\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/ImportCreators.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"TikTokVideosList\",\n \"onSubmit\",\n \"formatNumber\",\n \"formatDate\",\n \"formatDuration\",\n \"handleDelete\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/TikTokVideosList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getInitials\",\n \"formatDate\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BulkInvitationsHistory\",\n \"handleViewDetails\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/BulkInvitationsHistory.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TikTokImportTemplate\",\n \"downloadTemplate\",\n \"handleProcessExcelFile\",\n \"handleImportCsv\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/import-templates/TikTokImportTemplate.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ImportResultCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/import-templates/components/ImportResultCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FileUploader\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/import-templates/components/FileUploader.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ImportMethodSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/import-templates/components/ImportMethodSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"updateBulkInvitation\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/import-templates/utils/importUtils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TasksList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TasksList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TaskDetail\",\n \"handleStatusUpdate\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TaskDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tasksService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\",\n \"handleCreatorSelect\",\n \"handleBackToList\",\n \"handleFilterChange\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTasks\",\n \"handleTaskSelect\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/tasks/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\",\n \"handleTiktokTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handlePasswordChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\",\n \"handleSetPassword\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"log\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tiktokVideoService.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/components/admin/inventory/CreatorForm.tsx\",\n \"src/components/admin/inventory/import-templates/types.ts\",\n \"src/integrations/supabase/types.ts\",\n \"src/types/creator.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Fix: Persist secUid from TikTok API Persist the secUid from the TikTok API response to the inventario_creadores table.
{ "changed": [ "src/components/admin/inventory/CreatorsList.tsx", "src/services/tiktokVideoService.ts" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "ImportCreators" ], "keys": null, "path": "src/components/admin/inventory/ImportCreators.tsx", "selectors": null }, { "functions": [ "if", "TikTokVideosList", "onSubmit", "formatNumber", "formatDate", "formatDuration", "handleDelete" ], "keys": null, "path": "src/components/admin/inventory/TikTokVideosList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "getInitials", "formatDate", "if" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "BulkInvitationsHistory", "handleViewDetails", "getStatusBadge" ], "keys": null, "path": "src/components/admin/inventory/BulkInvitationsHistory.tsx", "selectors": null }, { "functions": [ "CreatorDetail" ], "keys": null, "path": "src/components/admin/inventory/CreatorDetail.tsx", "selectors": null }, { "functions": [ "TikTokImportTemplate", "downloadTemplate", "handleProcessExcelFile", "handleImportCsv" ], "keys": null, "path": "src/components/admin/inventory/import-templates/TikTokImportTemplate.tsx", "selectors": null }, { "functions": [ "ImportResultCard" ], "keys": null, "path": "src/components/admin/inventory/import-templates/components/ImportResultCard.tsx", "selectors": null }, { "functions": [ "FileUploader", "handleFileChange" ], "keys": null, "path": "src/components/admin/inventory/import-templates/components/FileUploader.tsx", "selectors": null }, { "functions": [ "ImportMethodSelector" ], "keys": null, "path": "src/components/admin/inventory/import-templates/components/ImportMethodSelector.tsx", "selectors": null }, { "functions": [ "updateBulkInvitation", "if" ], "keys": null, "path": "src/components/admin/inventory/import-templates/utils/importUtils.ts", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "TasksList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TasksList.tsx", "selectors": null }, { "functions": [ "TaskDetail", "handleStatusUpdate", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TaskDetail.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/tasksService.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory", "handleCreatorSelect", "handleBackToList", "handleFilterChange" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "AdminTasks", "handleTaskSelect" ], "keys": null, "path": "src/pages/admin/tasks/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest", "handleTiktokTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handlePasswordChange", "handleCheckboxChange", "handleSubmit", "handleSetPassword" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "if", "log" ], "keys": null, "path": "src/services/tiktokVideoService.ts", "selectors": null } ]
588
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nFix: Persist secUid from TikTok API\n\nPersist the secUid from the TikTok API response to the inventario_creadores table.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ImportCreators\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/ImportCreators.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"TikTokVideosList\",\n \"onSubmit\",\n \"formatNumber\",\n \"formatDate\",\n \"formatDuration\",\n \"handleDelete\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/TikTokVideosList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getInitials\",\n \"formatDate\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BulkInvitationsHistory\",\n \"handleViewDetails\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/BulkInvitationsHistory.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TikTokImportTemplate\",\n \"downloadTemplate\",\n \"handleProcessExcelFile\",\n \"handleImportCsv\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/import-templates/TikTokImportTemplate.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ImportResultCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/import-templates/components/ImportResultCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FileUploader\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/import-templates/components/FileUploader.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ImportMethodSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/import-templates/components/ImportMethodSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"updateBulkInvitation\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/import-templates/utils/importUtils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TasksList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TasksList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TaskDetail\",\n \"handleStatusUpdate\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TaskDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tasksService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\",\n \"handleCreatorSelect\",\n \"handleBackToList\",\n \"handleFilterChange\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTasks\",\n \"handleTaskSelect\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/tasks/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\",\n \"handleTiktokTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handlePasswordChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\",\n \"handleSetPassword\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"log\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tiktokVideoService.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/components/admin/inventory/CreatorsList.tsx\",\n \"src/services/tiktokVideoService.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
feat: Add TikTok engagement button and functionality Adds a "TikTok engagement" button to the creator list in the admin inventory. This button fetches TikTok video data using the TikTok API, extracts relevant metrics (comments, hearts, plays, duration), and persists the video information in the `tiktok_video` table. The function uses `inventario_creadores.secUid` to fetch the videos.
{ "changed": [ "src/components/admin/inventory/CreatorsList.tsx", "src/services/tiktokVideoService.ts" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "ImportCreators" ], "keys": null, "path": "src/components/admin/inventory/ImportCreators.tsx", "selectors": null }, { "functions": [ "if", "TikTokVideosList", "onSubmit", "formatNumber", "formatDate", "formatDuration", "handleDelete" ], "keys": null, "path": "src/components/admin/inventory/TikTokVideosList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "getInitials", "formatDate", "if" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "BulkInvitationsHistory", "handleViewDetails", "getStatusBadge" ], "keys": null, "path": "src/components/admin/inventory/BulkInvitationsHistory.tsx", "selectors": null }, { "functions": [ "CreatorDetail" ], "keys": null, "path": "src/components/admin/inventory/CreatorDetail.tsx", "selectors": null }, { "functions": [ "TikTokImportTemplate", "downloadTemplate", "handleProcessExcelFile", "handleImportCsv" ], "keys": null, "path": "src/components/admin/inventory/import-templates/TikTokImportTemplate.tsx", "selectors": null }, { "functions": [ "ImportResultCard" ], "keys": null, "path": "src/components/admin/inventory/import-templates/components/ImportResultCard.tsx", "selectors": null }, { "functions": [ "FileUploader", "handleFileChange" ], "keys": null, "path": "src/components/admin/inventory/import-templates/components/FileUploader.tsx", "selectors": null }, { "functions": [ "ImportMethodSelector" ], "keys": null, "path": "src/components/admin/inventory/import-templates/components/ImportMethodSelector.tsx", "selectors": null }, { "functions": [ "updateBulkInvitation", "if" ], "keys": null, "path": "src/components/admin/inventory/import-templates/utils/importUtils.ts", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "TasksList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TasksList.tsx", "selectors": null }, { "functions": [ "TaskDetail", "handleStatusUpdate", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TaskDetail.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/tasksService.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory", "handleCreatorSelect", "handleBackToList", "handleFilterChange" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "AdminTasks", "handleTaskSelect" ], "keys": null, "path": "src/pages/admin/tasks/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest", "handleTiktokTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handlePasswordChange", "handleCheckboxChange", "handleSubmit", "handleSetPassword" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "if", "log" ], "keys": null, "path": "src/services/tiktokVideoService.ts", "selectors": null } ]
589
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nfeat: Add TikTok engagement button and functionality\n\nAdds a \"TikTok engagement\" button to the creator list in the admin inventory. This button fetches TikTok video data using the TikTok API, extracts relevant metrics (comments, hearts, plays, duration), and persists the video information in the `tiktok_video` table. The function uses `inventario_creadores.secUid` to fetch the videos.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ImportCreators\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/ImportCreators.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"TikTokVideosList\",\n \"onSubmit\",\n \"formatNumber\",\n \"formatDate\",\n \"formatDuration\",\n \"handleDelete\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/TikTokVideosList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getInitials\",\n \"formatDate\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BulkInvitationsHistory\",\n \"handleViewDetails\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/BulkInvitationsHistory.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TikTokImportTemplate\",\n \"downloadTemplate\",\n \"handleProcessExcelFile\",\n \"handleImportCsv\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/import-templates/TikTokImportTemplate.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ImportResultCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/import-templates/components/ImportResultCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FileUploader\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/import-templates/components/FileUploader.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ImportMethodSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/import-templates/components/ImportMethodSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"updateBulkInvitation\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/import-templates/utils/importUtils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TasksList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TasksList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TaskDetail\",\n \"handleStatusUpdate\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TaskDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tasksService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\",\n \"handleCreatorSelect\",\n \"handleBackToList\",\n \"handleFilterChange\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTasks\",\n \"handleTaskSelect\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/tasks/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\",\n \"handleTiktokTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handlePasswordChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\",\n \"handleSetPassword\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"log\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tiktokVideoService.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/components/admin/inventory/CreatorsList.tsx\",\n \"src/services/tiktokVideoService.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]
gmrdaniel/grm-meta
Fix: Correct typo in TikTok secUid property Corrected the typo in the `secuid_tiktok` property to `secUid_tiktok` in the `CreatorsList` component to resolve TypeScript errors.
{ "changed": [ "src/components/admin/inventory/CreatorsList.tsx", "src/services/tiktokVideoService.ts", "src/types/creator.ts" ], "created": [], "deleted": [] }
[ { "functions": null, "keys": [ "name", "private", "version", "type", "scripts", "dependencies", "devDependencies" ], "path": "package.json", "selectors": null }, { "functions": null, "keys": [ "files", "references", "compilerOptions" ], "path": "tsconfig.json", "selectors": null }, { "functions": null, "keys": [ "name", "version", "lockfileVersion", "requires", "packages" ], "path": "package-lock.json", "selectors": null }, { "functions": null, "keys": [ "rewrites" ], "path": "vercel.json", "selectors": null }, { "functions": null, "keys": [ "$schema", "style", "rsc", "tsx", "tailwind", "aliases" ], "path": "components.json", "selectors": null }, { "functions": null, "keys": null, "path": "src/App.css", "selectors": [ "#root", ".read-the-docs", "hover", ".logo", "from", "logo-spin", "to", ".card", ".react" ] }, { "functions": null, "keys": null, "path": "src/index.css", "selectors": [ "body", ".fade-enter", ".slide-enter", "root", ".slide-enter-active", ".fade-enter-active", "base" ] }, { "functions": [ "App" ], "keys": null, "path": "src/App.tsx", "selectors": null }, { "functions": [ "Layout" ], "keys": null, "path": "src/components/Layout.tsx", "selectors": null }, { "functions": [ "StatsCard" ], "keys": null, "path": "src/components/StatsCard.tsx", "selectors": null }, { "functions": [ "Sidebar", "handleLogout" ], "keys": null, "path": "src/components/Sidebar.tsx", "selectors": null }, { "functions": [ "ProtectedRoute", "getUserRole" ], "keys": null, "path": "src/components/ProtectedRoute.tsx", "selectors": null }, { "functions": [ "Header", "fetchNotifications", "markAsRead", "handleLogout" ], "keys": null, "path": "src/components/Header.tsx", "selectors": null }, { "functions": [ "AuthForm", "handleSubmit" ], "keys": null, "path": "src/components/auth/AuthForm.tsx", "selectors": null }, { "functions": [ "PasswordRecoveryDialog", "handlePasswordRecovery", "closeRecoveryDialog" ], "keys": null, "path": "src/components/auth/PasswordRecoveryDialog.tsx", "selectors": null }, { "functions": [ "AuthContainer" ], "keys": null, "path": "src/components/auth/AuthContainer.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/auth/LoadingSpinner.tsx", "selectors": null }, { "functions": [ "PersonalInfoCard" ], "keys": null, "path": "src/components/creator/PersonalInfoCard.tsx", "selectors": null }, { "functions": [ "NotificationsCard", "fetchNotifications", "markAsRead" ], "keys": null, "path": "src/components/creator/NotificationsCard.tsx", "selectors": null }, { "functions": [ "DialogHeader", "DialogFooter" ], "keys": null, "path": "src/components/ui/dialog.tsx", "selectors": null }, { "functions": [ "ContextMenuShortcut" ], "keys": null, "path": "src/components/ui/context-menu.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/components/ui/textarea.tsx", "selectors": null }, { "functions": [ "MenubarShortcut" ], "keys": null, "path": "src/components/ui/menubar.tsx", "selectors": null }, { "functions": [ "DatePicker" ], "keys": null, "path": "src/components/ui/date-picker.tsx", "selectors": null }, { "functions": [ "BreadcrumbSeparator", "BreadcrumbEllipsis" ], "keys": null, "path": "src/components/ui/breadcrumb.tsx", "selectors": null }, { "functions": [ "Drawer", "DrawerHeader", "DrawerFooter" ], "keys": null, "path": "src/components/ui/drawer.tsx", "selectors": null }, { "functions": [ "Toaster" ], "keys": null, "path": "src/components/ui/toaster.tsx", "selectors": null }, { "functions": [ "SheetHeader", "SheetFooter" ], "keys": null, "path": "src/components/ui/sheet.tsx", "selectors": null }, { "functions": [ "useSidebar", "setOpenProp", "handleKeyDown" ], "keys": null, "path": "src/components/ui/sidebar.tsx", "selectors": null }, { "functions": [ "Badge" ], "keys": null, "path": "src/components/ui/badge.tsx", "selectors": null }, { "functions": [ "LoadingSpinner" ], "keys": null, "path": "src/components/ui/loading-spinner.tsx", "selectors": null }, { "functions": [ "Calendar" ], "keys": null, "path": "src/components/ui/calendar.tsx", "selectors": null }, { "functions": [ "useCarousel" ], "keys": null, "path": "src/components/ui/carousel.tsx", "selectors": null }, { "functions": [ "DropdownMenuShortcut" ], "keys": null, "path": "src/components/ui/dropdown-menu.tsx", "selectors": null }, { "functions": [ "Skeleton" ], "keys": null, "path": "src/components/ui/skeleton.tsx", "selectors": null }, { "functions": [ "Pagination", "PaginationPrevious", "PaginationNext", "PaginationEllipsis" ], "keys": null, "path": "src/components/ui/pagination.tsx", "selectors": null }, { "functions": [ "AlertDialogHeader", "AlertDialogFooter" ], "keys": null, "path": "src/components/ui/alert-dialog.tsx", "selectors": null }, { "functions": [ "useChart", "getPayloadConfigFromPayload" ], "keys": null, "path": "src/components/ui/chart.tsx", "selectors": null }, { "functions": [ "CommandDialog", "CommandShortcut" ], "keys": null, "path": "src/components/ui/command.tsx", "selectors": null }, { "functions": [ "ResizablePanelGroup" ], "keys": null, "path": "src/components/ui/resizable.tsx", "selectors": null }, { "functions": [ "ProjectDetail", "handleUpdateProject", "handleEditStage", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectDetail.tsx", "selectors": null }, { "functions": [ "ProjectStagesList", "handleMoveStage", "handleDeleteStage", "handleTogglePrivacy" ], "keys": null, "path": "src/components/admin/projects/ProjectStagesList.tsx", "selectors": null }, { "functions": [ "ProjectForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectForm.tsx", "selectors": null }, { "functions": [ "ProjectStageForm", "onSubmit" ], "keys": null, "path": "src/components/admin/projects/ProjectStageForm.tsx", "selectors": null }, { "functions": [ "ProjectsList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/projects/ProjectsList.tsx", "selectors": null }, { "functions": [ "ImportCreators" ], "keys": null, "path": "src/components/admin/inventory/ImportCreators.tsx", "selectors": null }, { "functions": [ "if", "TikTokVideosList", "onSubmit", "formatNumber", "formatDate", "formatDuration", "handleDelete" ], "keys": null, "path": "src/components/admin/inventory/TikTokVideosList.tsx", "selectors": null }, { "functions": [ "CreatorForm", "onSubmit" ], "keys": null, "path": "src/components/admin/inventory/CreatorForm.tsx", "selectors": null }, { "functions": [ "getInitials", "formatDate", "if" ], "keys": null, "path": "src/components/admin/inventory/CreatorsList.tsx", "selectors": null }, { "functions": [ "BulkInvitationsHistory", "handleViewDetails", "getStatusBadge" ], "keys": null, "path": "src/components/admin/inventory/BulkInvitationsHistory.tsx", "selectors": null }, { "functions": [ "CreatorDetail" ], "keys": null, "path": "src/components/admin/inventory/CreatorDetail.tsx", "selectors": null }, { "functions": [ "TikTokImportTemplate", "downloadTemplate", "handleProcessExcelFile", "handleImportCsv" ], "keys": null, "path": "src/components/admin/inventory/import-templates/TikTokImportTemplate.tsx", "selectors": null }, { "functions": [ "ImportResultCard" ], "keys": null, "path": "src/components/admin/inventory/import-templates/components/ImportResultCard.tsx", "selectors": null }, { "functions": [ "FileUploader", "handleFileChange" ], "keys": null, "path": "src/components/admin/inventory/import-templates/components/FileUploader.tsx", "selectors": null }, { "functions": [ "ImportMethodSelector" ], "keys": null, "path": "src/components/admin/inventory/import-templates/components/ImportMethodSelector.tsx", "selectors": null }, { "functions": [ "updateBulkInvitation", "if" ], "keys": null, "path": "src/components/admin/inventory/import-templates/utils/importUtils.ts", "selectors": null }, { "functions": [ "ActionCard", "ActionCards" ], "keys": null, "path": "src/components/admin/migrations/ActionCards.tsx", "selectors": null }, { "functions": [ "TableMigrationsTab" ], "keys": null, "path": "src/components/admin/migrations/TableMigrationsTab.tsx", "selectors": null }, { "functions": [ "FullSchemaTab" ], "keys": null, "path": "src/components/admin/migrations/FullSchemaTab.tsx", "selectors": null }, { "functions": [ "FunctionsTab" ], "keys": null, "path": "src/components/admin/migrations/FunctionsTab.tsx", "selectors": null }, { "functions": [ "TasksList", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TasksList.tsx", "selectors": null }, { "functions": [ "TaskDetail", "handleStatusUpdate", "getStatusBadge" ], "keys": null, "path": "src/components/admin/tasks/TaskDetail.tsx", "selectors": null }, { "functions": [ "EmailSection" ], "keys": null, "path": "src/components/admin/creator-detail/EmailSection.tsx", "selectors": null }, { "functions": [ "InvitationsList", "handleDelete", "confirmDelete", "copyInvitationLink", "copyInvitationCode", "resetInvitationStatus", "getStatusBadge" ], "keys": null, "path": "src/components/admin/invitations/InvitationsList.tsx", "selectors": null }, { "functions": [ "onSubmit" ], "keys": null, "path": "src/components/admin/invitations/InvitationForm.tsx", "selectors": null }, { "functions": [ "CreatorServicesPagination" ], "keys": null, "path": "src/components/creator-services/CreatorServicesPagination.tsx", "selectors": null }, { "functions": [ "DateSelector" ], "keys": null, "path": "src/components/creator-services/payment-form/DateSelector.tsx", "selectors": null }, { "functions": [ "SocialMediaInputs" ], "keys": null, "path": "src/components/profile/SocialMediaInputs.tsx", "selectors": null }, { "functions": [ "PersonalInfoInputs" ], "keys": null, "path": "src/components/profile/PersonalInfoInputs.tsx", "selectors": null }, { "functions": [ "ProfilePhotoUpload", "handleFileChange" ], "keys": null, "path": "src/components/profile/ProfilePhotoUpload.tsx", "selectors": null }, { "functions": [ "NavItem" ], "keys": null, "path": "src/components/sidebar/NavItem.tsx", "selectors": null }, { "functions": [ "MobileSidebar" ], "keys": null, "path": "src/components/sidebar/MobileSidebar.tsx", "selectors": null }, { "functions": [ "handleContinue" ], "keys": null, "path": "src/components/invitation/WelcomeForm.tsx", "selectors": null }, { "functions": [ "formatTime", "handleInputChange", "handleSendVerificationCode", "handleVerifyCode", "handleResendCode", "handleSubmit" ], "keys": null, "path": "src/components/invitation/CompleteProfileForm.tsx", "selectors": null }, { "functions": [ "cn" ], "keys": null, "path": "src/lib/utils.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/tasksService.ts", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "src/services/creatorService.ts", "selectors": null }, { "functions": [ "getUpdateStagesOrderFunctionSQL" ], "keys": null, "path": "src/services/migrationService.ts", "selectors": null }, { "functions": [ "findInvitationByCode" ], "keys": null, "path": "src/integrations/supabase/client.ts", "selectors": null }, { "functions": [ "AuthProvider", "fetchSession", "useAuth" ], "keys": null, "path": "src/hooks/useAuth.tsx", "selectors": null }, { "functions": [ "genId", "addToRemoveQueue", "reducer", "dispatch", "toast", "update", "dismiss" ], "keys": null, "path": "src/hooks/use-toast.ts", "selectors": null }, { "functions": [ "useIsMobile", "onChange" ], "keys": null, "path": "src/hooks/use-mobile.tsx", "selectors": null }, { "functions": [ "Auth", "checkUserRole" ], "keys": null, "path": "src/pages/Auth.tsx", "selectors": null }, { "functions": [ "Index" ], "keys": null, "path": "src/pages/Index.tsx", "selectors": null }, { "functions": [ "NotFound", "isAdminPath" ], "keys": null, "path": "src/pages/NotFound.tsx", "selectors": null }, { "functions": [ "CreatorDashboard" ], "keys": null, "path": "src/pages/creator/Dashboard.tsx", "selectors": null }, { "functions": [ "CreatorProfile" ], "keys": null, "path": "src/pages/creator/Profile.tsx", "selectors": null }, { "functions": [ "AdminDashboard" ], "keys": null, "path": "src/pages/admin/Dashboard.tsx", "selectors": null }, { "functions": [ "AdminProjects" ], "keys": null, "path": "src/pages/admin/projects/index.tsx", "selectors": null }, { "functions": [ "AdminProjectDetail" ], "keys": null, "path": "src/pages/admin/projects/[id].tsx", "selectors": null }, { "functions": [ "AdminInventory", "handleCreatorSelect", "handleBackToList", "handleFilterChange" ], "keys": null, "path": "src/pages/admin/inventory/index.tsx", "selectors": null }, { "functions": [ "handleExportFullSchema", "handleGenerateMigrations", "handleGetFunctionSQL", "copyToClipboard", "downloadAsFile" ], "keys": null, "path": "src/pages/admin/migrations/index.tsx", "selectors": null }, { "functions": [ "AdminTasks", "handleTaskSelect" ], "keys": null, "path": "src/pages/admin/tasks/index.tsx", "selectors": null }, { "functions": [ "InvitationsPage", "handleCreateClick", "handleInvitationCreated" ], "keys": null, "path": "src/pages/admin/invitations/index.tsx", "selectors": null }, { "functions": [ "AdminTestPage", "handleTestService", "handleDirectTest", "handleTiktokTest" ], "keys": null, "path": "src/pages/admin/test/index.tsx", "selectors": null }, { "functions": [ "InvitationPage", "fetchInvitationDetails", "handleAccept" ], "keys": null, "path": "src/pages/invite/[url]/[id].tsx", "selectors": null }, { "functions": [ "FbCreationPage", "fetchInvitation", "handleInputChange", "handlePasswordChange", "handleCheckboxChange", "handleSubmit", "handleSetPassword" ], "keys": null, "path": "src/pages/meta/FbCreation/[invitation_code].tsx", "selectors": null }, { "functions": [ "CompleteProfilePage", "loadInvitation", "handleSubmit" ], "keys": null, "path": "src/pages/meta/completeProfile/[invitation_code].tsx", "selectors": null }, { "functions": [ "MetaWelcomePage", "fetchInvitation", "handleInputChange", "handleCheckboxChange", "handleContinue" ], "keys": null, "path": "src/pages/meta/welcome/[invitation_code].tsx", "selectors": null }, { "functions": [ "if" ], "keys": null, "path": "supabase/functions/send-invitation-email/index.ts", "selectors": null }, { "functions": [ "if", "generateInvitationCode" ], "keys": null, "path": "src/services/invitationService.ts", "selectors": null }, { "functions": [ "if", "log" ], "keys": null, "path": "src/services/tiktokVideoService.ts", "selectors": null } ]
590
[ { "from": "human", "value": "Given the following Git commit message and file tree before the changes, predict which files need to be changed, created, or deleted:\n\n**Commit Message:**\nFix: Correct typo in TikTok secUid property\n\nCorrected the typo in the `secuid_tiktok` property to `secUid_tiktok` in the `CreatorsList` component to resolve TypeScript errors.\n\n**File Tree Before:**\n[\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"private\",\n \"version\",\n \"type\",\n \"scripts\",\n \"dependencies\",\n \"devDependencies\"\n ],\n \"path\": \"package.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"files\",\n \"references\",\n \"compilerOptions\"\n ],\n \"path\": \"tsconfig.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"name\",\n \"version\",\n \"lockfileVersion\",\n \"requires\",\n \"packages\"\n ],\n \"path\": \"package-lock.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"rewrites\"\n ],\n \"path\": \"vercel.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": [\n \"$schema\",\n \"style\",\n \"rsc\",\n \"tsx\",\n \"tailwind\",\n \"aliases\"\n ],\n \"path\": \"components.json\",\n \"selectors\": null\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/App.css\",\n \"selectors\": [\n \"#root\",\n \".read-the-docs\",\n \"hover\",\n \".logo\",\n \"from\",\n \"logo-spin\",\n \"to\",\n \".card\",\n \".react\"\n ]\n },\n {\n \"functions\": null,\n \"keys\": null,\n \"path\": \"src/index.css\",\n \"selectors\": [\n \"body\",\n \".fade-enter\",\n \".slide-enter\",\n \"root\",\n \".slide-enter-active\",\n \".fade-enter-active\",\n \"base\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatsCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/StatsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProtectedRoute\",\n \"getUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProtectedRoute.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\",\n \"fetchNotifications\",\n \"markAsRead\",\n \"handleLogout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthForm\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PasswordRecoveryDialog\",\n \"handlePasswordRecovery\",\n \"closeRecoveryDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/PasswordRecoveryDialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthContainer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/AuthContainer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/auth/LoadingSpinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/PersonalInfoCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotificationsCard\",\n \"fetchNotifications\",\n \"markAsRead\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator/NotificationsCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DialogHeader\",\n \"DialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ContextMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/context-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/textarea.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MenubarShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/menubar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DatePicker\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/date-picker.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BreadcrumbSeparator\",\n \"BreadcrumbEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/breadcrumb.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Drawer\",\n \"DrawerHeader\",\n \"DrawerFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/drawer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Toaster\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/toaster.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SheetHeader\",\n \"SheetFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sheet.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useSidebar\",\n \"setOpenProp\",\n \"handleKeyDown\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/sidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Badge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/badge.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"LoadingSpinner\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/loading-spinner.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useCarousel\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/carousel.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DropdownMenuShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/dropdown-menu.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Skeleton\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/skeleton.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Pagination\",\n \"PaginationPrevious\",\n \"PaginationNext\",\n \"PaginationEllipsis\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/pagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AlertDialogHeader\",\n \"AlertDialogFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/alert-dialog.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useChart\",\n \"getPayloadConfigFromPayload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/chart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CommandDialog\",\n \"CommandShortcut\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/command.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ResizablePanelGroup\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/resizable.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectDetail\",\n \"handleUpdateProject\",\n \"handleEditStage\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStagesList\",\n \"handleMoveStage\",\n \"handleDeleteStage\",\n \"handleTogglePrivacy\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStagesList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectStageForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectStageForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProjectsList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/projects/ProjectsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ImportCreators\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/ImportCreators.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"TikTokVideosList\",\n \"onSubmit\",\n \"formatNumber\",\n \"formatDate\",\n \"formatDuration\",\n \"handleDelete\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/TikTokVideosList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorForm\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getInitials\",\n \"formatDate\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"BulkInvitationsHistory\",\n \"handleViewDetails\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/BulkInvitationsHistory.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/CreatorDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TikTokImportTemplate\",\n \"downloadTemplate\",\n \"handleProcessExcelFile\",\n \"handleImportCsv\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/import-templates/TikTokImportTemplate.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ImportResultCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/import-templates/components/ImportResultCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FileUploader\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/import-templates/components/FileUploader.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ImportMethodSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/import-templates/components/ImportMethodSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"updateBulkInvitation\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/inventory/import-templates/utils/importUtils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ActionCard\",\n \"ActionCards\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/ActionCards.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TableMigrationsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/TableMigrationsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FullSchemaTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FullSchemaTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FunctionsTab\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/migrations/FunctionsTab.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TasksList\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TasksList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"TaskDetail\",\n \"handleStatusUpdate\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/tasks/TaskDetail.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmailSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/creator-detail/EmailSection.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsList\",\n \"handleDelete\",\n \"confirmDelete\",\n \"copyInvitationLink\",\n \"copyInvitationCode\",\n \"resetInvitationStatus\",\n \"getStatusBadge\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationsList.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/admin/invitations/InvitationForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorServicesPagination\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/CreatorServicesPagination.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DateSelector\"\n ],\n \"keys\": null,\n \"path\": \"src/components/creator-services/payment-form/DateSelector.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"SocialMediaInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/SocialMediaInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PersonalInfoInputs\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/PersonalInfoInputs.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProfilePhotoUpload\",\n \"handleFileChange\"\n ],\n \"keys\": null,\n \"path\": \"src/components/profile/ProfilePhotoUpload.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NavItem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/NavItem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/sidebar/MobileSidebar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/WelcomeForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"formatTime\",\n \"handleInputChange\",\n \"handleSendVerificationCode\",\n \"handleVerifyCode\",\n \"handleResendCode\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/components/invitation/CompleteProfileForm.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tasksService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/services/creatorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"getUpdateStagesOrderFunctionSQL\"\n ],\n \"keys\": null,\n \"path\": \"src/services/migrationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"findInvitationByCode\"\n ],\n \"keys\": null,\n \"path\": \"src/integrations/supabase/client.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AuthProvider\",\n \"fetchSession\",\n \"useAuth\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useAuth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"genId\",\n \"addToRemoveQueue\",\n \"reducer\",\n \"dispatch\",\n \"toast\",\n \"update\",\n \"dismiss\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-toast.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"useIsMobile\",\n \"onChange\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Auth\",\n \"checkUserRole\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Auth.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\",\n \"isAdminPath\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CreatorProfile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/creator/Profile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminDashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjects\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminProjectDetail\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/projects/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminInventory\",\n \"handleCreatorSelect\",\n \"handleBackToList\",\n \"handleFilterChange\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/inventory/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleExportFullSchema\",\n \"handleGenerateMigrations\",\n \"handleGetFunctionSQL\",\n \"copyToClipboard\",\n \"downloadAsFile\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/migrations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTasks\",\n \"handleTaskSelect\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/tasks/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationsPage\",\n \"handleCreateClick\",\n \"handleInvitationCreated\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/invitations/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"AdminTestPage\",\n \"handleTestService\",\n \"handleDirectTest\",\n \"handleTiktokTest\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/test/index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"InvitationPage\",\n \"fetchInvitationDetails\",\n \"handleAccept\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/invite/[url]/[id].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FbCreationPage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handlePasswordChange\",\n \"handleCheckboxChange\",\n \"handleSubmit\",\n \"handleSetPassword\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/FbCreation/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"CompleteProfilePage\",\n \"loadInvitation\",\n \"handleSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/completeProfile/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"MetaWelcomePage\",\n \"fetchInvitation\",\n \"handleInputChange\",\n \"handleCheckboxChange\",\n \"handleContinue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/meta/welcome/[invitation_code].tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"supabase/functions/send-invitation-email/index.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"generateInvitationCode\"\n ],\n \"keys\": null,\n \"path\": \"src/services/invitationService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"if\",\n \"log\"\n ],\n \"keys\": null,\n \"path\": \"src/services/tiktokVideoService.ts\",\n \"selectors\": null\n }\n]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'." }, { "from": "gpt", "value": "{\n \"changed\": [\n \"src/components/admin/inventory/CreatorsList.tsx\",\n \"src/services/tiktokVideoService.ts\",\n \"src/types/creator.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}" } ]