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
|
---|---|---|---|---|---|
super-devninja/React-Animation-3-20-2025
|
Use tech stack vite_react_shadcn_ts
[skip gpt_engineer]
|
{
"changed": [],
"created": [
".gitignore",
"README.md",
"bun.lockb",
"components.json",
"eslint.config.js",
"index.html",
"package-lock.json",
"package.json",
"postcss.config.js",
"public/favicon.ico",
"public/og-image.png",
"public/placeholder.svg",
"src/App.css",
"src/App.tsx",
"src/components/ui/accordion.tsx",
"src/components/ui/alert-dialog.tsx",
"src/components/ui/alert.tsx",
"src/components/ui/aspect-ratio.tsx",
"src/components/ui/avatar.tsx",
"src/components/ui/badge.tsx",
"src/components/ui/breadcrumb.tsx",
"src/components/ui/button.tsx",
"src/components/ui/calendar.tsx",
"src/components/ui/card.tsx",
"src/components/ui/carousel.tsx",
"src/components/ui/chart.tsx",
"src/components/ui/checkbox.tsx",
"src/components/ui/collapsible.tsx",
"src/components/ui/command.tsx",
"src/components/ui/context-menu.tsx",
"src/components/ui/dialog.tsx",
"src/components/ui/drawer.tsx",
"src/components/ui/dropdown-menu.tsx",
"src/components/ui/form.tsx",
"src/components/ui/hover-card.tsx",
"src/components/ui/input-otp.tsx",
"src/components/ui/input.tsx",
"src/components/ui/label.tsx",
"src/components/ui/menubar.tsx",
"src/components/ui/navigation-menu.tsx",
"src/components/ui/pagination.tsx",
"src/components/ui/popover.tsx",
"src/components/ui/progress.tsx",
"src/components/ui/radio-group.tsx",
"src/components/ui/resizable.tsx",
"src/components/ui/scroll-area.tsx",
"src/components/ui/select.tsx",
"src/components/ui/separator.tsx",
"src/components/ui/sheet.tsx",
"src/components/ui/sidebar.tsx",
"src/components/ui/skeleton.tsx",
"src/components/ui/slider.tsx",
"src/components/ui/sonner.tsx",
"src/components/ui/switch.tsx",
"src/components/ui/table.tsx",
"src/components/ui/tabs.tsx",
"src/components/ui/textarea.tsx",
"src/components/ui/toast.tsx",
"src/components/ui/toaster.tsx",
"src/components/ui/toggle-group.tsx",
"src/components/ui/toggle.tsx",
"src/components/ui/tooltip.tsx",
"src/components/ui/use-toast.ts",
"src/hooks/use-mobile.tsx",
"src/hooks/use-toast.ts",
"src/index.css",
"src/lib/utils.ts",
"src/main.tsx",
"src/pages/Index.tsx",
"src/pages/NotFound.tsx",
"src/vite-env.d.ts",
"tailwind.config.ts",
"tsconfig.app.json",
"tsconfig.json",
"tsconfig.node.json",
"vite.config.ts"
],
"deleted": []
}
|
[] | 0 |
[
{
"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:**\nUse tech stack vite_react_shadcn_ts\n[skip gpt_engineer]\n\n**File Tree Before:**\n[]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'."
},
{
"from": "gpt",
"value": "{\n \"changed\": [],\n \"created\": [\n \".gitignore\",\n \"README.md\",\n \"bun.lockb\",\n \"components.json\",\n \"eslint.config.js\",\n \"index.html\",\n \"package-lock.json\",\n \"package.json\",\n \"postcss.config.js\",\n \"public/favicon.ico\",\n \"public/og-image.png\",\n \"public/placeholder.svg\",\n \"src/App.css\",\n \"src/App.tsx\",\n \"src/components/ui/accordion.tsx\",\n \"src/components/ui/alert-dialog.tsx\",\n \"src/components/ui/alert.tsx\",\n \"src/components/ui/aspect-ratio.tsx\",\n \"src/components/ui/avatar.tsx\",\n \"src/components/ui/badge.tsx\",\n \"src/components/ui/breadcrumb.tsx\",\n \"src/components/ui/button.tsx\",\n \"src/components/ui/calendar.tsx\",\n \"src/components/ui/card.tsx\",\n \"src/components/ui/carousel.tsx\",\n \"src/components/ui/chart.tsx\",\n \"src/components/ui/checkbox.tsx\",\n \"src/components/ui/collapsible.tsx\",\n \"src/components/ui/command.tsx\",\n \"src/components/ui/context-menu.tsx\",\n \"src/components/ui/dialog.tsx\",\n \"src/components/ui/drawer.tsx\",\n \"src/components/ui/dropdown-menu.tsx\",\n \"src/components/ui/form.tsx\",\n \"src/components/ui/hover-card.tsx\",\n \"src/components/ui/input-otp.tsx\",\n \"src/components/ui/input.tsx\",\n \"src/components/ui/label.tsx\",\n \"src/components/ui/menubar.tsx\",\n \"src/components/ui/navigation-menu.tsx\",\n \"src/components/ui/pagination.tsx\",\n \"src/components/ui/popover.tsx\",\n \"src/components/ui/progress.tsx\",\n \"src/components/ui/radio-group.tsx\",\n \"src/components/ui/resizable.tsx\",\n \"src/components/ui/scroll-area.tsx\",\n \"src/components/ui/select.tsx\",\n \"src/components/ui/separator.tsx\",\n \"src/components/ui/sheet.tsx\",\n \"src/components/ui/sidebar.tsx\",\n \"src/components/ui/skeleton.tsx\",\n \"src/components/ui/slider.tsx\",\n \"src/components/ui/sonner.tsx\",\n \"src/components/ui/switch.tsx\",\n \"src/components/ui/table.tsx\",\n \"src/components/ui/tabs.tsx\",\n \"src/components/ui/textarea.tsx\",\n \"src/components/ui/toast.tsx\",\n \"src/components/ui/toaster.tsx\",\n \"src/components/ui/toggle-group.tsx\",\n \"src/components/ui/toggle.tsx\",\n \"src/components/ui/tooltip.tsx\",\n \"src/components/ui/use-toast.ts\",\n \"src/hooks/use-mobile.tsx\",\n \"src/hooks/use-toast.ts\",\n \"src/index.css\",\n \"src/lib/utils.ts\",\n \"src/main.tsx\",\n \"src/pages/Index.tsx\",\n \"src/pages/NotFound.tsx\",\n \"src/vite-env.d.ts\",\n \"tailwind.config.ts\",\n \"tsconfig.app.json\",\n \"tsconfig.json\",\n \"tsconfig.node.json\",\n \"vite.config.ts\"\n ],\n \"deleted\": []\n}"
}
] |
super-devninja/React-Animation-3-20-2025
|
Implement company homepage
Implements the homepage for Canucci, including sections for introduction, problem statement, solution, testimonials, and about us. Uses the provided graphical profile and Lato font.
|
{
"changed": [
"index.html",
"src/App.tsx",
"src/index.css",
"src/pages/Index.tsx",
"src/pages/NotFound.tsx",
"tailwind.config.ts"
],
"created": [
"src/components/About.tsx",
"src/components/Footer.tsx",
"src/components/Hero.tsx",
"src/components/Navbar.tsx",
"src/components/Problem.tsx",
"src/components/Solution.tsx",
"src/components/Testimonials.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": [
"$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": [
".dark",
"root",
"base",
"body"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.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": [
"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": [
"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": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"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": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
}
] | 1 |
[
{
"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:**\nImplement company homepage\n\nImplements the homepage for Canucci, including sections for introduction, problem statement, solution, testimonials, and about us. Uses the provided graphical profile and Lato font.\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 \"$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 \".dark\",\n \"root\",\n \"base\",\n \"body\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.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 \"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 \"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 \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\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 \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.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 \"index.html\",\n \"src/App.tsx\",\n \"src/index.css\",\n \"src/pages/Index.tsx\",\n \"src/pages/NotFound.tsx\",\n \"tailwind.config.ts\"\n ],\n \"created\": [\n \"src/components/About.tsx\",\n \"src/components/Footer.tsx\",\n \"src/components/Hero.tsx\",\n \"src/components/Navbar.tsx\",\n \"src/components/Problem.tsx\",\n \"src/components/Solution.tsx\",\n \"src/components/Testimonials.tsx\"\n ],\n \"deleted\": []\n}"
}
] |
super-devninja/React-Animation-3-20-2025
|
Fix bugs
The prompt requested a bug fix. No further details were provided.
|
{
"changed": [
"package-lock.json",
"package.json"
],
"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": [
"$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",
"root",
".glass-card",
".text-balance",
"h6",
".section-padding",
".transition-all-300",
".staggered-animation",
".dark",
"base",
"morph",
".blob-animation"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.tsx",
"selectors": null
},
{
"functions": [
"Footer"
],
"keys": null,
"path": "src/components/Footer.tsx",
"selectors": null
},
{
"functions": [
"About"
],
"keys": null,
"path": "src/components/About.tsx",
"selectors": null
},
{
"functions": [
"Testimonials"
],
"keys": null,
"path": "src/components/Testimonials.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"handleScroll"
],
"keys": null,
"path": "src/components/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Solution"
],
"keys": null,
"path": "src/components/Solution.tsx",
"selectors": null
},
{
"functions": [
"Problem"
],
"keys": null,
"path": "src/components/Problem.tsx",
"selectors": null
},
{
"functions": [
"Hero"
],
"keys": null,
"path": "src/components/Hero.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": [
"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": [
"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": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"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": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
}
] | 2 |
[
{
"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 bugs\n\nThe prompt requested a bug fix. No further details were 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 \"$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 \"root\",\n \".glass-card\",\n \".text-balance\",\n \"h6\",\n \".section-padding\",\n \".transition-all-300\",\n \".staggered-animation\",\n \".dark\",\n \"base\",\n \"morph\",\n \".blob-animation\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Footer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Footer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"About\"\n ],\n \"keys\": null,\n \"path\": \"src/components/About.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Testimonials\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Testimonials.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"handleScroll\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Solution\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Solution.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Problem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Problem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Hero\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Hero.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 \"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 \"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 \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\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 \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.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 \"package-lock.json\",\n \"package.json\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
super-devninja/React-Animation-3-20-2025
|
Fix heading visibility on load
The headings were briefly visible before disappearing. This commit addresses the issue.
|
{
"changed": [
"src/components/About.tsx",
"src/components/Hero.tsx",
"src/components/Problem.tsx",
"src/components/Solution.tsx",
"src/components/Testimonials.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": [
"$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",
"root",
".glass-card",
".text-balance",
"h6",
".section-padding",
".transition-all-300",
".staggered-animation",
".dark",
"base",
"morph",
".blob-animation"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.tsx",
"selectors": null
},
{
"functions": [
"Footer"
],
"keys": null,
"path": "src/components/Footer.tsx",
"selectors": null
},
{
"functions": [
"About"
],
"keys": null,
"path": "src/components/About.tsx",
"selectors": null
},
{
"functions": [
"Testimonials"
],
"keys": null,
"path": "src/components/Testimonials.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"handleScroll"
],
"keys": null,
"path": "src/components/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Solution"
],
"keys": null,
"path": "src/components/Solution.tsx",
"selectors": null
},
{
"functions": [
"Problem"
],
"keys": null,
"path": "src/components/Problem.tsx",
"selectors": null
},
{
"functions": [
"Hero"
],
"keys": null,
"path": "src/components/Hero.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": [
"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": [
"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": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"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": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
}
] | 3 |
[
{
"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 heading visibility on load\n\nThe headings were briefly visible before disappearing. 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 \"$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 \"root\",\n \".glass-card\",\n \".text-balance\",\n \"h6\",\n \".section-padding\",\n \".transition-all-300\",\n \".staggered-animation\",\n \".dark\",\n \"base\",\n \"morph\",\n \".blob-animation\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Footer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Footer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"About\"\n ],\n \"keys\": null,\n \"path\": \"src/components/About.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Testimonials\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Testimonials.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"handleScroll\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Solution\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Solution.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Problem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Problem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Hero\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Hero.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 \"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 \"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 \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\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 \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.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/About.tsx\",\n \"src/components/Hero.tsx\",\n \"src/components/Problem.tsx\",\n \"src/components/Solution.tsx\",\n \"src/components/Testimonials.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
super-devninja/React-Animation-3-20-2025
|
Retry previous implementation
The previous implementation did not solve the problem, retrying.
|
{
"changed": [
"src/components/About.tsx",
"src/components/Hero.tsx",
"src/components/Problem.tsx",
"src/components/Solution.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": [
"$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",
"root",
".glass-card",
".text-balance",
"h6",
".section-padding",
".transition-all-300",
".staggered-animation",
".dark",
"base",
"morph",
".blob-animation"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.tsx",
"selectors": null
},
{
"functions": [
"Footer"
],
"keys": null,
"path": "src/components/Footer.tsx",
"selectors": null
},
{
"functions": [
"About"
],
"keys": null,
"path": "src/components/About.tsx",
"selectors": null
},
{
"functions": [
"Testimonials"
],
"keys": null,
"path": "src/components/Testimonials.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"handleScroll"
],
"keys": null,
"path": "src/components/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Solution"
],
"keys": null,
"path": "src/components/Solution.tsx",
"selectors": null
},
{
"functions": [
"Problem"
],
"keys": null,
"path": "src/components/Problem.tsx",
"selectors": null
},
{
"functions": [
"Hero"
],
"keys": null,
"path": "src/components/Hero.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": [
"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": [
"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": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"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": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
}
] | 4 |
[
{
"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:**\nRetry previous implementation\n\nThe previous implementation did not solve the problem, retrying.\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 \"$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 \"root\",\n \".glass-card\",\n \".text-balance\",\n \"h6\",\n \".section-padding\",\n \".transition-all-300\",\n \".staggered-animation\",\n \".dark\",\n \"base\",\n \"morph\",\n \".blob-animation\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Footer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Footer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"About\"\n ],\n \"keys\": null,\n \"path\": \"src/components/About.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Testimonials\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Testimonials.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"handleScroll\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Solution\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Solution.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Problem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Problem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Hero\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Hero.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 \"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 \"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 \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\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 \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.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/About.tsx\",\n \"src/components/Hero.tsx\",\n \"src/components/Problem.tsx\",\n \"src/components/Solution.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
super-devninja/React-Animation-3-20-2025
|
Ensure brand color consistency
The code was reviewed to ensure that all color codes used are consistent with the brand material.
|
{
"changed": [
"src/components/About.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": [
"$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",
"root",
".glass-card",
".text-balance",
"h6",
".section-padding",
".transition-all-300",
".staggered-animation",
".dark",
"base",
"morph",
".blob-animation"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.tsx",
"selectors": null
},
{
"functions": [
"Footer"
],
"keys": null,
"path": "src/components/Footer.tsx",
"selectors": null
},
{
"functions": [
"About"
],
"keys": null,
"path": "src/components/About.tsx",
"selectors": null
},
{
"functions": [
"Testimonials"
],
"keys": null,
"path": "src/components/Testimonials.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"handleScroll"
],
"keys": null,
"path": "src/components/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Solution"
],
"keys": null,
"path": "src/components/Solution.tsx",
"selectors": null
},
{
"functions": [
"Problem"
],
"keys": null,
"path": "src/components/Problem.tsx",
"selectors": null
},
{
"functions": [
"Hero"
],
"keys": null,
"path": "src/components/Hero.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": [
"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": [
"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": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"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": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
}
] | 5 |
[
{
"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:**\nEnsure brand color consistency\n\nThe code was reviewed to ensure that all color codes used are consistent with the brand material.\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 \"$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 \"root\",\n \".glass-card\",\n \".text-balance\",\n \"h6\",\n \".section-padding\",\n \".transition-all-300\",\n \".staggered-animation\",\n \".dark\",\n \"base\",\n \"morph\",\n \".blob-animation\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Footer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Footer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"About\"\n ],\n \"keys\": null,\n \"path\": \"src/components/About.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Testimonials\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Testimonials.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"handleScroll\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Solution\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Solution.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Problem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Problem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Hero\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Hero.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 \"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 \"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 \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\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 \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.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/About.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
super-devninja/React-Animation-3-20-2025
|
Replace company name with logo
Replaces the company name text in the top left corner of the Navbar and Footer components with the company logo.
|
{
"changed": [
"src/components/Footer.tsx",
"src/components/Navbar.tsx"
],
"created": [
"public/lovable-uploads/ad53f089-5215-446d-9d3f-94f43dc48965.png"
],
"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": [
"$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",
"root",
".glass-card",
".text-balance",
"h6",
".section-padding",
".transition-all-300",
".staggered-animation",
".dark",
"base",
"morph",
".blob-animation"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.tsx",
"selectors": null
},
{
"functions": [
"Footer"
],
"keys": null,
"path": "src/components/Footer.tsx",
"selectors": null
},
{
"functions": [
"About"
],
"keys": null,
"path": "src/components/About.tsx",
"selectors": null
},
{
"functions": [
"Testimonials"
],
"keys": null,
"path": "src/components/Testimonials.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"handleScroll"
],
"keys": null,
"path": "src/components/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Solution"
],
"keys": null,
"path": "src/components/Solution.tsx",
"selectors": null
},
{
"functions": [
"Problem"
],
"keys": null,
"path": "src/components/Problem.tsx",
"selectors": null
},
{
"functions": [
"Hero"
],
"keys": null,
"path": "src/components/Hero.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": [
"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": [
"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": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"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": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
}
] | 6 |
[
{
"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:**\nReplace company name with logo\n\nReplaces the company name text in the top left corner of the Navbar and Footer components with the company logo.\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 \"$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 \"root\",\n \".glass-card\",\n \".text-balance\",\n \"h6\",\n \".section-padding\",\n \".transition-all-300\",\n \".staggered-animation\",\n \".dark\",\n \"base\",\n \"morph\",\n \".blob-animation\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Footer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Footer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"About\"\n ],\n \"keys\": null,\n \"path\": \"src/components/About.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Testimonials\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Testimonials.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"handleScroll\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Solution\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Solution.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Problem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Problem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Hero\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Hero.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 \"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 \"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 \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\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 \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.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/Footer.tsx\",\n \"src/components/Navbar.tsx\"\n ],\n \"created\": [\n \"public/lovable-uploads/ad53f089-5215-446d-9d3f-94f43dc48965.png\"\n ],\n \"deleted\": []\n}"
}
] |
super-devninja/React-Animation-3-20-2025
|
Fix heading flash on load
The headings were briefly visible before the animation started, causing a flash on page load. This commit addresses this issue.
|
{
"changed": [
"src/components/About.tsx",
"src/components/Hero.tsx",
"src/index.css"
],
"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": [
"$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",
"root",
".glass-card",
".text-balance",
"h6",
".section-padding",
".transition-all-300",
".staggered-animation",
".dark",
"base",
"morph",
".blob-animation"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.tsx",
"selectors": null
},
{
"functions": [
"Footer"
],
"keys": null,
"path": "src/components/Footer.tsx",
"selectors": null
},
{
"functions": [
"About"
],
"keys": null,
"path": "src/components/About.tsx",
"selectors": null
},
{
"functions": [
"Testimonials"
],
"keys": null,
"path": "src/components/Testimonials.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"handleScroll"
],
"keys": null,
"path": "src/components/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Solution"
],
"keys": null,
"path": "src/components/Solution.tsx",
"selectors": null
},
{
"functions": [
"Problem"
],
"keys": null,
"path": "src/components/Problem.tsx",
"selectors": null
},
{
"functions": [
"Hero"
],
"keys": null,
"path": "src/components/Hero.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": [
"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": [
"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": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"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": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
}
] | 7 |
[
{
"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 heading flash on load\n\nThe headings were briefly visible before the animation started, causing a flash on page load. This commit addresses this 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 \"$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 \"root\",\n \".glass-card\",\n \".text-balance\",\n \"h6\",\n \".section-padding\",\n \".transition-all-300\",\n \".staggered-animation\",\n \".dark\",\n \"base\",\n \"morph\",\n \".blob-animation\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Footer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Footer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"About\"\n ],\n \"keys\": null,\n \"path\": \"src/components/About.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Testimonials\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Testimonials.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"handleScroll\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Solution\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Solution.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Problem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Problem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Hero\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Hero.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 \"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 \"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 \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\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 \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.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/About.tsx\",\n \"src/components/Hero.tsx\",\n \"src/index.css\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
super-devninja/React-Animation-3-20-2025
|
Fix navigation links
The navigation links in the main menu were not working. This commit fixes the links so that they navigate to the correct sections.
|
{
"changed": [
"src/components/Navbar.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": [
"$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": [
".text-balance",
".transition-all-300",
".staggered-animation",
".animate-fadeIn",
"morph",
"slideUp",
".section-padding",
"h6",
"from",
"to",
"base",
".animate-slideUp",
"fadeIn",
"root",
".animate-slideDown",
".blob-animation",
"slideDown",
"body",
".glass-card",
".dark"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.tsx",
"selectors": null
},
{
"functions": [
"Footer"
],
"keys": null,
"path": "src/components/Footer.tsx",
"selectors": null
},
{
"functions": [
"About"
],
"keys": null,
"path": "src/components/About.tsx",
"selectors": null
},
{
"functions": [
"Testimonials"
],
"keys": null,
"path": "src/components/Testimonials.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"handleScroll"
],
"keys": null,
"path": "src/components/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Solution"
],
"keys": null,
"path": "src/components/Solution.tsx",
"selectors": null
},
{
"functions": [
"Problem"
],
"keys": null,
"path": "src/components/Problem.tsx",
"selectors": null
},
{
"functions": [
"Hero"
],
"keys": null,
"path": "src/components/Hero.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": [
"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": [
"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": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"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": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
}
] | 8 |
[
{
"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 navigation links\n\nThe navigation links in the main menu were not working. This commit fixes the links so that they navigate to the correct sections.\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 \"$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 \".text-balance\",\n \".transition-all-300\",\n \".staggered-animation\",\n \".animate-fadeIn\",\n \"morph\",\n \"slideUp\",\n \".section-padding\",\n \"h6\",\n \"from\",\n \"to\",\n \"base\",\n \".animate-slideUp\",\n \"fadeIn\",\n \"root\",\n \".animate-slideDown\",\n \".blob-animation\",\n \"slideDown\",\n \"body\",\n \".glass-card\",\n \".dark\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Footer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Footer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"About\"\n ],\n \"keys\": null,\n \"path\": \"src/components/About.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Testimonials\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Testimonials.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"handleScroll\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Solution\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Solution.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Problem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Problem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Hero\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Hero.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 \"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 \"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 \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\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 \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.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/Navbar.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
super-devninja/React-Animation-3-20-2025
|
Fix testimonial display issue
The testimonial information was flashing briefly and disappearing. This commit addresses this issue.
|
{
"changed": [
"src/components/Testimonials.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": [
"$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": [
".text-balance",
".transition-all-300",
".staggered-animation",
".animate-fadeIn",
"morph",
"slideUp",
".section-padding",
"h6",
"from",
"to",
"base",
".animate-slideUp",
"fadeIn",
"root",
".animate-slideDown",
".blob-animation",
"slideDown",
"body",
".glass-card",
".dark"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.tsx",
"selectors": null
},
{
"functions": [
"Footer"
],
"keys": null,
"path": "src/components/Footer.tsx",
"selectors": null
},
{
"functions": [
"About"
],
"keys": null,
"path": "src/components/About.tsx",
"selectors": null
},
{
"functions": [
"Testimonials"
],
"keys": null,
"path": "src/components/Testimonials.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"handleScroll"
],
"keys": null,
"path": "src/components/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Solution"
],
"keys": null,
"path": "src/components/Solution.tsx",
"selectors": null
},
{
"functions": [
"Problem"
],
"keys": null,
"path": "src/components/Problem.tsx",
"selectors": null
},
{
"functions": [
"Hero"
],
"keys": null,
"path": "src/components/Hero.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": [
"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": [
"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": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"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": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
}
] | 9 |
[
{
"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 testimonial display issue\n\nThe testimonial information was flashing briefly and disappearing. This commit addresses this 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 \"$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 \".text-balance\",\n \".transition-all-300\",\n \".staggered-animation\",\n \".animate-fadeIn\",\n \"morph\",\n \"slideUp\",\n \".section-padding\",\n \"h6\",\n \"from\",\n \"to\",\n \"base\",\n \".animate-slideUp\",\n \"fadeIn\",\n \"root\",\n \".animate-slideDown\",\n \".blob-animation\",\n \"slideDown\",\n \"body\",\n \".glass-card\",\n \".dark\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Footer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Footer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"About\"\n ],\n \"keys\": null,\n \"path\": \"src/components/About.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Testimonials\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Testimonials.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"handleScroll\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Solution\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Solution.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Problem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Problem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Hero\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Hero.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 \"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 \"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 \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\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 \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.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/Testimonials.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
super-devninja/React-Animation-3-20-2025
|
Fix team link and add team section
Add a team section with images and contact information.
Fixes the broken "Träffa teamet" link.
|
{
"changed": [
"src/components/About.tsx",
"src/pages/Index.tsx"
],
"created": [
"public/lovable-uploads/0ead8737-88fb-45b5-a4ae-0c9e5a59e631.png",
"public/lovable-uploads/2081093a-4927-4e9a-9252-7b28fa1fd344.png",
"public/lovable-uploads/3199ad2d-e11c-4cb8-b1d5-d8f9020a85f0.png",
"public/lovable-uploads/525d9606-48a8-45ab-8d10-93e0ecf71f35.png",
"public/lovable-uploads/588ac510-60be-4b70-8912-f16709ff14f4.png",
"public/lovable-uploads/8204bfcf-dbf1-4814-8874-d67846dab169.png",
"public/lovable-uploads/9f880c76-b64d-4a9f-b622-3833571fe410.png",
"public/lovable-uploads/a19275f8-e3e3-40f4-b0cf-bffa69626ee6.png",
"public/lovable-uploads/c2b1b111-9435-4485-9c87-ee15f502f753.png",
"public/lovable-uploads/cb138d87-62c0-4507-8143-4ff5270ebb31.png",
"public/lovable-uploads/d8bd5227-5ba9-4635-b6c1-3628ccd93c05.png",
"src/components/Team.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": [
"$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": [
".text-balance",
".transition-all-300",
".staggered-animation",
".animate-fadeIn",
"morph",
"slideUp",
".section-padding",
"h6",
"from",
"to",
"base",
".animate-slideUp",
"fadeIn",
"root",
".animate-slideDown",
".blob-animation",
"slideDown",
"body",
".glass-card",
".dark"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.tsx",
"selectors": null
},
{
"functions": [
"Footer"
],
"keys": null,
"path": "src/components/Footer.tsx",
"selectors": null
},
{
"functions": [
"About"
],
"keys": null,
"path": "src/components/About.tsx",
"selectors": null
},
{
"functions": [
"Testimonials"
],
"keys": null,
"path": "src/components/Testimonials.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"handleScroll"
],
"keys": null,
"path": "src/components/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Solution"
],
"keys": null,
"path": "src/components/Solution.tsx",
"selectors": null
},
{
"functions": [
"Problem"
],
"keys": null,
"path": "src/components/Problem.tsx",
"selectors": null
},
{
"functions": [
"Hero"
],
"keys": null,
"path": "src/components/Hero.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": [
"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": [
"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": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"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": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
}
] | 10 |
[
{
"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 team link and add team section\n\nAdd a team section with images and contact information.\nFixes the broken \"Träffa teamet\" link.\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 \"$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 \".text-balance\",\n \".transition-all-300\",\n \".staggered-animation\",\n \".animate-fadeIn\",\n \"morph\",\n \"slideUp\",\n \".section-padding\",\n \"h6\",\n \"from\",\n \"to\",\n \"base\",\n \".animate-slideUp\",\n \"fadeIn\",\n \"root\",\n \".animate-slideDown\",\n \".blob-animation\",\n \"slideDown\",\n \"body\",\n \".glass-card\",\n \".dark\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Footer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Footer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"About\"\n ],\n \"keys\": null,\n \"path\": \"src/components/About.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Testimonials\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Testimonials.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"handleScroll\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Solution\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Solution.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Problem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Problem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Hero\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Hero.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 \"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 \"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 \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\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 \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.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/About.tsx\",\n \"src/pages/Index.tsx\"\n ],\n \"created\": [\n \"public/lovable-uploads/0ead8737-88fb-45b5-a4ae-0c9e5a59e631.png\",\n \"public/lovable-uploads/2081093a-4927-4e9a-9252-7b28fa1fd344.png\",\n \"public/lovable-uploads/3199ad2d-e11c-4cb8-b1d5-d8f9020a85f0.png\",\n \"public/lovable-uploads/525d9606-48a8-45ab-8d10-93e0ecf71f35.png\",\n \"public/lovable-uploads/588ac510-60be-4b70-8912-f16709ff14f4.png\",\n \"public/lovable-uploads/8204bfcf-dbf1-4814-8874-d67846dab169.png\",\n \"public/lovable-uploads/9f880c76-b64d-4a9f-b622-3833571fe410.png\",\n \"public/lovable-uploads/a19275f8-e3e3-40f4-b0cf-bffa69626ee6.png\",\n \"public/lovable-uploads/c2b1b111-9435-4485-9c87-ee15f502f753.png\",\n \"public/lovable-uploads/cb138d87-62c0-4507-8143-4ff5270ebb31.png\",\n \"public/lovable-uploads/d8bd5227-5ba9-4635-b6c1-3628ccd93c05.png\",\n \"src/components/Team.tsx\"\n ],\n \"deleted\": []\n}"
}
] |
super-devninja/React-Animation-3-20-2025
|
Update Team.tsx
|
{
"changed": [
"src/components/Team.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": [
"$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": [
".text-balance",
".transition-all-300",
".staggered-animation",
".animate-fadeIn",
"morph",
"slideUp",
".section-padding",
"h6",
"from",
"to",
"base",
".animate-slideUp",
"fadeIn",
"root",
".animate-slideDown",
".blob-animation",
"slideDown",
"body",
".glass-card",
".dark"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.tsx",
"selectors": null
},
{
"functions": [
"Footer"
],
"keys": null,
"path": "src/components/Footer.tsx",
"selectors": null
},
{
"functions": [
"About",
"scrollToTeam"
],
"keys": null,
"path": "src/components/About.tsx",
"selectors": null
},
{
"functions": [
"Testimonials"
],
"keys": null,
"path": "src/components/Testimonials.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"handleScroll"
],
"keys": null,
"path": "src/components/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Solution"
],
"keys": null,
"path": "src/components/Solution.tsx",
"selectors": null
},
{
"functions": [
"Problem"
],
"keys": null,
"path": "src/components/Problem.tsx",
"selectors": null
},
{
"functions": [
"Hero"
],
"keys": null,
"path": "src/components/Hero.tsx",
"selectors": null
},
{
"functions": [
"Team"
],
"keys": null,
"path": "src/components/Team.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": [
"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": [
"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": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"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": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
}
] | 11 |
[
{
"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 Team.tsx\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 \"$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 \".text-balance\",\n \".transition-all-300\",\n \".staggered-animation\",\n \".animate-fadeIn\",\n \"morph\",\n \"slideUp\",\n \".section-padding\",\n \"h6\",\n \"from\",\n \"to\",\n \"base\",\n \".animate-slideUp\",\n \"fadeIn\",\n \"root\",\n \".animate-slideDown\",\n \".blob-animation\",\n \"slideDown\",\n \"body\",\n \".glass-card\",\n \".dark\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Footer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Footer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"About\",\n \"scrollToTeam\"\n ],\n \"keys\": null,\n \"path\": \"src/components/About.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Testimonials\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Testimonials.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"handleScroll\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Solution\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Solution.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Problem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Problem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Hero\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Hero.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Team\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Team.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 \"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 \"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 \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\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 \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.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/Team.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
super-devninja/React-Animation-3-20-2025
|
Update Solution.tsx
|
{
"changed": [
"src/components/Solution.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": [
"$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": [
".text-balance",
".transition-all-300",
".staggered-animation",
".animate-fadeIn",
"morph",
"slideUp",
".section-padding",
"h6",
"from",
"to",
"base",
".animate-slideUp",
"fadeIn",
"root",
".animate-slideDown",
".blob-animation",
"slideDown",
"body",
".glass-card",
".dark"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.tsx",
"selectors": null
},
{
"functions": [
"Footer"
],
"keys": null,
"path": "src/components/Footer.tsx",
"selectors": null
},
{
"functions": [
"About",
"scrollToTeam"
],
"keys": null,
"path": "src/components/About.tsx",
"selectors": null
},
{
"functions": [
"Testimonials"
],
"keys": null,
"path": "src/components/Testimonials.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"handleScroll"
],
"keys": null,
"path": "src/components/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Solution"
],
"keys": null,
"path": "src/components/Solution.tsx",
"selectors": null
},
{
"functions": [
"Problem"
],
"keys": null,
"path": "src/components/Problem.tsx",
"selectors": null
},
{
"functions": [
"Hero"
],
"keys": null,
"path": "src/components/Hero.tsx",
"selectors": null
},
{
"functions": [
"Team"
],
"keys": null,
"path": "src/components/Team.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": [
"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": [
"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": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"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": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
}
] | 12 |
[
{
"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 Solution.tsx\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 \"$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 \".text-balance\",\n \".transition-all-300\",\n \".staggered-animation\",\n \".animate-fadeIn\",\n \"morph\",\n \"slideUp\",\n \".section-padding\",\n \"h6\",\n \"from\",\n \"to\",\n \"base\",\n \".animate-slideUp\",\n \"fadeIn\",\n \"root\",\n \".animate-slideDown\",\n \".blob-animation\",\n \"slideDown\",\n \"body\",\n \".glass-card\",\n \".dark\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Footer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Footer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"About\",\n \"scrollToTeam\"\n ],\n \"keys\": null,\n \"path\": \"src/components/About.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Testimonials\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Testimonials.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"handleScroll\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Solution\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Solution.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Problem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Problem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Hero\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Hero.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Team\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Team.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 \"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 \"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 \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\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 \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.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/Solution.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
super-devninja/React-Animation-3-20-2025
|
Update Hero.tsx
|
{
"changed": [
"src/components/Hero.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": [
"$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": [
".text-balance",
".transition-all-300",
".staggered-animation",
".animate-fadeIn",
"morph",
"slideUp",
".section-padding",
"h6",
"from",
"to",
"base",
".animate-slideUp",
"fadeIn",
"root",
".animate-slideDown",
".blob-animation",
"slideDown",
"body",
".glass-card",
".dark"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.tsx",
"selectors": null
},
{
"functions": [
"Footer"
],
"keys": null,
"path": "src/components/Footer.tsx",
"selectors": null
},
{
"functions": [
"About",
"scrollToTeam"
],
"keys": null,
"path": "src/components/About.tsx",
"selectors": null
},
{
"functions": [
"Testimonials"
],
"keys": null,
"path": "src/components/Testimonials.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"handleScroll"
],
"keys": null,
"path": "src/components/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Solution"
],
"keys": null,
"path": "src/components/Solution.tsx",
"selectors": null
},
{
"functions": [
"Problem"
],
"keys": null,
"path": "src/components/Problem.tsx",
"selectors": null
},
{
"functions": [
"Hero"
],
"keys": null,
"path": "src/components/Hero.tsx",
"selectors": null
},
{
"functions": [
"Team"
],
"keys": null,
"path": "src/components/Team.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": [
"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": [
"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": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"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": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
}
] | 13 |
[
{
"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 Hero.tsx\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 \"$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 \".text-balance\",\n \".transition-all-300\",\n \".staggered-animation\",\n \".animate-fadeIn\",\n \"morph\",\n \"slideUp\",\n \".section-padding\",\n \"h6\",\n \"from\",\n \"to\",\n \"base\",\n \".animate-slideUp\",\n \"fadeIn\",\n \"root\",\n \".animate-slideDown\",\n \".blob-animation\",\n \"slideDown\",\n \"body\",\n \".glass-card\",\n \".dark\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Footer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Footer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"About\",\n \"scrollToTeam\"\n ],\n \"keys\": null,\n \"path\": \"src/components/About.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Testimonials\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Testimonials.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"handleScroll\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Solution\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Solution.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Problem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Problem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Hero\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Hero.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Team\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Team.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 \"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 \"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 \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\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 \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.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/Hero.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
super-devninja/React-Animation-3-20-2025
|
Update Hero.tsx
|
{
"changed": [
"src/components/Hero.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": [
"$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": [
".text-balance",
".transition-all-300",
".staggered-animation",
".animate-fadeIn",
"morph",
"slideUp",
".section-padding",
"h6",
"from",
"to",
"base",
".animate-slideUp",
"fadeIn",
"root",
".animate-slideDown",
".blob-animation",
"slideDown",
"body",
".glass-card",
".dark"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.tsx",
"selectors": null
},
{
"functions": [
"Footer"
],
"keys": null,
"path": "src/components/Footer.tsx",
"selectors": null
},
{
"functions": [
"About",
"scrollToTeam"
],
"keys": null,
"path": "src/components/About.tsx",
"selectors": null
},
{
"functions": [
"Testimonials"
],
"keys": null,
"path": "src/components/Testimonials.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"handleScroll"
],
"keys": null,
"path": "src/components/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Solution"
],
"keys": null,
"path": "src/components/Solution.tsx",
"selectors": null
},
{
"functions": [
"Problem"
],
"keys": null,
"path": "src/components/Problem.tsx",
"selectors": null
},
{
"functions": [
"Hero"
],
"keys": null,
"path": "src/components/Hero.tsx",
"selectors": null
},
{
"functions": [
"Team"
],
"keys": null,
"path": "src/components/Team.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": [
"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": [
"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": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"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": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
}
] | 14 |
[
{
"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 Hero.tsx\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 \"$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 \".text-balance\",\n \".transition-all-300\",\n \".staggered-animation\",\n \".animate-fadeIn\",\n \"morph\",\n \"slideUp\",\n \".section-padding\",\n \"h6\",\n \"from\",\n \"to\",\n \"base\",\n \".animate-slideUp\",\n \"fadeIn\",\n \"root\",\n \".animate-slideDown\",\n \".blob-animation\",\n \"slideDown\",\n \"body\",\n \".glass-card\",\n \".dark\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Footer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Footer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"About\",\n \"scrollToTeam\"\n ],\n \"keys\": null,\n \"path\": \"src/components/About.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Testimonials\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Testimonials.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"handleScroll\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Solution\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Solution.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Problem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Problem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Hero\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Hero.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Team\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Team.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 \"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 \"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 \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\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 \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.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/Hero.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
super-devninja/React-Animation-3-20-2025
|
Update Hero.tsx
|
{
"changed": [
"src/components/Hero.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": [
"$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": [
".text-balance",
".transition-all-300",
".staggered-animation",
".animate-fadeIn",
"morph",
"slideUp",
".section-padding",
"h6",
"from",
"to",
"base",
".animate-slideUp",
"fadeIn",
"root",
".animate-slideDown",
".blob-animation",
"slideDown",
"body",
".glass-card",
".dark"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.tsx",
"selectors": null
},
{
"functions": [
"Footer"
],
"keys": null,
"path": "src/components/Footer.tsx",
"selectors": null
},
{
"functions": [
"About",
"scrollToTeam"
],
"keys": null,
"path": "src/components/About.tsx",
"selectors": null
},
{
"functions": [
"Testimonials"
],
"keys": null,
"path": "src/components/Testimonials.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"handleScroll"
],
"keys": null,
"path": "src/components/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Solution"
],
"keys": null,
"path": "src/components/Solution.tsx",
"selectors": null
},
{
"functions": [
"Problem"
],
"keys": null,
"path": "src/components/Problem.tsx",
"selectors": null
},
{
"functions": [
"Hero"
],
"keys": null,
"path": "src/components/Hero.tsx",
"selectors": null
},
{
"functions": [
"Team"
],
"keys": null,
"path": "src/components/Team.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": [
"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": [
"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": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"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": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
}
] | 15 |
[
{
"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 Hero.tsx\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 \"$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 \".text-balance\",\n \".transition-all-300\",\n \".staggered-animation\",\n \".animate-fadeIn\",\n \"morph\",\n \"slideUp\",\n \".section-padding\",\n \"h6\",\n \"from\",\n \"to\",\n \"base\",\n \".animate-slideUp\",\n \"fadeIn\",\n \"root\",\n \".animate-slideDown\",\n \".blob-animation\",\n \"slideDown\",\n \"body\",\n \".glass-card\",\n \".dark\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Footer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Footer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"About\",\n \"scrollToTeam\"\n ],\n \"keys\": null,\n \"path\": \"src/components/About.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Testimonials\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Testimonials.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"handleScroll\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Solution\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Solution.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Problem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Problem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Hero\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Hero.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Team\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Team.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 \"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 \"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 \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\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 \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.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/Hero.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
super-devninja/React-Animation-3-20-2025
|
Fix broken link
The "Låt oss visa hur" button on the homepage was not working. This commit fixes the broken link.
|
{
"changed": [
"src/components/Hero.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": [
"$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": [
".text-balance",
".transition-all-300",
".staggered-animation",
".animate-fadeIn",
"morph",
"slideUp",
".section-padding",
"h6",
"from",
"to",
"base",
".animate-slideUp",
"fadeIn",
"root",
".animate-slideDown",
".blob-animation",
"slideDown",
"body",
".glass-card",
".dark"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.tsx",
"selectors": null
},
{
"functions": [
"Footer"
],
"keys": null,
"path": "src/components/Footer.tsx",
"selectors": null
},
{
"functions": [
"About",
"scrollToTeam"
],
"keys": null,
"path": "src/components/About.tsx",
"selectors": null
},
{
"functions": [
"Testimonials"
],
"keys": null,
"path": "src/components/Testimonials.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"handleScroll"
],
"keys": null,
"path": "src/components/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Solution"
],
"keys": null,
"path": "src/components/Solution.tsx",
"selectors": null
},
{
"functions": [
"Problem"
],
"keys": null,
"path": "src/components/Problem.tsx",
"selectors": null
},
{
"functions": [
"Hero"
],
"keys": null,
"path": "src/components/Hero.tsx",
"selectors": null
},
{
"functions": [
"Team"
],
"keys": null,
"path": "src/components/Team.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": [
"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": [
"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": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"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": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
}
] | 16 |
[
{
"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 broken link\n\nThe \"Låt oss visa hur\" button on the homepage was not working. This commit fixes the broken link.\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 \"$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 \".text-balance\",\n \".transition-all-300\",\n \".staggered-animation\",\n \".animate-fadeIn\",\n \"morph\",\n \"slideUp\",\n \".section-padding\",\n \"h6\",\n \"from\",\n \"to\",\n \"base\",\n \".animate-slideUp\",\n \"fadeIn\",\n \"root\",\n \".animate-slideDown\",\n \".blob-animation\",\n \"slideDown\",\n \"body\",\n \".glass-card\",\n \".dark\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Footer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Footer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"About\",\n \"scrollToTeam\"\n ],\n \"keys\": null,\n \"path\": \"src/components/About.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Testimonials\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Testimonials.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"handleScroll\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Solution\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Solution.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Problem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Problem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Hero\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Hero.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Team\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Team.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 \"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 \"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 \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\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 \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.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/Hero.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
super-devninja/React-Animation-3-20-2025
|
Change scroll target
Update the scroll target of a button to point to the "Solution" section.
|
{
"changed": [
"src/components/Hero.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": [
"$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": [
".text-balance",
".transition-all-300",
".staggered-animation",
".animate-fadeIn",
"morph",
"slideUp",
".section-padding",
"h6",
"from",
"to",
"base",
".animate-slideUp",
"fadeIn",
"root",
".animate-slideDown",
".blob-animation",
"slideDown",
"body",
".glass-card",
".dark"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.tsx",
"selectors": null
},
{
"functions": [
"Footer"
],
"keys": null,
"path": "src/components/Footer.tsx",
"selectors": null
},
{
"functions": [
"About",
"scrollToTeam"
],
"keys": null,
"path": "src/components/About.tsx",
"selectors": null
},
{
"functions": [
"Testimonials"
],
"keys": null,
"path": "src/components/Testimonials.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"handleScroll"
],
"keys": null,
"path": "src/components/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Solution"
],
"keys": null,
"path": "src/components/Solution.tsx",
"selectors": null
},
{
"functions": [
"Problem"
],
"keys": null,
"path": "src/components/Problem.tsx",
"selectors": null
},
{
"functions": [
"Hero"
],
"keys": null,
"path": "src/components/Hero.tsx",
"selectors": null
},
{
"functions": [
"Team"
],
"keys": null,
"path": "src/components/Team.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": [
"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": [
"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": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"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": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
}
] | 17 |
[
{
"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:**\nChange scroll target\n\nUpdate the scroll target of a button to point to the \"Solution\" 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 \"$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 \".text-balance\",\n \".transition-all-300\",\n \".staggered-animation\",\n \".animate-fadeIn\",\n \"morph\",\n \"slideUp\",\n \".section-padding\",\n \"h6\",\n \"from\",\n \"to\",\n \"base\",\n \".animate-slideUp\",\n \"fadeIn\",\n \"root\",\n \".animate-slideDown\",\n \".blob-animation\",\n \"slideDown\",\n \"body\",\n \".glass-card\",\n \".dark\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Footer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Footer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"About\",\n \"scrollToTeam\"\n ],\n \"keys\": null,\n \"path\": \"src/components/About.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Testimonials\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Testimonials.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"handleScroll\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Solution\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Solution.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Problem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Problem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Hero\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Hero.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Team\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Team.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 \"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 \"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 \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\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 \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.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/Hero.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
super-devninja/React-Animation-3-20-2025
|
Link to solution section
The "Läs mer om Collective Discovery™" button now links to the solution section.
|
{
"changed": [
"src/components/Solution.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": [
"$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": [
".text-balance",
".transition-all-300",
".staggered-animation",
".animate-fadeIn",
"morph",
"slideUp",
".section-padding",
"h6",
"from",
"to",
"base",
".animate-slideUp",
"fadeIn",
"root",
".animate-slideDown",
".blob-animation",
"slideDown",
"body",
".glass-card",
".dark"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.tsx",
"selectors": null
},
{
"functions": [
"Footer"
],
"keys": null,
"path": "src/components/Footer.tsx",
"selectors": null
},
{
"functions": [
"About",
"scrollToTeam"
],
"keys": null,
"path": "src/components/About.tsx",
"selectors": null
},
{
"functions": [
"Testimonials"
],
"keys": null,
"path": "src/components/Testimonials.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"handleScroll"
],
"keys": null,
"path": "src/components/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Solution"
],
"keys": null,
"path": "src/components/Solution.tsx",
"selectors": null
},
{
"functions": [
"Problem"
],
"keys": null,
"path": "src/components/Problem.tsx",
"selectors": null
},
{
"functions": [
"Hero"
],
"keys": null,
"path": "src/components/Hero.tsx",
"selectors": null
},
{
"functions": [
"Team"
],
"keys": null,
"path": "src/components/Team.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": [
"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": [
"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": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"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": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
}
] | 18 |
[
{
"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:**\nLink to solution section\n\nThe \"Läs mer om Collective Discovery™\" button now links to the solution 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 \"$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 \".text-balance\",\n \".transition-all-300\",\n \".staggered-animation\",\n \".animate-fadeIn\",\n \"morph\",\n \"slideUp\",\n \".section-padding\",\n \"h6\",\n \"from\",\n \"to\",\n \"base\",\n \".animate-slideUp\",\n \"fadeIn\",\n \"root\",\n \".animate-slideDown\",\n \".blob-animation\",\n \"slideDown\",\n \"body\",\n \".glass-card\",\n \".dark\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Footer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Footer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"About\",\n \"scrollToTeam\"\n ],\n \"keys\": null,\n \"path\": \"src/components/About.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Testimonials\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Testimonials.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"handleScroll\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Solution\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Solution.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Problem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Problem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Hero\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Hero.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Team\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Team.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 \"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 \"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 \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\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 \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.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/Solution.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
super-devninja/React-Animation-3-20-2025
|
Fix contact button navigation
The "Kontakta oss" button should navigate to the footer on the front page where the contact information is located.
|
{
"changed": [
"src/components/Footer.tsx",
"src/components/Navbar.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": [
"$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": [
".text-balance",
".transition-all-300",
".staggered-animation",
".animate-fadeIn",
"morph",
"slideUp",
".section-padding",
"h6",
"from",
"to",
"base",
".animate-slideUp",
"fadeIn",
"root",
".animate-slideDown",
".blob-animation",
"slideDown",
"body",
".glass-card",
".dark"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.tsx",
"selectors": null
},
{
"functions": [
"Footer"
],
"keys": null,
"path": "src/components/Footer.tsx",
"selectors": null
},
{
"functions": [
"About",
"scrollToTeam"
],
"keys": null,
"path": "src/components/About.tsx",
"selectors": null
},
{
"functions": [
"Testimonials"
],
"keys": null,
"path": "src/components/Testimonials.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"handleScroll"
],
"keys": null,
"path": "src/components/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Solution"
],
"keys": null,
"path": "src/components/Solution.tsx",
"selectors": null
},
{
"functions": [
"Problem"
],
"keys": null,
"path": "src/components/Problem.tsx",
"selectors": null
},
{
"functions": [
"Hero"
],
"keys": null,
"path": "src/components/Hero.tsx",
"selectors": null
},
{
"functions": [
"Team"
],
"keys": null,
"path": "src/components/Team.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": [
"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": [
"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": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"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": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
}
] | 19 |
[
{
"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 contact button navigation\n\nThe \"Kontakta oss\" button should navigate to the footer on the front page where the contact information is located.\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 \"$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 \".text-balance\",\n \".transition-all-300\",\n \".staggered-animation\",\n \".animate-fadeIn\",\n \"morph\",\n \"slideUp\",\n \".section-padding\",\n \"h6\",\n \"from\",\n \"to\",\n \"base\",\n \".animate-slideUp\",\n \"fadeIn\",\n \"root\",\n \".animate-slideDown\",\n \".blob-animation\",\n \"slideDown\",\n \"body\",\n \".glass-card\",\n \".dark\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Footer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Footer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"About\",\n \"scrollToTeam\"\n ],\n \"keys\": null,\n \"path\": \"src/components/About.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Testimonials\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Testimonials.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"handleScroll\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Solution\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Solution.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Problem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Problem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Hero\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Hero.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Team\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Team.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 \"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 \"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 \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\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 \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.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/Footer.tsx\",\n \"src/components/Navbar.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
super-devninja/React-Animation-3-20-2025
|
Navigate to contact information
Make all "Kontakta oss" buttons navigate to the footer.
|
{
"changed": [
"src/components/About.tsx",
"src/components/Testimonials.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": [
"$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": [
".text-balance",
".transition-all-300",
".staggered-animation",
".animate-fadeIn",
"morph",
"slideUp",
".section-padding",
"h6",
"from",
"to",
"base",
".animate-slideUp",
"fadeIn",
"root",
".animate-slideDown",
".blob-animation",
"slideDown",
"body",
".glass-card",
".dark"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.tsx",
"selectors": null
},
{
"functions": [
"Footer"
],
"keys": null,
"path": "src/components/Footer.tsx",
"selectors": null
},
{
"functions": [
"About",
"scrollToTeam"
],
"keys": null,
"path": "src/components/About.tsx",
"selectors": null
},
{
"functions": [
"Testimonials"
],
"keys": null,
"path": "src/components/Testimonials.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"handleScroll",
"if"
],
"keys": null,
"path": "src/components/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Solution"
],
"keys": null,
"path": "src/components/Solution.tsx",
"selectors": null
},
{
"functions": [
"Problem"
],
"keys": null,
"path": "src/components/Problem.tsx",
"selectors": null
},
{
"functions": [
"Hero"
],
"keys": null,
"path": "src/components/Hero.tsx",
"selectors": null
},
{
"functions": [
"Team"
],
"keys": null,
"path": "src/components/Team.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": [
"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": [
"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": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"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": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
}
] | 20 |
[
{
"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:**\nNavigate to contact information\n\nMake all \"Kontakta oss\" buttons navigate to the footer.\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 \"$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 \".text-balance\",\n \".transition-all-300\",\n \".staggered-animation\",\n \".animate-fadeIn\",\n \"morph\",\n \"slideUp\",\n \".section-padding\",\n \"h6\",\n \"from\",\n \"to\",\n \"base\",\n \".animate-slideUp\",\n \"fadeIn\",\n \"root\",\n \".animate-slideDown\",\n \".blob-animation\",\n \"slideDown\",\n \"body\",\n \".glass-card\",\n \".dark\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Footer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Footer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"About\",\n \"scrollToTeam\"\n ],\n \"keys\": null,\n \"path\": \"src/components/About.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Testimonials\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Testimonials.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"handleScroll\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Solution\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Solution.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Problem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Problem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Hero\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Hero.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Team\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Team.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 \"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 \"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 \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\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 \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.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/About.tsx\",\n \"src/components/Testimonials.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
super-devninja/React-Animation-3-20-2025
|
Update About.tsx
|
{
"changed": [
"src/components/About.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": [
"$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": [
".text-balance",
".transition-all-300",
".staggered-animation",
".animate-fadeIn",
"morph",
"slideUp",
".section-padding",
"h6",
"from",
"to",
"base",
".animate-slideUp",
"fadeIn",
"root",
".animate-slideDown",
".blob-animation",
"slideDown",
"body",
".glass-card",
".dark"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.tsx",
"selectors": null
},
{
"functions": [
"Footer"
],
"keys": null,
"path": "src/components/Footer.tsx",
"selectors": null
},
{
"functions": [
"About",
"scrollToTeam",
"scrollToFooter"
],
"keys": null,
"path": "src/components/About.tsx",
"selectors": null
},
{
"functions": [
"Testimonials",
"scrollToFooter"
],
"keys": null,
"path": "src/components/Testimonials.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"handleScroll",
"if"
],
"keys": null,
"path": "src/components/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Solution"
],
"keys": null,
"path": "src/components/Solution.tsx",
"selectors": null
},
{
"functions": [
"Problem"
],
"keys": null,
"path": "src/components/Problem.tsx",
"selectors": null
},
{
"functions": [
"Hero"
],
"keys": null,
"path": "src/components/Hero.tsx",
"selectors": null
},
{
"functions": [
"Team"
],
"keys": null,
"path": "src/components/Team.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": [
"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": [
"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": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"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": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
}
] | 21 |
[
{
"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 About.tsx\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 \"$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 \".text-balance\",\n \".transition-all-300\",\n \".staggered-animation\",\n \".animate-fadeIn\",\n \"morph\",\n \"slideUp\",\n \".section-padding\",\n \"h6\",\n \"from\",\n \"to\",\n \"base\",\n \".animate-slideUp\",\n \"fadeIn\",\n \"root\",\n \".animate-slideDown\",\n \".blob-animation\",\n \"slideDown\",\n \"body\",\n \".glass-card\",\n \".dark\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Footer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Footer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"About\",\n \"scrollToTeam\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/About.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Testimonials\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Testimonials.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"handleScroll\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Solution\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Solution.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Problem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Problem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Hero\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Hero.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Team\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Team.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 \"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 \"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 \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\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 \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.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/About.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
super-devninja/React-Animation-3-20-2025
|
Update About.tsx
|
{
"changed": [
"src/components/About.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": [
"$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": [
".text-balance",
".transition-all-300",
".staggered-animation",
".animate-fadeIn",
"morph",
"slideUp",
".section-padding",
"h6",
"from",
"to",
"base",
".animate-slideUp",
"fadeIn",
"root",
".animate-slideDown",
".blob-animation",
"slideDown",
"body",
".glass-card",
".dark"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.tsx",
"selectors": null
},
{
"functions": [
"Footer"
],
"keys": null,
"path": "src/components/Footer.tsx",
"selectors": null
},
{
"functions": [
"About",
"scrollToTeam",
"scrollToFooter"
],
"keys": null,
"path": "src/components/About.tsx",
"selectors": null
},
{
"functions": [
"Testimonials",
"scrollToFooter"
],
"keys": null,
"path": "src/components/Testimonials.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"handleScroll",
"if"
],
"keys": null,
"path": "src/components/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Solution"
],
"keys": null,
"path": "src/components/Solution.tsx",
"selectors": null
},
{
"functions": [
"Problem"
],
"keys": null,
"path": "src/components/Problem.tsx",
"selectors": null
},
{
"functions": [
"Hero"
],
"keys": null,
"path": "src/components/Hero.tsx",
"selectors": null
},
{
"functions": [
"Team"
],
"keys": null,
"path": "src/components/Team.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": [
"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": [
"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": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"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": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
}
] | 22 |
[
{
"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 About.tsx\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 \"$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 \".text-balance\",\n \".transition-all-300\",\n \".staggered-animation\",\n \".animate-fadeIn\",\n \"morph\",\n \"slideUp\",\n \".section-padding\",\n \"h6\",\n \"from\",\n \"to\",\n \"base\",\n \".animate-slideUp\",\n \"fadeIn\",\n \"root\",\n \".animate-slideDown\",\n \".blob-animation\",\n \"slideDown\",\n \"body\",\n \".glass-card\",\n \".dark\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Footer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Footer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"About\",\n \"scrollToTeam\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/About.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Testimonials\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Testimonials.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"handleScroll\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Solution\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Solution.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Problem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Problem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Hero\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Hero.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Team\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Team.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 \"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 \"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 \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\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 \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.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/About.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
super-devninja/React-Animation-3-20-2025
|
Fix footer navigation links
Update the footer links to point to the correct sections on the page.
|
{
"changed": [
"src/components/Footer.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": [
"$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": [
".text-balance",
".transition-all-300",
".staggered-animation",
".animate-fadeIn",
"morph",
"slideUp",
".section-padding",
"h6",
"from",
"to",
"base",
".animate-slideUp",
"fadeIn",
"root",
".animate-slideDown",
".blob-animation",
"slideDown",
"body",
".glass-card",
".dark"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.tsx",
"selectors": null
},
{
"functions": [
"Footer"
],
"keys": null,
"path": "src/components/Footer.tsx",
"selectors": null
},
{
"functions": [
"About",
"scrollToTeam",
"scrollToFooter"
],
"keys": null,
"path": "src/components/About.tsx",
"selectors": null
},
{
"functions": [
"Testimonials",
"scrollToFooter"
],
"keys": null,
"path": "src/components/Testimonials.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"handleScroll",
"if"
],
"keys": null,
"path": "src/components/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Solution"
],
"keys": null,
"path": "src/components/Solution.tsx",
"selectors": null
},
{
"functions": [
"Problem"
],
"keys": null,
"path": "src/components/Problem.tsx",
"selectors": null
},
{
"functions": [
"Hero"
],
"keys": null,
"path": "src/components/Hero.tsx",
"selectors": null
},
{
"functions": [
"Team"
],
"keys": null,
"path": "src/components/Team.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": [
"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": [
"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": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"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": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
}
] | 23 |
[
{
"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 footer navigation links\n\nUpdate the footer links to point to the correct sections on the 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 \"$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 \".text-balance\",\n \".transition-all-300\",\n \".staggered-animation\",\n \".animate-fadeIn\",\n \"morph\",\n \"slideUp\",\n \".section-padding\",\n \"h6\",\n \"from\",\n \"to\",\n \"base\",\n \".animate-slideUp\",\n \"fadeIn\",\n \"root\",\n \".animate-slideDown\",\n \".blob-animation\",\n \"slideDown\",\n \"body\",\n \".glass-card\",\n \".dark\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Footer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Footer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"About\",\n \"scrollToTeam\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/About.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Testimonials\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Testimonials.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"handleScroll\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Solution\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Solution.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Problem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Problem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Hero\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Hero.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Team\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Team.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 \"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 \"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 \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\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 \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.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/Footer.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
super-devninja/React-Animation-3-20-2025
|
Remove phone number from footer
Removes the phone number from the footer component.
|
{
"changed": [
"src/components/Footer.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": [
"$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": [
".text-balance",
".transition-all-300",
".staggered-animation",
".animate-fadeIn",
"morph",
"slideUp",
".section-padding",
"h6",
"from",
"to",
"base",
".animate-slideUp",
"fadeIn",
"root",
".animate-slideDown",
".blob-animation",
"slideDown",
"body",
".glass-card",
".dark"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.tsx",
"selectors": null
},
{
"functions": [
"Footer",
"scrollToSection"
],
"keys": null,
"path": "src/components/Footer.tsx",
"selectors": null
},
{
"functions": [
"About",
"scrollToTeam",
"scrollToFooter"
],
"keys": null,
"path": "src/components/About.tsx",
"selectors": null
},
{
"functions": [
"Testimonials",
"scrollToFooter"
],
"keys": null,
"path": "src/components/Testimonials.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"handleScroll",
"if"
],
"keys": null,
"path": "src/components/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Solution"
],
"keys": null,
"path": "src/components/Solution.tsx",
"selectors": null
},
{
"functions": [
"Problem"
],
"keys": null,
"path": "src/components/Problem.tsx",
"selectors": null
},
{
"functions": [
"Hero"
],
"keys": null,
"path": "src/components/Hero.tsx",
"selectors": null
},
{
"functions": [
"Team"
],
"keys": null,
"path": "src/components/Team.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": [
"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": [
"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": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"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": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
}
] | 24 |
[
{
"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 phone number from footer\n\nRemoves the phone number from the footer 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 \"$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 \".text-balance\",\n \".transition-all-300\",\n \".staggered-animation\",\n \".animate-fadeIn\",\n \"morph\",\n \"slideUp\",\n \".section-padding\",\n \"h6\",\n \"from\",\n \"to\",\n \"base\",\n \".animate-slideUp\",\n \"fadeIn\",\n \"root\",\n \".animate-slideDown\",\n \".blob-animation\",\n \"slideDown\",\n \"body\",\n \".glass-card\",\n \".dark\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Footer\",\n \"scrollToSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Footer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"About\",\n \"scrollToTeam\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/About.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Testimonials\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Testimonials.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"handleScroll\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Solution\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Solution.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Problem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Problem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Hero\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Hero.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Team\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Team.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 \"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 \"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 \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\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 \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.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/Footer.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
super-devninja/React-Animation-3-20-2025
|
Add language toggle button
Adds a button to allow users to change the language of the website.
|
{
"changed": [
"src/App.tsx",
"src/components/Footer.tsx",
"src/components/Hero.tsx",
"src/components/Navbar.tsx"
],
"created": [
"src/contexts/LanguageContext.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": [
"$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": [
".text-balance",
".transition-all-300",
".staggered-animation",
".animate-fadeIn",
"morph",
"slideUp",
".section-padding",
"h6",
"from",
"to",
"base",
".animate-slideUp",
"fadeIn",
"root",
".animate-slideDown",
".blob-animation",
"slideDown",
"body",
".glass-card",
".dark"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.tsx",
"selectors": null
},
{
"functions": [
"Footer",
"scrollToSection"
],
"keys": null,
"path": "src/components/Footer.tsx",
"selectors": null
},
{
"functions": [
"About",
"scrollToTeam",
"scrollToFooter"
],
"keys": null,
"path": "src/components/About.tsx",
"selectors": null
},
{
"functions": [
"Testimonials",
"scrollToFooter"
],
"keys": null,
"path": "src/components/Testimonials.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"handleScroll",
"if"
],
"keys": null,
"path": "src/components/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Solution"
],
"keys": null,
"path": "src/components/Solution.tsx",
"selectors": null
},
{
"functions": [
"Problem"
],
"keys": null,
"path": "src/components/Problem.tsx",
"selectors": null
},
{
"functions": [
"Hero"
],
"keys": null,
"path": "src/components/Hero.tsx",
"selectors": null
},
{
"functions": [
"Team"
],
"keys": null,
"path": "src/components/Team.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": [
"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": [
"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": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"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": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
}
] | 25 |
[
{
"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 language toggle button\n\nAdds a button to allow users to change the language of the website.\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 \"$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 \".text-balance\",\n \".transition-all-300\",\n \".staggered-animation\",\n \".animate-fadeIn\",\n \"morph\",\n \"slideUp\",\n \".section-padding\",\n \"h6\",\n \"from\",\n \"to\",\n \"base\",\n \".animate-slideUp\",\n \"fadeIn\",\n \"root\",\n \".animate-slideDown\",\n \".blob-animation\",\n \"slideDown\",\n \"body\",\n \".glass-card\",\n \".dark\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Footer\",\n \"scrollToSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Footer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"About\",\n \"scrollToTeam\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/About.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Testimonials\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Testimonials.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"handleScroll\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Solution\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Solution.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Problem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Problem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Hero\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Hero.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Team\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Team.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 \"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 \"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 \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\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 \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.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/Footer.tsx\",\n \"src/components/Hero.tsx\",\n \"src/components/Navbar.tsx\"\n ],\n \"created\": [\n \"src/contexts/LanguageContext.tsx\"\n ],\n \"deleted\": []\n}"
}
] |
super-devninja/React-Animation-3-20-2025
|
Update translations for English
Adds missing English translations to the LanguageContext to support full language switching.
|
{
"changed": [
"src/components/About.tsx",
"src/components/Problem.tsx",
"src/components/Solution.tsx",
"src/components/Team.tsx",
"src/components/Testimonials.tsx",
"src/contexts/LanguageContext.tsx",
"src/pages/NotFound.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": [
"$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": [
".text-balance",
".transition-all-300",
".staggered-animation",
".animate-fadeIn",
"morph",
"slideUp",
".section-padding",
"h6",
"from",
"to",
"base",
".animate-slideUp",
"fadeIn",
"root",
".animate-slideDown",
".blob-animation",
"slideDown",
"body",
".glass-card",
".dark"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.tsx",
"selectors": null
},
{
"functions": [
"t",
"useLanguage"
],
"keys": null,
"path": "src/contexts/LanguageContext.tsx",
"selectors": null
},
{
"functions": [
"Footer",
"scrollToSection"
],
"keys": null,
"path": "src/components/Footer.tsx",
"selectors": null
},
{
"functions": [
"About",
"scrollToTeam",
"scrollToFooter"
],
"keys": null,
"path": "src/components/About.tsx",
"selectors": null
},
{
"functions": [
"Testimonials",
"scrollToFooter"
],
"keys": null,
"path": "src/components/Testimonials.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"handleScroll",
"if"
],
"keys": null,
"path": "src/components/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Solution"
],
"keys": null,
"path": "src/components/Solution.tsx",
"selectors": null
},
{
"functions": [
"Problem"
],
"keys": null,
"path": "src/components/Problem.tsx",
"selectors": null
},
{
"functions": [
"Hero"
],
"keys": null,
"path": "src/components/Hero.tsx",
"selectors": null
},
{
"functions": [
"Team"
],
"keys": null,
"path": "src/components/Team.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": [
"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": [
"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": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"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": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
}
] | 26 |
[
{
"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 translations for English\n\nAdds missing English translations to the LanguageContext to support full language switching.\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 \"$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 \".text-balance\",\n \".transition-all-300\",\n \".staggered-animation\",\n \".animate-fadeIn\",\n \"morph\",\n \"slideUp\",\n \".section-padding\",\n \"h6\",\n \"from\",\n \"to\",\n \"base\",\n \".animate-slideUp\",\n \"fadeIn\",\n \"root\",\n \".animate-slideDown\",\n \".blob-animation\",\n \"slideDown\",\n \"body\",\n \".glass-card\",\n \".dark\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"t\",\n \"useLanguage\"\n ],\n \"keys\": null,\n \"path\": \"src/contexts/LanguageContext.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Footer\",\n \"scrollToSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Footer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"About\",\n \"scrollToTeam\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/About.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Testimonials\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Testimonials.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"handleScroll\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Solution\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Solution.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Problem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Problem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Hero\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Hero.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Team\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Team.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 \"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 \"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 \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\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 \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.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/About.tsx\",\n \"src/components/Problem.tsx\",\n \"src/components/Solution.tsx\",\n \"src/components/Team.tsx\",\n \"src/components/Testimonials.tsx\",\n \"src/contexts/LanguageContext.tsx\",\n \"src/pages/NotFound.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
super-devninja/React-Animation-3-20-2025
|
Fix text alignment
Corrected the alignment of specific text on the page.
|
{
"changed": [
"src/components/Problem.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": [
"$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": [
".text-balance",
".transition-all-300",
".staggered-animation",
".animate-fadeIn",
"morph",
"slideUp",
".section-padding",
"h6",
"from",
"to",
"base",
".animate-slideUp",
"fadeIn",
"root",
".animate-slideDown",
".blob-animation",
"slideDown",
"body",
".glass-card",
".dark"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.tsx",
"selectors": null
},
{
"functions": [
"t",
"useLanguage"
],
"keys": null,
"path": "src/contexts/LanguageContext.tsx",
"selectors": null
},
{
"functions": [
"Footer",
"scrollToSection"
],
"keys": null,
"path": "src/components/Footer.tsx",
"selectors": null
},
{
"functions": [
"About",
"scrollToTeam",
"scrollToFooter"
],
"keys": null,
"path": "src/components/About.tsx",
"selectors": null
},
{
"functions": [
"Testimonials",
"scrollToFooter"
],
"keys": null,
"path": "src/components/Testimonials.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"handleScroll",
"if"
],
"keys": null,
"path": "src/components/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Solution"
],
"keys": null,
"path": "src/components/Solution.tsx",
"selectors": null
},
{
"functions": [
"Problem"
],
"keys": null,
"path": "src/components/Problem.tsx",
"selectors": null
},
{
"functions": [
"Hero"
],
"keys": null,
"path": "src/components/Hero.tsx",
"selectors": null
},
{
"functions": [
"Team"
],
"keys": null,
"path": "src/components/Team.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": [
"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": [
"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": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"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": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
}
] | 27 |
[
{
"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 text alignment\n\nCorrected the alignment of specific text on the 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 \"$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 \".text-balance\",\n \".transition-all-300\",\n \".staggered-animation\",\n \".animate-fadeIn\",\n \"morph\",\n \"slideUp\",\n \".section-padding\",\n \"h6\",\n \"from\",\n \"to\",\n \"base\",\n \".animate-slideUp\",\n \"fadeIn\",\n \"root\",\n \".animate-slideDown\",\n \".blob-animation\",\n \"slideDown\",\n \"body\",\n \".glass-card\",\n \".dark\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"t\",\n \"useLanguage\"\n ],\n \"keys\": null,\n \"path\": \"src/contexts/LanguageContext.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Footer\",\n \"scrollToSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Footer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"About\",\n \"scrollToTeam\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/About.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Testimonials\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Testimonials.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"handleScroll\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Solution\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Solution.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Problem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Problem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Hero\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Hero.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Team\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Team.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 \"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 \"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 \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\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 \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.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/Problem.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
super-devninja/React-Animation-3-20-2025
|
Add scroll functionality to arrow
The decorative arrows at the bottom of the hero section now scroll the page down when clicked.
|
{
"changed": [
"src/components/Hero.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": [
"$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": [
".text-balance",
".transition-all-300",
".staggered-animation",
".animate-fadeIn",
"morph",
"slideUp",
".section-padding",
"h6",
"from",
"to",
"base",
".animate-slideUp",
"fadeIn",
"root",
".animate-slideDown",
".blob-animation",
"slideDown",
"body",
".glass-card",
".dark"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.tsx",
"selectors": null
},
{
"functions": [
"t",
"useLanguage"
],
"keys": null,
"path": "src/contexts/LanguageContext.tsx",
"selectors": null
},
{
"functions": [
"Footer",
"scrollToSection"
],
"keys": null,
"path": "src/components/Footer.tsx",
"selectors": null
},
{
"functions": [
"About",
"scrollToTeam",
"scrollToFooter"
],
"keys": null,
"path": "src/components/About.tsx",
"selectors": null
},
{
"functions": [
"Testimonials",
"scrollToFooter"
],
"keys": null,
"path": "src/components/Testimonials.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"handleScroll",
"if"
],
"keys": null,
"path": "src/components/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Solution"
],
"keys": null,
"path": "src/components/Solution.tsx",
"selectors": null
},
{
"functions": [
"Problem"
],
"keys": null,
"path": "src/components/Problem.tsx",
"selectors": null
},
{
"functions": [
"Hero"
],
"keys": null,
"path": "src/components/Hero.tsx",
"selectors": null
},
{
"functions": [
"Team"
],
"keys": null,
"path": "src/components/Team.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": [
"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": [
"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": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"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": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
}
] | 28 |
[
{
"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 scroll functionality to arrow\n\nThe decorative arrows at the bottom of the hero section now scroll the page down when clicked.\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 \"$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 \".text-balance\",\n \".transition-all-300\",\n \".staggered-animation\",\n \".animate-fadeIn\",\n \"morph\",\n \"slideUp\",\n \".section-padding\",\n \"h6\",\n \"from\",\n \"to\",\n \"base\",\n \".animate-slideUp\",\n \"fadeIn\",\n \"root\",\n \".animate-slideDown\",\n \".blob-animation\",\n \"slideDown\",\n \"body\",\n \".glass-card\",\n \".dark\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"t\",\n \"useLanguage\"\n ],\n \"keys\": null,\n \"path\": \"src/contexts/LanguageContext.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Footer\",\n \"scrollToSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Footer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"About\",\n \"scrollToTeam\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/About.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Testimonials\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Testimonials.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"handleScroll\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Solution\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Solution.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Problem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Problem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Hero\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Hero.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Team\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Team.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 \"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 \"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 \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\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 \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.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/Hero.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
super-devninja/React-Animation-3-20-2025
|
Add customer logos
Add customer logos to the page.
|
{
"changed": [
"src/components/Hero.tsx",
"src/pages/Index.tsx"
],
"created": [
"public/lovable-uploads/61cc5198-a056-4906-982f-7adced307ecc.png",
"public/lovable-uploads/6be99017-d91b-4680-b6f0-1a44c64a3c2f.png",
"public/lovable-uploads/8b8eb8db-666a-4422-80c3-cc836255d351.png",
"public/lovable-uploads/91b347e0-3c41-4c66-a07e-2e64626c7acd.png",
"public/lovable-uploads/ab251c0b-42a6-438e-82ba-f6bffe4ba399.png",
"public/lovable-uploads/ac300bce-d177-4aec-81e5-59239c50f487.png",
"public/lovable-uploads/bc1e7297-775e-429f-abb2-7b387bf74e40.png",
"src/components/ClientLogos.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": [
"$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": [
".text-balance",
".transition-all-300",
".staggered-animation",
".animate-fadeIn",
"morph",
"slideUp",
".section-padding",
"h6",
"from",
"to",
"base",
".animate-slideUp",
"fadeIn",
"root",
".animate-slideDown",
".blob-animation",
"slideDown",
"body",
".glass-card",
".dark"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.tsx",
"selectors": null
},
{
"functions": [
"t",
"useLanguage"
],
"keys": null,
"path": "src/contexts/LanguageContext.tsx",
"selectors": null
},
{
"functions": [
"Footer",
"scrollToSection"
],
"keys": null,
"path": "src/components/Footer.tsx",
"selectors": null
},
{
"functions": [
"About",
"scrollToTeam",
"scrollToFooter"
],
"keys": null,
"path": "src/components/About.tsx",
"selectors": null
},
{
"functions": [
"Testimonials",
"scrollToFooter"
],
"keys": null,
"path": "src/components/Testimonials.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"handleScroll",
"if"
],
"keys": null,
"path": "src/components/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Solution"
],
"keys": null,
"path": "src/components/Solution.tsx",
"selectors": null
},
{
"functions": [
"Problem"
],
"keys": null,
"path": "src/components/Problem.tsx",
"selectors": null
},
{
"functions": [
"Hero",
"scrollToNext"
],
"keys": null,
"path": "src/components/Hero.tsx",
"selectors": null
},
{
"functions": [
"Team"
],
"keys": null,
"path": "src/components/Team.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": [
"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": [
"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": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"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": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
}
] | 29 |
[
{
"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 customer logos\n\nAdd customer logos to the 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 \"$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 \".text-balance\",\n \".transition-all-300\",\n \".staggered-animation\",\n \".animate-fadeIn\",\n \"morph\",\n \"slideUp\",\n \".section-padding\",\n \"h6\",\n \"from\",\n \"to\",\n \"base\",\n \".animate-slideUp\",\n \"fadeIn\",\n \"root\",\n \".animate-slideDown\",\n \".blob-animation\",\n \"slideDown\",\n \"body\",\n \".glass-card\",\n \".dark\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"t\",\n \"useLanguage\"\n ],\n \"keys\": null,\n \"path\": \"src/contexts/LanguageContext.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Footer\",\n \"scrollToSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Footer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"About\",\n \"scrollToTeam\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/About.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Testimonials\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Testimonials.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"handleScroll\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Solution\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Solution.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Problem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Problem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Hero\",\n \"scrollToNext\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Hero.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Team\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Team.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 \"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 \"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 \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\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 \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.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/Hero.tsx\",\n \"src/pages/Index.tsx\"\n ],\n \"created\": [\n \"public/lovable-uploads/61cc5198-a056-4906-982f-7adced307ecc.png\",\n \"public/lovable-uploads/6be99017-d91b-4680-b6f0-1a44c64a3c2f.png\",\n \"public/lovable-uploads/8b8eb8db-666a-4422-80c3-cc836255d351.png\",\n \"public/lovable-uploads/91b347e0-3c41-4c66-a07e-2e64626c7acd.png\",\n \"public/lovable-uploads/ab251c0b-42a6-438e-82ba-f6bffe4ba399.png\",\n \"public/lovable-uploads/ac300bce-d177-4aec-81e5-59239c50f487.png\",\n \"public/lovable-uploads/bc1e7297-775e-429f-abb2-7b387bf74e40.png\",\n \"src/components/ClientLogos.tsx\"\n ],\n \"deleted\": []\n}"
}
] |
super-devninja/React-Animation-3-20-2025
|
Update client logos
Update the client logos, keeping Investor, SAS, NCC, Skellefteå, and Nobia, and removing the other two.
|
{
"changed": [
"src/components/ClientLogos.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": [
"$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": [
".text-balance",
".transition-all-300",
".staggered-animation",
".animate-fadeIn",
"morph",
"slideUp",
".section-padding",
"h6",
"from",
"to",
"base",
".animate-slideUp",
"fadeIn",
"root",
".animate-slideDown",
".blob-animation",
"slideDown",
"body",
".glass-card",
".dark"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.tsx",
"selectors": null
},
{
"functions": [
"t",
"useLanguage"
],
"keys": null,
"path": "src/contexts/LanguageContext.tsx",
"selectors": null
},
{
"functions": [
"Footer",
"scrollToSection"
],
"keys": null,
"path": "src/components/Footer.tsx",
"selectors": null
},
{
"functions": [
"About",
"scrollToTeam",
"scrollToFooter"
],
"keys": null,
"path": "src/components/About.tsx",
"selectors": null
},
{
"functions": [
"ClientLogos"
],
"keys": null,
"path": "src/components/ClientLogos.tsx",
"selectors": null
},
{
"functions": [
"Testimonials",
"scrollToFooter"
],
"keys": null,
"path": "src/components/Testimonials.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"handleScroll",
"if"
],
"keys": null,
"path": "src/components/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Solution"
],
"keys": null,
"path": "src/components/Solution.tsx",
"selectors": null
},
{
"functions": [
"Problem"
],
"keys": null,
"path": "src/components/Problem.tsx",
"selectors": null
},
{
"functions": [
"Hero",
"scrollToNext"
],
"keys": null,
"path": "src/components/Hero.tsx",
"selectors": null
},
{
"functions": [
"Team"
],
"keys": null,
"path": "src/components/Team.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": [
"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": [
"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": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"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": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
}
] | 30 |
[
{
"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 client logos\n\nUpdate the client logos, keeping Investor, SAS, NCC, Skellefteå, and Nobia, and removing the other two.\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 \"$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 \".text-balance\",\n \".transition-all-300\",\n \".staggered-animation\",\n \".animate-fadeIn\",\n \"morph\",\n \"slideUp\",\n \".section-padding\",\n \"h6\",\n \"from\",\n \"to\",\n \"base\",\n \".animate-slideUp\",\n \"fadeIn\",\n \"root\",\n \".animate-slideDown\",\n \".blob-animation\",\n \"slideDown\",\n \"body\",\n \".glass-card\",\n \".dark\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"t\",\n \"useLanguage\"\n ],\n \"keys\": null,\n \"path\": \"src/contexts/LanguageContext.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Footer\",\n \"scrollToSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Footer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"About\",\n \"scrollToTeam\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/About.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ClientLogos\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ClientLogos.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Testimonials\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Testimonials.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"handleScroll\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Solution\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Solution.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Problem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Problem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Hero\",\n \"scrollToNext\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Hero.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Team\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Team.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 \"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 \"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 \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\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 \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.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/ClientLogos.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
super-devninja/React-Animation-3-20-2025
|
Remove client logos titles
Removes the title and subtitle above the client logos.
|
{
"changed": [
"src/components/ClientLogos.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": [
"$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": [
".text-balance",
".transition-all-300",
".staggered-animation",
".animate-fadeIn",
"morph",
"slideUp",
".section-padding",
"h6",
"from",
"to",
"base",
".animate-slideUp",
"fadeIn",
"root",
".animate-slideDown",
".blob-animation",
"slideDown",
"body",
".glass-card",
".dark"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.tsx",
"selectors": null
},
{
"functions": [
"t",
"useLanguage"
],
"keys": null,
"path": "src/contexts/LanguageContext.tsx",
"selectors": null
},
{
"functions": [
"Footer",
"scrollToSection"
],
"keys": null,
"path": "src/components/Footer.tsx",
"selectors": null
},
{
"functions": [
"About",
"scrollToTeam",
"scrollToFooter"
],
"keys": null,
"path": "src/components/About.tsx",
"selectors": null
},
{
"functions": [
"ClientLogos"
],
"keys": null,
"path": "src/components/ClientLogos.tsx",
"selectors": null
},
{
"functions": [
"Testimonials",
"scrollToFooter"
],
"keys": null,
"path": "src/components/Testimonials.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"handleScroll",
"if"
],
"keys": null,
"path": "src/components/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Solution"
],
"keys": null,
"path": "src/components/Solution.tsx",
"selectors": null
},
{
"functions": [
"Problem"
],
"keys": null,
"path": "src/components/Problem.tsx",
"selectors": null
},
{
"functions": [
"Hero",
"scrollToNext"
],
"keys": null,
"path": "src/components/Hero.tsx",
"selectors": null
},
{
"functions": [
"Team"
],
"keys": null,
"path": "src/components/Team.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": [
"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": [
"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": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"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": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
}
] | 31 |
[
{
"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 client logos titles\n\nRemoves the title and subtitle above the client logos.\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 \"$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 \".text-balance\",\n \".transition-all-300\",\n \".staggered-animation\",\n \".animate-fadeIn\",\n \"morph\",\n \"slideUp\",\n \".section-padding\",\n \"h6\",\n \"from\",\n \"to\",\n \"base\",\n \".animate-slideUp\",\n \"fadeIn\",\n \"root\",\n \".animate-slideDown\",\n \".blob-animation\",\n \"slideDown\",\n \"body\",\n \".glass-card\",\n \".dark\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"t\",\n \"useLanguage\"\n ],\n \"keys\": null,\n \"path\": \"src/contexts/LanguageContext.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Footer\",\n \"scrollToSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Footer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"About\",\n \"scrollToTeam\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/About.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ClientLogos\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ClientLogos.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Testimonials\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Testimonials.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"handleScroll\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Solution\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Solution.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Problem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Problem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Hero\",\n \"scrollToNext\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Hero.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Team\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Team.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 \"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 \"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 \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\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 \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.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/ClientLogos.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
super-devninja/React-Animation-3-20-2025
|
Fix alignment issue
Fixes an alignment issue with bullet points and text in a specific section.
|
{
"changed": [
"src/components/Problem.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": [
"$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": [
".text-balance",
".transition-all-300",
".staggered-animation",
".animate-fadeIn",
"morph",
"slideUp",
".section-padding",
"h6",
"from",
"to",
"base",
".animate-slideUp",
"fadeIn",
"root",
".animate-slideDown",
".blob-animation",
"slideDown",
"body",
".glass-card",
".dark"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.tsx",
"selectors": null
},
{
"functions": [
"t",
"useLanguage"
],
"keys": null,
"path": "src/contexts/LanguageContext.tsx",
"selectors": null
},
{
"functions": [
"Footer",
"scrollToSection"
],
"keys": null,
"path": "src/components/Footer.tsx",
"selectors": null
},
{
"functions": [
"About",
"scrollToTeam",
"scrollToFooter"
],
"keys": null,
"path": "src/components/About.tsx",
"selectors": null
},
{
"functions": [
"ClientLogos"
],
"keys": null,
"path": "src/components/ClientLogos.tsx",
"selectors": null
},
{
"functions": [
"Testimonials",
"scrollToFooter"
],
"keys": null,
"path": "src/components/Testimonials.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"handleScroll",
"if"
],
"keys": null,
"path": "src/components/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Solution"
],
"keys": null,
"path": "src/components/Solution.tsx",
"selectors": null
},
{
"functions": [
"Problem"
],
"keys": null,
"path": "src/components/Problem.tsx",
"selectors": null
},
{
"functions": [
"Hero",
"scrollToNext"
],
"keys": null,
"path": "src/components/Hero.tsx",
"selectors": null
},
{
"functions": [
"Team"
],
"keys": null,
"path": "src/components/Team.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": [
"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": [
"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": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"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": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
}
] | 32 |
[
{
"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 alignment issue\n\nFixes an alignment issue with bullet points and text in a specific 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 \"$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 \".text-balance\",\n \".transition-all-300\",\n \".staggered-animation\",\n \".animate-fadeIn\",\n \"morph\",\n \"slideUp\",\n \".section-padding\",\n \"h6\",\n \"from\",\n \"to\",\n \"base\",\n \".animate-slideUp\",\n \"fadeIn\",\n \"root\",\n \".animate-slideDown\",\n \".blob-animation\",\n \"slideDown\",\n \"body\",\n \".glass-card\",\n \".dark\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"t\",\n \"useLanguage\"\n ],\n \"keys\": null,\n \"path\": \"src/contexts/LanguageContext.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Footer\",\n \"scrollToSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Footer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"About\",\n \"scrollToTeam\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/About.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ClientLogos\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ClientLogos.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Testimonials\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Testimonials.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"handleScroll\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Solution\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Solution.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Problem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Problem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Hero\",\n \"scrollToNext\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Hero.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Team\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Team.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 \"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 \"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 \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\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 \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.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/Problem.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
super-devninja/React-Animation-3-20-2025
|
Reverted to edit edt-526d9bfa-eca4-4e06-a679-a0cba227da2c: "Remove client logos titles
Removes the title and subtitle above the client logos."
|
{
"changed": [
"src/components/Problem.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": [
"$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": [
".text-balance",
".transition-all-300",
".staggered-animation",
".animate-fadeIn",
"morph",
"slideUp",
".section-padding",
"h6",
"from",
"to",
"base",
".animate-slideUp",
"fadeIn",
"root",
".animate-slideDown",
".blob-animation",
"slideDown",
"body",
".glass-card",
".dark"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.tsx",
"selectors": null
},
{
"functions": [
"t",
"useLanguage"
],
"keys": null,
"path": "src/contexts/LanguageContext.tsx",
"selectors": null
},
{
"functions": [
"Footer",
"scrollToSection"
],
"keys": null,
"path": "src/components/Footer.tsx",
"selectors": null
},
{
"functions": [
"About",
"scrollToTeam",
"scrollToFooter"
],
"keys": null,
"path": "src/components/About.tsx",
"selectors": null
},
{
"functions": [
"ClientLogos"
],
"keys": null,
"path": "src/components/ClientLogos.tsx",
"selectors": null
},
{
"functions": [
"Testimonials",
"scrollToFooter"
],
"keys": null,
"path": "src/components/Testimonials.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"handleScroll",
"if"
],
"keys": null,
"path": "src/components/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Solution"
],
"keys": null,
"path": "src/components/Solution.tsx",
"selectors": null
},
{
"functions": [
"Problem"
],
"keys": null,
"path": "src/components/Problem.tsx",
"selectors": null
},
{
"functions": [
"Hero",
"scrollToNext"
],
"keys": null,
"path": "src/components/Hero.tsx",
"selectors": null
},
{
"functions": [
"Team"
],
"keys": null,
"path": "src/components/Team.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": [
"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": [
"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": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"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": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
}
] | 33 |
[
{
"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-526d9bfa-eca4-4e06-a679-a0cba227da2c: \"Remove client logos titles\n\nRemoves the title and subtitle above the client logos.\"\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 \"$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 \".text-balance\",\n \".transition-all-300\",\n \".staggered-animation\",\n \".animate-fadeIn\",\n \"morph\",\n \"slideUp\",\n \".section-padding\",\n \"h6\",\n \"from\",\n \"to\",\n \"base\",\n \".animate-slideUp\",\n \"fadeIn\",\n \"root\",\n \".animate-slideDown\",\n \".blob-animation\",\n \"slideDown\",\n \"body\",\n \".glass-card\",\n \".dark\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"t\",\n \"useLanguage\"\n ],\n \"keys\": null,\n \"path\": \"src/contexts/LanguageContext.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Footer\",\n \"scrollToSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Footer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"About\",\n \"scrollToTeam\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/About.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ClientLogos\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ClientLogos.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Testimonials\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Testimonials.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"handleScroll\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Solution\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Solution.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Problem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Problem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Hero\",\n \"scrollToNext\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Hero.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Team\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Team.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 \"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 \"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 \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\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 \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.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/Problem.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
super-devninja/React-Animation-3-20-2025
|
Fix flickering animation issue
Addresses an issue where animations caused flickering during page load.
|
{
"changed": [
"src/components/Problem.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": [
"$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": [
".text-balance",
".transition-all-300",
".staggered-animation",
".animate-fadeIn",
"morph",
"slideUp",
".section-padding",
"h6",
"from",
"to",
"base",
".animate-slideUp",
"fadeIn",
"root",
".animate-slideDown",
".blob-animation",
"slideDown",
"body",
".glass-card",
".dark"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.tsx",
"selectors": null
},
{
"functions": [
"t",
"useLanguage"
],
"keys": null,
"path": "src/contexts/LanguageContext.tsx",
"selectors": null
},
{
"functions": [
"Footer",
"scrollToSection"
],
"keys": null,
"path": "src/components/Footer.tsx",
"selectors": null
},
{
"functions": [
"About",
"scrollToTeam",
"scrollToFooter"
],
"keys": null,
"path": "src/components/About.tsx",
"selectors": null
},
{
"functions": [
"ClientLogos"
],
"keys": null,
"path": "src/components/ClientLogos.tsx",
"selectors": null
},
{
"functions": [
"Testimonials",
"scrollToFooter"
],
"keys": null,
"path": "src/components/Testimonials.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"handleScroll",
"if"
],
"keys": null,
"path": "src/components/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Solution"
],
"keys": null,
"path": "src/components/Solution.tsx",
"selectors": null
},
{
"functions": [
"Problem"
],
"keys": null,
"path": "src/components/Problem.tsx",
"selectors": null
},
{
"functions": [
"Hero",
"scrollToNext"
],
"keys": null,
"path": "src/components/Hero.tsx",
"selectors": null
},
{
"functions": [
"Team"
],
"keys": null,
"path": "src/components/Team.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": [
"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": [
"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": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"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": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
}
] | 34 |
[
{
"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 flickering animation issue\n\nAddresses an issue where animations caused flickering during page load.\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 \"$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 \".text-balance\",\n \".transition-all-300\",\n \".staggered-animation\",\n \".animate-fadeIn\",\n \"morph\",\n \"slideUp\",\n \".section-padding\",\n \"h6\",\n \"from\",\n \"to\",\n \"base\",\n \".animate-slideUp\",\n \"fadeIn\",\n \"root\",\n \".animate-slideDown\",\n \".blob-animation\",\n \"slideDown\",\n \"body\",\n \".glass-card\",\n \".dark\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"t\",\n \"useLanguage\"\n ],\n \"keys\": null,\n \"path\": \"src/contexts/LanguageContext.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Footer\",\n \"scrollToSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Footer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"About\",\n \"scrollToTeam\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/About.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ClientLogos\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ClientLogos.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Testimonials\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Testimonials.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"handleScroll\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Solution\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Solution.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Problem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Problem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Hero\",\n \"scrollToNext\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Hero.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Team\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Team.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 \"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 \"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 \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\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 \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.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/Problem.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
super-devninja/React-Animation-3-20-2025
|
Make team member images grayscale
The team member images were a mix of color and grayscale. This commit ensures all team member images are displayed in grayscale.
|
{
"changed": [
"src/components/Team.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": [
"$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": [
".text-balance",
".transition-all-300",
".staggered-animation",
".animate-fadeIn",
"morph",
"slideUp",
".section-padding",
"h6",
"from",
"to",
"base",
".animate-slideUp",
"fadeIn",
"root",
".animate-slideDown",
".blob-animation",
"slideDown",
"body",
".glass-card",
".dark"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.tsx",
"selectors": null
},
{
"functions": [
"t",
"useLanguage"
],
"keys": null,
"path": "src/contexts/LanguageContext.tsx",
"selectors": null
},
{
"functions": [
"Footer",
"scrollToSection"
],
"keys": null,
"path": "src/components/Footer.tsx",
"selectors": null
},
{
"functions": [
"About",
"scrollToTeam",
"scrollToFooter"
],
"keys": null,
"path": "src/components/About.tsx",
"selectors": null
},
{
"functions": [
"ClientLogos"
],
"keys": null,
"path": "src/components/ClientLogos.tsx",
"selectors": null
},
{
"functions": [
"Testimonials",
"scrollToFooter"
],
"keys": null,
"path": "src/components/Testimonials.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"handleScroll",
"if"
],
"keys": null,
"path": "src/components/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Solution"
],
"keys": null,
"path": "src/components/Solution.tsx",
"selectors": null
},
{
"functions": [
"Problem"
],
"keys": null,
"path": "src/components/Problem.tsx",
"selectors": null
},
{
"functions": [
"Hero",
"scrollToNext"
],
"keys": null,
"path": "src/components/Hero.tsx",
"selectors": null
},
{
"functions": [
"Team"
],
"keys": null,
"path": "src/components/Team.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": [
"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": [
"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": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"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": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
}
] | 35 |
[
{
"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 team member images grayscale\n\nThe team member images were a mix of color and grayscale. This commit ensures all team member images are displayed in grayscale.\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 \"$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 \".text-balance\",\n \".transition-all-300\",\n \".staggered-animation\",\n \".animate-fadeIn\",\n \"morph\",\n \"slideUp\",\n \".section-padding\",\n \"h6\",\n \"from\",\n \"to\",\n \"base\",\n \".animate-slideUp\",\n \"fadeIn\",\n \"root\",\n \".animate-slideDown\",\n \".blob-animation\",\n \"slideDown\",\n \"body\",\n \".glass-card\",\n \".dark\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"t\",\n \"useLanguage\"\n ],\n \"keys\": null,\n \"path\": \"src/contexts/LanguageContext.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Footer\",\n \"scrollToSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Footer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"About\",\n \"scrollToTeam\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/About.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ClientLogos\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ClientLogos.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Testimonials\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Testimonials.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"handleScroll\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Solution\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Solution.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Problem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Problem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Hero\",\n \"scrollToNext\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Hero.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Team\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Team.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 \"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 \"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 \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\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 \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.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/Team.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
super-devninja/React-Animation-3-20-2025
|
Add Canucci information section
Adds a new section to provide information about Canucci and include a chat field.
|
{
"changed": [
"src/pages/Index.tsx"
],
"created": [
"src/components/ChatGPT.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": [
"$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": [
".text-balance",
".transition-all-300",
".staggered-animation",
".animate-fadeIn",
"morph",
"slideUp",
".section-padding",
"h6",
"from",
"to",
"base",
".animate-slideUp",
"fadeIn",
"root",
".animate-slideDown",
".blob-animation",
"slideDown",
"body",
".glass-card",
".dark"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.tsx",
"selectors": null
},
{
"functions": [
"t",
"useLanguage"
],
"keys": null,
"path": "src/contexts/LanguageContext.tsx",
"selectors": null
},
{
"functions": [
"Footer",
"scrollToSection"
],
"keys": null,
"path": "src/components/Footer.tsx",
"selectors": null
},
{
"functions": [
"About",
"scrollToTeam",
"scrollToFooter"
],
"keys": null,
"path": "src/components/About.tsx",
"selectors": null
},
{
"functions": [
"ClientLogos"
],
"keys": null,
"path": "src/components/ClientLogos.tsx",
"selectors": null
},
{
"functions": [
"Testimonials",
"scrollToFooter"
],
"keys": null,
"path": "src/components/Testimonials.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"handleScroll",
"if"
],
"keys": null,
"path": "src/components/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Solution"
],
"keys": null,
"path": "src/components/Solution.tsx",
"selectors": null
},
{
"functions": [
"Problem"
],
"keys": null,
"path": "src/components/Problem.tsx",
"selectors": null
},
{
"functions": [
"Hero",
"scrollToNext"
],
"keys": null,
"path": "src/components/Hero.tsx",
"selectors": null
},
{
"functions": [
"Team"
],
"keys": null,
"path": "src/components/Team.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": [
"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": [
"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": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"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": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
}
] | 36 |
[
{
"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 Canucci information section\n\nAdds a new section to provide information about Canucci and include a chat field.\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 \"$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 \".text-balance\",\n \".transition-all-300\",\n \".staggered-animation\",\n \".animate-fadeIn\",\n \"morph\",\n \"slideUp\",\n \".section-padding\",\n \"h6\",\n \"from\",\n \"to\",\n \"base\",\n \".animate-slideUp\",\n \"fadeIn\",\n \"root\",\n \".animate-slideDown\",\n \".blob-animation\",\n \"slideDown\",\n \"body\",\n \".glass-card\",\n \".dark\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"t\",\n \"useLanguage\"\n ],\n \"keys\": null,\n \"path\": \"src/contexts/LanguageContext.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Footer\",\n \"scrollToSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Footer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"About\",\n \"scrollToTeam\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/About.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ClientLogos\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ClientLogos.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Testimonials\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Testimonials.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"handleScroll\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Solution\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Solution.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Problem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Problem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Hero\",\n \"scrollToNext\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Hero.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Team\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Team.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 \"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 \"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 \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\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 \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.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/Index.tsx\"\n ],\n \"created\": [\n \"src/components/ChatGPT.tsx\"\n ],\n \"deleted\": []\n}"
}
] |
super-devninja/React-Animation-3-20-2025
|
Retry previous change
The previous code change did not work, retrying.
|
{
"changed": [
"src/components/ChatGPT.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": [
"$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": [
".text-balance",
".transition-all-300",
".staggered-animation",
".animate-fadeIn",
"morph",
"slideUp",
".section-padding",
"h6",
"from",
"to",
"base",
".animate-slideUp",
"fadeIn",
"root",
".animate-slideDown",
".blob-animation",
"slideDown",
"body",
".glass-card",
".dark"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.tsx",
"selectors": null
},
{
"functions": [
"t",
"useLanguage"
],
"keys": null,
"path": "src/contexts/LanguageContext.tsx",
"selectors": null
},
{
"functions": [
"Footer",
"scrollToSection"
],
"keys": null,
"path": "src/components/Footer.tsx",
"selectors": null
},
{
"functions": [
"About",
"scrollToTeam",
"scrollToFooter"
],
"keys": null,
"path": "src/components/About.tsx",
"selectors": null
},
{
"functions": [
"ClientLogos"
],
"keys": null,
"path": "src/components/ClientLogos.tsx",
"selectors": null
},
{
"functions": [
"Testimonials",
"scrollToFooter"
],
"keys": null,
"path": "src/components/Testimonials.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"handleScroll",
"if"
],
"keys": null,
"path": "src/components/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Solution"
],
"keys": null,
"path": "src/components/Solution.tsx",
"selectors": null
},
{
"functions": [
"Problem"
],
"keys": null,
"path": "src/components/Problem.tsx",
"selectors": null
},
{
"functions": [
"Hero",
"scrollToNext"
],
"keys": null,
"path": "src/components/Hero.tsx",
"selectors": null
},
{
"functions": [
"Team"
],
"keys": null,
"path": "src/components/Team.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": [
"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": [
"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": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"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": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
},
{
"functions": [
"ChatGPT"
],
"keys": null,
"path": "src/components/ChatGPT.tsx",
"selectors": null
}
] | 37 |
[
{
"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:**\nRetry previous change\n\nThe previous code change did not work, retrying.\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 \"$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 \".text-balance\",\n \".transition-all-300\",\n \".staggered-animation\",\n \".animate-fadeIn\",\n \"morph\",\n \"slideUp\",\n \".section-padding\",\n \"h6\",\n \"from\",\n \"to\",\n \"base\",\n \".animate-slideUp\",\n \"fadeIn\",\n \"root\",\n \".animate-slideDown\",\n \".blob-animation\",\n \"slideDown\",\n \"body\",\n \".glass-card\",\n \".dark\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"t\",\n \"useLanguage\"\n ],\n \"keys\": null,\n \"path\": \"src/contexts/LanguageContext.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Footer\",\n \"scrollToSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Footer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"About\",\n \"scrollToTeam\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/About.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ClientLogos\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ClientLogos.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Testimonials\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Testimonials.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"handleScroll\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Solution\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Solution.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Problem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Problem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Hero\",\n \"scrollToNext\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Hero.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Team\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Team.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 \"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 \"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 \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\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 \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ChatGPT\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ChatGPT.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/ChatGPT.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
super-devninja/React-Animation-3-20-2025
|
Remove animations
Removes animations from the components.
|
{
"changed": [
"src/components/ChatGPT.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": [
"$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": [
".text-balance",
".transition-all-300",
".staggered-animation",
".animate-fadeIn",
"morph",
"slideUp",
".section-padding",
"h6",
"from",
"to",
"base",
".animate-slideUp",
"fadeIn",
"root",
".animate-slideDown",
".blob-animation",
"slideDown",
"body",
".glass-card",
".dark"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.tsx",
"selectors": null
},
{
"functions": [
"t",
"useLanguage"
],
"keys": null,
"path": "src/contexts/LanguageContext.tsx",
"selectors": null
},
{
"functions": [
"Footer",
"scrollToSection"
],
"keys": null,
"path": "src/components/Footer.tsx",
"selectors": null
},
{
"functions": [
"About",
"scrollToTeam",
"scrollToFooter"
],
"keys": null,
"path": "src/components/About.tsx",
"selectors": null
},
{
"functions": [
"ClientLogos"
],
"keys": null,
"path": "src/components/ClientLogos.tsx",
"selectors": null
},
{
"functions": [
"Testimonials",
"scrollToFooter"
],
"keys": null,
"path": "src/components/Testimonials.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"handleScroll",
"if"
],
"keys": null,
"path": "src/components/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Solution"
],
"keys": null,
"path": "src/components/Solution.tsx",
"selectors": null
},
{
"functions": [
"Problem"
],
"keys": null,
"path": "src/components/Problem.tsx",
"selectors": null
},
{
"functions": [
"Hero",
"scrollToNext"
],
"keys": null,
"path": "src/components/Hero.tsx",
"selectors": null
},
{
"functions": [
"Team"
],
"keys": null,
"path": "src/components/Team.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": [
"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": [
"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": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"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": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
},
{
"functions": [
"ChatGPT"
],
"keys": null,
"path": "src/components/ChatGPT.tsx",
"selectors": null
}
] | 38 |
[
{
"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 animations\n\nRemoves animations from the components.\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 \"$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 \".text-balance\",\n \".transition-all-300\",\n \".staggered-animation\",\n \".animate-fadeIn\",\n \"morph\",\n \"slideUp\",\n \".section-padding\",\n \"h6\",\n \"from\",\n \"to\",\n \"base\",\n \".animate-slideUp\",\n \"fadeIn\",\n \"root\",\n \".animate-slideDown\",\n \".blob-animation\",\n \"slideDown\",\n \"body\",\n \".glass-card\",\n \".dark\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"t\",\n \"useLanguage\"\n ],\n \"keys\": null,\n \"path\": \"src/contexts/LanguageContext.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Footer\",\n \"scrollToSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Footer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"About\",\n \"scrollToTeam\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/About.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ClientLogos\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ClientLogos.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Testimonials\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Testimonials.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"handleScroll\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Solution\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Solution.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Problem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Problem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Hero\",\n \"scrollToNext\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Hero.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Team\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Team.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 \"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 \"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 \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\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 \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ChatGPT\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ChatGPT.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/ChatGPT.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
super-devninja/React-Animation-3-20-2025
|
Reverted to edit edt-09929989-babe-43d2-a6cb-bb9119da0cf3: "Make team member images grayscale
The team member images were a mix of color and grayscale. This commit ensures all team member images are displayed in grayscale."
|
{
"changed": [
"src/pages/Index.tsx"
],
"created": [],
"deleted": [
"src/components/ChatGPT.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": [
"$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": [
".text-balance",
".transition-all-300",
".staggered-animation",
".animate-fadeIn",
"morph",
"slideUp",
".section-padding",
"h6",
"from",
"to",
"base",
".animate-slideUp",
"fadeIn",
"root",
".animate-slideDown",
".blob-animation",
"slideDown",
"body",
".glass-card",
".dark"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.tsx",
"selectors": null
},
{
"functions": [
"t",
"useLanguage"
],
"keys": null,
"path": "src/contexts/LanguageContext.tsx",
"selectors": null
},
{
"functions": [
"Footer",
"scrollToSection"
],
"keys": null,
"path": "src/components/Footer.tsx",
"selectors": null
},
{
"functions": [
"About",
"scrollToTeam",
"scrollToFooter"
],
"keys": null,
"path": "src/components/About.tsx",
"selectors": null
},
{
"functions": [
"ClientLogos"
],
"keys": null,
"path": "src/components/ClientLogos.tsx",
"selectors": null
},
{
"functions": [
"Testimonials",
"scrollToFooter"
],
"keys": null,
"path": "src/components/Testimonials.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"handleScroll",
"if"
],
"keys": null,
"path": "src/components/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Solution"
],
"keys": null,
"path": "src/components/Solution.tsx",
"selectors": null
},
{
"functions": [
"Problem"
],
"keys": null,
"path": "src/components/Problem.tsx",
"selectors": null
},
{
"functions": [
"Hero",
"scrollToNext"
],
"keys": null,
"path": "src/components/Hero.tsx",
"selectors": null
},
{
"functions": [
"Team"
],
"keys": null,
"path": "src/components/Team.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": [
"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": [
"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": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"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": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
},
{
"functions": [
"ChatGPT"
],
"keys": null,
"path": "src/components/ChatGPT.tsx",
"selectors": null
}
] | 39 |
[
{
"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-09929989-babe-43d2-a6cb-bb9119da0cf3: \"Make team member images grayscale\n\nThe team member images were a mix of color and grayscale. This commit ensures all team member images are displayed in grayscale.\"\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 \"$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 \".text-balance\",\n \".transition-all-300\",\n \".staggered-animation\",\n \".animate-fadeIn\",\n \"morph\",\n \"slideUp\",\n \".section-padding\",\n \"h6\",\n \"from\",\n \"to\",\n \"base\",\n \".animate-slideUp\",\n \"fadeIn\",\n \"root\",\n \".animate-slideDown\",\n \".blob-animation\",\n \"slideDown\",\n \"body\",\n \".glass-card\",\n \".dark\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"t\",\n \"useLanguage\"\n ],\n \"keys\": null,\n \"path\": \"src/contexts/LanguageContext.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Footer\",\n \"scrollToSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Footer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"About\",\n \"scrollToTeam\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/About.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ClientLogos\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ClientLogos.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Testimonials\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Testimonials.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"handleScroll\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Solution\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Solution.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Problem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Problem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Hero\",\n \"scrollToNext\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Hero.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Team\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Team.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 \"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 \"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 \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\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 \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ChatGPT\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ChatGPT.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/Index.tsx\"\n ],\n \"created\": [],\n \"deleted\": [\n \"src/components/ChatGPT.tsx\"\n ]\n}"
}
] |
super-devninja/React-Animation-3-20-2025
|
Update document title
Updates the document title in index.html.
|
{
"changed": [
"index.html"
],
"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": [
"$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": [
".text-balance",
".transition-all-300",
".staggered-animation",
".animate-fadeIn",
"morph",
"slideUp",
".section-padding",
"h6",
"from",
"to",
"base",
".animate-slideUp",
"fadeIn",
"root",
".animate-slideDown",
".blob-animation",
"slideDown",
"body",
".glass-card",
".dark"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.tsx",
"selectors": null
},
{
"functions": [
"t",
"useLanguage"
],
"keys": null,
"path": "src/contexts/LanguageContext.tsx",
"selectors": null
},
{
"functions": [
"Footer",
"scrollToSection"
],
"keys": null,
"path": "src/components/Footer.tsx",
"selectors": null
},
{
"functions": [
"About",
"scrollToTeam",
"scrollToFooter"
],
"keys": null,
"path": "src/components/About.tsx",
"selectors": null
},
{
"functions": [
"ClientLogos"
],
"keys": null,
"path": "src/components/ClientLogos.tsx",
"selectors": null
},
{
"functions": [
"Testimonials",
"scrollToFooter"
],
"keys": null,
"path": "src/components/Testimonials.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"handleScroll",
"if"
],
"keys": null,
"path": "src/components/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Solution"
],
"keys": null,
"path": "src/components/Solution.tsx",
"selectors": null
},
{
"functions": [
"Problem"
],
"keys": null,
"path": "src/components/Problem.tsx",
"selectors": null
},
{
"functions": [
"Hero",
"scrollToNext"
],
"keys": null,
"path": "src/components/Hero.tsx",
"selectors": null
},
{
"functions": [
"Team"
],
"keys": null,
"path": "src/components/Team.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": [
"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": [
"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": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"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": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
}
] | 40 |
[
{
"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 document title\n\nUpdates the document title in index.html.\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 \"$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 \".text-balance\",\n \".transition-all-300\",\n \".staggered-animation\",\n \".animate-fadeIn\",\n \"morph\",\n \"slideUp\",\n \".section-padding\",\n \"h6\",\n \"from\",\n \"to\",\n \"base\",\n \".animate-slideUp\",\n \"fadeIn\",\n \"root\",\n \".animate-slideDown\",\n \".blob-animation\",\n \"slideDown\",\n \"body\",\n \".glass-card\",\n \".dark\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"t\",\n \"useLanguage\"\n ],\n \"keys\": null,\n \"path\": \"src/contexts/LanguageContext.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Footer\",\n \"scrollToSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Footer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"About\",\n \"scrollToTeam\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/About.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ClientLogos\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ClientLogos.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Testimonials\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Testimonials.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"handleScroll\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Solution\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Solution.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Problem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Problem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Hero\",\n \"scrollToNext\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Hero.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Team\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Team.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 \"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 \"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 \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\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 \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.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 \"index.html\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
super-devninja/React-Animation-3-20-2025
|
Update logo
Replaced the existing logo with a new one.
</prompt>
|
{
"changed": [
"src/components/Footer.tsx",
"src/components/Navbar.tsx"
],
"created": [
"public/lovable-uploads/82acb93d-c744-47e0-97f5-5b8b492e7ccf.png"
],
"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": [
"$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": [
".text-balance",
".transition-all-300",
".staggered-animation",
".animate-fadeIn",
"morph",
"slideUp",
".section-padding",
"h6",
"from",
"to",
"base",
".animate-slideUp",
"fadeIn",
"root",
".animate-slideDown",
".blob-animation",
"slideDown",
"body",
".glass-card",
".dark"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.tsx",
"selectors": null
},
{
"functions": [
"t",
"useLanguage"
],
"keys": null,
"path": "src/contexts/LanguageContext.tsx",
"selectors": null
},
{
"functions": [
"Footer",
"scrollToSection"
],
"keys": null,
"path": "src/components/Footer.tsx",
"selectors": null
},
{
"functions": [
"About",
"scrollToTeam",
"scrollToFooter"
],
"keys": null,
"path": "src/components/About.tsx",
"selectors": null
},
{
"functions": [
"ClientLogos"
],
"keys": null,
"path": "src/components/ClientLogos.tsx",
"selectors": null
},
{
"functions": [
"Testimonials",
"scrollToFooter"
],
"keys": null,
"path": "src/components/Testimonials.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"handleScroll",
"if"
],
"keys": null,
"path": "src/components/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Solution"
],
"keys": null,
"path": "src/components/Solution.tsx",
"selectors": null
},
{
"functions": [
"Problem"
],
"keys": null,
"path": "src/components/Problem.tsx",
"selectors": null
},
{
"functions": [
"Hero",
"scrollToNext"
],
"keys": null,
"path": "src/components/Hero.tsx",
"selectors": null
},
{
"functions": [
"Team"
],
"keys": null,
"path": "src/components/Team.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": [
"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": [
"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": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"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": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
}
] | 41 |
[
{
"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 logo\n\nReplaced the existing logo with a new one.\n</prompt>\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 \"$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 \".text-balance\",\n \".transition-all-300\",\n \".staggered-animation\",\n \".animate-fadeIn\",\n \"morph\",\n \"slideUp\",\n \".section-padding\",\n \"h6\",\n \"from\",\n \"to\",\n \"base\",\n \".animate-slideUp\",\n \"fadeIn\",\n \"root\",\n \".animate-slideDown\",\n \".blob-animation\",\n \"slideDown\",\n \"body\",\n \".glass-card\",\n \".dark\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"t\",\n \"useLanguage\"\n ],\n \"keys\": null,\n \"path\": \"src/contexts/LanguageContext.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Footer\",\n \"scrollToSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Footer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"About\",\n \"scrollToTeam\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/About.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ClientLogos\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ClientLogos.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Testimonials\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Testimonials.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"handleScroll\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Solution\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Solution.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Problem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Problem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Hero\",\n \"scrollToNext\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Hero.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Team\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Team.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 \"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 \"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 \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\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 \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.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/Footer.tsx\",\n \"src/components/Navbar.tsx\"\n ],\n \"created\": [\n \"public/lovable-uploads/82acb93d-c744-47e0-97f5-5b8b492e7ccf.png\"\n ],\n \"deleted\": []\n}"
}
] |
super-devninja/React-Animation-3-20-2025
|
Reduce image size
The image is too large, reducing it to half its original size.
|
{
"changed": [
"src/components/Footer.tsx",
"src/components/Navbar.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": [
"$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": [
".text-balance",
".transition-all-300",
".staggered-animation",
".animate-fadeIn",
"morph",
"slideUp",
".section-padding",
"h6",
"from",
"to",
"base",
".animate-slideUp",
"fadeIn",
"root",
".animate-slideDown",
".blob-animation",
"slideDown",
"body",
".glass-card",
".dark"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.tsx",
"selectors": null
},
{
"functions": [
"t",
"useLanguage"
],
"keys": null,
"path": "src/contexts/LanguageContext.tsx",
"selectors": null
},
{
"functions": [
"Footer",
"scrollToSection"
],
"keys": null,
"path": "src/components/Footer.tsx",
"selectors": null
},
{
"functions": [
"About",
"scrollToTeam",
"scrollToFooter"
],
"keys": null,
"path": "src/components/About.tsx",
"selectors": null
},
{
"functions": [
"ClientLogos"
],
"keys": null,
"path": "src/components/ClientLogos.tsx",
"selectors": null
},
{
"functions": [
"Testimonials",
"scrollToFooter"
],
"keys": null,
"path": "src/components/Testimonials.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"handleScroll",
"if"
],
"keys": null,
"path": "src/components/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Solution"
],
"keys": null,
"path": "src/components/Solution.tsx",
"selectors": null
},
{
"functions": [
"Problem"
],
"keys": null,
"path": "src/components/Problem.tsx",
"selectors": null
},
{
"functions": [
"Hero",
"scrollToNext"
],
"keys": null,
"path": "src/components/Hero.tsx",
"selectors": null
},
{
"functions": [
"Team"
],
"keys": null,
"path": "src/components/Team.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": [
"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": [
"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": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"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": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
}
] | 42 |
[
{
"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:**\nReduce image size\n\nThe image is too large, reducing it to half its original size.\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 \"$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 \".text-balance\",\n \".transition-all-300\",\n \".staggered-animation\",\n \".animate-fadeIn\",\n \"morph\",\n \"slideUp\",\n \".section-padding\",\n \"h6\",\n \"from\",\n \"to\",\n \"base\",\n \".animate-slideUp\",\n \"fadeIn\",\n \"root\",\n \".animate-slideDown\",\n \".blob-animation\",\n \"slideDown\",\n \"body\",\n \".glass-card\",\n \".dark\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"t\",\n \"useLanguage\"\n ],\n \"keys\": null,\n \"path\": \"src/contexts/LanguageContext.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Footer\",\n \"scrollToSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Footer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"About\",\n \"scrollToTeam\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/About.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ClientLogos\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ClientLogos.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Testimonials\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Testimonials.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"handleScroll\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Solution\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Solution.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Problem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Problem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Hero\",\n \"scrollToNext\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Hero.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Team\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Team.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 \"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 \"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 \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\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 \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.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/Footer.tsx\",\n \"src/components/Navbar.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
super-devninja/React-Animation-3-20-2025
|
Navigate to top on logo click
Make the logo clickable to navigate to the top of the home screen.
|
{
"changed": [
"src/components/Footer.tsx",
"src/components/Navbar.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": [
"$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": [
".text-balance",
".transition-all-300",
".staggered-animation",
".animate-fadeIn",
"morph",
"slideUp",
".section-padding",
"h6",
"from",
"to",
"base",
".animate-slideUp",
"fadeIn",
"root",
".animate-slideDown",
".blob-animation",
"slideDown",
"body",
".glass-card",
".dark"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.tsx",
"selectors": null
},
{
"functions": [
"t",
"useLanguage"
],
"keys": null,
"path": "src/contexts/LanguageContext.tsx",
"selectors": null
},
{
"functions": [
"Footer",
"scrollToSection"
],
"keys": null,
"path": "src/components/Footer.tsx",
"selectors": null
},
{
"functions": [
"About",
"scrollToTeam",
"scrollToFooter"
],
"keys": null,
"path": "src/components/About.tsx",
"selectors": null
},
{
"functions": [
"ClientLogos"
],
"keys": null,
"path": "src/components/ClientLogos.tsx",
"selectors": null
},
{
"functions": [
"Testimonials",
"scrollToFooter"
],
"keys": null,
"path": "src/components/Testimonials.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"handleScroll",
"if"
],
"keys": null,
"path": "src/components/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Solution"
],
"keys": null,
"path": "src/components/Solution.tsx",
"selectors": null
},
{
"functions": [
"Problem"
],
"keys": null,
"path": "src/components/Problem.tsx",
"selectors": null
},
{
"functions": [
"Hero",
"scrollToNext"
],
"keys": null,
"path": "src/components/Hero.tsx",
"selectors": null
},
{
"functions": [
"Team"
],
"keys": null,
"path": "src/components/Team.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": [
"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": [
"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": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"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": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
}
] | 43 |
[
{
"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:**\nNavigate to top on logo click\n\nMake the logo clickable to navigate to the top of the home screen.\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 \"$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 \".text-balance\",\n \".transition-all-300\",\n \".staggered-animation\",\n \".animate-fadeIn\",\n \"morph\",\n \"slideUp\",\n \".section-padding\",\n \"h6\",\n \"from\",\n \"to\",\n \"base\",\n \".animate-slideUp\",\n \"fadeIn\",\n \"root\",\n \".animate-slideDown\",\n \".blob-animation\",\n \"slideDown\",\n \"body\",\n \".glass-card\",\n \".dark\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"t\",\n \"useLanguage\"\n ],\n \"keys\": null,\n \"path\": \"src/contexts/LanguageContext.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Footer\",\n \"scrollToSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Footer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"About\",\n \"scrollToTeam\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/About.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ClientLogos\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ClientLogos.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Testimonials\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Testimonials.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"handleScroll\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Solution\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Solution.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Problem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Problem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Hero\",\n \"scrollToNext\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Hero.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Team\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Team.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 \"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 \"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 \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\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 \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.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/Footer.tsx\",\n \"src/components/Navbar.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
super-devninja/React-Animation-3-20-2025
|
Fix headline disappearing issue
The headline above "Vi löser det som alla känner igen:" was disappearing after being shown during site loading. This commit addresses this issue.
|
{
"changed": [
"src/components/Problem.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": [
"$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": [
".text-balance",
".transition-all-300",
".staggered-animation",
".animate-fadeIn",
"morph",
"slideUp",
".section-padding",
"h6",
"from",
"to",
"base",
".animate-slideUp",
"fadeIn",
"root",
".animate-slideDown",
".blob-animation",
"slideDown",
"body",
".glass-card",
".dark"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.tsx",
"selectors": null
},
{
"functions": [
"t",
"useLanguage"
],
"keys": null,
"path": "src/contexts/LanguageContext.tsx",
"selectors": null
},
{
"functions": [
"Footer",
"scrollToSection",
"scrollToTop"
],
"keys": null,
"path": "src/components/Footer.tsx",
"selectors": null
},
{
"functions": [
"About",
"scrollToTeam",
"scrollToFooter"
],
"keys": null,
"path": "src/components/About.tsx",
"selectors": null
},
{
"functions": [
"ClientLogos"
],
"keys": null,
"path": "src/components/ClientLogos.tsx",
"selectors": null
},
{
"functions": [
"Testimonials",
"scrollToFooter"
],
"keys": null,
"path": "src/components/Testimonials.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"handleScroll",
"if",
"scrollToTop"
],
"keys": null,
"path": "src/components/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Solution"
],
"keys": null,
"path": "src/components/Solution.tsx",
"selectors": null
},
{
"functions": [
"Problem"
],
"keys": null,
"path": "src/components/Problem.tsx",
"selectors": null
},
{
"functions": [
"Hero",
"scrollToNext"
],
"keys": null,
"path": "src/components/Hero.tsx",
"selectors": null
},
{
"functions": [
"Team"
],
"keys": null,
"path": "src/components/Team.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": [
"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": [
"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": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"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": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
}
] | 44 |
[
{
"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 headline disappearing issue\n\nThe headline above \"Vi löser det som alla känner igen:\" was disappearing after being shown during site loading. This commit addresses this 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 \"$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 \".text-balance\",\n \".transition-all-300\",\n \".staggered-animation\",\n \".animate-fadeIn\",\n \"morph\",\n \"slideUp\",\n \".section-padding\",\n \"h6\",\n \"from\",\n \"to\",\n \"base\",\n \".animate-slideUp\",\n \"fadeIn\",\n \"root\",\n \".animate-slideDown\",\n \".blob-animation\",\n \"slideDown\",\n \"body\",\n \".glass-card\",\n \".dark\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"t\",\n \"useLanguage\"\n ],\n \"keys\": null,\n \"path\": \"src/contexts/LanguageContext.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Footer\",\n \"scrollToSection\",\n \"scrollToTop\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Footer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"About\",\n \"scrollToTeam\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/About.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ClientLogos\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ClientLogos.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Testimonials\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Testimonials.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"handleScroll\",\n \"if\",\n \"scrollToTop\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Solution\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Solution.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Problem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Problem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Hero\",\n \"scrollToNext\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Hero.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Team\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Team.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 \"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 \"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 \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\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 \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.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/Problem.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
super-devninja/React-Animation-3-20-2025
|
Investigate preview discrepancy
Investigate why the component renders correctly in lovable preview but not in a new browser window.
|
{
"changed": [
"src/components/Problem.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": [
"$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": [
".text-balance",
".transition-all-300",
".staggered-animation",
".animate-fadeIn",
"morph",
"slideUp",
".section-padding",
"h6",
"from",
"to",
"base",
".animate-slideUp",
"fadeIn",
"root",
".animate-slideDown",
".blob-animation",
"slideDown",
"body",
".glass-card",
".dark"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.tsx",
"selectors": null
},
{
"functions": [
"t",
"useLanguage"
],
"keys": null,
"path": "src/contexts/LanguageContext.tsx",
"selectors": null
},
{
"functions": [
"Footer",
"scrollToSection",
"scrollToTop"
],
"keys": null,
"path": "src/components/Footer.tsx",
"selectors": null
},
{
"functions": [
"About",
"scrollToTeam",
"scrollToFooter"
],
"keys": null,
"path": "src/components/About.tsx",
"selectors": null
},
{
"functions": [
"ClientLogos"
],
"keys": null,
"path": "src/components/ClientLogos.tsx",
"selectors": null
},
{
"functions": [
"Testimonials",
"scrollToFooter"
],
"keys": null,
"path": "src/components/Testimonials.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"handleScroll",
"if",
"scrollToTop"
],
"keys": null,
"path": "src/components/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Solution"
],
"keys": null,
"path": "src/components/Solution.tsx",
"selectors": null
},
{
"functions": [
"Problem"
],
"keys": null,
"path": "src/components/Problem.tsx",
"selectors": null
},
{
"functions": [
"Hero",
"scrollToNext"
],
"keys": null,
"path": "src/components/Hero.tsx",
"selectors": null
},
{
"functions": [
"Team"
],
"keys": null,
"path": "src/components/Team.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": [
"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": [
"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": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"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": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
}
] | 45 |
[
{
"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:**\nInvestigate preview discrepancy\n\nInvestigate why the component renders correctly in lovable preview but not in a new browser window.\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 \"$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 \".text-balance\",\n \".transition-all-300\",\n \".staggered-animation\",\n \".animate-fadeIn\",\n \"morph\",\n \"slideUp\",\n \".section-padding\",\n \"h6\",\n \"from\",\n \"to\",\n \"base\",\n \".animate-slideUp\",\n \"fadeIn\",\n \"root\",\n \".animate-slideDown\",\n \".blob-animation\",\n \"slideDown\",\n \"body\",\n \".glass-card\",\n \".dark\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"t\",\n \"useLanguage\"\n ],\n \"keys\": null,\n \"path\": \"src/contexts/LanguageContext.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Footer\",\n \"scrollToSection\",\n \"scrollToTop\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Footer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"About\",\n \"scrollToTeam\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/About.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ClientLogos\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ClientLogos.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Testimonials\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Testimonials.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"handleScroll\",\n \"if\",\n \"scrollToTop\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Solution\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Solution.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Problem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Problem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Hero\",\n \"scrollToNext\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Hero.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Team\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Team.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 \"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 \"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 \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\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 \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.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/Problem.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
super-devninja/React-Animation-3-20-2025
|
Add email to contact info
Adds [email protected] email address to the contact information in the footer.
|
{
"changed": [
"src/components/Footer.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": [
"$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": [
".text-balance",
".transition-all-300",
".staggered-animation",
".animate-fadeIn",
"morph",
"slideUp",
".section-padding",
"h6",
"from",
"to",
"base",
".animate-slideUp",
"fadeIn",
"root",
".animate-slideDown",
".blob-animation",
"slideDown",
"body",
".glass-card",
".dark"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.tsx",
"selectors": null
},
{
"functions": [
"t",
"useLanguage"
],
"keys": null,
"path": "src/contexts/LanguageContext.tsx",
"selectors": null
},
{
"functions": [
"Footer",
"scrollToSection",
"scrollToTop"
],
"keys": null,
"path": "src/components/Footer.tsx",
"selectors": null
},
{
"functions": [
"About",
"scrollToTeam",
"scrollToFooter"
],
"keys": null,
"path": "src/components/About.tsx",
"selectors": null
},
{
"functions": [
"ClientLogos"
],
"keys": null,
"path": "src/components/ClientLogos.tsx",
"selectors": null
},
{
"functions": [
"Testimonials",
"scrollToFooter"
],
"keys": null,
"path": "src/components/Testimonials.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"handleScroll",
"if",
"scrollToTop"
],
"keys": null,
"path": "src/components/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Solution"
],
"keys": null,
"path": "src/components/Solution.tsx",
"selectors": null
},
{
"functions": [
"Problem"
],
"keys": null,
"path": "src/components/Problem.tsx",
"selectors": null
},
{
"functions": [
"Hero",
"scrollToNext"
],
"keys": null,
"path": "src/components/Hero.tsx",
"selectors": null
},
{
"functions": [
"Team"
],
"keys": null,
"path": "src/components/Team.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": [
"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": [
"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": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"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": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
}
] | 46 |
[
{
"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 email to contact info\n\nAdds [email protected] email address to the contact information in the footer.\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 \"$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 \".text-balance\",\n \".transition-all-300\",\n \".staggered-animation\",\n \".animate-fadeIn\",\n \"morph\",\n \"slideUp\",\n \".section-padding\",\n \"h6\",\n \"from\",\n \"to\",\n \"base\",\n \".animate-slideUp\",\n \"fadeIn\",\n \"root\",\n \".animate-slideDown\",\n \".blob-animation\",\n \"slideDown\",\n \"body\",\n \".glass-card\",\n \".dark\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"t\",\n \"useLanguage\"\n ],\n \"keys\": null,\n \"path\": \"src/contexts/LanguageContext.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Footer\",\n \"scrollToSection\",\n \"scrollToTop\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Footer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"About\",\n \"scrollToTeam\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/About.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ClientLogos\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ClientLogos.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Testimonials\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Testimonials.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"handleScroll\",\n \"if\",\n \"scrollToTop\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Solution\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Solution.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Problem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Problem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Hero\",\n \"scrollToNext\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Hero.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Team\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Team.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 \"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 \"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 \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\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 \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.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/Footer.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
super-devninja/React-Animation-3-20-2025
|
change-animation
|
{
"changed": [
"package-lock.json",
"src/components/About.tsx",
"src/components/ClientLogos.tsx",
"src/components/Hero.tsx",
"src/components/Navbar.tsx",
"src/components/Problem.tsx",
"src/components/Solution.tsx",
"src/components/Team.tsx",
"src/components/Testimonials.tsx",
"src/contexts/LanguageContext.tsx",
"tailwind.config.ts"
],
"created": [
".firebase/hosting.ZGlzdA.cache",
".firebaserc",
"firebase.json",
"public/lovable-uploads/120px-Aimpoint_logo.png",
"public/lovable-uploads/120px-Einride_Logo.png",
"public/lovable-uploads/A_West_side_fabrication_image.jpg",
"public/lovable-uploads/Axfood_logotype.png",
"public/lovable-uploads/Cebe-firmamarke-1930.png",
"public/lovable-uploads/Evolution_Gaming_logo_2020.JPG"
],
"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": [
"$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": [
".text-balance",
".transition-all-300",
".staggered-animation",
".animate-fadeIn",
"morph",
"slideUp",
".section-padding",
"h6",
"from",
"to",
"base",
".animate-slideUp",
"fadeIn",
"root",
".animate-slideDown",
".blob-animation",
"slideDown",
"body",
".glass-card",
".dark"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.tsx",
"selectors": null
},
{
"functions": [
"t",
"useLanguage"
],
"keys": null,
"path": "src/contexts/LanguageContext.tsx",
"selectors": null
},
{
"functions": [
"Footer",
"scrollToSection",
"scrollToTop"
],
"keys": null,
"path": "src/components/Footer.tsx",
"selectors": null
},
{
"functions": [
"About",
"scrollToTeam",
"scrollToFooter"
],
"keys": null,
"path": "src/components/About.tsx",
"selectors": null
},
{
"functions": [
"ClientLogos"
],
"keys": null,
"path": "src/components/ClientLogos.tsx",
"selectors": null
},
{
"functions": [
"Testimonials",
"scrollToFooter"
],
"keys": null,
"path": "src/components/Testimonials.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"handleScroll",
"if",
"scrollToTop"
],
"keys": null,
"path": "src/components/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Solution"
],
"keys": null,
"path": "src/components/Solution.tsx",
"selectors": null
},
{
"functions": [
"Problem"
],
"keys": null,
"path": "src/components/Problem.tsx",
"selectors": null
},
{
"functions": [
"Hero",
"scrollToNext"
],
"keys": null,
"path": "src/components/Hero.tsx",
"selectors": null
},
{
"functions": [
"Team"
],
"keys": null,
"path": "src/components/Team.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": [
"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": [
"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": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"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": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
}
] | 47 |
[
{
"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:**\nchange-animation\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 \"$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 \".text-balance\",\n \".transition-all-300\",\n \".staggered-animation\",\n \".animate-fadeIn\",\n \"morph\",\n \"slideUp\",\n \".section-padding\",\n \"h6\",\n \"from\",\n \"to\",\n \"base\",\n \".animate-slideUp\",\n \"fadeIn\",\n \"root\",\n \".animate-slideDown\",\n \".blob-animation\",\n \"slideDown\",\n \"body\",\n \".glass-card\",\n \".dark\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"t\",\n \"useLanguage\"\n ],\n \"keys\": null,\n \"path\": \"src/contexts/LanguageContext.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Footer\",\n \"scrollToSection\",\n \"scrollToTop\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Footer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"About\",\n \"scrollToTeam\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/About.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ClientLogos\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ClientLogos.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Testimonials\",\n \"scrollToFooter\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Testimonials.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"handleScroll\",\n \"if\",\n \"scrollToTop\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Solution\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Solution.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Problem\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Problem.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Hero\",\n \"scrollToNext\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Hero.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Team\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Team.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 \"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 \"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 \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\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 \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.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 \"package-lock.json\",\n \"src/components/About.tsx\",\n \"src/components/ClientLogos.tsx\",\n \"src/components/Hero.tsx\",\n \"src/components/Navbar.tsx\",\n \"src/components/Problem.tsx\",\n \"src/components/Solution.tsx\",\n \"src/components/Team.tsx\",\n \"src/components/Testimonials.tsx\",\n \"src/contexts/LanguageContext.tsx\",\n \"tailwind.config.ts\"\n ],\n \"created\": [\n \".firebase/hosting.ZGlzdA.cache\",\n \".firebaserc\",\n \"firebase.json\",\n \"public/lovable-uploads/120px-Aimpoint_logo.png\",\n \"public/lovable-uploads/120px-Einride_Logo.png\",\n \"public/lovable-uploads/A_West_side_fabrication_image.jpg\",\n \"public/lovable-uploads/Axfood_logotype.png\",\n \"public/lovable-uploads/Cebe-firmamarke-1930.png\",\n \"public/lovable-uploads/Evolution_Gaming_logo_2020.JPG\"\n ],\n \"deleted\": []\n}"
}
] |
tomasherman77/syllable-spark
|
Use tech stack vite_react_shadcn_ts
[skip gpt_engineer]
|
{
"changed": [],
"created": [
".gitignore",
"README.md",
"bun.lockb",
"components.json",
"eslint.config.js",
"index.html",
"package-lock.json",
"package.json",
"postcss.config.js",
"public/favicon.ico",
"public/placeholder.svg",
"public/robots.txt",
"src/App.css",
"src/App.tsx",
"src/components/ui/accordion.tsx",
"src/components/ui/alert-dialog.tsx",
"src/components/ui/alert.tsx",
"src/components/ui/aspect-ratio.tsx",
"src/components/ui/avatar.tsx",
"src/components/ui/badge.tsx",
"src/components/ui/breadcrumb.tsx",
"src/components/ui/button.tsx",
"src/components/ui/calendar.tsx",
"src/components/ui/card.tsx",
"src/components/ui/carousel.tsx",
"src/components/ui/chart.tsx",
"src/components/ui/checkbox.tsx",
"src/components/ui/collapsible.tsx",
"src/components/ui/command.tsx",
"src/components/ui/context-menu.tsx",
"src/components/ui/dialog.tsx",
"src/components/ui/drawer.tsx",
"src/components/ui/dropdown-menu.tsx",
"src/components/ui/form.tsx",
"src/components/ui/hover-card.tsx",
"src/components/ui/input-otp.tsx",
"src/components/ui/input.tsx",
"src/components/ui/label.tsx",
"src/components/ui/menubar.tsx",
"src/components/ui/navigation-menu.tsx",
"src/components/ui/pagination.tsx",
"src/components/ui/popover.tsx",
"src/components/ui/progress.tsx",
"src/components/ui/radio-group.tsx",
"src/components/ui/resizable.tsx",
"src/components/ui/scroll-area.tsx",
"src/components/ui/select.tsx",
"src/components/ui/separator.tsx",
"src/components/ui/sheet.tsx",
"src/components/ui/sidebar.tsx",
"src/components/ui/skeleton.tsx",
"src/components/ui/slider.tsx",
"src/components/ui/sonner.tsx",
"src/components/ui/switch.tsx",
"src/components/ui/table.tsx",
"src/components/ui/tabs.tsx",
"src/components/ui/textarea.tsx",
"src/components/ui/toast.tsx",
"src/components/ui/toaster.tsx",
"src/components/ui/toggle-group.tsx",
"src/components/ui/toggle.tsx",
"src/components/ui/tooltip.tsx",
"src/components/ui/use-toast.ts",
"src/hooks/use-mobile.tsx",
"src/hooks/use-toast.ts",
"src/index.css",
"src/lib/utils.ts",
"src/main.tsx",
"src/pages/Index.tsx",
"src/pages/NotFound.tsx",
"src/vite-env.d.ts",
"tailwind.config.ts",
"tsconfig.app.json",
"tsconfig.json",
"tsconfig.node.json",
"vite.config.ts"
],
"deleted": []
}
|
[] | 0 |
[
{
"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:**\nUse tech stack vite_react_shadcn_ts\n[skip gpt_engineer]\n\n**File Tree Before:**\n[]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'."
},
{
"from": "gpt",
"value": "{\n \"changed\": [],\n \"created\": [\n \".gitignore\",\n \"README.md\",\n \"bun.lockb\",\n \"components.json\",\n \"eslint.config.js\",\n \"index.html\",\n \"package-lock.json\",\n \"package.json\",\n \"postcss.config.js\",\n \"public/favicon.ico\",\n \"public/placeholder.svg\",\n \"public/robots.txt\",\n \"src/App.css\",\n \"src/App.tsx\",\n \"src/components/ui/accordion.tsx\",\n \"src/components/ui/alert-dialog.tsx\",\n \"src/components/ui/alert.tsx\",\n \"src/components/ui/aspect-ratio.tsx\",\n \"src/components/ui/avatar.tsx\",\n \"src/components/ui/badge.tsx\",\n \"src/components/ui/breadcrumb.tsx\",\n \"src/components/ui/button.tsx\",\n \"src/components/ui/calendar.tsx\",\n \"src/components/ui/card.tsx\",\n \"src/components/ui/carousel.tsx\",\n \"src/components/ui/chart.tsx\",\n \"src/components/ui/checkbox.tsx\",\n \"src/components/ui/collapsible.tsx\",\n \"src/components/ui/command.tsx\",\n \"src/components/ui/context-menu.tsx\",\n \"src/components/ui/dialog.tsx\",\n \"src/components/ui/drawer.tsx\",\n \"src/components/ui/dropdown-menu.tsx\",\n \"src/components/ui/form.tsx\",\n \"src/components/ui/hover-card.tsx\",\n \"src/components/ui/input-otp.tsx\",\n \"src/components/ui/input.tsx\",\n \"src/components/ui/label.tsx\",\n \"src/components/ui/menubar.tsx\",\n \"src/components/ui/navigation-menu.tsx\",\n \"src/components/ui/pagination.tsx\",\n \"src/components/ui/popover.tsx\",\n \"src/components/ui/progress.tsx\",\n \"src/components/ui/radio-group.tsx\",\n \"src/components/ui/resizable.tsx\",\n \"src/components/ui/scroll-area.tsx\",\n \"src/components/ui/select.tsx\",\n \"src/components/ui/separator.tsx\",\n \"src/components/ui/sheet.tsx\",\n \"src/components/ui/sidebar.tsx\",\n \"src/components/ui/skeleton.tsx\",\n \"src/components/ui/slider.tsx\",\n \"src/components/ui/sonner.tsx\",\n \"src/components/ui/switch.tsx\",\n \"src/components/ui/table.tsx\",\n \"src/components/ui/tabs.tsx\",\n \"src/components/ui/textarea.tsx\",\n \"src/components/ui/toast.tsx\",\n \"src/components/ui/toaster.tsx\",\n \"src/components/ui/toggle-group.tsx\",\n \"src/components/ui/toggle.tsx\",\n \"src/components/ui/tooltip.tsx\",\n \"src/components/ui/use-toast.ts\",\n \"src/hooks/use-mobile.tsx\",\n \"src/hooks/use-toast.ts\",\n \"src/index.css\",\n \"src/lib/utils.ts\",\n \"src/main.tsx\",\n \"src/pages/Index.tsx\",\n \"src/pages/NotFound.tsx\",\n \"src/vite-env.d.ts\",\n \"tailwind.config.ts\",\n \"tsconfig.app.json\",\n \"tsconfig.json\",\n \"tsconfig.node.json\",\n \"vite.config.ts\"\n ],\n \"deleted\": []\n}"
}
] |
tomasherman77/syllable-spark
|
Implement PDF processing web application
This commit implements a web application that allows users to upload a PDF, process it to bold the first syllable of each word, and download the processed PDF.
|
{
"changed": [
"src/App.tsx",
"src/index.css",
"src/pages/Index.tsx",
"src/pages/NotFound.tsx",
"tailwind.config.ts"
],
"created": [
"src/components/FAQSection.tsx",
"src/components/Features.tsx",
"src/components/FileUploader.tsx",
"src/components/Footer.tsx",
"src/components/Header.tsx",
"src/components/Hero.tsx",
"src/components/HowItWorks.tsx",
"src/components/ProcessedResult.tsx",
"src/components/ProcessingOptions.tsx",
"src/components/ProcessingStatus.tsx",
"src/pages/PdfProcessor.tsx",
"src/services/pdfService.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": [
"$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": [
".dark",
"root",
"base",
"body"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.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": [
"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": [
"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": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"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": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
}
] | 1 |
[
{
"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:**\nImplement PDF processing web application\n\nThis commit implements a web application that allows users to upload a PDF, process it to bold the first syllable of each word, and download the processed PDF.\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 \"$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 \".dark\",\n \"root\",\n \"base\",\n \"body\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.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 \"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 \"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 \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\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 \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.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/index.css\",\n \"src/pages/Index.tsx\",\n \"src/pages/NotFound.tsx\",\n \"tailwind.config.ts\"\n ],\n \"created\": [\n \"src/components/FAQSection.tsx\",\n \"src/components/Features.tsx\",\n \"src/components/FileUploader.tsx\",\n \"src/components/Footer.tsx\",\n \"src/components/Header.tsx\",\n \"src/components/Hero.tsx\",\n \"src/components/HowItWorks.tsx\",\n \"src/components/ProcessedResult.tsx\",\n \"src/components/ProcessingOptions.tsx\",\n \"src/components/ProcessingStatus.tsx\",\n \"src/pages/PdfProcessor.tsx\",\n \"src/services/pdfService.ts\"\n ],\n \"deleted\": []\n}"
}
] |
tomasherman77/syllable-spark
|
Fix PDF download functionality
The PDF download functionality was not working as expected. This commit addresses the issue.
|
{
"changed": [
"src/components/ProcessedResult.tsx",
"src/components/ProcessingStatus.tsx",
"src/services/pdfService.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": [
"$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": [
"h2",
"body",
"h3",
".glass-morphism",
"root",
".container-padding",
".woff2",
"p",
"h6",
"h4",
"html",
"font-face",
"components",
"h1",
".dark",
"selection",
"base"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.tsx",
"selectors": null
},
{
"functions": [
"ProcessingOptions"
],
"keys": null,
"path": "src/components/ProcessingOptions.tsx",
"selectors": null
},
{
"functions": [
"HowItWorks"
],
"keys": null,
"path": "src/components/HowItWorks.tsx",
"selectors": null
},
{
"functions": [
"Footer"
],
"keys": null,
"path": "src/components/Footer.tsx",
"selectors": null
},
{
"functions": [
"ProcessingStatus",
"getStatusText"
],
"keys": null,
"path": "src/components/ProcessingStatus.tsx",
"selectors": null
},
{
"functions": [
"Features"
],
"keys": null,
"path": "src/components/Features.tsx",
"selectors": null
},
{
"functions": [
"ProcessedResult"
],
"keys": null,
"path": "src/components/ProcessedResult.tsx",
"selectors": null
},
{
"functions": [
"Header"
],
"keys": null,
"path": "src/components/Header.tsx",
"selectors": null
},
{
"functions": [
"Hero"
],
"keys": null,
"path": "src/components/Hero.tsx",
"selectors": null
},
{
"functions": [
"FileUploader"
],
"keys": null,
"path": "src/components/FileUploader.tsx",
"selectors": null
},
{
"functions": [
"FAQSection"
],
"keys": null,
"path": "src/components/FAQSection.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": [
"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": [
"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": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"selectors": null
},
{
"functions": [
"updateProgress"
],
"keys": null,
"path": "src/services/pdfService.ts",
"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": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
}
] | 2 |
[
{
"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 PDF download functionality\n\nThe PDF download functionality was not working as expected. 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 \"$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 \"h2\",\n \"body\",\n \"h3\",\n \".glass-morphism\",\n \"root\",\n \".container-padding\",\n \".woff2\",\n \"p\",\n \"h6\",\n \"h4\",\n \"html\",\n \"font-face\",\n \"components\",\n \"h1\",\n \".dark\",\n \"selection\",\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 \"ProcessingOptions\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProcessingOptions.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"HowItWorks\"\n ],\n \"keys\": null,\n \"path\": \"src/components/HowItWorks.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Footer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Footer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProcessingStatus\",\n \"getStatusText\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProcessingStatus.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Features\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Features.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProcessedResult\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProcessedResult.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Hero\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Hero.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FileUploader\"\n ],\n \"keys\": null,\n \"path\": \"src/components/FileUploader.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FAQSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/FAQSection.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 \"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 \"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 \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"updateProgress\"\n ],\n \"keys\": null,\n \"path\": \"src/services/pdfService.ts\",\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 \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.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/ProcessedResult.tsx\",\n \"src/components/ProcessingStatus.tsx\",\n \"src/services/pdfService.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
tomasherman77/syllable-spark
|
Fix PDF processing logic
The PDF processing logic was returning a mock PDF instead of processing the uploaded file. This commit fixes the issue.
|
{
"changed": [
"src/services/pdfService.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": [
"$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": [
"h2",
"body",
"h3",
".glass-morphism",
"root",
".container-padding",
".woff2",
"p",
"h6",
"h4",
"html",
"font-face",
"components",
"h1",
".dark",
"selection",
"base"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.tsx",
"selectors": null
},
{
"functions": [
"ProcessingOptions"
],
"keys": null,
"path": "src/components/ProcessingOptions.tsx",
"selectors": null
},
{
"functions": [
"HowItWorks"
],
"keys": null,
"path": "src/components/HowItWorks.tsx",
"selectors": null
},
{
"functions": [
"Footer"
],
"keys": null,
"path": "src/components/Footer.tsx",
"selectors": null
},
{
"functions": [
"ProcessingStatus",
"getStatusText"
],
"keys": null,
"path": "src/components/ProcessingStatus.tsx",
"selectors": null
},
{
"functions": [
"Features"
],
"keys": null,
"path": "src/components/Features.tsx",
"selectors": null
},
{
"functions": [
"ProcessedResult",
"handleDownload"
],
"keys": null,
"path": "src/components/ProcessedResult.tsx",
"selectors": null
},
{
"functions": [
"Header"
],
"keys": null,
"path": "src/components/Header.tsx",
"selectors": null
},
{
"functions": [
"Hero"
],
"keys": null,
"path": "src/components/Hero.tsx",
"selectors": null
},
{
"functions": [
"FileUploader"
],
"keys": null,
"path": "src/components/FileUploader.tsx",
"selectors": null
},
{
"functions": [
"FAQSection"
],
"keys": null,
"path": "src/components/FAQSection.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": [
"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": [
"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": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"selectors": null
},
{
"functions": [
"updateProgress"
],
"keys": null,
"path": "src/services/pdfService.ts",
"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": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
}
] | 3 |
[
{
"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 PDF processing logic\n\nThe PDF processing logic was returning a mock PDF instead of processing the uploaded file. This commit fixes 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 \"$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 \"h2\",\n \"body\",\n \"h3\",\n \".glass-morphism\",\n \"root\",\n \".container-padding\",\n \".woff2\",\n \"p\",\n \"h6\",\n \"h4\",\n \"html\",\n \"font-face\",\n \"components\",\n \"h1\",\n \".dark\",\n \"selection\",\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 \"ProcessingOptions\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProcessingOptions.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"HowItWorks\"\n ],\n \"keys\": null,\n \"path\": \"src/components/HowItWorks.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Footer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Footer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProcessingStatus\",\n \"getStatusText\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProcessingStatus.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Features\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Features.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProcessedResult\",\n \"handleDownload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProcessedResult.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Hero\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Hero.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FileUploader\"\n ],\n \"keys\": null,\n \"path\": \"src/components/FileUploader.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FAQSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/FAQSection.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 \"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 \"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 \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"updateProgress\"\n ],\n \"keys\": null,\n \"path\": \"src/services/pdfService.ts\",\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 \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.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/pdfService.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
tomasherman77/syllable-spark
|
Implement backend PDF processing
Implement the complete PDF processing functionality, including backend processing with a more powerful PDF processing library.
|
{
"changed": [
"src/services/pdfService.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": [
"$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": [
"h2",
"body",
"h3",
".glass-morphism",
"root",
".container-padding",
".woff2",
"p",
"h6",
"h4",
"html",
"font-face",
"components",
"h1",
".dark",
"selection",
"base"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.tsx",
"selectors": null
},
{
"functions": [
"ProcessingOptions"
],
"keys": null,
"path": "src/components/ProcessingOptions.tsx",
"selectors": null
},
{
"functions": [
"HowItWorks"
],
"keys": null,
"path": "src/components/HowItWorks.tsx",
"selectors": null
},
{
"functions": [
"Footer"
],
"keys": null,
"path": "src/components/Footer.tsx",
"selectors": null
},
{
"functions": [
"ProcessingStatus",
"getStatusText"
],
"keys": null,
"path": "src/components/ProcessingStatus.tsx",
"selectors": null
},
{
"functions": [
"Features"
],
"keys": null,
"path": "src/components/Features.tsx",
"selectors": null
},
{
"functions": [
"ProcessedResult",
"handleDownload"
],
"keys": null,
"path": "src/components/ProcessedResult.tsx",
"selectors": null
},
{
"functions": [
"Header"
],
"keys": null,
"path": "src/components/Header.tsx",
"selectors": null
},
{
"functions": [
"Hero"
],
"keys": null,
"path": "src/components/Hero.tsx",
"selectors": null
},
{
"functions": [
"FileUploader"
],
"keys": null,
"path": "src/components/FileUploader.tsx",
"selectors": null
},
{
"functions": [
"FAQSection"
],
"keys": null,
"path": "src/components/FAQSection.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": [
"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": [
"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": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"selectors": null
},
{
"functions": [
"updateProgress"
],
"keys": null,
"path": "src/services/pdfService.ts",
"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": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
}
] | 4 |
[
{
"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:**\nImplement backend PDF processing\n\nImplement the complete PDF processing functionality, including backend processing with a more powerful PDF processing library.\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 \"$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 \"h2\",\n \"body\",\n \"h3\",\n \".glass-morphism\",\n \"root\",\n \".container-padding\",\n \".woff2\",\n \"p\",\n \"h6\",\n \"h4\",\n \"html\",\n \"font-face\",\n \"components\",\n \"h1\",\n \".dark\",\n \"selection\",\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 \"ProcessingOptions\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProcessingOptions.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"HowItWorks\"\n ],\n \"keys\": null,\n \"path\": \"src/components/HowItWorks.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Footer\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Footer.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProcessingStatus\",\n \"getStatusText\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProcessingStatus.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Features\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Features.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ProcessedResult\",\n \"handleDownload\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ProcessedResult.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Header\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Header.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Hero\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Hero.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FileUploader\"\n ],\n \"keys\": null,\n \"path\": \"src/components/FileUploader.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FAQSection\"\n ],\n \"keys\": null,\n \"path\": \"src/components/FAQSection.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 \"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 \"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 \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"updateProgress\"\n ],\n \"keys\": null,\n \"path\": \"src/services/pdfService.ts\",\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 \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.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/pdfService.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
Viswanath856/esgwise-portal
|
Use tech stack vite_react_shadcn_ts
[skip gpt_engineer]
|
{
"changed": [],
"created": [
".gitignore",
"README.md",
"bun.lockb",
"components.json",
"eslint.config.js",
"index.html",
"package-lock.json",
"package.json",
"postcss.config.js",
"public/favicon.ico",
"public/og-image.png",
"public/placeholder.svg",
"src/App.css",
"src/App.tsx",
"src/components/ui/accordion.tsx",
"src/components/ui/alert-dialog.tsx",
"src/components/ui/alert.tsx",
"src/components/ui/aspect-ratio.tsx",
"src/components/ui/avatar.tsx",
"src/components/ui/badge.tsx",
"src/components/ui/breadcrumb.tsx",
"src/components/ui/button.tsx",
"src/components/ui/calendar.tsx",
"src/components/ui/card.tsx",
"src/components/ui/carousel.tsx",
"src/components/ui/chart.tsx",
"src/components/ui/checkbox.tsx",
"src/components/ui/collapsible.tsx",
"src/components/ui/command.tsx",
"src/components/ui/context-menu.tsx",
"src/components/ui/dialog.tsx",
"src/components/ui/drawer.tsx",
"src/components/ui/dropdown-menu.tsx",
"src/components/ui/form.tsx",
"src/components/ui/hover-card.tsx",
"src/components/ui/input-otp.tsx",
"src/components/ui/input.tsx",
"src/components/ui/label.tsx",
"src/components/ui/menubar.tsx",
"src/components/ui/navigation-menu.tsx",
"src/components/ui/pagination.tsx",
"src/components/ui/popover.tsx",
"src/components/ui/progress.tsx",
"src/components/ui/radio-group.tsx",
"src/components/ui/resizable.tsx",
"src/components/ui/scroll-area.tsx",
"src/components/ui/select.tsx",
"src/components/ui/separator.tsx",
"src/components/ui/sheet.tsx",
"src/components/ui/sidebar.tsx",
"src/components/ui/skeleton.tsx",
"src/components/ui/slider.tsx",
"src/components/ui/sonner.tsx",
"src/components/ui/switch.tsx",
"src/components/ui/table.tsx",
"src/components/ui/tabs.tsx",
"src/components/ui/textarea.tsx",
"src/components/ui/toast.tsx",
"src/components/ui/toaster.tsx",
"src/components/ui/toggle-group.tsx",
"src/components/ui/toggle.tsx",
"src/components/ui/tooltip.tsx",
"src/components/ui/use-toast.ts",
"src/hooks/use-mobile.tsx",
"src/hooks/use-toast.ts",
"src/index.css",
"src/lib/utils.ts",
"src/main.tsx",
"src/pages/Index.tsx",
"src/pages/NotFound.tsx",
"src/vite-env.d.ts",
"tailwind.config.ts",
"tsconfig.app.json",
"tsconfig.json",
"tsconfig.node.json",
"vite.config.ts"
],
"deleted": []
}
|
[] | 0 |
[
{
"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:**\nUse tech stack vite_react_shadcn_ts\n[skip gpt_engineer]\n\n**File Tree Before:**\n[]\n\nProvide your output as a JSON object with three arrays: 'changed', 'created', and 'deleted'."
},
{
"from": "gpt",
"value": "{\n \"changed\": [],\n \"created\": [\n \".gitignore\",\n \"README.md\",\n \"bun.lockb\",\n \"components.json\",\n \"eslint.config.js\",\n \"index.html\",\n \"package-lock.json\",\n \"package.json\",\n \"postcss.config.js\",\n \"public/favicon.ico\",\n \"public/og-image.png\",\n \"public/placeholder.svg\",\n \"src/App.css\",\n \"src/App.tsx\",\n \"src/components/ui/accordion.tsx\",\n \"src/components/ui/alert-dialog.tsx\",\n \"src/components/ui/alert.tsx\",\n \"src/components/ui/aspect-ratio.tsx\",\n \"src/components/ui/avatar.tsx\",\n \"src/components/ui/badge.tsx\",\n \"src/components/ui/breadcrumb.tsx\",\n \"src/components/ui/button.tsx\",\n \"src/components/ui/calendar.tsx\",\n \"src/components/ui/card.tsx\",\n \"src/components/ui/carousel.tsx\",\n \"src/components/ui/chart.tsx\",\n \"src/components/ui/checkbox.tsx\",\n \"src/components/ui/collapsible.tsx\",\n \"src/components/ui/command.tsx\",\n \"src/components/ui/context-menu.tsx\",\n \"src/components/ui/dialog.tsx\",\n \"src/components/ui/drawer.tsx\",\n \"src/components/ui/dropdown-menu.tsx\",\n \"src/components/ui/form.tsx\",\n \"src/components/ui/hover-card.tsx\",\n \"src/components/ui/input-otp.tsx\",\n \"src/components/ui/input.tsx\",\n \"src/components/ui/label.tsx\",\n \"src/components/ui/menubar.tsx\",\n \"src/components/ui/navigation-menu.tsx\",\n \"src/components/ui/pagination.tsx\",\n \"src/components/ui/popover.tsx\",\n \"src/components/ui/progress.tsx\",\n \"src/components/ui/radio-group.tsx\",\n \"src/components/ui/resizable.tsx\",\n \"src/components/ui/scroll-area.tsx\",\n \"src/components/ui/select.tsx\",\n \"src/components/ui/separator.tsx\",\n \"src/components/ui/sheet.tsx\",\n \"src/components/ui/sidebar.tsx\",\n \"src/components/ui/skeleton.tsx\",\n \"src/components/ui/slider.tsx\",\n \"src/components/ui/sonner.tsx\",\n \"src/components/ui/switch.tsx\",\n \"src/components/ui/table.tsx\",\n \"src/components/ui/tabs.tsx\",\n \"src/components/ui/textarea.tsx\",\n \"src/components/ui/toast.tsx\",\n \"src/components/ui/toaster.tsx\",\n \"src/components/ui/toggle-group.tsx\",\n \"src/components/ui/toggle.tsx\",\n \"src/components/ui/tooltip.tsx\",\n \"src/components/ui/use-toast.ts\",\n \"src/hooks/use-mobile.tsx\",\n \"src/hooks/use-toast.ts\",\n \"src/index.css\",\n \"src/lib/utils.ts\",\n \"src/main.tsx\",\n \"src/pages/Index.tsx\",\n \"src/pages/NotFound.tsx\",\n \"src/vite-env.d.ts\",\n \"tailwind.config.ts\",\n \"tsconfig.app.json\",\n \"tsconfig.json\",\n \"tsconfig.node.json\",\n \"vite.config.ts\"\n ],\n \"deleted\": []\n}"
}
] |
Viswanath856/esgwise-portal
|
Design ESG data management portal
Implement a structured data collection form for capturing ESG parameters, including an approval process and dashboard for data visualization.
|
{
"changed": [
"package-lock.json",
"package.json",
"src/App.tsx",
"src/index.css",
"src/pages/Index.tsx",
"tailwind.config.ts"
],
"created": [
"src/components/Dashboard/DashboardCard.tsx",
"src/components/Dashboard/ProgressRing.tsx",
"src/components/Layout/Navbar.tsx",
"src/components/Layout/PageTransition.tsx",
"src/components/Layout/Sidebar.tsx",
"src/components/ui/GlassCard.tsx",
"src/components/ui/StatusBadge.tsx",
"src/pages/ApprovalQueue.tsx",
"src/pages/Dashboard.tsx",
"src/pages/FormEntry.tsx",
"src/pages/Sites.tsx",
"src/types/esg.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": [
"$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": [
".dark",
"root",
"base",
"body"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.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": [
"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": [
"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": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"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": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
}
] | 1 |
[
{
"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:**\nDesign ESG data management portal\n\nImplement a structured data collection form for capturing ESG parameters, including an approval process and dashboard for data visualization.\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 \"$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 \".dark\",\n \"root\",\n \"base\",\n \"body\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.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 \"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 \"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 \"cn\"\n ],\n \"keys\": null,\n \"path\": \"src/lib/utils.ts\",\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 \"Index\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Index.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.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 \"package-lock.json\",\n \"package.json\",\n \"src/App.tsx\",\n \"src/index.css\",\n \"src/pages/Index.tsx\",\n \"tailwind.config.ts\"\n ],\n \"created\": [\n \"src/components/Dashboard/DashboardCard.tsx\",\n \"src/components/Dashboard/ProgressRing.tsx\",\n \"src/components/Layout/Navbar.tsx\",\n \"src/components/Layout/PageTransition.tsx\",\n \"src/components/Layout/Sidebar.tsx\",\n \"src/components/ui/GlassCard.tsx\",\n \"src/components/ui/StatusBadge.tsx\",\n \"src/pages/ApprovalQueue.tsx\",\n \"src/pages/Dashboard.tsx\",\n \"src/pages/FormEntry.tsx\",\n \"src/pages/Sites.tsx\",\n \"src/types/esg.ts\"\n ],\n \"deleted\": []\n}"
}
] |
Viswanath856/esgwise-portal
|
Connect to Supabase project
Add Supabase configuration and types to the project.
|
{
"changed": [
"package-lock.json",
"package.json"
],
"created": [
"src/integrations/supabase/client.ts",
"src/integrations/supabase/types.ts",
"supabase/config.toml"
],
"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": [
"$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": [
".font-inter",
"#root",
".glass-card-dark",
".dark",
"webkit-scrollbar",
".com",
"components",
".page-enter",
".page-enter-active",
"#d1d5db",
"webkit-scrollbar-thumb",
".transition-transform-fast",
".input-reset",
"base",
".page-exit-active",
".focus-ring",
".googleapis",
"root",
"hover",
"webkit-scrollbar-track",
"body",
".page-exit",
".glass-card",
".transition-all-fast"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.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": [
"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": [
"Calendar"
],
"keys": null,
"path": "src/components/ui/calendar.tsx",
"selectors": null
},
{
"functions": [
"StatusBadge",
"getStatusStyles",
"getStatusText"
],
"keys": null,
"path": "src/components/ui/StatusBadge.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": [
"GlassCard"
],
"keys": null,
"path": "src/components/ui/GlassCard.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": [
"ProgressRing"
],
"keys": null,
"path": "src/components/Dashboard/ProgressRing.tsx",
"selectors": null
},
{
"functions": [
"DashboardCard"
],
"keys": null,
"path": "src/components/Dashboard/DashboardCard.tsx",
"selectors": null
},
{
"functions": [
"PageTransition"
],
"keys": null,
"path": "src/components/Layout/PageTransition.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"getPageTitle"
],
"keys": null,
"path": "src/components/Layout/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Sidebar",
"toggleSidebar",
"toggleMobileSidebar"
],
"keys": null,
"path": "src/components/Layout/Sidebar.tsx",
"selectors": null
},
{
"functions": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"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": [
"Dashboard"
],
"keys": null,
"path": "src/pages/Dashboard.tsx",
"selectors": null
},
{
"functions": [
"Sites",
"handleAddSite",
"handleDeleteSite",
"openDeleteDialog"
],
"keys": null,
"path": "src/pages/Sites.tsx",
"selectors": null
},
{
"functions": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"requestSort",
"handleApprove",
"handleReject",
"handleOpenRejectDialog",
"getSiteName",
"formatDate"
],
"keys": null,
"path": "src/pages/ApprovalQueue.tsx",
"selectors": null
},
{
"functions": [
"FormEntry",
"toggleSection",
"handleSubmit",
"handleSaveDraft"
],
"keys": null,
"path": "src/pages/FormEntry.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
}
] | 2 |
[
{
"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:**\nConnect to Supabase project\n\nAdd Supabase configuration and types 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 \"$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 \".font-inter\",\n \"#root\",\n \".glass-card-dark\",\n \".dark\",\n \"webkit-scrollbar\",\n \".com\",\n \"components\",\n \".page-enter\",\n \".page-enter-active\",\n \"#d1d5db\",\n \"webkit-scrollbar-thumb\",\n \".transition-transform-fast\",\n \".input-reset\",\n \"base\",\n \".page-exit-active\",\n \".focus-ring\",\n \".googleapis\",\n \"root\",\n \"hover\",\n \"webkit-scrollbar-track\",\n \"body\",\n \".page-exit\",\n \".glass-card\",\n \".transition-all-fast\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.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 \"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 \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatusBadge\",\n \"getStatusStyles\",\n \"getStatusText\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/StatusBadge.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 \"GlassCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/GlassCard.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 \"ProgressRing\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/ProgressRing.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DashboardCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/DashboardCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PageTransition\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/PageTransition.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"getPageTitle\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"toggleSidebar\",\n \"toggleMobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Sidebar.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 \"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 \"Dashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sites\",\n \"handleAddSite\",\n \"handleDeleteSite\",\n \"openDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Sites.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 \"requestSort\",\n \"handleApprove\",\n \"handleReject\",\n \"handleOpenRejectDialog\",\n \"getSiteName\",\n \"formatDate\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/ApprovalQueue.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FormEntry\",\n \"toggleSection\",\n \"handleSubmit\",\n \"handleSaveDraft\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/FormEntry.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.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 \"package-lock.json\",\n \"package.json\"\n ],\n \"created\": [\n \"src/integrations/supabase/client.ts\",\n \"src/integrations/supabase/types.ts\",\n \"supabase/config.toml\"\n ],\n \"deleted\": []\n}"
}
] |
Viswanath856/esgwise-portal
|
Run SQL migrations
The SQL migrations have been reviewed and approved.
|
{
"changed": [
"src/App.tsx",
"src/integrations/supabase/client.ts",
"src/integrations/supabase/types.ts",
"src/pages/ApprovalQueue.tsx",
"src/pages/FormEntry.tsx"
],
"created": [
"src/pages/EmissionFactors.tsx",
"src/services/dashboardService.ts",
"src/services/emissionFactorService.ts",
"src/services/esgSubmissionService.ts",
"src/services/siteService.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": [
"$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": [
".font-inter",
"#root",
".glass-card-dark",
".dark",
"webkit-scrollbar",
".com",
"components",
".page-enter",
".page-enter-active",
"#d1d5db",
"webkit-scrollbar-thumb",
".transition-transform-fast",
".input-reset",
"base",
".page-exit-active",
".focus-ring",
".googleapis",
"root",
"hover",
"webkit-scrollbar-track",
"body",
".page-exit",
".glass-card",
".transition-all-fast"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.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": [
"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": [
"Calendar"
],
"keys": null,
"path": "src/components/ui/calendar.tsx",
"selectors": null
},
{
"functions": [
"StatusBadge",
"getStatusStyles",
"getStatusText"
],
"keys": null,
"path": "src/components/ui/StatusBadge.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": [
"GlassCard"
],
"keys": null,
"path": "src/components/ui/GlassCard.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": [
"ProgressRing"
],
"keys": null,
"path": "src/components/Dashboard/ProgressRing.tsx",
"selectors": null
},
{
"functions": [
"DashboardCard"
],
"keys": null,
"path": "src/components/Dashboard/DashboardCard.tsx",
"selectors": null
},
{
"functions": [
"PageTransition"
],
"keys": null,
"path": "src/components/Layout/PageTransition.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"getPageTitle"
],
"keys": null,
"path": "src/components/Layout/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Sidebar",
"toggleSidebar",
"toggleMobileSidebar"
],
"keys": null,
"path": "src/components/Layout/Sidebar.tsx",
"selectors": null
},
{
"functions": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"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": [
"Dashboard"
],
"keys": null,
"path": "src/pages/Dashboard.tsx",
"selectors": null
},
{
"functions": [
"Sites",
"handleAddSite",
"handleDeleteSite",
"openDeleteDialog"
],
"keys": null,
"path": "src/pages/Sites.tsx",
"selectors": null
},
{
"functions": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"requestSort",
"handleApprove",
"handleReject",
"handleOpenRejectDialog",
"getSiteName",
"formatDate"
],
"keys": null,
"path": "src/pages/ApprovalQueue.tsx",
"selectors": null
},
{
"functions": [
"FormEntry",
"toggleSection",
"handleSubmit",
"handleSaveDraft"
],
"keys": null,
"path": "src/pages/FormEntry.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
}
] | 3 |
[
{
"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 migrations\n\nThe SQL migrations have been reviewed and approved.\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 \"$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 \".font-inter\",\n \"#root\",\n \".glass-card-dark\",\n \".dark\",\n \"webkit-scrollbar\",\n \".com\",\n \"components\",\n \".page-enter\",\n \".page-enter-active\",\n \"#d1d5db\",\n \"webkit-scrollbar-thumb\",\n \".transition-transform-fast\",\n \".input-reset\",\n \"base\",\n \".page-exit-active\",\n \".focus-ring\",\n \".googleapis\",\n \"root\",\n \"hover\",\n \"webkit-scrollbar-track\",\n \"body\",\n \".page-exit\",\n \".glass-card\",\n \".transition-all-fast\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.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 \"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 \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatusBadge\",\n \"getStatusStyles\",\n \"getStatusText\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/StatusBadge.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 \"GlassCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/GlassCard.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 \"ProgressRing\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/ProgressRing.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DashboardCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/DashboardCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PageTransition\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/PageTransition.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"getPageTitle\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"toggleSidebar\",\n \"toggleMobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Sidebar.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 \"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 \"Dashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sites\",\n \"handleAddSite\",\n \"handleDeleteSite\",\n \"openDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Sites.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 \"requestSort\",\n \"handleApprove\",\n \"handleReject\",\n \"handleOpenRejectDialog\",\n \"getSiteName\",\n \"formatDate\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/ApprovalQueue.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FormEntry\",\n \"toggleSection\",\n \"handleSubmit\",\n \"handleSaveDraft\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/FormEntry.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.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/integrations/supabase/client.ts\",\n \"src/integrations/supabase/types.ts\",\n \"src/pages/ApprovalQueue.tsx\",\n \"src/pages/FormEntry.tsx\"\n ],\n \"created\": [\n \"src/pages/EmissionFactors.tsx\",\n \"src/services/dashboardService.ts\",\n \"src/services/emissionFactorService.ts\",\n \"src/services/esgSubmissionService.ts\",\n \"src/services/siteService.ts\"\n ],\n \"deleted\": []\n}"
}
] |
Viswanath856/esgwise-portal
|
Fix: Resolve Typescript errors
- Fixed Typescript errors in ApprovalQueue.tsx related to ApprovalStatus type and submission type.
|
{
"changed": [
"src/pages/ApprovalQueue.tsx",
"src/services/esgSubmissionService.ts",
"src/services/siteService.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": [
"$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": [
".font-inter",
"#root",
".glass-card-dark",
".dark",
"webkit-scrollbar",
".com",
"components",
".page-enter",
".page-enter-active",
"#d1d5db",
"webkit-scrollbar-thumb",
".transition-transform-fast",
".input-reset",
"base",
".page-exit-active",
".focus-ring",
".googleapis",
"root",
"hover",
"webkit-scrollbar-track",
"body",
".page-exit",
".glass-card",
".transition-all-fast"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.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": [
"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": [
"Calendar"
],
"keys": null,
"path": "src/components/ui/calendar.tsx",
"selectors": null
},
{
"functions": [
"StatusBadge",
"getStatusStyles",
"getStatusText"
],
"keys": null,
"path": "src/components/ui/StatusBadge.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": [
"GlassCard"
],
"keys": null,
"path": "src/components/ui/GlassCard.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": [
"ProgressRing"
],
"keys": null,
"path": "src/components/Dashboard/ProgressRing.tsx",
"selectors": null
},
{
"functions": [
"DashboardCard"
],
"keys": null,
"path": "src/components/Dashboard/DashboardCard.tsx",
"selectors": null
},
{
"functions": [
"PageTransition"
],
"keys": null,
"path": "src/components/Layout/PageTransition.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"getPageTitle"
],
"keys": null,
"path": "src/components/Layout/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Sidebar",
"toggleSidebar",
"toggleMobileSidebar"
],
"keys": null,
"path": "src/components/Layout/Sidebar.tsx",
"selectors": null
},
{
"functions": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"selectors": null
},
{
"functions": [
"fetchEmissionFactors",
"updateEmissionFactor",
"createEmissionFactor",
"deleteEmissionFactor"
],
"keys": null,
"path": "src/services/emissionFactorService.ts",
"selectors": null
},
{
"functions": [
"fetchSites",
"getSiteById"
],
"keys": null,
"path": "src/services/siteService.ts",
"selectors": null
},
{
"functions": [
"fetchDashboardData"
],
"keys": null,
"path": "src/services/dashboardService.ts",
"selectors": null
},
{
"functions": [
"createSubmission",
"saveAsDraft"
],
"keys": null,
"path": "src/services/esgSubmissionService.ts",
"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": [
"Dashboard"
],
"keys": null,
"path": "src/pages/Dashboard.tsx",
"selectors": null
},
{
"functions": [
"Sites",
"handleAddSite",
"handleDeleteSite",
"openDeleteDialog"
],
"keys": null,
"path": "src/pages/Sites.tsx",
"selectors": null
},
{
"functions": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"requestSort",
"handleApprove",
"handleReject",
"handleOpenRejectDialog",
"formatDate"
],
"keys": null,
"path": "src/pages/ApprovalQueue.tsx",
"selectors": null
},
{
"functions": [
"FormEntry",
"toggleSection",
"handleSubmit",
"handleSaveDraft",
"handleInputChange"
],
"keys": null,
"path": "src/pages/FormEntry.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
},
{
"functions": [
"EmissionFactors",
"handleEdit",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/EmissionFactors.tsx",
"selectors": null
}
] | 4 |
[
{
"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 Typescript errors\n\n- Fixed Typescript errors in ApprovalQueue.tsx related to ApprovalStatus type and submission 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 \"$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 \".font-inter\",\n \"#root\",\n \".glass-card-dark\",\n \".dark\",\n \"webkit-scrollbar\",\n \".com\",\n \"components\",\n \".page-enter\",\n \".page-enter-active\",\n \"#d1d5db\",\n \"webkit-scrollbar-thumb\",\n \".transition-transform-fast\",\n \".input-reset\",\n \"base\",\n \".page-exit-active\",\n \".focus-ring\",\n \".googleapis\",\n \"root\",\n \"hover\",\n \"webkit-scrollbar-track\",\n \"body\",\n \".page-exit\",\n \".glass-card\",\n \".transition-all-fast\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.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 \"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 \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatusBadge\",\n \"getStatusStyles\",\n \"getStatusText\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/StatusBadge.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 \"GlassCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/GlassCard.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 \"ProgressRing\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/ProgressRing.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DashboardCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/DashboardCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PageTransition\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/PageTransition.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"getPageTitle\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"toggleSidebar\",\n \"toggleMobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Sidebar.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 \"fetchEmissionFactors\",\n \"updateEmissionFactor\",\n \"createEmissionFactor\",\n \"deleteEmissionFactor\"\n ],\n \"keys\": null,\n \"path\": \"src/services/emissionFactorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchSites\",\n \"getSiteById\"\n ],\n \"keys\": null,\n \"path\": \"src/services/siteService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchDashboardData\"\n ],\n \"keys\": null,\n \"path\": \"src/services/dashboardService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"createSubmission\",\n \"saveAsDraft\"\n ],\n \"keys\": null,\n \"path\": \"src/services/esgSubmissionService.ts\",\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 \"Dashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sites\",\n \"handleAddSite\",\n \"handleDeleteSite\",\n \"openDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Sites.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 \"requestSort\",\n \"handleApprove\",\n \"handleReject\",\n \"handleOpenRejectDialog\",\n \"formatDate\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/ApprovalQueue.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FormEntry\",\n \"toggleSection\",\n \"handleSubmit\",\n \"handleSaveDraft\",\n \"handleInputChange\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/FormEntry.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmissionFactors\",\n \"handleEdit\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/EmissionFactors.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/ApprovalQueue.tsx\",\n \"src/services/esgSubmissionService.ts\",\n \"src/services/siteService.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
Viswanath856/esgwise-portal
|
Add Admin tab and fix dashboard
- Added an "Admin" tab with "User Management" and "Emission Factors" options.
- Moved the "Sites" tab into the "Admin" tab.
- Rectified the issue where data added through data collection was not reflected in the dashboard.
- Fixed the flickering issue in the data collection form.
|
{
"changed": [
"src/App.tsx",
"src/components/Layout/Sidebar.tsx",
"src/components/ui/form.tsx",
"src/services/dashboardService.ts"
],
"created": [
"src/pages/admin/UserManagement.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": [
"$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": [
".font-inter",
"#root",
".glass-card-dark",
".dark",
"webkit-scrollbar",
".com",
"components",
".page-enter",
".page-enter-active",
"#d1d5db",
"webkit-scrollbar-thumb",
".transition-transform-fast",
".input-reset",
"base",
".page-exit-active",
".focus-ring",
".googleapis",
"root",
"hover",
"webkit-scrollbar-track",
"body",
".page-exit",
".glass-card",
".transition-all-fast"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.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": [
"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": [
"Calendar"
],
"keys": null,
"path": "src/components/ui/calendar.tsx",
"selectors": null
},
{
"functions": [
"StatusBadge",
"getStatusStyles",
"getStatusText"
],
"keys": null,
"path": "src/components/ui/StatusBadge.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": [
"GlassCard"
],
"keys": null,
"path": "src/components/ui/GlassCard.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": [
"ProgressRing"
],
"keys": null,
"path": "src/components/Dashboard/ProgressRing.tsx",
"selectors": null
},
{
"functions": [
"DashboardCard"
],
"keys": null,
"path": "src/components/Dashboard/DashboardCard.tsx",
"selectors": null
},
{
"functions": [
"PageTransition"
],
"keys": null,
"path": "src/components/Layout/PageTransition.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"getPageTitle"
],
"keys": null,
"path": "src/components/Layout/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Sidebar",
"toggleSidebar",
"toggleMobileSidebar"
],
"keys": null,
"path": "src/components/Layout/Sidebar.tsx",
"selectors": null
},
{
"functions": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"selectors": null
},
{
"functions": [
"fetchEmissionFactors",
"updateEmissionFactor",
"createEmissionFactor",
"deleteEmissionFactor"
],
"keys": null,
"path": "src/services/emissionFactorService.ts",
"selectors": null
},
{
"functions": [
"fetchSites",
"getSiteById",
"createSite",
"updateSite",
"deleteSite"
],
"keys": null,
"path": "src/services/siteService.ts",
"selectors": null
},
{
"functions": [
"fetchDashboardData"
],
"keys": null,
"path": "src/services/dashboardService.ts",
"selectors": null
},
{
"functions": [
"createSubmission",
"saveAsDraft"
],
"keys": null,
"path": "src/services/esgSubmissionService.ts",
"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": [
"Dashboard"
],
"keys": null,
"path": "src/pages/Dashboard.tsx",
"selectors": null
},
{
"functions": [
"Sites",
"handleAddSite",
"handleDeleteSite",
"openDeleteDialog"
],
"keys": null,
"path": "src/pages/Sites.tsx",
"selectors": null
},
{
"functions": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"requestSort",
"handleApprove",
"handleReject",
"handleOpenRejectDialog",
"formatDate"
],
"keys": null,
"path": "src/pages/ApprovalQueue.tsx",
"selectors": null
},
{
"functions": [
"FormEntry",
"toggleSection",
"handleSubmit",
"handleSaveDraft",
"handleInputChange"
],
"keys": null,
"path": "src/pages/FormEntry.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
},
{
"functions": [
"EmissionFactors",
"handleEdit",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/EmissionFactors.tsx",
"selectors": null
}
] | 5 |
[
{
"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 Admin tab and fix dashboard\n\n- Added an \"Admin\" tab with \"User Management\" and \"Emission Factors\" options.\n- Moved the \"Sites\" tab into the \"Admin\" tab.\n- Rectified the issue where data added through data collection was not reflected in the dashboard.\n- Fixed the flickering issue in the data collection 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 \"$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 \".font-inter\",\n \"#root\",\n \".glass-card-dark\",\n \".dark\",\n \"webkit-scrollbar\",\n \".com\",\n \"components\",\n \".page-enter\",\n \".page-enter-active\",\n \"#d1d5db\",\n \"webkit-scrollbar-thumb\",\n \".transition-transform-fast\",\n \".input-reset\",\n \"base\",\n \".page-exit-active\",\n \".focus-ring\",\n \".googleapis\",\n \"root\",\n \"hover\",\n \"webkit-scrollbar-track\",\n \"body\",\n \".page-exit\",\n \".glass-card\",\n \".transition-all-fast\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.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 \"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 \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatusBadge\",\n \"getStatusStyles\",\n \"getStatusText\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/StatusBadge.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 \"GlassCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/GlassCard.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 \"ProgressRing\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/ProgressRing.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DashboardCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/DashboardCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PageTransition\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/PageTransition.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"getPageTitle\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"toggleSidebar\",\n \"toggleMobileSidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Sidebar.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 \"fetchEmissionFactors\",\n \"updateEmissionFactor\",\n \"createEmissionFactor\",\n \"deleteEmissionFactor\"\n ],\n \"keys\": null,\n \"path\": \"src/services/emissionFactorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchSites\",\n \"getSiteById\",\n \"createSite\",\n \"updateSite\",\n \"deleteSite\"\n ],\n \"keys\": null,\n \"path\": \"src/services/siteService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchDashboardData\"\n ],\n \"keys\": null,\n \"path\": \"src/services/dashboardService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"createSubmission\",\n \"saveAsDraft\"\n ],\n \"keys\": null,\n \"path\": \"src/services/esgSubmissionService.ts\",\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 \"Dashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sites\",\n \"handleAddSite\",\n \"handleDeleteSite\",\n \"openDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Sites.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 \"requestSort\",\n \"handleApprove\",\n \"handleReject\",\n \"handleOpenRejectDialog\",\n \"formatDate\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/ApprovalQueue.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FormEntry\",\n \"toggleSection\",\n \"handleSubmit\",\n \"handleSaveDraft\",\n \"handleInputChange\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/FormEntry.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmissionFactors\",\n \"handleEdit\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/EmissionFactors.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/Layout/Sidebar.tsx\",\n \"src/components/ui/form.tsx\",\n \"src/services/dashboardService.ts\"\n ],\n \"created\": [\n \"src/pages/admin/UserManagement.tsx\"\n ],\n \"deleted\": []\n}"
}
] |
Viswanath856/esgwise-portal
|
Update data collection and dashboard
- Revise data collection form based on provided image.
- Update data collection flow to include approval process and emission calculation.
- Replace dummy values in dashboard with actual data from collection form.
- Remove "site management" link from Home page and keep Admin link.
|
{
"changed": [
"src/App.tsx",
"src/components/Layout/Navbar.tsx",
"src/pages/FormEntry.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": [
"$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": [
".font-inter",
"#root",
".glass-card-dark",
".dark",
"webkit-scrollbar",
".com",
"components",
".page-enter",
".page-enter-active",
"#d1d5db",
"webkit-scrollbar-thumb",
".transition-transform-fast",
".input-reset",
"base",
".page-exit-active",
".focus-ring",
".googleapis",
"root",
"hover",
"webkit-scrollbar-track",
"body",
".page-exit",
".glass-card",
".transition-all-fast"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.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": [
"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": [
"Calendar"
],
"keys": null,
"path": "src/components/ui/calendar.tsx",
"selectors": null
},
{
"functions": [
"StatusBadge",
"getStatusStyles",
"getStatusText"
],
"keys": null,
"path": "src/components/ui/StatusBadge.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": [
"GlassCard"
],
"keys": null,
"path": "src/components/ui/GlassCard.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": [
"ProgressRing"
],
"keys": null,
"path": "src/components/Dashboard/ProgressRing.tsx",
"selectors": null
},
{
"functions": [
"DashboardCard"
],
"keys": null,
"path": "src/components/Dashboard/DashboardCard.tsx",
"selectors": null
},
{
"functions": [
"PageTransition"
],
"keys": null,
"path": "src/components/Layout/PageTransition.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"getPageTitle"
],
"keys": null,
"path": "src/components/Layout/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Sidebar",
"toggleSidebar",
"toggleMobileSidebar",
"toggleAdmin"
],
"keys": null,
"path": "src/components/Layout/Sidebar.tsx",
"selectors": null
},
{
"functions": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"selectors": null
},
{
"functions": [
"fetchEmissionFactors",
"updateEmissionFactor",
"createEmissionFactor",
"deleteEmissionFactor"
],
"keys": null,
"path": "src/services/emissionFactorService.ts",
"selectors": null
},
{
"functions": [
"fetchSites",
"getSiteById",
"createSite",
"updateSite",
"deleteSite"
],
"keys": null,
"path": "src/services/siteService.ts",
"selectors": null
},
{
"functions": [
"fetchDashboardData"
],
"keys": null,
"path": "src/services/dashboardService.ts",
"selectors": null
},
{
"functions": [
"createSubmission",
"saveAsDraft"
],
"keys": null,
"path": "src/services/esgSubmissionService.ts",
"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": [
"Dashboard"
],
"keys": null,
"path": "src/pages/Dashboard.tsx",
"selectors": null
},
{
"functions": [
"Sites",
"handleAddSite",
"handleDeleteSite",
"openDeleteDialog"
],
"keys": null,
"path": "src/pages/Sites.tsx",
"selectors": null
},
{
"functions": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"requestSort",
"handleApprove",
"handleReject",
"handleOpenRejectDialog",
"formatDate"
],
"keys": null,
"path": "src/pages/ApprovalQueue.tsx",
"selectors": null
},
{
"functions": [
"FormEntry",
"toggleSection",
"handleSubmit",
"handleSaveDraft",
"handleInputChange"
],
"keys": null,
"path": "src/pages/FormEntry.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
},
{
"functions": [
"EmissionFactors",
"handleEdit",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/EmissionFactors.tsx",
"selectors": null
},
{
"functions": [
"fetchUsers",
"UserManagement",
"handleEdit",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/admin/UserManagement.tsx",
"selectors": null
}
] | 6 |
[
{
"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 data collection and dashboard\n\n- Revise data collection form based on provided image.\n- Update data collection flow to include approval process and emission calculation.\n- Replace dummy values in dashboard with actual data from collection form.\n- Remove \"site management\" link from Home page and keep Admin link.\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 \"$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 \".font-inter\",\n \"#root\",\n \".glass-card-dark\",\n \".dark\",\n \"webkit-scrollbar\",\n \".com\",\n \"components\",\n \".page-enter\",\n \".page-enter-active\",\n \"#d1d5db\",\n \"webkit-scrollbar-thumb\",\n \".transition-transform-fast\",\n \".input-reset\",\n \"base\",\n \".page-exit-active\",\n \".focus-ring\",\n \".googleapis\",\n \"root\",\n \"hover\",\n \"webkit-scrollbar-track\",\n \"body\",\n \".page-exit\",\n \".glass-card\",\n \".transition-all-fast\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.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 \"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 \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatusBadge\",\n \"getStatusStyles\",\n \"getStatusText\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/StatusBadge.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 \"GlassCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/GlassCard.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 \"ProgressRing\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/ProgressRing.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DashboardCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/DashboardCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PageTransition\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/PageTransition.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"getPageTitle\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"toggleSidebar\",\n \"toggleMobileSidebar\",\n \"toggleAdmin\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Sidebar.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 \"fetchEmissionFactors\",\n \"updateEmissionFactor\",\n \"createEmissionFactor\",\n \"deleteEmissionFactor\"\n ],\n \"keys\": null,\n \"path\": \"src/services/emissionFactorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchSites\",\n \"getSiteById\",\n \"createSite\",\n \"updateSite\",\n \"deleteSite\"\n ],\n \"keys\": null,\n \"path\": \"src/services/siteService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchDashboardData\"\n ],\n \"keys\": null,\n \"path\": \"src/services/dashboardService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"createSubmission\",\n \"saveAsDraft\"\n ],\n \"keys\": null,\n \"path\": \"src/services/esgSubmissionService.ts\",\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 \"Dashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sites\",\n \"handleAddSite\",\n \"handleDeleteSite\",\n \"openDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Sites.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 \"requestSort\",\n \"handleApprove\",\n \"handleReject\",\n \"handleOpenRejectDialog\",\n \"formatDate\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/ApprovalQueue.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FormEntry\",\n \"toggleSection\",\n \"handleSubmit\",\n \"handleSaveDraft\",\n \"handleInputChange\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/FormEntry.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmissionFactors\",\n \"handleEdit\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/EmissionFactors.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchUsers\",\n \"UserManagement\",\n \"handleEdit\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/UserManagement.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/Layout/Navbar.tsx\",\n \"src/pages/FormEntry.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
Viswanath856/esgwise-portal
|
Fix module not found errors
Fixes the typescript errors related to missing module declarations for the admin pages.
|
{
"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": [
"$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": [
".font-inter",
"#root",
".glass-card-dark",
".dark",
"webkit-scrollbar",
".com",
"components",
".page-enter",
".page-enter-active",
"#d1d5db",
"webkit-scrollbar-thumb",
".transition-transform-fast",
".input-reset",
"base",
".page-exit-active",
".focus-ring",
".googleapis",
"root",
"hover",
"webkit-scrollbar-track",
"body",
".page-exit",
".glass-card",
".transition-all-fast"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.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": [
"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": [
"Calendar"
],
"keys": null,
"path": "src/components/ui/calendar.tsx",
"selectors": null
},
{
"functions": [
"StatusBadge",
"getStatusStyles",
"getStatusText"
],
"keys": null,
"path": "src/components/ui/StatusBadge.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": [
"GlassCard"
],
"keys": null,
"path": "src/components/ui/GlassCard.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": [
"ProgressRing"
],
"keys": null,
"path": "src/components/Dashboard/ProgressRing.tsx",
"selectors": null
},
{
"functions": [
"DashboardCard"
],
"keys": null,
"path": "src/components/Dashboard/DashboardCard.tsx",
"selectors": null
},
{
"functions": [
"PageTransition"
],
"keys": null,
"path": "src/components/Layout/PageTransition.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"getPageTitle"
],
"keys": null,
"path": "src/components/Layout/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Sidebar",
"toggleSidebar",
"toggleMobileSidebar",
"toggleAdmin"
],
"keys": null,
"path": "src/components/Layout/Sidebar.tsx",
"selectors": null
},
{
"functions": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"selectors": null
},
{
"functions": [
"fetchEmissionFactors",
"updateEmissionFactor",
"createEmissionFactor",
"deleteEmissionFactor"
],
"keys": null,
"path": "src/services/emissionFactorService.ts",
"selectors": null
},
{
"functions": [
"fetchSites",
"getSiteById",
"createSite",
"updateSite",
"deleteSite"
],
"keys": null,
"path": "src/services/siteService.ts",
"selectors": null
},
{
"functions": [
"fetchDashboardData"
],
"keys": null,
"path": "src/services/dashboardService.ts",
"selectors": null
},
{
"functions": [
"createSubmission",
"saveAsDraft"
],
"keys": null,
"path": "src/services/esgSubmissionService.ts",
"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": [
"Dashboard"
],
"keys": null,
"path": "src/pages/Dashboard.tsx",
"selectors": null
},
{
"functions": [
"Sites",
"handleAddSite",
"handleDeleteSite",
"openDeleteDialog"
],
"keys": null,
"path": "src/pages/Sites.tsx",
"selectors": null
},
{
"functions": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"requestSort",
"handleApprove",
"handleReject",
"handleOpenRejectDialog",
"formatDate"
],
"keys": null,
"path": "src/pages/ApprovalQueue.tsx",
"selectors": null
},
{
"functions": [
"FormEntry",
"handleSubmit",
"handleSaveDraft",
"updateFormData",
"getCurrentParameters",
"getCurrentCategories"
],
"keys": null,
"path": "src/pages/FormEntry.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
},
{
"functions": [
"EmissionFactors",
"handleEdit",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/EmissionFactors.tsx",
"selectors": null
},
{
"functions": [
"fetchUsers",
"UserManagement",
"handleEdit",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/admin/UserManagement.tsx",
"selectors": null
}
] | 7 |
[
{
"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 module not found errors\n\nFixes the typescript errors related to missing module declarations for the admin pages.\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 \"$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 \".font-inter\",\n \"#root\",\n \".glass-card-dark\",\n \".dark\",\n \"webkit-scrollbar\",\n \".com\",\n \"components\",\n \".page-enter\",\n \".page-enter-active\",\n \"#d1d5db\",\n \"webkit-scrollbar-thumb\",\n \".transition-transform-fast\",\n \".input-reset\",\n \"base\",\n \".page-exit-active\",\n \".focus-ring\",\n \".googleapis\",\n \"root\",\n \"hover\",\n \"webkit-scrollbar-track\",\n \"body\",\n \".page-exit\",\n \".glass-card\",\n \".transition-all-fast\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.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 \"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 \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatusBadge\",\n \"getStatusStyles\",\n \"getStatusText\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/StatusBadge.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 \"GlassCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/GlassCard.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 \"ProgressRing\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/ProgressRing.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DashboardCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/DashboardCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PageTransition\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/PageTransition.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"getPageTitle\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"toggleSidebar\",\n \"toggleMobileSidebar\",\n \"toggleAdmin\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Sidebar.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 \"fetchEmissionFactors\",\n \"updateEmissionFactor\",\n \"createEmissionFactor\",\n \"deleteEmissionFactor\"\n ],\n \"keys\": null,\n \"path\": \"src/services/emissionFactorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchSites\",\n \"getSiteById\",\n \"createSite\",\n \"updateSite\",\n \"deleteSite\"\n ],\n \"keys\": null,\n \"path\": \"src/services/siteService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchDashboardData\"\n ],\n \"keys\": null,\n \"path\": \"src/services/dashboardService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"createSubmission\",\n \"saveAsDraft\"\n ],\n \"keys\": null,\n \"path\": \"src/services/esgSubmissionService.ts\",\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 \"Dashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sites\",\n \"handleAddSite\",\n \"handleDeleteSite\",\n \"openDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Sites.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 \"requestSort\",\n \"handleApprove\",\n \"handleReject\",\n \"handleOpenRejectDialog\",\n \"formatDate\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/ApprovalQueue.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FormEntry\",\n \"handleSubmit\",\n \"handleSaveDraft\",\n \"updateFormData\",\n \"getCurrentParameters\",\n \"getCurrentCategories\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/FormEntry.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmissionFactors\",\n \"handleEdit\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/EmissionFactors.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchUsers\",\n \"UserManagement\",\n \"handleEdit\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/UserManagement.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 \"deleted\": []\n}"
}
] |
Viswanath856/esgwise-portal
|
Implement emission calculation and dashboard update
- Implemented emission calculation for "Energy Consumption" parameters in the data collection form.
- Updated the dashboard to reflect approved data submissions with graphs and charts.
- Removed "Site Management" option from the home page.
|
{
"changed": [
"src/components/Layout/Navbar.tsx",
"src/pages/Dashboard.tsx",
"src/pages/Index.tsx",
"src/services/dashboardService.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": [
"$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": [
".font-inter",
"#root",
".glass-card-dark",
".dark",
"webkit-scrollbar",
".com",
"components",
".page-enter",
".page-enter-active",
"#d1d5db",
"webkit-scrollbar-thumb",
".transition-transform-fast",
".input-reset",
"base",
".page-exit-active",
".focus-ring",
".googleapis",
"root",
"hover",
"webkit-scrollbar-track",
"body",
".page-exit",
".glass-card",
".transition-all-fast"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.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": [
"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": [
"Calendar"
],
"keys": null,
"path": "src/components/ui/calendar.tsx",
"selectors": null
},
{
"functions": [
"StatusBadge",
"getStatusStyles",
"getStatusText"
],
"keys": null,
"path": "src/components/ui/StatusBadge.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": [
"GlassCard"
],
"keys": null,
"path": "src/components/ui/GlassCard.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": [
"ProgressRing"
],
"keys": null,
"path": "src/components/Dashboard/ProgressRing.tsx",
"selectors": null
},
{
"functions": [
"DashboardCard"
],
"keys": null,
"path": "src/components/Dashboard/DashboardCard.tsx",
"selectors": null
},
{
"functions": [
"PageTransition"
],
"keys": null,
"path": "src/components/Layout/PageTransition.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"getPageTitle"
],
"keys": null,
"path": "src/components/Layout/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Sidebar",
"toggleSidebar",
"toggleMobileSidebar",
"toggleAdmin"
],
"keys": null,
"path": "src/components/Layout/Sidebar.tsx",
"selectors": null
},
{
"functions": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"selectors": null
},
{
"functions": [
"fetchEmissionFactors",
"updateEmissionFactor",
"createEmissionFactor",
"deleteEmissionFactor"
],
"keys": null,
"path": "src/services/emissionFactorService.ts",
"selectors": null
},
{
"functions": [
"fetchSites",
"getSiteById",
"createSite",
"updateSite",
"deleteSite"
],
"keys": null,
"path": "src/services/siteService.ts",
"selectors": null
},
{
"functions": [
"fetchDashboardData"
],
"keys": null,
"path": "src/services/dashboardService.ts",
"selectors": null
},
{
"functions": [
"createSubmission",
"saveAsDraft"
],
"keys": null,
"path": "src/services/esgSubmissionService.ts",
"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": [
"Dashboard"
],
"keys": null,
"path": "src/pages/Dashboard.tsx",
"selectors": null
},
{
"functions": [
"Sites",
"handleAddSite",
"handleDeleteSite",
"openDeleteDialog"
],
"keys": null,
"path": "src/pages/Sites.tsx",
"selectors": null
},
{
"functions": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"requestSort",
"handleApprove",
"handleReject",
"handleOpenRejectDialog",
"formatDate"
],
"keys": null,
"path": "src/pages/ApprovalQueue.tsx",
"selectors": null
},
{
"functions": [
"FormEntry",
"handleSubmit",
"handleSaveDraft",
"updateFormData",
"getCurrentParameters",
"getCurrentCategories"
],
"keys": null,
"path": "src/pages/FormEntry.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
},
{
"functions": [
"EmissionFactors",
"handleEdit",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/EmissionFactors.tsx",
"selectors": null
},
{
"functions": [
"fetchUsers",
"UserManagement",
"handleEdit",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/admin/UserManagement.tsx",
"selectors": null
}
] | 8 |
[
{
"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:**\nImplement emission calculation and dashboard update\n\n- Implemented emission calculation for \"Energy Consumption\" parameters in the data collection form.\n- Updated the dashboard to reflect approved data submissions with graphs and charts.\n- Removed \"Site Management\" option from the home 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 \"$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 \".font-inter\",\n \"#root\",\n \".glass-card-dark\",\n \".dark\",\n \"webkit-scrollbar\",\n \".com\",\n \"components\",\n \".page-enter\",\n \".page-enter-active\",\n \"#d1d5db\",\n \"webkit-scrollbar-thumb\",\n \".transition-transform-fast\",\n \".input-reset\",\n \"base\",\n \".page-exit-active\",\n \".focus-ring\",\n \".googleapis\",\n \"root\",\n \"hover\",\n \"webkit-scrollbar-track\",\n \"body\",\n \".page-exit\",\n \".glass-card\",\n \".transition-all-fast\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.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 \"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 \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatusBadge\",\n \"getStatusStyles\",\n \"getStatusText\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/StatusBadge.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 \"GlassCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/GlassCard.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 \"ProgressRing\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/ProgressRing.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DashboardCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/DashboardCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PageTransition\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/PageTransition.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"getPageTitle\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"toggleSidebar\",\n \"toggleMobileSidebar\",\n \"toggleAdmin\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Sidebar.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 \"fetchEmissionFactors\",\n \"updateEmissionFactor\",\n \"createEmissionFactor\",\n \"deleteEmissionFactor\"\n ],\n \"keys\": null,\n \"path\": \"src/services/emissionFactorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchSites\",\n \"getSiteById\",\n \"createSite\",\n \"updateSite\",\n \"deleteSite\"\n ],\n \"keys\": null,\n \"path\": \"src/services/siteService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchDashboardData\"\n ],\n \"keys\": null,\n \"path\": \"src/services/dashboardService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"createSubmission\",\n \"saveAsDraft\"\n ],\n \"keys\": null,\n \"path\": \"src/services/esgSubmissionService.ts\",\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 \"Dashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sites\",\n \"handleAddSite\",\n \"handleDeleteSite\",\n \"openDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Sites.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 \"requestSort\",\n \"handleApprove\",\n \"handleReject\",\n \"handleOpenRejectDialog\",\n \"formatDate\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/ApprovalQueue.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FormEntry\",\n \"handleSubmit\",\n \"handleSaveDraft\",\n \"updateFormData\",\n \"getCurrentParameters\",\n \"getCurrentCategories\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/FormEntry.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmissionFactors\",\n \"handleEdit\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/EmissionFactors.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchUsers\",\n \"UserManagement\",\n \"handleEdit\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/UserManagement.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/Layout/Navbar.tsx\",\n \"src/pages/Dashboard.tsx\",\n \"src/pages/Index.tsx\",\n \"src/services/dashboardService.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
Viswanath856/esgwise-portal
|
Fix TypeScript errors
Fixes multiple TypeScript errors in the codebase, including JSX element type issues and duplicate object properties.
|
{
"changed": [
"src/pages/Dashboard.tsx",
"src/services/dashboardService.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": [
"$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": [
".font-inter",
"#root",
".glass-card-dark",
".dark",
"webkit-scrollbar",
".com",
"components",
".page-enter",
".page-enter-active",
"#d1d5db",
"webkit-scrollbar-thumb",
".transition-transform-fast",
".input-reset",
"base",
".page-exit-active",
".focus-ring",
".googleapis",
"root",
"hover",
"webkit-scrollbar-track",
"body",
".page-exit",
".glass-card",
".transition-all-fast"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.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": [
"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": [
"Calendar"
],
"keys": null,
"path": "src/components/ui/calendar.tsx",
"selectors": null
},
{
"functions": [
"StatusBadge",
"getStatusStyles",
"getStatusText"
],
"keys": null,
"path": "src/components/ui/StatusBadge.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": [
"GlassCard"
],
"keys": null,
"path": "src/components/ui/GlassCard.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": [
"ProgressRing"
],
"keys": null,
"path": "src/components/Dashboard/ProgressRing.tsx",
"selectors": null
},
{
"functions": [
"DashboardCard"
],
"keys": null,
"path": "src/components/Dashboard/DashboardCard.tsx",
"selectors": null
},
{
"functions": [
"PageTransition"
],
"keys": null,
"path": "src/components/Layout/PageTransition.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"getPageTitle"
],
"keys": null,
"path": "src/components/Layout/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Sidebar",
"toggleSidebar",
"toggleMobileSidebar",
"toggleAdmin"
],
"keys": null,
"path": "src/components/Layout/Sidebar.tsx",
"selectors": null
},
{
"functions": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"selectors": null
},
{
"functions": [
"fetchEmissionFactors",
"updateEmissionFactor",
"createEmissionFactor",
"deleteEmissionFactor"
],
"keys": null,
"path": "src/services/emissionFactorService.ts",
"selectors": null
},
{
"functions": [
"fetchSites",
"getSiteById",
"createSite",
"updateSite",
"deleteSite"
],
"keys": null,
"path": "src/services/siteService.ts",
"selectors": null
},
{
"functions": [
"fetchDashboardData"
],
"keys": null,
"path": "src/services/dashboardService.ts",
"selectors": null
},
{
"functions": [
"createSubmission",
"saveAsDraft"
],
"keys": null,
"path": "src/services/esgSubmissionService.ts",
"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": [
"Dashboard"
],
"keys": null,
"path": "src/pages/Dashboard.tsx",
"selectors": null
},
{
"functions": [
"Sites",
"handleAddSite",
"handleDeleteSite",
"openDeleteDialog"
],
"keys": null,
"path": "src/pages/Sites.tsx",
"selectors": null
},
{
"functions": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"requestSort",
"handleApprove",
"handleReject",
"handleOpenRejectDialog",
"formatDate"
],
"keys": null,
"path": "src/pages/ApprovalQueue.tsx",
"selectors": null
},
{
"functions": [
"FormEntry",
"handleSubmit",
"handleSaveDraft",
"updateFormData",
"getCurrentParameters",
"getCurrentCategories"
],
"keys": null,
"path": "src/pages/FormEntry.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
},
{
"functions": [
"EmissionFactors",
"handleEdit",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/EmissionFactors.tsx",
"selectors": null
},
{
"functions": [
"fetchUsers",
"UserManagement",
"handleEdit",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/admin/UserManagement.tsx",
"selectors": null
}
] | 9 |
[
{
"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 TypeScript errors\n\nFixes multiple TypeScript errors in the codebase, including JSX element type issues and duplicate object properties.\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 \"$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 \".font-inter\",\n \"#root\",\n \".glass-card-dark\",\n \".dark\",\n \"webkit-scrollbar\",\n \".com\",\n \"components\",\n \".page-enter\",\n \".page-enter-active\",\n \"#d1d5db\",\n \"webkit-scrollbar-thumb\",\n \".transition-transform-fast\",\n \".input-reset\",\n \"base\",\n \".page-exit-active\",\n \".focus-ring\",\n \".googleapis\",\n \"root\",\n \"hover\",\n \"webkit-scrollbar-track\",\n \"body\",\n \".page-exit\",\n \".glass-card\",\n \".transition-all-fast\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.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 \"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 \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatusBadge\",\n \"getStatusStyles\",\n \"getStatusText\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/StatusBadge.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 \"GlassCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/GlassCard.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 \"ProgressRing\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/ProgressRing.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DashboardCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/DashboardCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PageTransition\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/PageTransition.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"getPageTitle\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"toggleSidebar\",\n \"toggleMobileSidebar\",\n \"toggleAdmin\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Sidebar.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 \"fetchEmissionFactors\",\n \"updateEmissionFactor\",\n \"createEmissionFactor\",\n \"deleteEmissionFactor\"\n ],\n \"keys\": null,\n \"path\": \"src/services/emissionFactorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchSites\",\n \"getSiteById\",\n \"createSite\",\n \"updateSite\",\n \"deleteSite\"\n ],\n \"keys\": null,\n \"path\": \"src/services/siteService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchDashboardData\"\n ],\n \"keys\": null,\n \"path\": \"src/services/dashboardService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"createSubmission\",\n \"saveAsDraft\"\n ],\n \"keys\": null,\n \"path\": \"src/services/esgSubmissionService.ts\",\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 \"Dashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sites\",\n \"handleAddSite\",\n \"handleDeleteSite\",\n \"openDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Sites.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 \"requestSort\",\n \"handleApprove\",\n \"handleReject\",\n \"handleOpenRejectDialog\",\n \"formatDate\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/ApprovalQueue.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FormEntry\",\n \"handleSubmit\",\n \"handleSaveDraft\",\n \"updateFormData\",\n \"getCurrentParameters\",\n \"getCurrentCategories\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/FormEntry.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmissionFactors\",\n \"handleEdit\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/EmissionFactors.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchUsers\",\n \"UserManagement\",\n \"handleEdit\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/UserManagement.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/Dashboard.tsx\",\n \"src/services/dashboardService.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
Viswanath856/esgwise-portal
|
Implement reports section and data linking
- Implement reports section to display approved data.
- Link user management to the database.
- Ensure data is visible when "View" is clicked in the approval queue.
|
{
"changed": [
"src/App.tsx",
"src/pages/ApprovalQueue.tsx",
"src/pages/Index.tsx",
"src/pages/admin/UserManagement.tsx",
"src/services/dashboardService.ts",
"src/services/esgSubmissionService.ts"
],
"created": [
"src/pages/Reports.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": [
"$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": [
".font-inter",
"#root",
".glass-card-dark",
".dark",
"webkit-scrollbar",
".com",
"components",
".page-enter",
".page-enter-active",
"#d1d5db",
"webkit-scrollbar-thumb",
".transition-transform-fast",
".input-reset",
"base",
".page-exit-active",
".focus-ring",
".googleapis",
"root",
"hover",
"webkit-scrollbar-track",
"body",
".page-exit",
".glass-card",
".transition-all-fast"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.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": [
"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": [
"Calendar"
],
"keys": null,
"path": "src/components/ui/calendar.tsx",
"selectors": null
},
{
"functions": [
"StatusBadge",
"getStatusStyles",
"getStatusText"
],
"keys": null,
"path": "src/components/ui/StatusBadge.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": [
"GlassCard"
],
"keys": null,
"path": "src/components/ui/GlassCard.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": [
"ProgressRing"
],
"keys": null,
"path": "src/components/Dashboard/ProgressRing.tsx",
"selectors": null
},
{
"functions": [
"DashboardCard"
],
"keys": null,
"path": "src/components/Dashboard/DashboardCard.tsx",
"selectors": null
},
{
"functions": [
"PageTransition"
],
"keys": null,
"path": "src/components/Layout/PageTransition.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"getPageTitle"
],
"keys": null,
"path": "src/components/Layout/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Sidebar",
"toggleSidebar",
"toggleMobileSidebar",
"toggleAdmin"
],
"keys": null,
"path": "src/components/Layout/Sidebar.tsx",
"selectors": null
},
{
"functions": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"selectors": null
},
{
"functions": [
"fetchEmissionFactors",
"updateEmissionFactor",
"createEmissionFactor",
"deleteEmissionFactor"
],
"keys": null,
"path": "src/services/emissionFactorService.ts",
"selectors": null
},
{
"functions": [
"fetchSites",
"getSiteById",
"createSite",
"updateSite",
"deleteSite"
],
"keys": null,
"path": "src/services/siteService.ts",
"selectors": null
},
{
"functions": [
"fetchDashboardData"
],
"keys": null,
"path": "src/services/dashboardService.ts",
"selectors": null
},
{
"functions": [
"createSubmission",
"saveAsDraft"
],
"keys": null,
"path": "src/services/esgSubmissionService.ts",
"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": [
"Dashboard"
],
"keys": null,
"path": "src/pages/Dashboard.tsx",
"selectors": null
},
{
"functions": [
"Sites",
"handleAddSite",
"handleDeleteSite",
"openDeleteDialog"
],
"keys": null,
"path": "src/pages/Sites.tsx",
"selectors": null
},
{
"functions": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"requestSort",
"handleApprove",
"handleReject",
"handleOpenRejectDialog",
"formatDate"
],
"keys": null,
"path": "src/pages/ApprovalQueue.tsx",
"selectors": null
},
{
"functions": [
"FormEntry",
"handleSubmit",
"handleSaveDraft",
"updateFormData",
"getCurrentParameters",
"getCurrentCategories"
],
"keys": null,
"path": "src/pages/FormEntry.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
},
{
"functions": [
"EmissionFactors",
"handleEdit",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/EmissionFactors.tsx",
"selectors": null
},
{
"functions": [
"fetchUsers",
"UserManagement",
"handleEdit",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/admin/UserManagement.tsx",
"selectors": null
}
] | 10 |
[
{
"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:**\nImplement reports section and data linking\n\n- Implement reports section to display approved data.\n- Link user management to the database.\n- Ensure data is visible when \"View\" is clicked in the approval queue.\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 \"$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 \".font-inter\",\n \"#root\",\n \".glass-card-dark\",\n \".dark\",\n \"webkit-scrollbar\",\n \".com\",\n \"components\",\n \".page-enter\",\n \".page-enter-active\",\n \"#d1d5db\",\n \"webkit-scrollbar-thumb\",\n \".transition-transform-fast\",\n \".input-reset\",\n \"base\",\n \".page-exit-active\",\n \".focus-ring\",\n \".googleapis\",\n \"root\",\n \"hover\",\n \"webkit-scrollbar-track\",\n \"body\",\n \".page-exit\",\n \".glass-card\",\n \".transition-all-fast\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.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 \"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 \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatusBadge\",\n \"getStatusStyles\",\n \"getStatusText\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/StatusBadge.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 \"GlassCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/GlassCard.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 \"ProgressRing\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/ProgressRing.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DashboardCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/DashboardCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PageTransition\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/PageTransition.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"getPageTitle\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"toggleSidebar\",\n \"toggleMobileSidebar\",\n \"toggleAdmin\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Sidebar.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 \"fetchEmissionFactors\",\n \"updateEmissionFactor\",\n \"createEmissionFactor\",\n \"deleteEmissionFactor\"\n ],\n \"keys\": null,\n \"path\": \"src/services/emissionFactorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchSites\",\n \"getSiteById\",\n \"createSite\",\n \"updateSite\",\n \"deleteSite\"\n ],\n \"keys\": null,\n \"path\": \"src/services/siteService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchDashboardData\"\n ],\n \"keys\": null,\n \"path\": \"src/services/dashboardService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"createSubmission\",\n \"saveAsDraft\"\n ],\n \"keys\": null,\n \"path\": \"src/services/esgSubmissionService.ts\",\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 \"Dashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sites\",\n \"handleAddSite\",\n \"handleDeleteSite\",\n \"openDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Sites.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 \"requestSort\",\n \"handleApprove\",\n \"handleReject\",\n \"handleOpenRejectDialog\",\n \"formatDate\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/ApprovalQueue.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FormEntry\",\n \"handleSubmit\",\n \"handleSaveDraft\",\n \"updateFormData\",\n \"getCurrentParameters\",\n \"getCurrentCategories\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/FormEntry.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmissionFactors\",\n \"handleEdit\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/EmissionFactors.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchUsers\",\n \"UserManagement\",\n \"handleEdit\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/UserManagement.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/ApprovalQueue.tsx\",\n \"src/pages/Index.tsx\",\n \"src/pages/admin/UserManagement.tsx\",\n \"src/services/dashboardService.ts\",\n \"src/services/esgSubmissionService.ts\"\n ],\n \"created\": [\n \"src/pages/Reports.tsx\"\n ],\n \"deleted\": []\n}"
}
] |
Viswanath856/esgwise-portal
|
Fix import error in App.tsx
Corrected the import path for the Layout component in App.tsx to resolve a file not found error.
|
{
"changed": [
"src/pages/ApprovalQueue.tsx"
],
"created": [
"src/components/Layout/Layout.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": [
"$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": [
".font-inter",
"#root",
".glass-card-dark",
".dark",
"webkit-scrollbar",
".com",
"components",
".page-enter",
".page-enter-active",
"#d1d5db",
"webkit-scrollbar-thumb",
".transition-transform-fast",
".input-reset",
"base",
".page-exit-active",
".focus-ring",
".googleapis",
"root",
"hover",
"webkit-scrollbar-track",
"body",
".page-exit",
".glass-card",
".transition-all-fast"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.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": [
"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": [
"Calendar"
],
"keys": null,
"path": "src/components/ui/calendar.tsx",
"selectors": null
},
{
"functions": [
"StatusBadge",
"getStatusStyles",
"getStatusText"
],
"keys": null,
"path": "src/components/ui/StatusBadge.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": [
"GlassCard"
],
"keys": null,
"path": "src/components/ui/GlassCard.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": [
"ProgressRing"
],
"keys": null,
"path": "src/components/Dashboard/ProgressRing.tsx",
"selectors": null
},
{
"functions": [
"DashboardCard"
],
"keys": null,
"path": "src/components/Dashboard/DashboardCard.tsx",
"selectors": null
},
{
"functions": [
"PageTransition"
],
"keys": null,
"path": "src/components/Layout/PageTransition.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"getPageTitle"
],
"keys": null,
"path": "src/components/Layout/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Sidebar",
"toggleSidebar",
"toggleMobileSidebar",
"toggleAdmin"
],
"keys": null,
"path": "src/components/Layout/Sidebar.tsx",
"selectors": null
},
{
"functions": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"selectors": null
},
{
"functions": [
"fetchEmissionFactors",
"updateEmissionFactor",
"createEmissionFactor",
"deleteEmissionFactor"
],
"keys": null,
"path": "src/services/emissionFactorService.ts",
"selectors": null
},
{
"functions": [
"fetchSites",
"getSiteById",
"createSite",
"updateSite",
"deleteSite"
],
"keys": null,
"path": "src/services/siteService.ts",
"selectors": null
},
{
"functions": [
"fetchDashboardData",
"fetchApprovedSubmissions"
],
"keys": null,
"path": "src/services/dashboardService.ts",
"selectors": null
},
{
"functions": [
"createSubmission",
"saveAsDraft"
],
"keys": null,
"path": "src/services/esgSubmissionService.ts",
"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": [
"Dashboard"
],
"keys": null,
"path": "src/pages/Dashboard.tsx",
"selectors": null
},
{
"functions": [
"Sites",
"handleAddSite",
"handleDeleteSite",
"openDeleteDialog"
],
"keys": null,
"path": "src/pages/Sites.tsx",
"selectors": null
},
{
"functions": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"requestSort",
"handleApprove",
"handleReject",
"handleOpenRejectDialog",
"handleOpenViewDialog",
"formatDate",
"renderEnvironmentalData",
"renderSocialData",
"renderGovernanceData"
],
"keys": null,
"path": "src/pages/ApprovalQueue.tsx",
"selectors": null
},
{
"functions": [
"FormEntry",
"handleSubmit",
"handleSaveDraft",
"updateFormData",
"getCurrentParameters",
"getCurrentCategories"
],
"keys": null,
"path": "src/pages/FormEntry.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
},
{
"functions": [
"EmissionFactors",
"handleEdit",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/EmissionFactors.tsx",
"selectors": null
},
{
"functions": [
"UserManagement",
"if"
],
"keys": null,
"path": "src/pages/admin/UserManagement.tsx",
"selectors": null
},
{
"functions": [
"Reports",
"handleDownloadCSV"
],
"keys": null,
"path": "src/pages/Reports.tsx",
"selectors": null
}
] | 11 |
[
{
"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 import error in App.tsx\n\nCorrected the import path for the Layout component in App.tsx to resolve a file not found 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 \"$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 \".font-inter\",\n \"#root\",\n \".glass-card-dark\",\n \".dark\",\n \"webkit-scrollbar\",\n \".com\",\n \"components\",\n \".page-enter\",\n \".page-enter-active\",\n \"#d1d5db\",\n \"webkit-scrollbar-thumb\",\n \".transition-transform-fast\",\n \".input-reset\",\n \"base\",\n \".page-exit-active\",\n \".focus-ring\",\n \".googleapis\",\n \"root\",\n \"hover\",\n \"webkit-scrollbar-track\",\n \"body\",\n \".page-exit\",\n \".glass-card\",\n \".transition-all-fast\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.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 \"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 \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatusBadge\",\n \"getStatusStyles\",\n \"getStatusText\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/StatusBadge.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 \"GlassCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/GlassCard.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 \"ProgressRing\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/ProgressRing.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DashboardCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/DashboardCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PageTransition\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/PageTransition.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"getPageTitle\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"toggleSidebar\",\n \"toggleMobileSidebar\",\n \"toggleAdmin\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Sidebar.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 \"fetchEmissionFactors\",\n \"updateEmissionFactor\",\n \"createEmissionFactor\",\n \"deleteEmissionFactor\"\n ],\n \"keys\": null,\n \"path\": \"src/services/emissionFactorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchSites\",\n \"getSiteById\",\n \"createSite\",\n \"updateSite\",\n \"deleteSite\"\n ],\n \"keys\": null,\n \"path\": \"src/services/siteService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchDashboardData\",\n \"fetchApprovedSubmissions\"\n ],\n \"keys\": null,\n \"path\": \"src/services/dashboardService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"createSubmission\",\n \"saveAsDraft\"\n ],\n \"keys\": null,\n \"path\": \"src/services/esgSubmissionService.ts\",\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 \"Dashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sites\",\n \"handleAddSite\",\n \"handleDeleteSite\",\n \"openDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Sites.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 \"requestSort\",\n \"handleApprove\",\n \"handleReject\",\n \"handleOpenRejectDialog\",\n \"handleOpenViewDialog\",\n \"formatDate\",\n \"renderEnvironmentalData\",\n \"renderSocialData\",\n \"renderGovernanceData\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/ApprovalQueue.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FormEntry\",\n \"handleSubmit\",\n \"handleSaveDraft\",\n \"updateFormData\",\n \"getCurrentParameters\",\n \"getCurrentCategories\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/FormEntry.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmissionFactors\",\n \"handleEdit\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/EmissionFactors.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"UserManagement\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/UserManagement.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Reports\",\n \"handleDownloadCSV\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Reports.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/ApprovalQueue.tsx\"\n ],\n \"created\": [\n \"src/components/Layout/Layout.tsx\"\n ],\n \"deleted\": []\n}"
}
] |
Viswanath856/esgwise-portal
|
Fix: Resolve ApprovalQueue.tsx errors
Corrected import errors and property access issues in ApprovalQueue.tsx.
Specifically, addressed missing exports from esgSubmissionService and type definition for ESGSubmission.
Also, handled potential undefined data in filter methods.
|
{
"changed": [
"src/pages/ApprovalQueue.tsx",
"src/services/esgSubmissionService.ts",
"src/types/esg.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": [
"$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": [
".font-inter",
"#root",
".glass-card-dark",
".dark",
"webkit-scrollbar",
".com",
"components",
".page-enter",
".page-enter-active",
"#d1d5db",
"webkit-scrollbar-thumb",
".transition-transform-fast",
".input-reset",
"base",
".page-exit-active",
".focus-ring",
".googleapis",
"root",
"hover",
"webkit-scrollbar-track",
"body",
".page-exit",
".glass-card",
".transition-all-fast"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.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": [
"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": [
"Calendar"
],
"keys": null,
"path": "src/components/ui/calendar.tsx",
"selectors": null
},
{
"functions": [
"StatusBadge",
"getStatusStyles",
"getStatusText"
],
"keys": null,
"path": "src/components/ui/StatusBadge.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": [
"GlassCard"
],
"keys": null,
"path": "src/components/ui/GlassCard.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": [
"ProgressRing"
],
"keys": null,
"path": "src/components/Dashboard/ProgressRing.tsx",
"selectors": null
},
{
"functions": [
"DashboardCard"
],
"keys": null,
"path": "src/components/Dashboard/DashboardCard.tsx",
"selectors": null
},
{
"functions": [
"PageTransition"
],
"keys": null,
"path": "src/components/Layout/PageTransition.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"getPageTitle"
],
"keys": null,
"path": "src/components/Layout/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Sidebar",
"toggleSidebar",
"toggleMobileSidebar",
"toggleAdmin"
],
"keys": null,
"path": "src/components/Layout/Sidebar.tsx",
"selectors": null
},
{
"functions": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"selectors": null
},
{
"functions": [
"fetchEmissionFactors",
"updateEmissionFactor",
"createEmissionFactor",
"deleteEmissionFactor"
],
"keys": null,
"path": "src/services/emissionFactorService.ts",
"selectors": null
},
{
"functions": [
"fetchSites",
"getSiteById",
"createSite",
"updateSite",
"deleteSite"
],
"keys": null,
"path": "src/services/siteService.ts",
"selectors": null
},
{
"functions": [
"fetchDashboardData",
"fetchApprovedSubmissions"
],
"keys": null,
"path": "src/services/dashboardService.ts",
"selectors": null
},
{
"functions": [
"createSubmission",
"saveAsDraft"
],
"keys": null,
"path": "src/services/esgSubmissionService.ts",
"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": [
"Dashboard"
],
"keys": null,
"path": "src/pages/Dashboard.tsx",
"selectors": null
},
{
"functions": [
"Sites",
"handleAddSite",
"handleDeleteSite",
"openDeleteDialog"
],
"keys": null,
"path": "src/pages/Sites.tsx",
"selectors": null
},
{
"functions": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"ApprovalQueue"
],
"keys": null,
"path": "src/pages/ApprovalQueue.tsx",
"selectors": null
},
{
"functions": [
"FormEntry",
"handleSubmit",
"handleSaveDraft",
"updateFormData",
"getCurrentParameters",
"getCurrentCategories"
],
"keys": null,
"path": "src/pages/FormEntry.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
},
{
"functions": [
"EmissionFactors",
"handleEdit",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/EmissionFactors.tsx",
"selectors": null
},
{
"functions": [
"UserManagement",
"if"
],
"keys": null,
"path": "src/pages/admin/UserManagement.tsx",
"selectors": null
},
{
"functions": [
"Layout"
],
"keys": null,
"path": "src/components/Layout/Layout.tsx",
"selectors": null
},
{
"functions": [
"Reports",
"handleDownloadCSV"
],
"keys": null,
"path": "src/pages/Reports.tsx",
"selectors": null
}
] | 12 |
[
{
"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 ApprovalQueue.tsx errors\n\nCorrected import errors and property access issues in ApprovalQueue.tsx.\nSpecifically, addressed missing exports from esgSubmissionService and type definition for ESGSubmission.\nAlso, handled potential undefined data in filter methods.\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 \"$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 \".font-inter\",\n \"#root\",\n \".glass-card-dark\",\n \".dark\",\n \"webkit-scrollbar\",\n \".com\",\n \"components\",\n \".page-enter\",\n \".page-enter-active\",\n \"#d1d5db\",\n \"webkit-scrollbar-thumb\",\n \".transition-transform-fast\",\n \".input-reset\",\n \"base\",\n \".page-exit-active\",\n \".focus-ring\",\n \".googleapis\",\n \"root\",\n \"hover\",\n \"webkit-scrollbar-track\",\n \"body\",\n \".page-exit\",\n \".glass-card\",\n \".transition-all-fast\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.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 \"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 \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatusBadge\",\n \"getStatusStyles\",\n \"getStatusText\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/StatusBadge.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 \"GlassCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/GlassCard.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 \"ProgressRing\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/ProgressRing.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DashboardCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/DashboardCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PageTransition\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/PageTransition.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"getPageTitle\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"toggleSidebar\",\n \"toggleMobileSidebar\",\n \"toggleAdmin\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Sidebar.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 \"fetchEmissionFactors\",\n \"updateEmissionFactor\",\n \"createEmissionFactor\",\n \"deleteEmissionFactor\"\n ],\n \"keys\": null,\n \"path\": \"src/services/emissionFactorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchSites\",\n \"getSiteById\",\n \"createSite\",\n \"updateSite\",\n \"deleteSite\"\n ],\n \"keys\": null,\n \"path\": \"src/services/siteService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchDashboardData\",\n \"fetchApprovedSubmissions\"\n ],\n \"keys\": null,\n \"path\": \"src/services/dashboardService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"createSubmission\",\n \"saveAsDraft\"\n ],\n \"keys\": null,\n \"path\": \"src/services/esgSubmissionService.ts\",\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 \"Dashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sites\",\n \"handleAddSite\",\n \"handleDeleteSite\",\n \"openDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Sites.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 \"ApprovalQueue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/ApprovalQueue.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FormEntry\",\n \"handleSubmit\",\n \"handleSaveDraft\",\n \"updateFormData\",\n \"getCurrentParameters\",\n \"getCurrentCategories\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/FormEntry.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmissionFactors\",\n \"handleEdit\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/EmissionFactors.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"UserManagement\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/UserManagement.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Reports\",\n \"handleDownloadCSV\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Reports.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/ApprovalQueue.tsx\",\n \"src/services/esgSubmissionService.ts\",\n \"src/types/esg.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
Viswanath856/esgwise-portal
|
Fix: Resolve type errors
The code was throwing type errors because properties were being accessed on an empty object. This commit ensures that the properties exist on the object before accessing them.
|
{
"changed": [
"src/services/esgSubmissionService.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": [
"$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": [
".font-inter",
"#root",
".glass-card-dark",
".dark",
"webkit-scrollbar",
".com",
"components",
".page-enter",
".page-enter-active",
"#d1d5db",
"webkit-scrollbar-thumb",
".transition-transform-fast",
".input-reset",
"base",
".page-exit-active",
".focus-ring",
".googleapis",
"root",
"hover",
"webkit-scrollbar-track",
"body",
".page-exit",
".glass-card",
".transition-all-fast"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.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": [
"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": [
"Calendar"
],
"keys": null,
"path": "src/components/ui/calendar.tsx",
"selectors": null
},
{
"functions": [
"StatusBadge",
"getStatusStyles",
"getStatusText"
],
"keys": null,
"path": "src/components/ui/StatusBadge.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": [
"GlassCard"
],
"keys": null,
"path": "src/components/ui/GlassCard.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": [
"ProgressRing"
],
"keys": null,
"path": "src/components/Dashboard/ProgressRing.tsx",
"selectors": null
},
{
"functions": [
"DashboardCard"
],
"keys": null,
"path": "src/components/Dashboard/DashboardCard.tsx",
"selectors": null
},
{
"functions": [
"PageTransition"
],
"keys": null,
"path": "src/components/Layout/PageTransition.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"getPageTitle"
],
"keys": null,
"path": "src/components/Layout/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Sidebar",
"toggleSidebar",
"toggleMobileSidebar",
"toggleAdmin"
],
"keys": null,
"path": "src/components/Layout/Sidebar.tsx",
"selectors": null
},
{
"functions": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"selectors": null
},
{
"functions": [
"fetchEmissionFactors",
"updateEmissionFactor",
"createEmissionFactor",
"deleteEmissionFactor"
],
"keys": null,
"path": "src/services/emissionFactorService.ts",
"selectors": null
},
{
"functions": [
"fetchSites",
"getSiteById",
"createSite",
"updateSite",
"deleteSite"
],
"keys": null,
"path": "src/services/siteService.ts",
"selectors": null
},
{
"functions": [
"fetchDashboardData",
"fetchApprovedSubmissions"
],
"keys": null,
"path": "src/services/dashboardService.ts",
"selectors": null
},
{
"functions": [
"createSubmission",
"saveAsDraft"
],
"keys": null,
"path": "src/services/esgSubmissionService.ts",
"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": [
"Dashboard"
],
"keys": null,
"path": "src/pages/Dashboard.tsx",
"selectors": null
},
{
"functions": [
"Sites",
"handleAddSite",
"handleDeleteSite",
"openDeleteDialog"
],
"keys": null,
"path": "src/pages/Sites.tsx",
"selectors": null
},
{
"functions": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"ApprovalQueue"
],
"keys": null,
"path": "src/pages/ApprovalQueue.tsx",
"selectors": null
},
{
"functions": [
"FormEntry",
"handleSubmit",
"handleSaveDraft",
"updateFormData",
"getCurrentParameters",
"getCurrentCategories"
],
"keys": null,
"path": "src/pages/FormEntry.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
},
{
"functions": [
"EmissionFactors",
"handleEdit",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/EmissionFactors.tsx",
"selectors": null
},
{
"functions": [
"UserManagement",
"if"
],
"keys": null,
"path": "src/pages/admin/UserManagement.tsx",
"selectors": null
},
{
"functions": [
"Layout"
],
"keys": null,
"path": "src/components/Layout/Layout.tsx",
"selectors": null
},
{
"functions": [
"Reports",
"handleDownloadCSV"
],
"keys": null,
"path": "src/pages/Reports.tsx",
"selectors": null
}
] | 13 |
[
{
"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 errors\n\nThe code was throwing type errors because properties were being accessed on an empty object. This commit ensures that the properties exist on the object before accessing them.\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 \"$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 \".font-inter\",\n \"#root\",\n \".glass-card-dark\",\n \".dark\",\n \"webkit-scrollbar\",\n \".com\",\n \"components\",\n \".page-enter\",\n \".page-enter-active\",\n \"#d1d5db\",\n \"webkit-scrollbar-thumb\",\n \".transition-transform-fast\",\n \".input-reset\",\n \"base\",\n \".page-exit-active\",\n \".focus-ring\",\n \".googleapis\",\n \"root\",\n \"hover\",\n \"webkit-scrollbar-track\",\n \"body\",\n \".page-exit\",\n \".glass-card\",\n \".transition-all-fast\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.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 \"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 \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatusBadge\",\n \"getStatusStyles\",\n \"getStatusText\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/StatusBadge.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 \"GlassCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/GlassCard.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 \"ProgressRing\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/ProgressRing.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DashboardCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/DashboardCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PageTransition\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/PageTransition.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"getPageTitle\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"toggleSidebar\",\n \"toggleMobileSidebar\",\n \"toggleAdmin\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Sidebar.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 \"fetchEmissionFactors\",\n \"updateEmissionFactor\",\n \"createEmissionFactor\",\n \"deleteEmissionFactor\"\n ],\n \"keys\": null,\n \"path\": \"src/services/emissionFactorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchSites\",\n \"getSiteById\",\n \"createSite\",\n \"updateSite\",\n \"deleteSite\"\n ],\n \"keys\": null,\n \"path\": \"src/services/siteService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchDashboardData\",\n \"fetchApprovedSubmissions\"\n ],\n \"keys\": null,\n \"path\": \"src/services/dashboardService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"createSubmission\",\n \"saveAsDraft\"\n ],\n \"keys\": null,\n \"path\": \"src/services/esgSubmissionService.ts\",\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 \"Dashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sites\",\n \"handleAddSite\",\n \"handleDeleteSite\",\n \"openDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Sites.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 \"ApprovalQueue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/ApprovalQueue.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FormEntry\",\n \"handleSubmit\",\n \"handleSaveDraft\",\n \"updateFormData\",\n \"getCurrentParameters\",\n \"getCurrentCategories\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/FormEntry.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmissionFactors\",\n \"handleEdit\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/EmissionFactors.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"UserManagement\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/UserManagement.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Reports\",\n \"handleDownloadCSV\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Reports.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/esgSubmissionService.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
Viswanath856/esgwise-portal
|
Reverted to edit edt-478960ef-9c04-4345-9b55-74a5768dde3d: "Fix TypeScript errors
Fixes multiple TypeScript errors in the codebase, including JSX element type issues and duplicate object properties."
|
{
"changed": [
"src/App.tsx",
"src/pages/ApprovalQueue.tsx",
"src/pages/Index.tsx",
"src/pages/admin/UserManagement.tsx",
"src/services/dashboardService.ts",
"src/services/esgSubmissionService.ts",
"src/types/esg.ts"
],
"created": [],
"deleted": [
"src/components/Layout/Layout.tsx",
"src/pages/Reports.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": [
"$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": [
".font-inter",
"#root",
".glass-card-dark",
".dark",
"webkit-scrollbar",
".com",
"components",
".page-enter",
".page-enter-active",
"#d1d5db",
"webkit-scrollbar-thumb",
".transition-transform-fast",
".input-reset",
"base",
".page-exit-active",
".focus-ring",
".googleapis",
"root",
"hover",
"webkit-scrollbar-track",
"body",
".page-exit",
".glass-card",
".transition-all-fast"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.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": [
"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": [
"Calendar"
],
"keys": null,
"path": "src/components/ui/calendar.tsx",
"selectors": null
},
{
"functions": [
"StatusBadge",
"getStatusStyles",
"getStatusText"
],
"keys": null,
"path": "src/components/ui/StatusBadge.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": [
"GlassCard"
],
"keys": null,
"path": "src/components/ui/GlassCard.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": [
"ProgressRing"
],
"keys": null,
"path": "src/components/Dashboard/ProgressRing.tsx",
"selectors": null
},
{
"functions": [
"DashboardCard"
],
"keys": null,
"path": "src/components/Dashboard/DashboardCard.tsx",
"selectors": null
},
{
"functions": [
"PageTransition"
],
"keys": null,
"path": "src/components/Layout/PageTransition.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"getPageTitle"
],
"keys": null,
"path": "src/components/Layout/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Sidebar",
"toggleSidebar",
"toggleMobileSidebar",
"toggleAdmin"
],
"keys": null,
"path": "src/components/Layout/Sidebar.tsx",
"selectors": null
},
{
"functions": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"selectors": null
},
{
"functions": [
"fetchEmissionFactors",
"updateEmissionFactor",
"createEmissionFactor",
"deleteEmissionFactor"
],
"keys": null,
"path": "src/services/emissionFactorService.ts",
"selectors": null
},
{
"functions": [
"fetchSites",
"getSiteById",
"createSite",
"updateSite",
"deleteSite"
],
"keys": null,
"path": "src/services/siteService.ts",
"selectors": null
},
{
"functions": [
"fetchDashboardData",
"fetchApprovedSubmissions"
],
"keys": null,
"path": "src/services/dashboardService.ts",
"selectors": null
},
{
"functions": [
"createSubmission",
"saveAsDraft"
],
"keys": null,
"path": "src/services/esgSubmissionService.ts",
"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": [
"Dashboard"
],
"keys": null,
"path": "src/pages/Dashboard.tsx",
"selectors": null
},
{
"functions": [
"Sites",
"handleAddSite",
"handleDeleteSite",
"openDeleteDialog"
],
"keys": null,
"path": "src/pages/Sites.tsx",
"selectors": null
},
{
"functions": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"ApprovalQueue"
],
"keys": null,
"path": "src/pages/ApprovalQueue.tsx",
"selectors": null
},
{
"functions": [
"FormEntry",
"handleSubmit",
"handleSaveDraft",
"updateFormData",
"getCurrentParameters",
"getCurrentCategories"
],
"keys": null,
"path": "src/pages/FormEntry.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
},
{
"functions": [
"EmissionFactors",
"handleEdit",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/EmissionFactors.tsx",
"selectors": null
},
{
"functions": [
"UserManagement",
"if"
],
"keys": null,
"path": "src/pages/admin/UserManagement.tsx",
"selectors": null
},
{
"functions": [
"Layout"
],
"keys": null,
"path": "src/components/Layout/Layout.tsx",
"selectors": null
},
{
"functions": [
"Reports",
"handleDownloadCSV"
],
"keys": null,
"path": "src/pages/Reports.tsx",
"selectors": null
}
] | 14 |
[
{
"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-478960ef-9c04-4345-9b55-74a5768dde3d: \"Fix TypeScript errors\n\nFixes multiple TypeScript errors in the codebase, including JSX element type issues and duplicate object properties.\"\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 \"$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 \".font-inter\",\n \"#root\",\n \".glass-card-dark\",\n \".dark\",\n \"webkit-scrollbar\",\n \".com\",\n \"components\",\n \".page-enter\",\n \".page-enter-active\",\n \"#d1d5db\",\n \"webkit-scrollbar-thumb\",\n \".transition-transform-fast\",\n \".input-reset\",\n \"base\",\n \".page-exit-active\",\n \".focus-ring\",\n \".googleapis\",\n \"root\",\n \"hover\",\n \"webkit-scrollbar-track\",\n \"body\",\n \".page-exit\",\n \".glass-card\",\n \".transition-all-fast\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.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 \"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 \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatusBadge\",\n \"getStatusStyles\",\n \"getStatusText\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/StatusBadge.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 \"GlassCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/GlassCard.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 \"ProgressRing\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/ProgressRing.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DashboardCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/DashboardCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PageTransition\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/PageTransition.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"getPageTitle\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"toggleSidebar\",\n \"toggleMobileSidebar\",\n \"toggleAdmin\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Sidebar.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 \"fetchEmissionFactors\",\n \"updateEmissionFactor\",\n \"createEmissionFactor\",\n \"deleteEmissionFactor\"\n ],\n \"keys\": null,\n \"path\": \"src/services/emissionFactorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchSites\",\n \"getSiteById\",\n \"createSite\",\n \"updateSite\",\n \"deleteSite\"\n ],\n \"keys\": null,\n \"path\": \"src/services/siteService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchDashboardData\",\n \"fetchApprovedSubmissions\"\n ],\n \"keys\": null,\n \"path\": \"src/services/dashboardService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"createSubmission\",\n \"saveAsDraft\"\n ],\n \"keys\": null,\n \"path\": \"src/services/esgSubmissionService.ts\",\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 \"Dashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sites\",\n \"handleAddSite\",\n \"handleDeleteSite\",\n \"openDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Sites.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 \"ApprovalQueue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/ApprovalQueue.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FormEntry\",\n \"handleSubmit\",\n \"handleSaveDraft\",\n \"updateFormData\",\n \"getCurrentParameters\",\n \"getCurrentCategories\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/FormEntry.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmissionFactors\",\n \"handleEdit\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/EmissionFactors.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"UserManagement\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/UserManagement.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Layout\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Layout.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Reports\",\n \"handleDownloadCSV\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Reports.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/ApprovalQueue.tsx\",\n \"src/pages/Index.tsx\",\n \"src/pages/admin/UserManagement.tsx\",\n \"src/services/dashboardService.ts\",\n \"src/services/esgSubmissionService.ts\",\n \"src/types/esg.ts\"\n ],\n \"created\": [],\n \"deleted\": [\n \"src/components/Layout/Layout.tsx\",\n \"src/pages/Reports.tsx\"\n ]\n}"
}
] |
Viswanath856/esgwise-portal
|
Add reports section page
This commit creates a new page to display reports, fetching and displaying approved data in tables.
|
{
"changed": [
"src/App.tsx",
"src/components/Layout/Sidebar.tsx"
],
"created": [
"src/pages/Reports.tsx",
"src/services/reportService.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": [
"$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": [
".font-inter",
"#root",
".glass-card-dark",
".dark",
"webkit-scrollbar",
".com",
"components",
".page-enter",
".page-enter-active",
"#d1d5db",
"webkit-scrollbar-thumb",
".transition-transform-fast",
".input-reset",
"base",
".page-exit-active",
".focus-ring",
".googleapis",
"root",
"hover",
"webkit-scrollbar-track",
"body",
".page-exit",
".glass-card",
".transition-all-fast"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.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": [
"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": [
"Calendar"
],
"keys": null,
"path": "src/components/ui/calendar.tsx",
"selectors": null
},
{
"functions": [
"StatusBadge",
"getStatusStyles",
"getStatusText"
],
"keys": null,
"path": "src/components/ui/StatusBadge.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": [
"GlassCard"
],
"keys": null,
"path": "src/components/ui/GlassCard.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": [
"ProgressRing"
],
"keys": null,
"path": "src/components/Dashboard/ProgressRing.tsx",
"selectors": null
},
{
"functions": [
"DashboardCard"
],
"keys": null,
"path": "src/components/Dashboard/DashboardCard.tsx",
"selectors": null
},
{
"functions": [
"PageTransition"
],
"keys": null,
"path": "src/components/Layout/PageTransition.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"getPageTitle"
],
"keys": null,
"path": "src/components/Layout/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Sidebar",
"toggleSidebar",
"toggleMobileSidebar",
"toggleAdmin"
],
"keys": null,
"path": "src/components/Layout/Sidebar.tsx",
"selectors": null
},
{
"functions": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"selectors": null
},
{
"functions": [
"fetchEmissionFactors",
"updateEmissionFactor",
"createEmissionFactor",
"deleteEmissionFactor"
],
"keys": null,
"path": "src/services/emissionFactorService.ts",
"selectors": null
},
{
"functions": [
"fetchSites",
"getSiteById",
"createSite",
"updateSite",
"deleteSite"
],
"keys": null,
"path": "src/services/siteService.ts",
"selectors": null
},
{
"functions": [
"fetchDashboardData"
],
"keys": null,
"path": "src/services/dashboardService.ts",
"selectors": null
},
{
"functions": [
"createSubmission",
"saveAsDraft"
],
"keys": null,
"path": "src/services/esgSubmissionService.ts",
"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": [
"Dashboard"
],
"keys": null,
"path": "src/pages/Dashboard.tsx",
"selectors": null
},
{
"functions": [
"Sites",
"handleAddSite",
"handleDeleteSite",
"openDeleteDialog"
],
"keys": null,
"path": "src/pages/Sites.tsx",
"selectors": null
},
{
"functions": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"requestSort",
"handleApprove",
"handleReject",
"handleOpenRejectDialog",
"formatDate"
],
"keys": null,
"path": "src/pages/ApprovalQueue.tsx",
"selectors": null
},
{
"functions": [
"FormEntry",
"handleSubmit",
"handleSaveDraft",
"updateFormData",
"getCurrentParameters",
"getCurrentCategories"
],
"keys": null,
"path": "src/pages/FormEntry.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
},
{
"functions": [
"EmissionFactors",
"handleEdit",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/EmissionFactors.tsx",
"selectors": null
},
{
"functions": [
"fetchUsers",
"UserManagement",
"handleEdit",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/admin/UserManagement.tsx",
"selectors": null
}
] | 15 |
[
{
"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 reports section page\n\nThis commit creates a new page to display reports, fetching and displaying approved data in tables.\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 \"$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 \".font-inter\",\n \"#root\",\n \".glass-card-dark\",\n \".dark\",\n \"webkit-scrollbar\",\n \".com\",\n \"components\",\n \".page-enter\",\n \".page-enter-active\",\n \"#d1d5db\",\n \"webkit-scrollbar-thumb\",\n \".transition-transform-fast\",\n \".input-reset\",\n \"base\",\n \".page-exit-active\",\n \".focus-ring\",\n \".googleapis\",\n \"root\",\n \"hover\",\n \"webkit-scrollbar-track\",\n \"body\",\n \".page-exit\",\n \".glass-card\",\n \".transition-all-fast\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.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 \"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 \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatusBadge\",\n \"getStatusStyles\",\n \"getStatusText\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/StatusBadge.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 \"GlassCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/GlassCard.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 \"ProgressRing\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/ProgressRing.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DashboardCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/DashboardCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PageTransition\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/PageTransition.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"getPageTitle\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"toggleSidebar\",\n \"toggleMobileSidebar\",\n \"toggleAdmin\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Sidebar.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 \"fetchEmissionFactors\",\n \"updateEmissionFactor\",\n \"createEmissionFactor\",\n \"deleteEmissionFactor\"\n ],\n \"keys\": null,\n \"path\": \"src/services/emissionFactorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchSites\",\n \"getSiteById\",\n \"createSite\",\n \"updateSite\",\n \"deleteSite\"\n ],\n \"keys\": null,\n \"path\": \"src/services/siteService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchDashboardData\"\n ],\n \"keys\": null,\n \"path\": \"src/services/dashboardService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"createSubmission\",\n \"saveAsDraft\"\n ],\n \"keys\": null,\n \"path\": \"src/services/esgSubmissionService.ts\",\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 \"Dashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sites\",\n \"handleAddSite\",\n \"handleDeleteSite\",\n \"openDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Sites.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 \"requestSort\",\n \"handleApprove\",\n \"handleReject\",\n \"handleOpenRejectDialog\",\n \"formatDate\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/ApprovalQueue.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FormEntry\",\n \"handleSubmit\",\n \"handleSaveDraft\",\n \"updateFormData\",\n \"getCurrentParameters\",\n \"getCurrentCategories\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/FormEntry.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmissionFactors\",\n \"handleEdit\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/EmissionFactors.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchUsers\",\n \"UserManagement\",\n \"handleEdit\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/UserManagement.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/Layout/Sidebar.tsx\"\n ],\n \"created\": [\n \"src/pages/Reports.tsx\",\n \"src/services/reportService.ts\"\n ],\n \"deleted\": []\n}"
}
] |
Viswanath856/esgwise-portal
|
Fix missing export
The `useMobileContext` hook was not exported from the `use-mobile` module, causing a TypeScript error. This commit exports the hook to resolve the issue.
|
{
"changed": [
"src/App.tsx",
"src/hooks/use-mobile.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": [
"$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": [
".font-inter",
"#root",
".glass-card-dark",
".dark",
"webkit-scrollbar",
".com",
"components",
".page-enter",
".page-enter-active",
"#d1d5db",
"webkit-scrollbar-thumb",
".transition-transform-fast",
".input-reset",
"base",
".page-exit-active",
".focus-ring",
".googleapis",
"root",
"hover",
"webkit-scrollbar-track",
"body",
".page-exit",
".glass-card",
".transition-all-fast"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.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": [
"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": [
"Calendar"
],
"keys": null,
"path": "src/components/ui/calendar.tsx",
"selectors": null
},
{
"functions": [
"StatusBadge",
"getStatusStyles",
"getStatusText"
],
"keys": null,
"path": "src/components/ui/StatusBadge.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": [
"GlassCard"
],
"keys": null,
"path": "src/components/ui/GlassCard.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": [
"ProgressRing"
],
"keys": null,
"path": "src/components/Dashboard/ProgressRing.tsx",
"selectors": null
},
{
"functions": [
"DashboardCard"
],
"keys": null,
"path": "src/components/Dashboard/DashboardCard.tsx",
"selectors": null
},
{
"functions": [
"PageTransition"
],
"keys": null,
"path": "src/components/Layout/PageTransition.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"getPageTitle"
],
"keys": null,
"path": "src/components/Layout/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Sidebar"
],
"keys": null,
"path": "src/components/Layout/Sidebar.tsx",
"selectors": null
},
{
"functions": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"selectors": null
},
{
"functions": [
"fetchEmissionFactors",
"updateEmissionFactor",
"createEmissionFactor",
"deleteEmissionFactor"
],
"keys": null,
"path": "src/services/emissionFactorService.ts",
"selectors": null
},
{
"functions": [
"fetchSites",
"getSiteById",
"createSite",
"updateSite",
"deleteSite"
],
"keys": null,
"path": "src/services/siteService.ts",
"selectors": null
},
{
"functions": [
"fetchDashboardData"
],
"keys": null,
"path": "src/services/dashboardService.ts",
"selectors": null
},
{
"functions": [
"createSubmission",
"saveAsDraft"
],
"keys": null,
"path": "src/services/esgSubmissionService.ts",
"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": [
"Dashboard"
],
"keys": null,
"path": "src/pages/Dashboard.tsx",
"selectors": null
},
{
"functions": [
"Sites",
"handleAddSite",
"handleDeleteSite",
"openDeleteDialog"
],
"keys": null,
"path": "src/pages/Sites.tsx",
"selectors": null
},
{
"functions": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"requestSort",
"handleApprove",
"handleReject",
"handleOpenRejectDialog",
"formatDate"
],
"keys": null,
"path": "src/pages/ApprovalQueue.tsx",
"selectors": null
},
{
"functions": [
"FormEntry",
"handleSubmit",
"handleSaveDraft",
"updateFormData",
"getCurrentParameters",
"getCurrentCategories"
],
"keys": null,
"path": "src/pages/FormEntry.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
},
{
"functions": [
"EmissionFactors",
"handleEdit",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/EmissionFactors.tsx",
"selectors": null
},
{
"functions": [
"fetchUsers",
"UserManagement",
"handleEdit",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/admin/UserManagement.tsx",
"selectors": null
},
{
"functions": [
"Reports"
],
"keys": null,
"path": "src/pages/Reports.tsx",
"selectors": null
},
{
"functions": [
"fetchApprovedSubmissionsData"
],
"keys": null,
"path": "src/services/reportService.ts",
"selectors": null
}
] | 16 |
[
{
"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 missing export\n\nThe `useMobileContext` hook was not exported from the `use-mobile` module, causing a TypeScript error. This commit exports the hook to resolve 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 \"$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 \".font-inter\",\n \"#root\",\n \".glass-card-dark\",\n \".dark\",\n \"webkit-scrollbar\",\n \".com\",\n \"components\",\n \".page-enter\",\n \".page-enter-active\",\n \"#d1d5db\",\n \"webkit-scrollbar-thumb\",\n \".transition-transform-fast\",\n \".input-reset\",\n \"base\",\n \".page-exit-active\",\n \".focus-ring\",\n \".googleapis\",\n \"root\",\n \"hover\",\n \"webkit-scrollbar-track\",\n \"body\",\n \".page-exit\",\n \".glass-card\",\n \".transition-all-fast\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.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 \"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 \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatusBadge\",\n \"getStatusStyles\",\n \"getStatusText\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/StatusBadge.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 \"GlassCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/GlassCard.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 \"ProgressRing\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/ProgressRing.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DashboardCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/DashboardCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PageTransition\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/PageTransition.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"getPageTitle\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Sidebar.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 \"fetchEmissionFactors\",\n \"updateEmissionFactor\",\n \"createEmissionFactor\",\n \"deleteEmissionFactor\"\n ],\n \"keys\": null,\n \"path\": \"src/services/emissionFactorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchSites\",\n \"getSiteById\",\n \"createSite\",\n \"updateSite\",\n \"deleteSite\"\n ],\n \"keys\": null,\n \"path\": \"src/services/siteService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchDashboardData\"\n ],\n \"keys\": null,\n \"path\": \"src/services/dashboardService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"createSubmission\",\n \"saveAsDraft\"\n ],\n \"keys\": null,\n \"path\": \"src/services/esgSubmissionService.ts\",\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 \"Dashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sites\",\n \"handleAddSite\",\n \"handleDeleteSite\",\n \"openDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Sites.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 \"requestSort\",\n \"handleApprove\",\n \"handleReject\",\n \"handleOpenRejectDialog\",\n \"formatDate\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/ApprovalQueue.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FormEntry\",\n \"handleSubmit\",\n \"handleSaveDraft\",\n \"updateFormData\",\n \"getCurrentParameters\",\n \"getCurrentCategories\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/FormEntry.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmissionFactors\",\n \"handleEdit\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/EmissionFactors.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchUsers\",\n \"UserManagement\",\n \"handleEdit\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/UserManagement.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Reports\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Reports.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchApprovedSubmissionsData\"\n ],\n \"keys\": null,\n \"path\": \"src/services/reportService.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/hooks/use-mobile.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
Viswanath856/esgwise-portal
|
Reverted to edit edt-478960ef-9c04-4345-9b55-74a5768dde3d: "Fix TypeScript errors
Fixes multiple TypeScript errors in the codebase, including JSX element type issues and duplicate object properties."
|
{
"changed": [
"src/App.tsx",
"src/components/Layout/Sidebar.tsx",
"src/hooks/use-mobile.tsx"
],
"created": [],
"deleted": [
"src/pages/Reports.tsx",
"src/services/reportService.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": [
"$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": [
".font-inter",
"#root",
".glass-card-dark",
".dark",
"webkit-scrollbar",
".com",
"components",
".page-enter",
".page-enter-active",
"#d1d5db",
"webkit-scrollbar-thumb",
".transition-transform-fast",
".input-reset",
"base",
".page-exit-active",
".focus-ring",
".googleapis",
"root",
"hover",
"webkit-scrollbar-track",
"body",
".page-exit",
".glass-card",
".transition-all-fast"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.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": [
"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": [
"Calendar"
],
"keys": null,
"path": "src/components/ui/calendar.tsx",
"selectors": null
},
{
"functions": [
"StatusBadge",
"getStatusStyles",
"getStatusText"
],
"keys": null,
"path": "src/components/ui/StatusBadge.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": [
"GlassCard"
],
"keys": null,
"path": "src/components/ui/GlassCard.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": [
"ProgressRing"
],
"keys": null,
"path": "src/components/Dashboard/ProgressRing.tsx",
"selectors": null
},
{
"functions": [
"DashboardCard"
],
"keys": null,
"path": "src/components/Dashboard/DashboardCard.tsx",
"selectors": null
},
{
"functions": [
"PageTransition"
],
"keys": null,
"path": "src/components/Layout/PageTransition.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"getPageTitle"
],
"keys": null,
"path": "src/components/Layout/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Sidebar"
],
"keys": null,
"path": "src/components/Layout/Sidebar.tsx",
"selectors": null
},
{
"functions": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"selectors": null
},
{
"functions": [
"fetchEmissionFactors",
"updateEmissionFactor",
"createEmissionFactor",
"deleteEmissionFactor"
],
"keys": null,
"path": "src/services/emissionFactorService.ts",
"selectors": null
},
{
"functions": [
"fetchSites",
"getSiteById",
"createSite",
"updateSite",
"deleteSite"
],
"keys": null,
"path": "src/services/siteService.ts",
"selectors": null
},
{
"functions": [
"fetchDashboardData"
],
"keys": null,
"path": "src/services/dashboardService.ts",
"selectors": null
},
{
"functions": [
"createSubmission",
"saveAsDraft"
],
"keys": null,
"path": "src/services/esgSubmissionService.ts",
"selectors": null
},
{
"functions": [
"genId",
"addToRemoveQueue",
"reducer",
"dispatch",
"toast",
"update",
"dismiss"
],
"keys": null,
"path": "src/hooks/use-toast.ts",
"selectors": null
},
{
"functions": [
"onChange",
"useMobileContext",
"useIsMobile"
],
"keys": null,
"path": "src/hooks/use-mobile.tsx",
"selectors": null
},
{
"functions": [
"Dashboard"
],
"keys": null,
"path": "src/pages/Dashboard.tsx",
"selectors": null
},
{
"functions": [
"Sites",
"handleAddSite",
"handleDeleteSite",
"openDeleteDialog"
],
"keys": null,
"path": "src/pages/Sites.tsx",
"selectors": null
},
{
"functions": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"requestSort",
"handleApprove",
"handleReject",
"handleOpenRejectDialog",
"formatDate"
],
"keys": null,
"path": "src/pages/ApprovalQueue.tsx",
"selectors": null
},
{
"functions": [
"FormEntry",
"handleSubmit",
"handleSaveDraft",
"updateFormData",
"getCurrentParameters",
"getCurrentCategories"
],
"keys": null,
"path": "src/pages/FormEntry.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
},
{
"functions": [
"EmissionFactors",
"handleEdit",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/EmissionFactors.tsx",
"selectors": null
},
{
"functions": [
"fetchUsers",
"UserManagement",
"handleEdit",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/admin/UserManagement.tsx",
"selectors": null
},
{
"functions": [
"Reports"
],
"keys": null,
"path": "src/pages/Reports.tsx",
"selectors": null
},
{
"functions": [
"fetchApprovedSubmissionsData"
],
"keys": null,
"path": "src/services/reportService.ts",
"selectors": null
}
] | 17 |
[
{
"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-478960ef-9c04-4345-9b55-74a5768dde3d: \"Fix TypeScript errors\n\nFixes multiple TypeScript errors in the codebase, including JSX element type issues and duplicate object properties.\"\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 \"$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 \".font-inter\",\n \"#root\",\n \".glass-card-dark\",\n \".dark\",\n \"webkit-scrollbar\",\n \".com\",\n \"components\",\n \".page-enter\",\n \".page-enter-active\",\n \"#d1d5db\",\n \"webkit-scrollbar-thumb\",\n \".transition-transform-fast\",\n \".input-reset\",\n \"base\",\n \".page-exit-active\",\n \".focus-ring\",\n \".googleapis\",\n \"root\",\n \"hover\",\n \"webkit-scrollbar-track\",\n \"body\",\n \".page-exit\",\n \".glass-card\",\n \".transition-all-fast\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.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 \"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 \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatusBadge\",\n \"getStatusStyles\",\n \"getStatusText\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/StatusBadge.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 \"GlassCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/GlassCard.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 \"ProgressRing\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/ProgressRing.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DashboardCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/DashboardCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PageTransition\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/PageTransition.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"getPageTitle\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Sidebar.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 \"fetchEmissionFactors\",\n \"updateEmissionFactor\",\n \"createEmissionFactor\",\n \"deleteEmissionFactor\"\n ],\n \"keys\": null,\n \"path\": \"src/services/emissionFactorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchSites\",\n \"getSiteById\",\n \"createSite\",\n \"updateSite\",\n \"deleteSite\"\n ],\n \"keys\": null,\n \"path\": \"src/services/siteService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchDashboardData\"\n ],\n \"keys\": null,\n \"path\": \"src/services/dashboardService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"createSubmission\",\n \"saveAsDraft\"\n ],\n \"keys\": null,\n \"path\": \"src/services/esgSubmissionService.ts\",\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 \"onChange\",\n \"useMobileContext\",\n \"useIsMobile\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/use-mobile.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Dashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sites\",\n \"handleAddSite\",\n \"handleDeleteSite\",\n \"openDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Sites.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 \"requestSort\",\n \"handleApprove\",\n \"handleReject\",\n \"handleOpenRejectDialog\",\n \"formatDate\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/ApprovalQueue.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FormEntry\",\n \"handleSubmit\",\n \"handleSaveDraft\",\n \"updateFormData\",\n \"getCurrentParameters\",\n \"getCurrentCategories\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/FormEntry.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmissionFactors\",\n \"handleEdit\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/EmissionFactors.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchUsers\",\n \"UserManagement\",\n \"handleEdit\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/UserManagement.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Reports\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Reports.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchApprovedSubmissionsData\"\n ],\n \"keys\": null,\n \"path\": \"src/services/reportService.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/Layout/Sidebar.tsx\",\n \"src/hooks/use-mobile.tsx\"\n ],\n \"created\": [],\n \"deleted\": [\n \"src/pages/Reports.tsx\",\n \"src/services/reportService.ts\"\n ]\n}"
}
] |
Viswanath856/esgwise-portal
|
Run SQL scripts
The SQL scripts have been reviewed and approved, and are now being executed.
|
{
"changed": [
"src/App.tsx",
"src/components/Layout/Sidebar.tsx",
"src/integrations/supabase/types.ts",
"src/pages/admin/UserManagement.tsx"
],
"created": [
"src/pages/Reports.tsx",
"src/services/reportService.ts",
"src/services/userService.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": [
"$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": [
".font-inter",
"#root",
".glass-card-dark",
".dark",
"webkit-scrollbar",
".com",
"components",
".page-enter",
".page-enter-active",
"#d1d5db",
"webkit-scrollbar-thumb",
".transition-transform-fast",
".input-reset",
"base",
".page-exit-active",
".focus-ring",
".googleapis",
"root",
"hover",
"webkit-scrollbar-track",
"body",
".page-exit",
".glass-card",
".transition-all-fast"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.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": [
"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": [
"Calendar"
],
"keys": null,
"path": "src/components/ui/calendar.tsx",
"selectors": null
},
{
"functions": [
"StatusBadge",
"getStatusStyles",
"getStatusText"
],
"keys": null,
"path": "src/components/ui/StatusBadge.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": [
"GlassCard"
],
"keys": null,
"path": "src/components/ui/GlassCard.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": [
"ProgressRing"
],
"keys": null,
"path": "src/components/Dashboard/ProgressRing.tsx",
"selectors": null
},
{
"functions": [
"DashboardCard"
],
"keys": null,
"path": "src/components/Dashboard/DashboardCard.tsx",
"selectors": null
},
{
"functions": [
"PageTransition"
],
"keys": null,
"path": "src/components/Layout/PageTransition.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"getPageTitle"
],
"keys": null,
"path": "src/components/Layout/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Sidebar",
"toggleSidebar",
"toggleMobileSidebar",
"toggleAdmin"
],
"keys": null,
"path": "src/components/Layout/Sidebar.tsx",
"selectors": null
},
{
"functions": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"selectors": null
},
{
"functions": [
"fetchEmissionFactors",
"updateEmissionFactor",
"createEmissionFactor",
"deleteEmissionFactor"
],
"keys": null,
"path": "src/services/emissionFactorService.ts",
"selectors": null
},
{
"functions": [
"fetchSites",
"getSiteById",
"createSite",
"updateSite",
"deleteSite"
],
"keys": null,
"path": "src/services/siteService.ts",
"selectors": null
},
{
"functions": [
"fetchDashboardData"
],
"keys": null,
"path": "src/services/dashboardService.ts",
"selectors": null
},
{
"functions": [
"createSubmission",
"saveAsDraft"
],
"keys": null,
"path": "src/services/esgSubmissionService.ts",
"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": [
"Dashboard"
],
"keys": null,
"path": "src/pages/Dashboard.tsx",
"selectors": null
},
{
"functions": [
"Sites",
"handleAddSite",
"handleDeleteSite",
"openDeleteDialog"
],
"keys": null,
"path": "src/pages/Sites.tsx",
"selectors": null
},
{
"functions": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"requestSort",
"handleApprove",
"handleReject",
"handleOpenRejectDialog",
"formatDate"
],
"keys": null,
"path": "src/pages/ApprovalQueue.tsx",
"selectors": null
},
{
"functions": [
"FormEntry",
"handleSubmit",
"handleSaveDraft",
"updateFormData",
"getCurrentParameters",
"getCurrentCategories"
],
"keys": null,
"path": "src/pages/FormEntry.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
},
{
"functions": [
"EmissionFactors",
"handleEdit",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/EmissionFactors.tsx",
"selectors": null
},
{
"functions": [
"fetchUsers",
"UserManagement",
"handleEdit",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/admin/UserManagement.tsx",
"selectors": null
}
] | 18 |
[
{
"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\nThe SQL scripts have been reviewed and approved, and are now being executed.\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 \"$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 \".font-inter\",\n \"#root\",\n \".glass-card-dark\",\n \".dark\",\n \"webkit-scrollbar\",\n \".com\",\n \"components\",\n \".page-enter\",\n \".page-enter-active\",\n \"#d1d5db\",\n \"webkit-scrollbar-thumb\",\n \".transition-transform-fast\",\n \".input-reset\",\n \"base\",\n \".page-exit-active\",\n \".focus-ring\",\n \".googleapis\",\n \"root\",\n \"hover\",\n \"webkit-scrollbar-track\",\n \"body\",\n \".page-exit\",\n \".glass-card\",\n \".transition-all-fast\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.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 \"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 \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatusBadge\",\n \"getStatusStyles\",\n \"getStatusText\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/StatusBadge.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 \"GlassCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/GlassCard.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 \"ProgressRing\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/ProgressRing.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DashboardCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/DashboardCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PageTransition\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/PageTransition.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"getPageTitle\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"toggleSidebar\",\n \"toggleMobileSidebar\",\n \"toggleAdmin\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Sidebar.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 \"fetchEmissionFactors\",\n \"updateEmissionFactor\",\n \"createEmissionFactor\",\n \"deleteEmissionFactor\"\n ],\n \"keys\": null,\n \"path\": \"src/services/emissionFactorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchSites\",\n \"getSiteById\",\n \"createSite\",\n \"updateSite\",\n \"deleteSite\"\n ],\n \"keys\": null,\n \"path\": \"src/services/siteService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchDashboardData\"\n ],\n \"keys\": null,\n \"path\": \"src/services/dashboardService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"createSubmission\",\n \"saveAsDraft\"\n ],\n \"keys\": null,\n \"path\": \"src/services/esgSubmissionService.ts\",\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 \"Dashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sites\",\n \"handleAddSite\",\n \"handleDeleteSite\",\n \"openDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Sites.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 \"requestSort\",\n \"handleApprove\",\n \"handleReject\",\n \"handleOpenRejectDialog\",\n \"formatDate\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/ApprovalQueue.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FormEntry\",\n \"handleSubmit\",\n \"handleSaveDraft\",\n \"updateFormData\",\n \"getCurrentParameters\",\n \"getCurrentCategories\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/FormEntry.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmissionFactors\",\n \"handleEdit\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/EmissionFactors.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchUsers\",\n \"UserManagement\",\n \"handleEdit\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/UserManagement.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/Layout/Sidebar.tsx\",\n \"src/integrations/supabase/types.ts\",\n \"src/pages/admin/UserManagement.tsx\"\n ],\n \"created\": [\n \"src/pages/Reports.tsx\",\n \"src/services/reportService.ts\",\n \"src/services/userService.ts\"\n ],\n \"deleted\": []\n}"
}
] |
Viswanath856/esgwise-portal
|
Enhance dashboard with emissions data
Adds GHG emissions charts and timeline-based visualizations for energy, water, waste, social, and governance metrics on the dashboard page.
|
{
"changed": [
"src/pages/Dashboard.tsx",
"src/services/dashboardService.ts"
],
"created": [
"src/components/Dashboard/CarbonEmissionsChart.tsx",
"src/components/Dashboard/TimelineChart.tsx",
"src/components/Dashboard/TimelineEnergyChart.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": [
"$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": [
".font-inter",
"#root",
".glass-card-dark",
".dark",
"webkit-scrollbar",
".com",
"components",
".page-enter",
".page-enter-active",
"#d1d5db",
"webkit-scrollbar-thumb",
".transition-transform-fast",
".input-reset",
"base",
".page-exit-active",
".focus-ring",
".googleapis",
"root",
"hover",
"webkit-scrollbar-track",
"body",
".page-exit",
".glass-card",
".transition-all-fast"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.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": [
"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": [
"Calendar"
],
"keys": null,
"path": "src/components/ui/calendar.tsx",
"selectors": null
},
{
"functions": [
"StatusBadge",
"getStatusStyles",
"getStatusText"
],
"keys": null,
"path": "src/components/ui/StatusBadge.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": [
"GlassCard"
],
"keys": null,
"path": "src/components/ui/GlassCard.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": [
"ProgressRing"
],
"keys": null,
"path": "src/components/Dashboard/ProgressRing.tsx",
"selectors": null
},
{
"functions": [
"DashboardCard"
],
"keys": null,
"path": "src/components/Dashboard/DashboardCard.tsx",
"selectors": null
},
{
"functions": [
"PageTransition"
],
"keys": null,
"path": "src/components/Layout/PageTransition.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"getPageTitle"
],
"keys": null,
"path": "src/components/Layout/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Sidebar",
"toggleSidebar",
"toggleMobileSidebar",
"toggleAdmin"
],
"keys": null,
"path": "src/components/Layout/Sidebar.tsx",
"selectors": null
},
{
"functions": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"selectors": null
},
{
"functions": [
"fetchEmissionFactors",
"updateEmissionFactor",
"createEmissionFactor",
"deleteEmissionFactor"
],
"keys": null,
"path": "src/services/emissionFactorService.ts",
"selectors": null
},
{
"functions": [
"fetchSites",
"getSiteById",
"createSite",
"updateSite",
"deleteSite"
],
"keys": null,
"path": "src/services/siteService.ts",
"selectors": null
},
{
"functions": [
"fetchDashboardData"
],
"keys": null,
"path": "src/services/dashboardService.ts",
"selectors": null
},
{
"functions": [
"createSubmission",
"saveAsDraft"
],
"keys": null,
"path": "src/services/esgSubmissionService.ts",
"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": [
"Dashboard"
],
"keys": null,
"path": "src/pages/Dashboard.tsx",
"selectors": null
},
{
"functions": [
"Reports",
"handleSiteChange",
"handleDownloadCSV",
"formatPeriod",
"renderEnvironmentalTable",
"renderSocialTable",
"renderGovernanceTable"
],
"keys": null,
"path": "src/pages/Reports.tsx",
"selectors": null
},
{
"functions": [
"Sites",
"handleAddSite",
"handleDeleteSite",
"openDeleteDialog"
],
"keys": null,
"path": "src/pages/Sites.tsx",
"selectors": null
},
{
"functions": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"requestSort",
"handleApprove",
"handleReject",
"handleOpenRejectDialog",
"formatDate"
],
"keys": null,
"path": "src/pages/ApprovalQueue.tsx",
"selectors": null
},
{
"functions": [
"FormEntry",
"handleSubmit",
"handleSaveDraft",
"updateFormData",
"getCurrentParameters",
"getCurrentCategories"
],
"keys": null,
"path": "src/pages/FormEntry.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
},
{
"functions": [
"EmissionFactors",
"handleEdit",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/EmissionFactors.tsx",
"selectors": null
},
{
"functions": [
"UserManagement",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/admin/UserManagement.tsx",
"selectors": null
}
] | 19 |
[
{
"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:**\nEnhance dashboard with emissions data\n\nAdds GHG emissions charts and timeline-based visualizations for energy, water, waste, social, and governance metrics on the dashboard 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 \"$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 \".font-inter\",\n \"#root\",\n \".glass-card-dark\",\n \".dark\",\n \"webkit-scrollbar\",\n \".com\",\n \"components\",\n \".page-enter\",\n \".page-enter-active\",\n \"#d1d5db\",\n \"webkit-scrollbar-thumb\",\n \".transition-transform-fast\",\n \".input-reset\",\n \"base\",\n \".page-exit-active\",\n \".focus-ring\",\n \".googleapis\",\n \"root\",\n \"hover\",\n \"webkit-scrollbar-track\",\n \"body\",\n \".page-exit\",\n \".glass-card\",\n \".transition-all-fast\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.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 \"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 \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatusBadge\",\n \"getStatusStyles\",\n \"getStatusText\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/StatusBadge.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 \"GlassCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/GlassCard.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 \"ProgressRing\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/ProgressRing.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DashboardCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/DashboardCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PageTransition\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/PageTransition.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"getPageTitle\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"toggleSidebar\",\n \"toggleMobileSidebar\",\n \"toggleAdmin\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Sidebar.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 \"fetchEmissionFactors\",\n \"updateEmissionFactor\",\n \"createEmissionFactor\",\n \"deleteEmissionFactor\"\n ],\n \"keys\": null,\n \"path\": \"src/services/emissionFactorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchSites\",\n \"getSiteById\",\n \"createSite\",\n \"updateSite\",\n \"deleteSite\"\n ],\n \"keys\": null,\n \"path\": \"src/services/siteService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchDashboardData\"\n ],\n \"keys\": null,\n \"path\": \"src/services/dashboardService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"createSubmission\",\n \"saveAsDraft\"\n ],\n \"keys\": null,\n \"path\": \"src/services/esgSubmissionService.ts\",\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 \"Dashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Reports\",\n \"handleSiteChange\",\n \"handleDownloadCSV\",\n \"formatPeriod\",\n \"renderEnvironmentalTable\",\n \"renderSocialTable\",\n \"renderGovernanceTable\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Reports.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sites\",\n \"handleAddSite\",\n \"handleDeleteSite\",\n \"openDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Sites.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 \"requestSort\",\n \"handleApprove\",\n \"handleReject\",\n \"handleOpenRejectDialog\",\n \"formatDate\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/ApprovalQueue.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FormEntry\",\n \"handleSubmit\",\n \"handleSaveDraft\",\n \"updateFormData\",\n \"getCurrentParameters\",\n \"getCurrentCategories\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/FormEntry.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmissionFactors\",\n \"handleEdit\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/EmissionFactors.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"UserManagement\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/UserManagement.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/Dashboard.tsx\",\n \"src/services/dashboardService.ts\"\n ],\n \"created\": [\n \"src/components/Dashboard/CarbonEmissionsChart.tsx\",\n \"src/components/Dashboard/TimelineChart.tsx\",\n \"src/components/Dashboard/TimelineEnergyChart.tsx\"\n ],\n \"deleted\": []\n}"
}
] |
Viswanath856/esgwise-portal
|
Fix TypeScript errors
Fixes multiple TypeScript errors in the dashboard components, including issues with children props, missing properties, and incorrect type assignments. Also fixes errors related to missing components.
|
{
"changed": [
"src/components/Dashboard/CarbonEmissionsChart.tsx",
"src/components/Dashboard/TimelineChart.tsx",
"src/components/Dashboard/TimelineEnergyChart.tsx",
"src/pages/Dashboard.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": [
"$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": [
".font-inter",
"#root",
".glass-card-dark",
".dark",
"webkit-scrollbar",
".com",
"components",
".page-enter",
".page-enter-active",
"#d1d5db",
"webkit-scrollbar-thumb",
".transition-transform-fast",
".input-reset",
"base",
".page-exit-active",
".focus-ring",
".googleapis",
"root",
"hover",
"webkit-scrollbar-track",
"body",
".page-exit",
".glass-card",
".transition-all-fast"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.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": [
"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": [
"Calendar"
],
"keys": null,
"path": "src/components/ui/calendar.tsx",
"selectors": null
},
{
"functions": [
"StatusBadge",
"getStatusStyles",
"getStatusText"
],
"keys": null,
"path": "src/components/ui/StatusBadge.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": [
"GlassCard"
],
"keys": null,
"path": "src/components/ui/GlassCard.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": [
"ProgressRing"
],
"keys": null,
"path": "src/components/Dashboard/ProgressRing.tsx",
"selectors": null
},
{
"functions": [
"DashboardCard"
],
"keys": null,
"path": "src/components/Dashboard/DashboardCard.tsx",
"selectors": null
},
{
"functions": [
"PageTransition"
],
"keys": null,
"path": "src/components/Layout/PageTransition.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"getPageTitle"
],
"keys": null,
"path": "src/components/Layout/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Sidebar",
"toggleSidebar",
"toggleMobileSidebar",
"toggleAdmin"
],
"keys": null,
"path": "src/components/Layout/Sidebar.tsx",
"selectors": null
},
{
"functions": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"selectors": null
},
{
"functions": [
"fetchEmissionFactors",
"updateEmissionFactor",
"createEmissionFactor",
"deleteEmissionFactor"
],
"keys": null,
"path": "src/services/emissionFactorService.ts",
"selectors": null
},
{
"functions": [
"fetchSites",
"getSiteById",
"createSite",
"updateSite",
"deleteSite"
],
"keys": null,
"path": "src/services/siteService.ts",
"selectors": null
},
{
"functions": [
"fetchDashboardData"
],
"keys": null,
"path": "src/services/dashboardService.ts",
"selectors": null
},
{
"functions": [
"createSubmission",
"saveAsDraft"
],
"keys": null,
"path": "src/services/esgSubmissionService.ts",
"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": [
"Dashboard"
],
"keys": null,
"path": "src/pages/Dashboard.tsx",
"selectors": null
},
{
"functions": [
"Reports",
"handleSiteChange",
"handleDownloadCSV",
"formatPeriod",
"renderEnvironmentalTable",
"renderSocialTable",
"renderGovernanceTable"
],
"keys": null,
"path": "src/pages/Reports.tsx",
"selectors": null
},
{
"functions": [
"Sites",
"handleAddSite",
"handleDeleteSite",
"openDeleteDialog"
],
"keys": null,
"path": "src/pages/Sites.tsx",
"selectors": null
},
{
"functions": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"requestSort",
"handleApprove",
"handleReject",
"handleOpenRejectDialog",
"formatDate"
],
"keys": null,
"path": "src/pages/ApprovalQueue.tsx",
"selectors": null
},
{
"functions": [
"FormEntry",
"handleSubmit",
"handleSaveDraft",
"updateFormData",
"getCurrentParameters",
"getCurrentCategories"
],
"keys": null,
"path": "src/pages/FormEntry.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
},
{
"functions": [
"EmissionFactors",
"handleEdit",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/EmissionFactors.tsx",
"selectors": null
},
{
"functions": [
"UserManagement",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/admin/UserManagement.tsx",
"selectors": null
},
{
"functions": [
"catch"
],
"keys": null,
"path": "src/components/Dashboard/CarbonEmissionsChart.tsx",
"selectors": null
},
{
"functions": [
"catch"
],
"keys": null,
"path": "src/components/Dashboard/TimelineEnergyChart.tsx",
"selectors": null
}
] | 20 |
[
{
"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 TypeScript errors\n\nFixes multiple TypeScript errors in the dashboard components, including issues with children props, missing properties, and incorrect type assignments. Also fixes errors related to missing components.\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 \"$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 \".font-inter\",\n \"#root\",\n \".glass-card-dark\",\n \".dark\",\n \"webkit-scrollbar\",\n \".com\",\n \"components\",\n \".page-enter\",\n \".page-enter-active\",\n \"#d1d5db\",\n \"webkit-scrollbar-thumb\",\n \".transition-transform-fast\",\n \".input-reset\",\n \"base\",\n \".page-exit-active\",\n \".focus-ring\",\n \".googleapis\",\n \"root\",\n \"hover\",\n \"webkit-scrollbar-track\",\n \"body\",\n \".page-exit\",\n \".glass-card\",\n \".transition-all-fast\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.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 \"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 \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatusBadge\",\n \"getStatusStyles\",\n \"getStatusText\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/StatusBadge.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 \"GlassCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/GlassCard.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 \"ProgressRing\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/ProgressRing.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DashboardCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/DashboardCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PageTransition\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/PageTransition.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"getPageTitle\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"toggleSidebar\",\n \"toggleMobileSidebar\",\n \"toggleAdmin\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Sidebar.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 \"fetchEmissionFactors\",\n \"updateEmissionFactor\",\n \"createEmissionFactor\",\n \"deleteEmissionFactor\"\n ],\n \"keys\": null,\n \"path\": \"src/services/emissionFactorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchSites\",\n \"getSiteById\",\n \"createSite\",\n \"updateSite\",\n \"deleteSite\"\n ],\n \"keys\": null,\n \"path\": \"src/services/siteService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchDashboardData\"\n ],\n \"keys\": null,\n \"path\": \"src/services/dashboardService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"createSubmission\",\n \"saveAsDraft\"\n ],\n \"keys\": null,\n \"path\": \"src/services/esgSubmissionService.ts\",\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 \"Dashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Reports\",\n \"handleSiteChange\",\n \"handleDownloadCSV\",\n \"formatPeriod\",\n \"renderEnvironmentalTable\",\n \"renderSocialTable\",\n \"renderGovernanceTable\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Reports.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sites\",\n \"handleAddSite\",\n \"handleDeleteSite\",\n \"openDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Sites.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 \"requestSort\",\n \"handleApprove\",\n \"handleReject\",\n \"handleOpenRejectDialog\",\n \"formatDate\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/ApprovalQueue.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FormEntry\",\n \"handleSubmit\",\n \"handleSaveDraft\",\n \"updateFormData\",\n \"getCurrentParameters\",\n \"getCurrentCategories\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/FormEntry.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmissionFactors\",\n \"handleEdit\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/EmissionFactors.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"UserManagement\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/UserManagement.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"catch\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/CarbonEmissionsChart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"catch\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/TimelineEnergyChart.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/Dashboard/CarbonEmissionsChart.tsx\",\n \"src/components/Dashboard/TimelineChart.tsx\",\n \"src/components/Dashboard/TimelineEnergyChart.tsx\",\n \"src/pages/Dashboard.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
Viswanath856/esgwise-portal
|
Enhance dashboard charts and form
- Update dashboard charts to use abbreviated months on the X-axis and display data labels.
- Display relevant emissions data in the ESG data collection form and show a submission confirmation message.
- Display submitted data when clicking "View" in the Approval Queue.
|
{
"changed": [
"src/components/Dashboard/TimelineChart.tsx",
"src/pages/ApprovalQueue.tsx",
"src/pages/FormEntry.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": [
"$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": [
".font-inter",
"#root",
".glass-card-dark",
".dark",
"webkit-scrollbar",
".com",
"components",
".page-enter",
".page-enter-active",
"#d1d5db",
"webkit-scrollbar-thumb",
".transition-transform-fast",
".input-reset",
"base",
".page-exit-active",
".focus-ring",
".googleapis",
"root",
"hover",
"webkit-scrollbar-track",
"body",
".page-exit",
".glass-card",
".transition-all-fast"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.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": [
"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": [
"Calendar"
],
"keys": null,
"path": "src/components/ui/calendar.tsx",
"selectors": null
},
{
"functions": [
"StatusBadge",
"getStatusStyles",
"getStatusText"
],
"keys": null,
"path": "src/components/ui/StatusBadge.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": [
"GlassCard"
],
"keys": null,
"path": "src/components/ui/GlassCard.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": [
"ProgressRing"
],
"keys": null,
"path": "src/components/Dashboard/ProgressRing.tsx",
"selectors": null
},
{
"functions": [
"DashboardCard"
],
"keys": null,
"path": "src/components/Dashboard/DashboardCard.tsx",
"selectors": null
},
{
"functions": [
"PageTransition"
],
"keys": null,
"path": "src/components/Layout/PageTransition.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"getPageTitle"
],
"keys": null,
"path": "src/components/Layout/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Sidebar",
"toggleSidebar",
"toggleMobileSidebar",
"toggleAdmin"
],
"keys": null,
"path": "src/components/Layout/Sidebar.tsx",
"selectors": null
},
{
"functions": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"selectors": null
},
{
"functions": [
"fetchEmissionFactors",
"updateEmissionFactor",
"createEmissionFactor",
"deleteEmissionFactor"
],
"keys": null,
"path": "src/services/emissionFactorService.ts",
"selectors": null
},
{
"functions": [
"fetchSites",
"getSiteById",
"createSite",
"updateSite",
"deleteSite"
],
"keys": null,
"path": "src/services/siteService.ts",
"selectors": null
},
{
"functions": [
"fetchDashboardData"
],
"keys": null,
"path": "src/services/dashboardService.ts",
"selectors": null
},
{
"functions": [
"createSubmission",
"saveAsDraft"
],
"keys": null,
"path": "src/services/esgSubmissionService.ts",
"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": [
"Dashboard"
],
"keys": null,
"path": "src/pages/Dashboard.tsx",
"selectors": null
},
{
"functions": [
"Reports",
"handleSiteChange",
"handleDownloadCSV",
"formatPeriod",
"renderEnvironmentalTable",
"renderSocialTable",
"renderGovernanceTable"
],
"keys": null,
"path": "src/pages/Reports.tsx",
"selectors": null
},
{
"functions": [
"Sites",
"handleAddSite",
"handleDeleteSite",
"openDeleteDialog"
],
"keys": null,
"path": "src/pages/Sites.tsx",
"selectors": null
},
{
"functions": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"requestSort",
"handleApprove",
"handleReject",
"handleOpenRejectDialog",
"formatDate"
],
"keys": null,
"path": "src/pages/ApprovalQueue.tsx",
"selectors": null
},
{
"functions": [
"FormEntry",
"handleSubmit",
"handleSaveDraft",
"updateFormData",
"getCurrentParameters",
"getCurrentCategories"
],
"keys": null,
"path": "src/pages/FormEntry.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
},
{
"functions": [
"EmissionFactors",
"handleEdit",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/EmissionFactors.tsx",
"selectors": null
},
{
"functions": [
"UserManagement",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/admin/UserManagement.tsx",
"selectors": null
},
{
"functions": [
"catch"
],
"keys": null,
"path": "src/components/Dashboard/CarbonEmissionsChart.tsx",
"selectors": null
},
{
"functions": [
"catch"
],
"keys": null,
"path": "src/components/Dashboard/TimelineEnergyChart.tsx",
"selectors": null
}
] | 21 |
[
{
"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:**\nEnhance dashboard charts and form\n\n- Update dashboard charts to use abbreviated months on the X-axis and display data labels.\n- Display relevant emissions data in the ESG data collection form and show a submission confirmation message.\n- Display submitted data when clicking \"View\" in the Approval Queue.\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 \"$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 \".font-inter\",\n \"#root\",\n \".glass-card-dark\",\n \".dark\",\n \"webkit-scrollbar\",\n \".com\",\n \"components\",\n \".page-enter\",\n \".page-enter-active\",\n \"#d1d5db\",\n \"webkit-scrollbar-thumb\",\n \".transition-transform-fast\",\n \".input-reset\",\n \"base\",\n \".page-exit-active\",\n \".focus-ring\",\n \".googleapis\",\n \"root\",\n \"hover\",\n \"webkit-scrollbar-track\",\n \"body\",\n \".page-exit\",\n \".glass-card\",\n \".transition-all-fast\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.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 \"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 \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatusBadge\",\n \"getStatusStyles\",\n \"getStatusText\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/StatusBadge.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 \"GlassCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/GlassCard.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 \"ProgressRing\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/ProgressRing.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DashboardCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/DashboardCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PageTransition\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/PageTransition.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"getPageTitle\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"toggleSidebar\",\n \"toggleMobileSidebar\",\n \"toggleAdmin\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Sidebar.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 \"fetchEmissionFactors\",\n \"updateEmissionFactor\",\n \"createEmissionFactor\",\n \"deleteEmissionFactor\"\n ],\n \"keys\": null,\n \"path\": \"src/services/emissionFactorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchSites\",\n \"getSiteById\",\n \"createSite\",\n \"updateSite\",\n \"deleteSite\"\n ],\n \"keys\": null,\n \"path\": \"src/services/siteService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchDashboardData\"\n ],\n \"keys\": null,\n \"path\": \"src/services/dashboardService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"createSubmission\",\n \"saveAsDraft\"\n ],\n \"keys\": null,\n \"path\": \"src/services/esgSubmissionService.ts\",\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 \"Dashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Reports\",\n \"handleSiteChange\",\n \"handleDownloadCSV\",\n \"formatPeriod\",\n \"renderEnvironmentalTable\",\n \"renderSocialTable\",\n \"renderGovernanceTable\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Reports.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sites\",\n \"handleAddSite\",\n \"handleDeleteSite\",\n \"openDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Sites.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 \"requestSort\",\n \"handleApprove\",\n \"handleReject\",\n \"handleOpenRejectDialog\",\n \"formatDate\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/ApprovalQueue.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FormEntry\",\n \"handleSubmit\",\n \"handleSaveDraft\",\n \"updateFormData\",\n \"getCurrentParameters\",\n \"getCurrentCategories\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/FormEntry.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmissionFactors\",\n \"handleEdit\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/EmissionFactors.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"UserManagement\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/UserManagement.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"catch\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/CarbonEmissionsChart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"catch\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/TimelineEnergyChart.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/Dashboard/TimelineChart.tsx\",\n \"src/pages/ApprovalQueue.tsx\",\n \"src/pages/FormEntry.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
Viswanath856/esgwise-portal
|
Fix: Resolve Typescript errors
Fixes Typescript errors related to missing properties and incorrect toast usage.
|
{
"changed": [
"src/components/ui/toaster.tsx",
"src/pages/ApprovalQueue.tsx",
"src/pages/FormEntry.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": [
"$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": [
".font-inter",
"#root",
".glass-card-dark",
".dark",
"webkit-scrollbar",
".com",
"components",
".page-enter",
".page-enter-active",
"#d1d5db",
"webkit-scrollbar-thumb",
".transition-transform-fast",
".input-reset",
"base",
".page-exit-active",
".focus-ring",
".googleapis",
"root",
"hover",
"webkit-scrollbar-track",
"body",
".page-exit",
".glass-card",
".transition-all-fast"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.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": [
"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": [
"Calendar"
],
"keys": null,
"path": "src/components/ui/calendar.tsx",
"selectors": null
},
{
"functions": [
"StatusBadge",
"getStatusStyles",
"getStatusText"
],
"keys": null,
"path": "src/components/ui/StatusBadge.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": [
"GlassCard"
],
"keys": null,
"path": "src/components/ui/GlassCard.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": [
"ProgressRing"
],
"keys": null,
"path": "src/components/Dashboard/ProgressRing.tsx",
"selectors": null
},
{
"functions": [
"DashboardCard"
],
"keys": null,
"path": "src/components/Dashboard/DashboardCard.tsx",
"selectors": null
},
{
"functions": [
"PageTransition"
],
"keys": null,
"path": "src/components/Layout/PageTransition.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"getPageTitle"
],
"keys": null,
"path": "src/components/Layout/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Sidebar",
"toggleSidebar",
"toggleMobileSidebar",
"toggleAdmin"
],
"keys": null,
"path": "src/components/Layout/Sidebar.tsx",
"selectors": null
},
{
"functions": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"selectors": null
},
{
"functions": [
"fetchEmissionFactors",
"updateEmissionFactor",
"createEmissionFactor",
"deleteEmissionFactor"
],
"keys": null,
"path": "src/services/emissionFactorService.ts",
"selectors": null
},
{
"functions": [
"fetchSites",
"getSiteById",
"createSite",
"updateSite",
"deleteSite"
],
"keys": null,
"path": "src/services/siteService.ts",
"selectors": null
},
{
"functions": [
"fetchDashboardData"
],
"keys": null,
"path": "src/services/dashboardService.ts",
"selectors": null
},
{
"functions": [
"createSubmission",
"saveAsDraft"
],
"keys": null,
"path": "src/services/esgSubmissionService.ts",
"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": [
"Dashboard"
],
"keys": null,
"path": "src/pages/Dashboard.tsx",
"selectors": null
},
{
"functions": [
"Reports",
"handleSiteChange",
"handleDownloadCSV",
"formatPeriod",
"renderEnvironmentalTable",
"renderSocialTable",
"renderGovernanceTable"
],
"keys": null,
"path": "src/pages/Reports.tsx",
"selectors": null
},
{
"functions": [
"Sites",
"handleAddSite",
"handleDeleteSite",
"openDeleteDialog"
],
"keys": null,
"path": "src/pages/Sites.tsx",
"selectors": null
},
{
"functions": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"requestSort",
"handleApprove",
"handleReject",
"handleOpenRejectDialog",
"handleOpenViewDialog",
"formatDate",
"formatValue"
],
"keys": null,
"path": "src/pages/ApprovalQueue.tsx",
"selectors": null
},
{
"functions": [
"FormEntry",
"handleSubmit",
"handleSaveDraft",
"updateFormData",
"getCurrentParameters",
"getCurrentCategories"
],
"keys": null,
"path": "src/pages/FormEntry.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
},
{
"functions": [
"EmissionFactors",
"handleEdit",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/EmissionFactors.tsx",
"selectors": null
},
{
"functions": [
"UserManagement",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/admin/UserManagement.tsx",
"selectors": null
},
{
"functions": [
"catch"
],
"keys": null,
"path": "src/components/Dashboard/CarbonEmissionsChart.tsx",
"selectors": null
},
{
"functions": [
"catch"
],
"keys": null,
"path": "src/components/Dashboard/TimelineEnergyChart.tsx",
"selectors": null
}
] | 22 |
[
{
"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 Typescript errors\n\nFixes Typescript errors related to missing properties and incorrect toast usage.\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 \"$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 \".font-inter\",\n \"#root\",\n \".glass-card-dark\",\n \".dark\",\n \"webkit-scrollbar\",\n \".com\",\n \"components\",\n \".page-enter\",\n \".page-enter-active\",\n \"#d1d5db\",\n \"webkit-scrollbar-thumb\",\n \".transition-transform-fast\",\n \".input-reset\",\n \"base\",\n \".page-exit-active\",\n \".focus-ring\",\n \".googleapis\",\n \"root\",\n \"hover\",\n \"webkit-scrollbar-track\",\n \"body\",\n \".page-exit\",\n \".glass-card\",\n \".transition-all-fast\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.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 \"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 \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatusBadge\",\n \"getStatusStyles\",\n \"getStatusText\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/StatusBadge.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 \"GlassCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/GlassCard.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 \"ProgressRing\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/ProgressRing.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DashboardCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/DashboardCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PageTransition\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/PageTransition.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"getPageTitle\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"toggleSidebar\",\n \"toggleMobileSidebar\",\n \"toggleAdmin\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Sidebar.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 \"fetchEmissionFactors\",\n \"updateEmissionFactor\",\n \"createEmissionFactor\",\n \"deleteEmissionFactor\"\n ],\n \"keys\": null,\n \"path\": \"src/services/emissionFactorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchSites\",\n \"getSiteById\",\n \"createSite\",\n \"updateSite\",\n \"deleteSite\"\n ],\n \"keys\": null,\n \"path\": \"src/services/siteService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchDashboardData\"\n ],\n \"keys\": null,\n \"path\": \"src/services/dashboardService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"createSubmission\",\n \"saveAsDraft\"\n ],\n \"keys\": null,\n \"path\": \"src/services/esgSubmissionService.ts\",\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 \"Dashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Reports\",\n \"handleSiteChange\",\n \"handleDownloadCSV\",\n \"formatPeriod\",\n \"renderEnvironmentalTable\",\n \"renderSocialTable\",\n \"renderGovernanceTable\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Reports.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sites\",\n \"handleAddSite\",\n \"handleDeleteSite\",\n \"openDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Sites.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 \"requestSort\",\n \"handleApprove\",\n \"handleReject\",\n \"handleOpenRejectDialog\",\n \"handleOpenViewDialog\",\n \"formatDate\",\n \"formatValue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/ApprovalQueue.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FormEntry\",\n \"handleSubmit\",\n \"handleSaveDraft\",\n \"updateFormData\",\n \"getCurrentParameters\",\n \"getCurrentCategories\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/FormEntry.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmissionFactors\",\n \"handleEdit\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/EmissionFactors.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"UserManagement\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/UserManagement.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"catch\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/CarbonEmissionsChart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"catch\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/TimelineEnergyChart.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/ui/toaster.tsx\",\n \"src/pages/ApprovalQueue.tsx\",\n \"src/pages/FormEntry.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
Viswanath856/esgwise-portal
|
Update chart timelines and text
- Updated chart timelines to display months (e.g., Jan'25, Feb'25).
- Removed descriptive text from GHG emission chart.
|
{
"changed": [
"src/components/Dashboard/CarbonEmissionsChart.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": [
"$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": [
".font-inter",
"#root",
".glass-card-dark",
".dark",
"webkit-scrollbar",
".com",
"components",
".page-enter",
".page-enter-active",
"#d1d5db",
"webkit-scrollbar-thumb",
".transition-transform-fast",
".input-reset",
"base",
".page-exit-active",
".focus-ring",
".googleapis",
"root",
"hover",
"webkit-scrollbar-track",
"body",
".page-exit",
".glass-card",
".transition-all-fast"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.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": [
"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": [
"Calendar"
],
"keys": null,
"path": "src/components/ui/calendar.tsx",
"selectors": null
},
{
"functions": [
"StatusBadge",
"getStatusStyles",
"getStatusText"
],
"keys": null,
"path": "src/components/ui/StatusBadge.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": [
"GlassCard"
],
"keys": null,
"path": "src/components/ui/GlassCard.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": [
"ProgressRing"
],
"keys": null,
"path": "src/components/Dashboard/ProgressRing.tsx",
"selectors": null
},
{
"functions": [
"DashboardCard"
],
"keys": null,
"path": "src/components/Dashboard/DashboardCard.tsx",
"selectors": null
},
{
"functions": [
"PageTransition"
],
"keys": null,
"path": "src/components/Layout/PageTransition.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"getPageTitle"
],
"keys": null,
"path": "src/components/Layout/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Sidebar",
"toggleSidebar",
"toggleMobileSidebar",
"toggleAdmin"
],
"keys": null,
"path": "src/components/Layout/Sidebar.tsx",
"selectors": null
},
{
"functions": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"selectors": null
},
{
"functions": [
"fetchEmissionFactors",
"updateEmissionFactor",
"createEmissionFactor",
"deleteEmissionFactor"
],
"keys": null,
"path": "src/services/emissionFactorService.ts",
"selectors": null
},
{
"functions": [
"fetchSites",
"getSiteById",
"createSite",
"updateSite",
"deleteSite"
],
"keys": null,
"path": "src/services/siteService.ts",
"selectors": null
},
{
"functions": [
"fetchDashboardData"
],
"keys": null,
"path": "src/services/dashboardService.ts",
"selectors": null
},
{
"functions": [
"createSubmission",
"saveAsDraft"
],
"keys": null,
"path": "src/services/esgSubmissionService.ts",
"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": [
"Dashboard"
],
"keys": null,
"path": "src/pages/Dashboard.tsx",
"selectors": null
},
{
"functions": [
"Reports",
"handleSiteChange",
"handleDownloadCSV",
"formatPeriod",
"renderEnvironmentalTable",
"renderSocialTable",
"renderGovernanceTable"
],
"keys": null,
"path": "src/pages/Reports.tsx",
"selectors": null
},
{
"functions": [
"Sites",
"handleAddSite",
"handleDeleteSite",
"openDeleteDialog"
],
"keys": null,
"path": "src/pages/Sites.tsx",
"selectors": null
},
{
"functions": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"requestSort",
"handleApprove",
"handleReject",
"handleOpenRejectDialog",
"handleOpenViewDialog",
"formatDate",
"formatValue"
],
"keys": null,
"path": "src/pages/ApprovalQueue.tsx",
"selectors": null
},
{
"functions": [
"FormEntry",
"handleSubmit",
"handleSaveDraft",
"updateFormData",
"getCurrentParameters",
"getCurrentCategories"
],
"keys": null,
"path": "src/pages/FormEntry.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
},
{
"functions": [
"EmissionFactors",
"handleEdit",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/EmissionFactors.tsx",
"selectors": null
},
{
"functions": [
"UserManagement",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/admin/UserManagement.tsx",
"selectors": null
},
{
"functions": [
"catch"
],
"keys": null,
"path": "src/components/Dashboard/CarbonEmissionsChart.tsx",
"selectors": null
},
{
"functions": [
"catch"
],
"keys": null,
"path": "src/components/Dashboard/TimelineEnergyChart.tsx",
"selectors": null
}
] | 23 |
[
{
"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 chart timelines and text\n\n- Updated chart timelines to display months (e.g., Jan'25, Feb'25).\n- Removed descriptive text from GHG emission chart.\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 \"$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 \".font-inter\",\n \"#root\",\n \".glass-card-dark\",\n \".dark\",\n \"webkit-scrollbar\",\n \".com\",\n \"components\",\n \".page-enter\",\n \".page-enter-active\",\n \"#d1d5db\",\n \"webkit-scrollbar-thumb\",\n \".transition-transform-fast\",\n \".input-reset\",\n \"base\",\n \".page-exit-active\",\n \".focus-ring\",\n \".googleapis\",\n \"root\",\n \"hover\",\n \"webkit-scrollbar-track\",\n \"body\",\n \".page-exit\",\n \".glass-card\",\n \".transition-all-fast\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.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 \"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 \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatusBadge\",\n \"getStatusStyles\",\n \"getStatusText\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/StatusBadge.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 \"GlassCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/GlassCard.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 \"ProgressRing\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/ProgressRing.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DashboardCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/DashboardCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PageTransition\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/PageTransition.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"getPageTitle\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"toggleSidebar\",\n \"toggleMobileSidebar\",\n \"toggleAdmin\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Sidebar.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 \"fetchEmissionFactors\",\n \"updateEmissionFactor\",\n \"createEmissionFactor\",\n \"deleteEmissionFactor\"\n ],\n \"keys\": null,\n \"path\": \"src/services/emissionFactorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchSites\",\n \"getSiteById\",\n \"createSite\",\n \"updateSite\",\n \"deleteSite\"\n ],\n \"keys\": null,\n \"path\": \"src/services/siteService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchDashboardData\"\n ],\n \"keys\": null,\n \"path\": \"src/services/dashboardService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"createSubmission\",\n \"saveAsDraft\"\n ],\n \"keys\": null,\n \"path\": \"src/services/esgSubmissionService.ts\",\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 \"Dashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Reports\",\n \"handleSiteChange\",\n \"handleDownloadCSV\",\n \"formatPeriod\",\n \"renderEnvironmentalTable\",\n \"renderSocialTable\",\n \"renderGovernanceTable\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Reports.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sites\",\n \"handleAddSite\",\n \"handleDeleteSite\",\n \"openDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Sites.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 \"requestSort\",\n \"handleApprove\",\n \"handleReject\",\n \"handleOpenRejectDialog\",\n \"handleOpenViewDialog\",\n \"formatDate\",\n \"formatValue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/ApprovalQueue.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FormEntry\",\n \"handleSubmit\",\n \"handleSaveDraft\",\n \"updateFormData\",\n \"getCurrentParameters\",\n \"getCurrentCategories\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/FormEntry.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmissionFactors\",\n \"handleEdit\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/EmissionFactors.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"UserManagement\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/UserManagement.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"catch\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/CarbonEmissionsChart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"catch\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/TimelineEnergyChart.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/Dashboard/CarbonEmissionsChart.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
Viswanath856/esgwise-portal
|
Fix dynamic import error
The code was failing to dynamically import modules, specifically ApprovalQueue.tsx. This commit addresses this issue.
|
{
"changed": [
"src/pages/ApprovalQueue.tsx",
"src/pages/FormEntry.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": [
"$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": [
".font-inter",
"#root",
".glass-card-dark",
".dark",
"webkit-scrollbar",
".com",
"components",
".page-enter",
".page-enter-active",
"#d1d5db",
"webkit-scrollbar-thumb",
".transition-transform-fast",
".input-reset",
"base",
".page-exit-active",
".focus-ring",
".googleapis",
"root",
"hover",
"webkit-scrollbar-track",
"body",
".page-exit",
".glass-card",
".transition-all-fast"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.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": [
"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": [
"Calendar"
],
"keys": null,
"path": "src/components/ui/calendar.tsx",
"selectors": null
},
{
"functions": [
"StatusBadge",
"getStatusStyles",
"getStatusText"
],
"keys": null,
"path": "src/components/ui/StatusBadge.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": [
"GlassCard"
],
"keys": null,
"path": "src/components/ui/GlassCard.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": [
"ProgressRing"
],
"keys": null,
"path": "src/components/Dashboard/ProgressRing.tsx",
"selectors": null
},
{
"functions": [
"DashboardCard"
],
"keys": null,
"path": "src/components/Dashboard/DashboardCard.tsx",
"selectors": null
},
{
"functions": [
"PageTransition"
],
"keys": null,
"path": "src/components/Layout/PageTransition.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"getPageTitle"
],
"keys": null,
"path": "src/components/Layout/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Sidebar",
"toggleSidebar",
"toggleMobileSidebar",
"toggleAdmin"
],
"keys": null,
"path": "src/components/Layout/Sidebar.tsx",
"selectors": null
},
{
"functions": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"selectors": null
},
{
"functions": [
"fetchEmissionFactors",
"updateEmissionFactor",
"createEmissionFactor",
"deleteEmissionFactor"
],
"keys": null,
"path": "src/services/emissionFactorService.ts",
"selectors": null
},
{
"functions": [
"fetchSites",
"getSiteById",
"createSite",
"updateSite",
"deleteSite"
],
"keys": null,
"path": "src/services/siteService.ts",
"selectors": null
},
{
"functions": [
"fetchDashboardData"
],
"keys": null,
"path": "src/services/dashboardService.ts",
"selectors": null
},
{
"functions": [
"createSubmission",
"saveAsDraft"
],
"keys": null,
"path": "src/services/esgSubmissionService.ts",
"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": [
"Dashboard"
],
"keys": null,
"path": "src/pages/Dashboard.tsx",
"selectors": null
},
{
"functions": [
"Reports",
"handleSiteChange",
"handleDownloadCSV",
"formatPeriod",
"renderEnvironmentalTable",
"renderSocialTable",
"renderGovernanceTable"
],
"keys": null,
"path": "src/pages/Reports.tsx",
"selectors": null
},
{
"functions": [
"Sites",
"handleAddSite",
"handleDeleteSite",
"openDeleteDialog"
],
"keys": null,
"path": "src/pages/Sites.tsx",
"selectors": null
},
{
"functions": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"requestSort",
"handleApprove",
"handleReject",
"handleOpenRejectDialog",
"handleOpenViewDialog",
"formatDate",
"formatValue"
],
"keys": null,
"path": "src/pages/ApprovalQueue.tsx",
"selectors": null
},
{
"functions": [
"FormEntry",
"handleSubmit",
"handleSaveDraft",
"updateFormData",
"getCurrentParameters",
"getCurrentCategories"
],
"keys": null,
"path": "src/pages/FormEntry.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
},
{
"functions": [
"EmissionFactors",
"handleEdit",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/EmissionFactors.tsx",
"selectors": null
},
{
"functions": [
"UserManagement",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/admin/UserManagement.tsx",
"selectors": null
},
{
"functions": [
"catch"
],
"keys": null,
"path": "src/components/Dashboard/CarbonEmissionsChart.tsx",
"selectors": null
},
{
"functions": [
"catch"
],
"keys": null,
"path": "src/components/Dashboard/TimelineEnergyChart.tsx",
"selectors": null
}
] | 24 |
[
{
"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 dynamic import error\n\nThe code was failing to dynamically import modules, specifically ApprovalQueue.tsx. This commit addresses this 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 \"$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 \".font-inter\",\n \"#root\",\n \".glass-card-dark\",\n \".dark\",\n \"webkit-scrollbar\",\n \".com\",\n \"components\",\n \".page-enter\",\n \".page-enter-active\",\n \"#d1d5db\",\n \"webkit-scrollbar-thumb\",\n \".transition-transform-fast\",\n \".input-reset\",\n \"base\",\n \".page-exit-active\",\n \".focus-ring\",\n \".googleapis\",\n \"root\",\n \"hover\",\n \"webkit-scrollbar-track\",\n \"body\",\n \".page-exit\",\n \".glass-card\",\n \".transition-all-fast\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.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 \"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 \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatusBadge\",\n \"getStatusStyles\",\n \"getStatusText\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/StatusBadge.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 \"GlassCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/GlassCard.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 \"ProgressRing\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/ProgressRing.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DashboardCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/DashboardCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PageTransition\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/PageTransition.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"getPageTitle\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"toggleSidebar\",\n \"toggleMobileSidebar\",\n \"toggleAdmin\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Sidebar.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 \"fetchEmissionFactors\",\n \"updateEmissionFactor\",\n \"createEmissionFactor\",\n \"deleteEmissionFactor\"\n ],\n \"keys\": null,\n \"path\": \"src/services/emissionFactorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchSites\",\n \"getSiteById\",\n \"createSite\",\n \"updateSite\",\n \"deleteSite\"\n ],\n \"keys\": null,\n \"path\": \"src/services/siteService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchDashboardData\"\n ],\n \"keys\": null,\n \"path\": \"src/services/dashboardService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"createSubmission\",\n \"saveAsDraft\"\n ],\n \"keys\": null,\n \"path\": \"src/services/esgSubmissionService.ts\",\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 \"Dashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Reports\",\n \"handleSiteChange\",\n \"handleDownloadCSV\",\n \"formatPeriod\",\n \"renderEnvironmentalTable\",\n \"renderSocialTable\",\n \"renderGovernanceTable\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Reports.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sites\",\n \"handleAddSite\",\n \"handleDeleteSite\",\n \"openDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Sites.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 \"requestSort\",\n \"handleApprove\",\n \"handleReject\",\n \"handleOpenRejectDialog\",\n \"handleOpenViewDialog\",\n \"formatDate\",\n \"formatValue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/ApprovalQueue.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FormEntry\",\n \"handleSubmit\",\n \"handleSaveDraft\",\n \"updateFormData\",\n \"getCurrentParameters\",\n \"getCurrentCategories\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/FormEntry.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmissionFactors\",\n \"handleEdit\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/EmissionFactors.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"UserManagement\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/UserManagement.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"catch\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/CarbonEmissionsChart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"catch\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/TimelineEnergyChart.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/ApprovalQueue.tsx\",\n \"src/pages/FormEntry.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
Viswanath856/esgwise-portal
|
Fix: Resolve TypeScript errors
- Corrected import/export names in esgSubmissionService.ts
- Fixed module import path for '@/schemas/esg'
- Ensured that 'sites' data is an array before mapping.
|
{
"changed": [
"src/pages/FormEntry.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": [
"$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": [
".font-inter",
"#root",
".glass-card-dark",
".dark",
"webkit-scrollbar",
".com",
"components",
".page-enter",
".page-enter-active",
"#d1d5db",
"webkit-scrollbar-thumb",
".transition-transform-fast",
".input-reset",
"base",
".page-exit-active",
".focus-ring",
".googleapis",
"root",
"hover",
"webkit-scrollbar-track",
"body",
".page-exit",
".glass-card",
".transition-all-fast"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.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": [
"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": [
"Calendar"
],
"keys": null,
"path": "src/components/ui/calendar.tsx",
"selectors": null
},
{
"functions": [
"StatusBadge",
"getStatusStyles",
"getStatusText"
],
"keys": null,
"path": "src/components/ui/StatusBadge.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": [
"GlassCard"
],
"keys": null,
"path": "src/components/ui/GlassCard.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": [
"ProgressRing"
],
"keys": null,
"path": "src/components/Dashboard/ProgressRing.tsx",
"selectors": null
},
{
"functions": [
"DashboardCard"
],
"keys": null,
"path": "src/components/Dashboard/DashboardCard.tsx",
"selectors": null
},
{
"functions": [
"PageTransition"
],
"keys": null,
"path": "src/components/Layout/PageTransition.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"getPageTitle"
],
"keys": null,
"path": "src/components/Layout/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Sidebar",
"toggleSidebar",
"toggleMobileSidebar",
"toggleAdmin"
],
"keys": null,
"path": "src/components/Layout/Sidebar.tsx",
"selectors": null
},
{
"functions": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"selectors": null
},
{
"functions": [
"fetchEmissionFactors",
"updateEmissionFactor",
"createEmissionFactor",
"deleteEmissionFactor"
],
"keys": null,
"path": "src/services/emissionFactorService.ts",
"selectors": null
},
{
"functions": [
"fetchSites",
"getSiteById",
"createSite",
"updateSite",
"deleteSite"
],
"keys": null,
"path": "src/services/siteService.ts",
"selectors": null
},
{
"functions": [
"fetchDashboardData"
],
"keys": null,
"path": "src/services/dashboardService.ts",
"selectors": null
},
{
"functions": [
"createSubmission",
"saveAsDraft"
],
"keys": null,
"path": "src/services/esgSubmissionService.ts",
"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": [
"Dashboard"
],
"keys": null,
"path": "src/pages/Dashboard.tsx",
"selectors": null
},
{
"functions": [
"Reports",
"handleSiteChange",
"handleDownloadCSV",
"formatPeriod",
"renderEnvironmentalTable",
"renderSocialTable",
"renderGovernanceTable"
],
"keys": null,
"path": "src/pages/Reports.tsx",
"selectors": null
},
{
"functions": [
"Sites",
"handleAddSite",
"handleDeleteSite",
"openDeleteDialog"
],
"keys": null,
"path": "src/pages/Sites.tsx",
"selectors": null
},
{
"functions": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"requestSort",
"handleApprove",
"handleReject",
"handleOpenRejectDialog",
"handleOpenViewDialog",
"formatDate",
"formatValue"
],
"keys": null,
"path": "src/pages/ApprovalQueue.tsx",
"selectors": null
},
{
"functions": [
"FormEntry",
"onSubmit"
],
"keys": null,
"path": "src/pages/FormEntry.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
},
{
"functions": [
"EmissionFactors",
"handleEdit",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/EmissionFactors.tsx",
"selectors": null
},
{
"functions": [
"UserManagement",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/admin/UserManagement.tsx",
"selectors": null
},
{
"functions": [
"catch"
],
"keys": null,
"path": "src/components/Dashboard/CarbonEmissionsChart.tsx",
"selectors": null
},
{
"functions": [
"catch"
],
"keys": null,
"path": "src/components/Dashboard/TimelineEnergyChart.tsx",
"selectors": null
}
] | 25 |
[
{
"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 TypeScript errors\n\n- Corrected import/export names in esgSubmissionService.ts\n- Fixed module import path for '@/schemas/esg'\n- Ensured that 'sites' data is an array before mapping.\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 \"$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 \".font-inter\",\n \"#root\",\n \".glass-card-dark\",\n \".dark\",\n \"webkit-scrollbar\",\n \".com\",\n \"components\",\n \".page-enter\",\n \".page-enter-active\",\n \"#d1d5db\",\n \"webkit-scrollbar-thumb\",\n \".transition-transform-fast\",\n \".input-reset\",\n \"base\",\n \".page-exit-active\",\n \".focus-ring\",\n \".googleapis\",\n \"root\",\n \"hover\",\n \"webkit-scrollbar-track\",\n \"body\",\n \".page-exit\",\n \".glass-card\",\n \".transition-all-fast\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.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 \"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 \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatusBadge\",\n \"getStatusStyles\",\n \"getStatusText\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/StatusBadge.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 \"GlassCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/GlassCard.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 \"ProgressRing\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/ProgressRing.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DashboardCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/DashboardCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PageTransition\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/PageTransition.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"getPageTitle\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"toggleSidebar\",\n \"toggleMobileSidebar\",\n \"toggleAdmin\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Sidebar.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 \"fetchEmissionFactors\",\n \"updateEmissionFactor\",\n \"createEmissionFactor\",\n \"deleteEmissionFactor\"\n ],\n \"keys\": null,\n \"path\": \"src/services/emissionFactorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchSites\",\n \"getSiteById\",\n \"createSite\",\n \"updateSite\",\n \"deleteSite\"\n ],\n \"keys\": null,\n \"path\": \"src/services/siteService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchDashboardData\"\n ],\n \"keys\": null,\n \"path\": \"src/services/dashboardService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"createSubmission\",\n \"saveAsDraft\"\n ],\n \"keys\": null,\n \"path\": \"src/services/esgSubmissionService.ts\",\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 \"Dashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Reports\",\n \"handleSiteChange\",\n \"handleDownloadCSV\",\n \"formatPeriod\",\n \"renderEnvironmentalTable\",\n \"renderSocialTable\",\n \"renderGovernanceTable\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Reports.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sites\",\n \"handleAddSite\",\n \"handleDeleteSite\",\n \"openDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Sites.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 \"requestSort\",\n \"handleApprove\",\n \"handleReject\",\n \"handleOpenRejectDialog\",\n \"handleOpenViewDialog\",\n \"formatDate\",\n \"formatValue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/ApprovalQueue.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FormEntry\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/FormEntry.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmissionFactors\",\n \"handleEdit\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/EmissionFactors.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"UserManagement\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/UserManagement.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"catch\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/CarbonEmissionsChart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"catch\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/TimelineEnergyChart.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/FormEntry.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
Viswanath856/esgwise-portal
|
Fix TS2339 errors in FormEntry
Fixes TypeScript errors related to missing properties on the empty object type in FormEntry.tsx.
|
{
"changed": [
"src/pages/FormEntry.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": [
"$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": [
".font-inter",
"#root",
".glass-card-dark",
".dark",
"webkit-scrollbar",
".com",
"components",
".page-enter",
".page-enter-active",
"#d1d5db",
"webkit-scrollbar-thumb",
".transition-transform-fast",
".input-reset",
"base",
".page-exit-active",
".focus-ring",
".googleapis",
"root",
"hover",
"webkit-scrollbar-track",
"body",
".page-exit",
".glass-card",
".transition-all-fast"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.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": [
"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": [
"Calendar"
],
"keys": null,
"path": "src/components/ui/calendar.tsx",
"selectors": null
},
{
"functions": [
"StatusBadge",
"getStatusStyles",
"getStatusText"
],
"keys": null,
"path": "src/components/ui/StatusBadge.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": [
"GlassCard"
],
"keys": null,
"path": "src/components/ui/GlassCard.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": [
"ProgressRing"
],
"keys": null,
"path": "src/components/Dashboard/ProgressRing.tsx",
"selectors": null
},
{
"functions": [
"DashboardCard"
],
"keys": null,
"path": "src/components/Dashboard/DashboardCard.tsx",
"selectors": null
},
{
"functions": [
"PageTransition"
],
"keys": null,
"path": "src/components/Layout/PageTransition.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"getPageTitle"
],
"keys": null,
"path": "src/components/Layout/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Sidebar",
"toggleSidebar",
"toggleMobileSidebar",
"toggleAdmin"
],
"keys": null,
"path": "src/components/Layout/Sidebar.tsx",
"selectors": null
},
{
"functions": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"selectors": null
},
{
"functions": [
"fetchEmissionFactors",
"updateEmissionFactor",
"createEmissionFactor",
"deleteEmissionFactor"
],
"keys": null,
"path": "src/services/emissionFactorService.ts",
"selectors": null
},
{
"functions": [
"fetchSites",
"getSiteById",
"createSite",
"updateSite",
"deleteSite"
],
"keys": null,
"path": "src/services/siteService.ts",
"selectors": null
},
{
"functions": [
"fetchDashboardData"
],
"keys": null,
"path": "src/services/dashboardService.ts",
"selectors": null
},
{
"functions": [
"createSubmission",
"saveAsDraft"
],
"keys": null,
"path": "src/services/esgSubmissionService.ts",
"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": [
"Dashboard"
],
"keys": null,
"path": "src/pages/Dashboard.tsx",
"selectors": null
},
{
"functions": [
"Reports",
"handleSiteChange",
"handleDownloadCSV",
"formatPeriod",
"renderEnvironmentalTable",
"renderSocialTable",
"renderGovernanceTable"
],
"keys": null,
"path": "src/pages/Reports.tsx",
"selectors": null
},
{
"functions": [
"Sites",
"handleAddSite",
"handleDeleteSite",
"openDeleteDialog"
],
"keys": null,
"path": "src/pages/Sites.tsx",
"selectors": null
},
{
"functions": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"requestSort",
"handleApprove",
"handleReject",
"handleOpenRejectDialog",
"handleOpenViewDialog",
"formatDate",
"formatValue"
],
"keys": null,
"path": "src/pages/ApprovalQueue.tsx",
"selectors": null
},
{
"functions": [
"FormEntry",
"onSubmit"
],
"keys": null,
"path": "src/pages/FormEntry.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
},
{
"functions": [
"EmissionFactors",
"handleEdit",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/EmissionFactors.tsx",
"selectors": null
},
{
"functions": [
"UserManagement",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/admin/UserManagement.tsx",
"selectors": null
},
{
"functions": [
"catch"
],
"keys": null,
"path": "src/components/Dashboard/CarbonEmissionsChart.tsx",
"selectors": null
},
{
"functions": [
"catch"
],
"keys": null,
"path": "src/components/Dashboard/TimelineEnergyChart.tsx",
"selectors": null
}
] | 26 |
[
{
"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 TS2339 errors in FormEntry\n\nFixes TypeScript errors related to missing properties on the empty object type in FormEntry.tsx.\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 \"$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 \".font-inter\",\n \"#root\",\n \".glass-card-dark\",\n \".dark\",\n \"webkit-scrollbar\",\n \".com\",\n \"components\",\n \".page-enter\",\n \".page-enter-active\",\n \"#d1d5db\",\n \"webkit-scrollbar-thumb\",\n \".transition-transform-fast\",\n \".input-reset\",\n \"base\",\n \".page-exit-active\",\n \".focus-ring\",\n \".googleapis\",\n \"root\",\n \"hover\",\n \"webkit-scrollbar-track\",\n \"body\",\n \".page-exit\",\n \".glass-card\",\n \".transition-all-fast\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.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 \"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 \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatusBadge\",\n \"getStatusStyles\",\n \"getStatusText\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/StatusBadge.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 \"GlassCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/GlassCard.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 \"ProgressRing\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/ProgressRing.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DashboardCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/DashboardCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PageTransition\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/PageTransition.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"getPageTitle\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"toggleSidebar\",\n \"toggleMobileSidebar\",\n \"toggleAdmin\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Sidebar.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 \"fetchEmissionFactors\",\n \"updateEmissionFactor\",\n \"createEmissionFactor\",\n \"deleteEmissionFactor\"\n ],\n \"keys\": null,\n \"path\": \"src/services/emissionFactorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchSites\",\n \"getSiteById\",\n \"createSite\",\n \"updateSite\",\n \"deleteSite\"\n ],\n \"keys\": null,\n \"path\": \"src/services/siteService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchDashboardData\"\n ],\n \"keys\": null,\n \"path\": \"src/services/dashboardService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"createSubmission\",\n \"saveAsDraft\"\n ],\n \"keys\": null,\n \"path\": \"src/services/esgSubmissionService.ts\",\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 \"Dashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Reports\",\n \"handleSiteChange\",\n \"handleDownloadCSV\",\n \"formatPeriod\",\n \"renderEnvironmentalTable\",\n \"renderSocialTable\",\n \"renderGovernanceTable\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Reports.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sites\",\n \"handleAddSite\",\n \"handleDeleteSite\",\n \"openDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Sites.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 \"requestSort\",\n \"handleApprove\",\n \"handleReject\",\n \"handleOpenRejectDialog\",\n \"handleOpenViewDialog\",\n \"formatDate\",\n \"formatValue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/ApprovalQueue.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FormEntry\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/FormEntry.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmissionFactors\",\n \"handleEdit\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/EmissionFactors.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"UserManagement\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/UserManagement.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"catch\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/CarbonEmissionsChart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"catch\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/TimelineEnergyChart.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/FormEntry.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
Viswanath856/esgwise-portal
|
Reverted to edit edt-b9fb1f37-7788-46a2-98d5-6fa2d08914f1: "Update chart timelines and text
- Updated chart timelines to display months (e.g., Jan'25, Feb'25).
- Removed descriptive text from GHG emission chart."
|
{
"changed": [
"src/pages/ApprovalQueue.tsx",
"src/pages/FormEntry.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": [
"$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": [
".font-inter",
"#root",
".glass-card-dark",
".dark",
"webkit-scrollbar",
".com",
"components",
".page-enter",
".page-enter-active",
"#d1d5db",
"webkit-scrollbar-thumb",
".transition-transform-fast",
".input-reset",
"base",
".page-exit-active",
".focus-ring",
".googleapis",
"root",
"hover",
"webkit-scrollbar-track",
"body",
".page-exit",
".glass-card",
".transition-all-fast"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.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": [
"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": [
"Calendar"
],
"keys": null,
"path": "src/components/ui/calendar.tsx",
"selectors": null
},
{
"functions": [
"StatusBadge",
"getStatusStyles",
"getStatusText"
],
"keys": null,
"path": "src/components/ui/StatusBadge.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": [
"GlassCard"
],
"keys": null,
"path": "src/components/ui/GlassCard.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": [
"ProgressRing"
],
"keys": null,
"path": "src/components/Dashboard/ProgressRing.tsx",
"selectors": null
},
{
"functions": [
"DashboardCard"
],
"keys": null,
"path": "src/components/Dashboard/DashboardCard.tsx",
"selectors": null
},
{
"functions": [
"PageTransition"
],
"keys": null,
"path": "src/components/Layout/PageTransition.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"getPageTitle"
],
"keys": null,
"path": "src/components/Layout/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Sidebar",
"toggleSidebar",
"toggleMobileSidebar",
"toggleAdmin"
],
"keys": null,
"path": "src/components/Layout/Sidebar.tsx",
"selectors": null
},
{
"functions": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"selectors": null
},
{
"functions": [
"fetchEmissionFactors",
"updateEmissionFactor",
"createEmissionFactor",
"deleteEmissionFactor"
],
"keys": null,
"path": "src/services/emissionFactorService.ts",
"selectors": null
},
{
"functions": [
"fetchSites",
"getSiteById",
"createSite",
"updateSite",
"deleteSite"
],
"keys": null,
"path": "src/services/siteService.ts",
"selectors": null
},
{
"functions": [
"fetchDashboardData"
],
"keys": null,
"path": "src/services/dashboardService.ts",
"selectors": null
},
{
"functions": [
"createSubmission",
"saveAsDraft"
],
"keys": null,
"path": "src/services/esgSubmissionService.ts",
"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": [
"Dashboard"
],
"keys": null,
"path": "src/pages/Dashboard.tsx",
"selectors": null
},
{
"functions": [
"Reports",
"handleSiteChange",
"handleDownloadCSV",
"formatPeriod",
"renderEnvironmentalTable",
"renderSocialTable",
"renderGovernanceTable"
],
"keys": null,
"path": "src/pages/Reports.tsx",
"selectors": null
},
{
"functions": [
"Sites",
"handleAddSite",
"handleDeleteSite",
"openDeleteDialog"
],
"keys": null,
"path": "src/pages/Sites.tsx",
"selectors": null
},
{
"functions": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"requestSort",
"handleApprove",
"handleReject",
"handleOpenRejectDialog",
"handleOpenViewDialog",
"formatDate",
"formatValue"
],
"keys": null,
"path": "src/pages/ApprovalQueue.tsx",
"selectors": null
},
{
"functions": [
"FormEntry",
"onSubmit"
],
"keys": null,
"path": "src/pages/FormEntry.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
},
{
"functions": [
"EmissionFactors",
"handleEdit",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/EmissionFactors.tsx",
"selectors": null
},
{
"functions": [
"UserManagement",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/admin/UserManagement.tsx",
"selectors": null
},
{
"functions": [
"catch"
],
"keys": null,
"path": "src/components/Dashboard/CarbonEmissionsChart.tsx",
"selectors": null
},
{
"functions": [
"catch"
],
"keys": null,
"path": "src/components/Dashboard/TimelineEnergyChart.tsx",
"selectors": null
}
] | 27 |
[
{
"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-b9fb1f37-7788-46a2-98d5-6fa2d08914f1: \"Update chart timelines and text\n\n- Updated chart timelines to display months (e.g., Jan'25, Feb'25).\n- Removed descriptive text from GHG emission chart.\"\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 \"$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 \".font-inter\",\n \"#root\",\n \".glass-card-dark\",\n \".dark\",\n \"webkit-scrollbar\",\n \".com\",\n \"components\",\n \".page-enter\",\n \".page-enter-active\",\n \"#d1d5db\",\n \"webkit-scrollbar-thumb\",\n \".transition-transform-fast\",\n \".input-reset\",\n \"base\",\n \".page-exit-active\",\n \".focus-ring\",\n \".googleapis\",\n \"root\",\n \"hover\",\n \"webkit-scrollbar-track\",\n \"body\",\n \".page-exit\",\n \".glass-card\",\n \".transition-all-fast\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.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 \"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 \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatusBadge\",\n \"getStatusStyles\",\n \"getStatusText\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/StatusBadge.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 \"GlassCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/GlassCard.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 \"ProgressRing\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/ProgressRing.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DashboardCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/DashboardCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PageTransition\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/PageTransition.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"getPageTitle\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"toggleSidebar\",\n \"toggleMobileSidebar\",\n \"toggleAdmin\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Sidebar.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 \"fetchEmissionFactors\",\n \"updateEmissionFactor\",\n \"createEmissionFactor\",\n \"deleteEmissionFactor\"\n ],\n \"keys\": null,\n \"path\": \"src/services/emissionFactorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchSites\",\n \"getSiteById\",\n \"createSite\",\n \"updateSite\",\n \"deleteSite\"\n ],\n \"keys\": null,\n \"path\": \"src/services/siteService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchDashboardData\"\n ],\n \"keys\": null,\n \"path\": \"src/services/dashboardService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"createSubmission\",\n \"saveAsDraft\"\n ],\n \"keys\": null,\n \"path\": \"src/services/esgSubmissionService.ts\",\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 \"Dashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Reports\",\n \"handleSiteChange\",\n \"handleDownloadCSV\",\n \"formatPeriod\",\n \"renderEnvironmentalTable\",\n \"renderSocialTable\",\n \"renderGovernanceTable\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Reports.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sites\",\n \"handleAddSite\",\n \"handleDeleteSite\",\n \"openDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Sites.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 \"requestSort\",\n \"handleApprove\",\n \"handleReject\",\n \"handleOpenRejectDialog\",\n \"handleOpenViewDialog\",\n \"formatDate\",\n \"formatValue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/ApprovalQueue.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FormEntry\",\n \"onSubmit\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/FormEntry.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmissionFactors\",\n \"handleEdit\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/EmissionFactors.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"UserManagement\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/UserManagement.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"catch\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/CarbonEmissionsChart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"catch\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/TimelineEnergyChart.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/ApprovalQueue.tsx\",\n \"src/pages/FormEntry.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
Viswanath856/esgwise-portal
|
Fix dynamic import error
Fixes a runtime error caused by a failure to fetch the dynamically imported FormEntry module.
|
{
"changed": [
"src/App.tsx",
"src/pages/FormEntry.tsx",
"vite.config.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": [
"$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": [
".font-inter",
"#root",
".glass-card-dark",
".dark",
"webkit-scrollbar",
".com",
"components",
".page-enter",
".page-enter-active",
"#d1d5db",
"webkit-scrollbar-thumb",
".transition-transform-fast",
".input-reset",
"base",
".page-exit-active",
".focus-ring",
".googleapis",
"root",
"hover",
"webkit-scrollbar-track",
"body",
".page-exit",
".glass-card",
".transition-all-fast"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.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": [
"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": [
"Calendar"
],
"keys": null,
"path": "src/components/ui/calendar.tsx",
"selectors": null
},
{
"functions": [
"StatusBadge",
"getStatusStyles",
"getStatusText"
],
"keys": null,
"path": "src/components/ui/StatusBadge.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": [
"GlassCard"
],
"keys": null,
"path": "src/components/ui/GlassCard.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": [
"ProgressRing"
],
"keys": null,
"path": "src/components/Dashboard/ProgressRing.tsx",
"selectors": null
},
{
"functions": [
"DashboardCard"
],
"keys": null,
"path": "src/components/Dashboard/DashboardCard.tsx",
"selectors": null
},
{
"functions": [
"PageTransition"
],
"keys": null,
"path": "src/components/Layout/PageTransition.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"getPageTitle"
],
"keys": null,
"path": "src/components/Layout/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Sidebar",
"toggleSidebar",
"toggleMobileSidebar",
"toggleAdmin"
],
"keys": null,
"path": "src/components/Layout/Sidebar.tsx",
"selectors": null
},
{
"functions": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"selectors": null
},
{
"functions": [
"fetchEmissionFactors",
"updateEmissionFactor",
"createEmissionFactor",
"deleteEmissionFactor"
],
"keys": null,
"path": "src/services/emissionFactorService.ts",
"selectors": null
},
{
"functions": [
"fetchSites",
"getSiteById",
"createSite",
"updateSite",
"deleteSite"
],
"keys": null,
"path": "src/services/siteService.ts",
"selectors": null
},
{
"functions": [
"fetchDashboardData"
],
"keys": null,
"path": "src/services/dashboardService.ts",
"selectors": null
},
{
"functions": [
"createSubmission",
"saveAsDraft"
],
"keys": null,
"path": "src/services/esgSubmissionService.ts",
"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": [
"Dashboard"
],
"keys": null,
"path": "src/pages/Dashboard.tsx",
"selectors": null
},
{
"functions": [
"Reports",
"handleSiteChange",
"handleDownloadCSV",
"formatPeriod",
"renderEnvironmentalTable",
"renderSocialTable",
"renderGovernanceTable"
],
"keys": null,
"path": "src/pages/Reports.tsx",
"selectors": null
},
{
"functions": [
"Sites",
"handleAddSite",
"handleDeleteSite",
"openDeleteDialog"
],
"keys": null,
"path": "src/pages/Sites.tsx",
"selectors": null
},
{
"functions": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"requestSort",
"handleApprove",
"handleReject",
"handleOpenRejectDialog",
"handleOpenViewDialog",
"formatDate",
"formatValue"
],
"keys": null,
"path": "src/pages/ApprovalQueue.tsx",
"selectors": null
},
{
"functions": [
"FormEntry",
"handleSubmit",
"handleSaveDraft",
"updateFormData",
"getCurrentParameters",
"getCurrentCategories"
],
"keys": null,
"path": "src/pages/FormEntry.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
},
{
"functions": [
"EmissionFactors",
"handleEdit",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/EmissionFactors.tsx",
"selectors": null
},
{
"functions": [
"UserManagement",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/admin/UserManagement.tsx",
"selectors": null
},
{
"functions": [
"catch"
],
"keys": null,
"path": "src/components/Dashboard/CarbonEmissionsChart.tsx",
"selectors": null
},
{
"functions": [
"catch"
],
"keys": null,
"path": "src/components/Dashboard/TimelineEnergyChart.tsx",
"selectors": null
}
] | 28 |
[
{
"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 dynamic import error\n\nFixes a runtime error caused by a failure to fetch the dynamically imported FormEntry module.\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 \"$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 \".font-inter\",\n \"#root\",\n \".glass-card-dark\",\n \".dark\",\n \"webkit-scrollbar\",\n \".com\",\n \"components\",\n \".page-enter\",\n \".page-enter-active\",\n \"#d1d5db\",\n \"webkit-scrollbar-thumb\",\n \".transition-transform-fast\",\n \".input-reset\",\n \"base\",\n \".page-exit-active\",\n \".focus-ring\",\n \".googleapis\",\n \"root\",\n \"hover\",\n \"webkit-scrollbar-track\",\n \"body\",\n \".page-exit\",\n \".glass-card\",\n \".transition-all-fast\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.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 \"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 \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatusBadge\",\n \"getStatusStyles\",\n \"getStatusText\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/StatusBadge.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 \"GlassCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/GlassCard.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 \"ProgressRing\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/ProgressRing.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DashboardCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/DashboardCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PageTransition\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/PageTransition.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"getPageTitle\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"toggleSidebar\",\n \"toggleMobileSidebar\",\n \"toggleAdmin\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Sidebar.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 \"fetchEmissionFactors\",\n \"updateEmissionFactor\",\n \"createEmissionFactor\",\n \"deleteEmissionFactor\"\n ],\n \"keys\": null,\n \"path\": \"src/services/emissionFactorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchSites\",\n \"getSiteById\",\n \"createSite\",\n \"updateSite\",\n \"deleteSite\"\n ],\n \"keys\": null,\n \"path\": \"src/services/siteService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchDashboardData\"\n ],\n \"keys\": null,\n \"path\": \"src/services/dashboardService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"createSubmission\",\n \"saveAsDraft\"\n ],\n \"keys\": null,\n \"path\": \"src/services/esgSubmissionService.ts\",\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 \"Dashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Reports\",\n \"handleSiteChange\",\n \"handleDownloadCSV\",\n \"formatPeriod\",\n \"renderEnvironmentalTable\",\n \"renderSocialTable\",\n \"renderGovernanceTable\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Reports.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sites\",\n \"handleAddSite\",\n \"handleDeleteSite\",\n \"openDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Sites.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 \"requestSort\",\n \"handleApprove\",\n \"handleReject\",\n \"handleOpenRejectDialog\",\n \"handleOpenViewDialog\",\n \"formatDate\",\n \"formatValue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/ApprovalQueue.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FormEntry\",\n \"handleSubmit\",\n \"handleSaveDraft\",\n \"updateFormData\",\n \"getCurrentParameters\",\n \"getCurrentCategories\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/FormEntry.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmissionFactors\",\n \"handleEdit\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/EmissionFactors.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"UserManagement\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/UserManagement.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"catch\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/CarbonEmissionsChart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"catch\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/TimelineEnergyChart.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/FormEntry.tsx\",\n \"vite.config.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
Viswanath856/esgwise-portal
|
Update timeline chart date format
- Updated timeline charts to display dates in "Month'Year" format.
- Removed data labels from charts and graphs.
|
{
"changed": [
"src/components/Dashboard/CarbonEmissionsChart.tsx",
"src/components/Dashboard/TimelineChart.tsx",
"src/components/Dashboard/TimelineEnergyChart.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": [
"$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": [
".font-inter",
"#root",
".glass-card-dark",
".dark",
"webkit-scrollbar",
".com",
"components",
".page-enter",
".page-enter-active",
"#d1d5db",
"webkit-scrollbar-thumb",
".transition-transform-fast",
".input-reset",
"base",
".page-exit-active",
".focus-ring",
".googleapis",
"root",
"hover",
"webkit-scrollbar-track",
"body",
".page-exit",
".glass-card",
".transition-all-fast"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.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": [
"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": [
"Calendar"
],
"keys": null,
"path": "src/components/ui/calendar.tsx",
"selectors": null
},
{
"functions": [
"StatusBadge",
"getStatusStyles",
"getStatusText"
],
"keys": null,
"path": "src/components/ui/StatusBadge.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": [
"GlassCard"
],
"keys": null,
"path": "src/components/ui/GlassCard.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": [
"ProgressRing"
],
"keys": null,
"path": "src/components/Dashboard/ProgressRing.tsx",
"selectors": null
},
{
"functions": [
"DashboardCard"
],
"keys": null,
"path": "src/components/Dashboard/DashboardCard.tsx",
"selectors": null
},
{
"functions": [
"PageTransition"
],
"keys": null,
"path": "src/components/Layout/PageTransition.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"getPageTitle"
],
"keys": null,
"path": "src/components/Layout/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Sidebar",
"toggleSidebar",
"toggleMobileSidebar",
"toggleAdmin"
],
"keys": null,
"path": "src/components/Layout/Sidebar.tsx",
"selectors": null
},
{
"functions": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"selectors": null
},
{
"functions": [
"fetchEmissionFactors",
"updateEmissionFactor",
"createEmissionFactor",
"deleteEmissionFactor"
],
"keys": null,
"path": "src/services/emissionFactorService.ts",
"selectors": null
},
{
"functions": [
"fetchSites",
"getSiteById",
"createSite",
"updateSite",
"deleteSite"
],
"keys": null,
"path": "src/services/siteService.ts",
"selectors": null
},
{
"functions": [
"fetchDashboardData"
],
"keys": null,
"path": "src/services/dashboardService.ts",
"selectors": null
},
{
"functions": [
"createSubmission",
"saveAsDraft"
],
"keys": null,
"path": "src/services/esgSubmissionService.ts",
"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": [
"Dashboard"
],
"keys": null,
"path": "src/pages/Dashboard.tsx",
"selectors": null
},
{
"functions": [
"Reports",
"handleSiteChange",
"handleDownloadCSV",
"formatPeriod",
"renderEnvironmentalTable",
"renderSocialTable",
"renderGovernanceTable"
],
"keys": null,
"path": "src/pages/Reports.tsx",
"selectors": null
},
{
"functions": [
"Sites",
"handleAddSite",
"handleDeleteSite",
"openDeleteDialog"
],
"keys": null,
"path": "src/pages/Sites.tsx",
"selectors": null
},
{
"functions": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"requestSort",
"handleApprove",
"handleReject",
"handleOpenRejectDialog",
"handleOpenViewDialog",
"formatDate",
"formatValue"
],
"keys": null,
"path": "src/pages/ApprovalQueue.tsx",
"selectors": null
},
{
"functions": [
"FormEntry",
"handleSubmit",
"handleSaveDraft",
"updateFormData",
"getCurrentParameters",
"getCurrentCategories"
],
"keys": null,
"path": "src/pages/FormEntry.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
},
{
"functions": [
"EmissionFactors",
"handleEdit",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/EmissionFactors.tsx",
"selectors": null
},
{
"functions": [
"UserManagement",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/admin/UserManagement.tsx",
"selectors": null
},
{
"functions": [
"catch"
],
"keys": null,
"path": "src/components/Dashboard/CarbonEmissionsChart.tsx",
"selectors": null
},
{
"functions": [
"catch"
],
"keys": null,
"path": "src/components/Dashboard/TimelineEnergyChart.tsx",
"selectors": null
}
] | 29 |
[
{
"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 timeline chart date format\n\n- Updated timeline charts to display dates in \"Month'Year\" format.\n- Removed data labels from charts and graphs.\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 \"$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 \".font-inter\",\n \"#root\",\n \".glass-card-dark\",\n \".dark\",\n \"webkit-scrollbar\",\n \".com\",\n \"components\",\n \".page-enter\",\n \".page-enter-active\",\n \"#d1d5db\",\n \"webkit-scrollbar-thumb\",\n \".transition-transform-fast\",\n \".input-reset\",\n \"base\",\n \".page-exit-active\",\n \".focus-ring\",\n \".googleapis\",\n \"root\",\n \"hover\",\n \"webkit-scrollbar-track\",\n \"body\",\n \".page-exit\",\n \".glass-card\",\n \".transition-all-fast\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.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 \"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 \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatusBadge\",\n \"getStatusStyles\",\n \"getStatusText\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/StatusBadge.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 \"GlassCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/GlassCard.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 \"ProgressRing\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/ProgressRing.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DashboardCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/DashboardCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PageTransition\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/PageTransition.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"getPageTitle\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"toggleSidebar\",\n \"toggleMobileSidebar\",\n \"toggleAdmin\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Sidebar.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 \"fetchEmissionFactors\",\n \"updateEmissionFactor\",\n \"createEmissionFactor\",\n \"deleteEmissionFactor\"\n ],\n \"keys\": null,\n \"path\": \"src/services/emissionFactorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchSites\",\n \"getSiteById\",\n \"createSite\",\n \"updateSite\",\n \"deleteSite\"\n ],\n \"keys\": null,\n \"path\": \"src/services/siteService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchDashboardData\"\n ],\n \"keys\": null,\n \"path\": \"src/services/dashboardService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"createSubmission\",\n \"saveAsDraft\"\n ],\n \"keys\": null,\n \"path\": \"src/services/esgSubmissionService.ts\",\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 \"Dashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Reports\",\n \"handleSiteChange\",\n \"handleDownloadCSV\",\n \"formatPeriod\",\n \"renderEnvironmentalTable\",\n \"renderSocialTable\",\n \"renderGovernanceTable\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Reports.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sites\",\n \"handleAddSite\",\n \"handleDeleteSite\",\n \"openDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Sites.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 \"requestSort\",\n \"handleApprove\",\n \"handleReject\",\n \"handleOpenRejectDialog\",\n \"handleOpenViewDialog\",\n \"formatDate\",\n \"formatValue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/ApprovalQueue.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FormEntry\",\n \"handleSubmit\",\n \"handleSaveDraft\",\n \"updateFormData\",\n \"getCurrentParameters\",\n \"getCurrentCategories\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/FormEntry.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmissionFactors\",\n \"handleEdit\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/EmissionFactors.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"UserManagement\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/UserManagement.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"catch\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/CarbonEmissionsChart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"catch\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/TimelineEnergyChart.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/Dashboard/CarbonEmissionsChart.tsx\",\n \"src/components/Dashboard/TimelineChart.tsx\",\n \"src/components/Dashboard/TimelineEnergyChart.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
Viswanath856/esgwise-portal
|
Implement dashboard data aggregation
Modify dashboard data fetching to aggregate data across sites for the same month, and update charts based on site and period filters.
|
{
"changed": [
"src/components/Dashboard/CarbonEmissionsChart.tsx",
"src/components/Dashboard/TimelineChart.tsx",
"src/components/Dashboard/TimelineEnergyChart.tsx",
"src/services/dashboardService.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": [
"$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": [
".font-inter",
"#root",
".glass-card-dark",
".dark",
"webkit-scrollbar",
".com",
"components",
".page-enter",
".page-enter-active",
"#d1d5db",
"webkit-scrollbar-thumb",
".transition-transform-fast",
".input-reset",
"base",
".page-exit-active",
".focus-ring",
".googleapis",
"root",
"hover",
"webkit-scrollbar-track",
"body",
".page-exit",
".glass-card",
".transition-all-fast"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.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": [
"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": [
"Calendar"
],
"keys": null,
"path": "src/components/ui/calendar.tsx",
"selectors": null
},
{
"functions": [
"StatusBadge",
"getStatusStyles",
"getStatusText"
],
"keys": null,
"path": "src/components/ui/StatusBadge.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": [
"GlassCard"
],
"keys": null,
"path": "src/components/ui/GlassCard.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": [
"ProgressRing"
],
"keys": null,
"path": "src/components/Dashboard/ProgressRing.tsx",
"selectors": null
},
{
"functions": [
"DashboardCard"
],
"keys": null,
"path": "src/components/Dashboard/DashboardCard.tsx",
"selectors": null
},
{
"functions": [
"PageTransition"
],
"keys": null,
"path": "src/components/Layout/PageTransition.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"getPageTitle"
],
"keys": null,
"path": "src/components/Layout/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Sidebar",
"toggleSidebar",
"toggleMobileSidebar",
"toggleAdmin"
],
"keys": null,
"path": "src/components/Layout/Sidebar.tsx",
"selectors": null
},
{
"functions": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"selectors": null
},
{
"functions": [
"fetchEmissionFactors",
"updateEmissionFactor",
"createEmissionFactor",
"deleteEmissionFactor"
],
"keys": null,
"path": "src/services/emissionFactorService.ts",
"selectors": null
},
{
"functions": [
"fetchSites",
"getSiteById",
"createSite",
"updateSite",
"deleteSite"
],
"keys": null,
"path": "src/services/siteService.ts",
"selectors": null
},
{
"functions": [
"fetchDashboardData"
],
"keys": null,
"path": "src/services/dashboardService.ts",
"selectors": null
},
{
"functions": [
"createSubmission",
"saveAsDraft"
],
"keys": null,
"path": "src/services/esgSubmissionService.ts",
"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": [
"Dashboard"
],
"keys": null,
"path": "src/pages/Dashboard.tsx",
"selectors": null
},
{
"functions": [
"Reports",
"handleSiteChange",
"handleDownloadCSV",
"formatPeriod",
"renderEnvironmentalTable",
"renderSocialTable",
"renderGovernanceTable"
],
"keys": null,
"path": "src/pages/Reports.tsx",
"selectors": null
},
{
"functions": [
"Sites",
"handleAddSite",
"handleDeleteSite",
"openDeleteDialog"
],
"keys": null,
"path": "src/pages/Sites.tsx",
"selectors": null
},
{
"functions": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"requestSort",
"handleApprove",
"handleReject",
"handleOpenRejectDialog",
"handleOpenViewDialog",
"formatDate",
"formatValue"
],
"keys": null,
"path": "src/pages/ApprovalQueue.tsx",
"selectors": null
},
{
"functions": [
"FormEntry",
"handleSubmit",
"handleSaveDraft",
"updateFormData",
"getCurrentParameters",
"getCurrentCategories"
],
"keys": null,
"path": "src/pages/FormEntry.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
},
{
"functions": [
"EmissionFactors",
"handleEdit",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/EmissionFactors.tsx",
"selectors": null
},
{
"functions": [
"UserManagement",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/admin/UserManagement.tsx",
"selectors": null
},
{
"functions": [
"catch"
],
"keys": null,
"path": "src/components/Dashboard/CarbonEmissionsChart.tsx",
"selectors": null
},
{
"functions": [
"catch"
],
"keys": null,
"path": "src/components/Dashboard/TimelineEnergyChart.tsx",
"selectors": null
}
] | 30 |
[
{
"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:**\nImplement dashboard data aggregation\n\nModify dashboard data fetching to aggregate data across sites for the same month, and update charts based on site and period filters.\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 \"$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 \".font-inter\",\n \"#root\",\n \".glass-card-dark\",\n \".dark\",\n \"webkit-scrollbar\",\n \".com\",\n \"components\",\n \".page-enter\",\n \".page-enter-active\",\n \"#d1d5db\",\n \"webkit-scrollbar-thumb\",\n \".transition-transform-fast\",\n \".input-reset\",\n \"base\",\n \".page-exit-active\",\n \".focus-ring\",\n \".googleapis\",\n \"root\",\n \"hover\",\n \"webkit-scrollbar-track\",\n \"body\",\n \".page-exit\",\n \".glass-card\",\n \".transition-all-fast\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.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 \"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 \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatusBadge\",\n \"getStatusStyles\",\n \"getStatusText\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/StatusBadge.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 \"GlassCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/GlassCard.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 \"ProgressRing\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/ProgressRing.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DashboardCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/DashboardCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PageTransition\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/PageTransition.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"getPageTitle\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"toggleSidebar\",\n \"toggleMobileSidebar\",\n \"toggleAdmin\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Sidebar.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 \"fetchEmissionFactors\",\n \"updateEmissionFactor\",\n \"createEmissionFactor\",\n \"deleteEmissionFactor\"\n ],\n \"keys\": null,\n \"path\": \"src/services/emissionFactorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchSites\",\n \"getSiteById\",\n \"createSite\",\n \"updateSite\",\n \"deleteSite\"\n ],\n \"keys\": null,\n \"path\": \"src/services/siteService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchDashboardData\"\n ],\n \"keys\": null,\n \"path\": \"src/services/dashboardService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"createSubmission\",\n \"saveAsDraft\"\n ],\n \"keys\": null,\n \"path\": \"src/services/esgSubmissionService.ts\",\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 \"Dashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Reports\",\n \"handleSiteChange\",\n \"handleDownloadCSV\",\n \"formatPeriod\",\n \"renderEnvironmentalTable\",\n \"renderSocialTable\",\n \"renderGovernanceTable\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Reports.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sites\",\n \"handleAddSite\",\n \"handleDeleteSite\",\n \"openDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Sites.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 \"requestSort\",\n \"handleApprove\",\n \"handleReject\",\n \"handleOpenRejectDialog\",\n \"handleOpenViewDialog\",\n \"formatDate\",\n \"formatValue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/ApprovalQueue.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FormEntry\",\n \"handleSubmit\",\n \"handleSaveDraft\",\n \"updateFormData\",\n \"getCurrentParameters\",\n \"getCurrentCategories\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/FormEntry.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmissionFactors\",\n \"handleEdit\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/EmissionFactors.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"UserManagement\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/UserManagement.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"catch\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/CarbonEmissionsChart.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"catch\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/TimelineEnergyChart.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/Dashboard/CarbonEmissionsChart.tsx\",\n \"src/components/Dashboard/TimelineChart.tsx\",\n \"src/components/Dashboard/TimelineEnergyChart.tsx\",\n \"src/services/dashboardService.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
Viswanath856/esgwise-portal
|
Fix: Resolve Typescript errors
- Addresses a Typescript error in Dashboard.tsx related to the useQuery hook.
- Fixes a Typescript error in Dashboard.tsx related to TimelineData type.
|
{
"changed": [
"src/components/Dashboard/TimelineChart.tsx",
"src/pages/Dashboard.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": [
"$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": [
".font-inter",
"#root",
".glass-card-dark",
".dark",
"webkit-scrollbar",
".com",
"components",
".page-enter",
".page-enter-active",
"#d1d5db",
"webkit-scrollbar-thumb",
".transition-transform-fast",
".input-reset",
"base",
".page-exit-active",
".focus-ring",
".googleapis",
"root",
"hover",
"webkit-scrollbar-track",
"body",
".page-exit",
".glass-card",
".transition-all-fast"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.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": [
"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": [
"Calendar"
],
"keys": null,
"path": "src/components/ui/calendar.tsx",
"selectors": null
},
{
"functions": [
"StatusBadge",
"getStatusStyles",
"getStatusText"
],
"keys": null,
"path": "src/components/ui/StatusBadge.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": [
"GlassCard"
],
"keys": null,
"path": "src/components/ui/GlassCard.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": [
"ProgressRing"
],
"keys": null,
"path": "src/components/Dashboard/ProgressRing.tsx",
"selectors": null
},
{
"functions": [
"DashboardCard"
],
"keys": null,
"path": "src/components/Dashboard/DashboardCard.tsx",
"selectors": null
},
{
"functions": [
"PageTransition"
],
"keys": null,
"path": "src/components/Layout/PageTransition.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"getPageTitle"
],
"keys": null,
"path": "src/components/Layout/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Sidebar",
"toggleSidebar",
"toggleMobileSidebar",
"toggleAdmin"
],
"keys": null,
"path": "src/components/Layout/Sidebar.tsx",
"selectors": null
},
{
"functions": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"selectors": null
},
{
"functions": [
"fetchEmissionFactors",
"updateEmissionFactor",
"createEmissionFactor",
"deleteEmissionFactor"
],
"keys": null,
"path": "src/services/emissionFactorService.ts",
"selectors": null
},
{
"functions": [
"fetchSites",
"getSiteById",
"createSite",
"updateSite",
"deleteSite"
],
"keys": null,
"path": "src/services/siteService.ts",
"selectors": null
},
{
"functions": [
"fetchDashboardData",
"getMonthKey",
"getDisplayDate"
],
"keys": null,
"path": "src/services/dashboardService.ts",
"selectors": null
},
{
"functions": [
"createSubmission",
"saveAsDraft"
],
"keys": null,
"path": "src/services/esgSubmissionService.ts",
"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": [
"Dashboard"
],
"keys": null,
"path": "src/pages/Dashboard.tsx",
"selectors": null
},
{
"functions": [
"Reports",
"handleSiteChange",
"handleDownloadCSV",
"formatPeriod",
"renderEnvironmentalTable",
"renderSocialTable",
"renderGovernanceTable"
],
"keys": null,
"path": "src/pages/Reports.tsx",
"selectors": null
},
{
"functions": [
"Sites",
"handleAddSite",
"handleDeleteSite",
"openDeleteDialog"
],
"keys": null,
"path": "src/pages/Sites.tsx",
"selectors": null
},
{
"functions": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"requestSort",
"handleApprove",
"handleReject",
"handleOpenRejectDialog",
"handleOpenViewDialog",
"formatDate",
"formatValue"
],
"keys": null,
"path": "src/pages/ApprovalQueue.tsx",
"selectors": null
},
{
"functions": [
"FormEntry",
"handleSubmit",
"handleSaveDraft",
"updateFormData",
"getCurrentParameters",
"getCurrentCategories"
],
"keys": null,
"path": "src/pages/FormEntry.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
},
{
"functions": [
"EmissionFactors",
"handleEdit",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/EmissionFactors.tsx",
"selectors": null
},
{
"functions": [
"UserManagement",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/admin/UserManagement.tsx",
"selectors": null
}
] | 31 |
[
{
"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 Typescript errors\n\n- Addresses a Typescript error in Dashboard.tsx related to the useQuery hook.\n- Fixes a Typescript error in Dashboard.tsx related to TimelineData 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 \"$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 \".font-inter\",\n \"#root\",\n \".glass-card-dark\",\n \".dark\",\n \"webkit-scrollbar\",\n \".com\",\n \"components\",\n \".page-enter\",\n \".page-enter-active\",\n \"#d1d5db\",\n \"webkit-scrollbar-thumb\",\n \".transition-transform-fast\",\n \".input-reset\",\n \"base\",\n \".page-exit-active\",\n \".focus-ring\",\n \".googleapis\",\n \"root\",\n \"hover\",\n \"webkit-scrollbar-track\",\n \"body\",\n \".page-exit\",\n \".glass-card\",\n \".transition-all-fast\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.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 \"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 \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatusBadge\",\n \"getStatusStyles\",\n \"getStatusText\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/StatusBadge.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 \"GlassCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/GlassCard.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 \"ProgressRing\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/ProgressRing.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DashboardCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/DashboardCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PageTransition\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/PageTransition.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"getPageTitle\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"toggleSidebar\",\n \"toggleMobileSidebar\",\n \"toggleAdmin\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Sidebar.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 \"fetchEmissionFactors\",\n \"updateEmissionFactor\",\n \"createEmissionFactor\",\n \"deleteEmissionFactor\"\n ],\n \"keys\": null,\n \"path\": \"src/services/emissionFactorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchSites\",\n \"getSiteById\",\n \"createSite\",\n \"updateSite\",\n \"deleteSite\"\n ],\n \"keys\": null,\n \"path\": \"src/services/siteService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchDashboardData\",\n \"getMonthKey\",\n \"getDisplayDate\"\n ],\n \"keys\": null,\n \"path\": \"src/services/dashboardService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"createSubmission\",\n \"saveAsDraft\"\n ],\n \"keys\": null,\n \"path\": \"src/services/esgSubmissionService.ts\",\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 \"Dashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Reports\",\n \"handleSiteChange\",\n \"handleDownloadCSV\",\n \"formatPeriod\",\n \"renderEnvironmentalTable\",\n \"renderSocialTable\",\n \"renderGovernanceTable\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Reports.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sites\",\n \"handleAddSite\",\n \"handleDeleteSite\",\n \"openDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Sites.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 \"requestSort\",\n \"handleApprove\",\n \"handleReject\",\n \"handleOpenRejectDialog\",\n \"handleOpenViewDialog\",\n \"formatDate\",\n \"formatValue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/ApprovalQueue.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FormEntry\",\n \"handleSubmit\",\n \"handleSaveDraft\",\n \"updateFormData\",\n \"getCurrentParameters\",\n \"getCurrentCategories\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/FormEntry.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmissionFactors\",\n \"handleEdit\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/EmissionFactors.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"UserManagement\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/UserManagement.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/Dashboard/TimelineChart.tsx\",\n \"src/pages/Dashboard.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
Viswanath856/esgwise-portal
|
Consolidate report data
Modify the Reports page to display consolidated data for the same site and month in a single row.
|
{
"changed": [
"src/pages/Reports.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": [
"$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": [
".font-inter",
"#root",
".glass-card-dark",
".dark",
"webkit-scrollbar",
".com",
"components",
".page-enter",
".page-enter-active",
"#d1d5db",
"webkit-scrollbar-thumb",
".transition-transform-fast",
".input-reset",
"base",
".page-exit-active",
".focus-ring",
".googleapis",
"root",
"hover",
"webkit-scrollbar-track",
"body",
".page-exit",
".glass-card",
".transition-all-fast"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.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": [
"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": [
"Calendar"
],
"keys": null,
"path": "src/components/ui/calendar.tsx",
"selectors": null
},
{
"functions": [
"StatusBadge",
"getStatusStyles",
"getStatusText"
],
"keys": null,
"path": "src/components/ui/StatusBadge.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": [
"GlassCard"
],
"keys": null,
"path": "src/components/ui/GlassCard.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": [
"ProgressRing"
],
"keys": null,
"path": "src/components/Dashboard/ProgressRing.tsx",
"selectors": null
},
{
"functions": [
"DashboardCard"
],
"keys": null,
"path": "src/components/Dashboard/DashboardCard.tsx",
"selectors": null
},
{
"functions": [
"PageTransition"
],
"keys": null,
"path": "src/components/Layout/PageTransition.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"getPageTitle"
],
"keys": null,
"path": "src/components/Layout/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Sidebar",
"toggleSidebar",
"toggleMobileSidebar",
"toggleAdmin"
],
"keys": null,
"path": "src/components/Layout/Sidebar.tsx",
"selectors": null
},
{
"functions": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"selectors": null
},
{
"functions": [
"fetchEmissionFactors",
"updateEmissionFactor",
"createEmissionFactor",
"deleteEmissionFactor"
],
"keys": null,
"path": "src/services/emissionFactorService.ts",
"selectors": null
},
{
"functions": [
"fetchSites",
"getSiteById",
"createSite",
"updateSite",
"deleteSite"
],
"keys": null,
"path": "src/services/siteService.ts",
"selectors": null
},
{
"functions": [
"fetchDashboardData",
"getMonthKey",
"getDisplayDate"
],
"keys": null,
"path": "src/services/dashboardService.ts",
"selectors": null
},
{
"functions": [
"createSubmission",
"saveAsDraft"
],
"keys": null,
"path": "src/services/esgSubmissionService.ts",
"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": [
"Dashboard"
],
"keys": null,
"path": "src/pages/Dashboard.tsx",
"selectors": null
},
{
"functions": [
"Reports",
"handleSiteChange",
"handleDownloadCSV",
"formatPeriod",
"renderEnvironmentalTable",
"renderSocialTable",
"renderGovernanceTable"
],
"keys": null,
"path": "src/pages/Reports.tsx",
"selectors": null
},
{
"functions": [
"Sites",
"handleAddSite",
"handleDeleteSite",
"openDeleteDialog"
],
"keys": null,
"path": "src/pages/Sites.tsx",
"selectors": null
},
{
"functions": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"requestSort",
"handleApprove",
"handleReject",
"handleOpenRejectDialog",
"handleOpenViewDialog",
"formatDate",
"formatValue"
],
"keys": null,
"path": "src/pages/ApprovalQueue.tsx",
"selectors": null
},
{
"functions": [
"FormEntry",
"handleSubmit",
"handleSaveDraft",
"updateFormData",
"getCurrentParameters",
"getCurrentCategories"
],
"keys": null,
"path": "src/pages/FormEntry.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
},
{
"functions": [
"EmissionFactors",
"handleEdit",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/EmissionFactors.tsx",
"selectors": null
},
{
"functions": [
"UserManagement",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/admin/UserManagement.tsx",
"selectors": null
}
] | 32 |
[
{
"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:**\nConsolidate report data\n\nModify the Reports page to display consolidated data for the same site and month in a single row.\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 \"$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 \".font-inter\",\n \"#root\",\n \".glass-card-dark\",\n \".dark\",\n \"webkit-scrollbar\",\n \".com\",\n \"components\",\n \".page-enter\",\n \".page-enter-active\",\n \"#d1d5db\",\n \"webkit-scrollbar-thumb\",\n \".transition-transform-fast\",\n \".input-reset\",\n \"base\",\n \".page-exit-active\",\n \".focus-ring\",\n \".googleapis\",\n \"root\",\n \"hover\",\n \"webkit-scrollbar-track\",\n \"body\",\n \".page-exit\",\n \".glass-card\",\n \".transition-all-fast\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.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 \"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 \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatusBadge\",\n \"getStatusStyles\",\n \"getStatusText\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/StatusBadge.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 \"GlassCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/GlassCard.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 \"ProgressRing\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/ProgressRing.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DashboardCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/DashboardCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PageTransition\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/PageTransition.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"getPageTitle\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"toggleSidebar\",\n \"toggleMobileSidebar\",\n \"toggleAdmin\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Sidebar.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 \"fetchEmissionFactors\",\n \"updateEmissionFactor\",\n \"createEmissionFactor\",\n \"deleteEmissionFactor\"\n ],\n \"keys\": null,\n \"path\": \"src/services/emissionFactorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchSites\",\n \"getSiteById\",\n \"createSite\",\n \"updateSite\",\n \"deleteSite\"\n ],\n \"keys\": null,\n \"path\": \"src/services/siteService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchDashboardData\",\n \"getMonthKey\",\n \"getDisplayDate\"\n ],\n \"keys\": null,\n \"path\": \"src/services/dashboardService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"createSubmission\",\n \"saveAsDraft\"\n ],\n \"keys\": null,\n \"path\": \"src/services/esgSubmissionService.ts\",\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 \"Dashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Reports\",\n \"handleSiteChange\",\n \"handleDownloadCSV\",\n \"formatPeriod\",\n \"renderEnvironmentalTable\",\n \"renderSocialTable\",\n \"renderGovernanceTable\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Reports.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sites\",\n \"handleAddSite\",\n \"handleDeleteSite\",\n \"openDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Sites.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 \"requestSort\",\n \"handleApprove\",\n \"handleReject\",\n \"handleOpenRejectDialog\",\n \"handleOpenViewDialog\",\n \"formatDate\",\n \"formatValue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/ApprovalQueue.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FormEntry\",\n \"handleSubmit\",\n \"handleSaveDraft\",\n \"updateFormData\",\n \"getCurrentParameters\",\n \"getCurrentCategories\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/FormEntry.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmissionFactors\",\n \"handleEdit\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/EmissionFactors.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"UserManagement\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/UserManagement.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/Reports.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
Viswanath856/esgwise-portal
|
Fix: Connect governance metrics to backend
Connect governance metrics on the dashboard page to the backend database.
|
{
"changed": [
"src/pages/Dashboard.tsx",
"src/services/dashboardService.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": [
"$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": [
".font-inter",
"#root",
".glass-card-dark",
".dark",
"webkit-scrollbar",
".com",
"components",
".page-enter",
".page-enter-active",
"#d1d5db",
"webkit-scrollbar-thumb",
".transition-transform-fast",
".input-reset",
"base",
".page-exit-active",
".focus-ring",
".googleapis",
"root",
"hover",
"webkit-scrollbar-track",
"body",
".page-exit",
".glass-card",
".transition-all-fast"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.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": [
"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": [
"Calendar"
],
"keys": null,
"path": "src/components/ui/calendar.tsx",
"selectors": null
},
{
"functions": [
"StatusBadge",
"getStatusStyles",
"getStatusText"
],
"keys": null,
"path": "src/components/ui/StatusBadge.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": [
"GlassCard"
],
"keys": null,
"path": "src/components/ui/GlassCard.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": [
"ProgressRing"
],
"keys": null,
"path": "src/components/Dashboard/ProgressRing.tsx",
"selectors": null
},
{
"functions": [
"DashboardCard"
],
"keys": null,
"path": "src/components/Dashboard/DashboardCard.tsx",
"selectors": null
},
{
"functions": [
"PageTransition"
],
"keys": null,
"path": "src/components/Layout/PageTransition.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"getPageTitle"
],
"keys": null,
"path": "src/components/Layout/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Sidebar",
"toggleSidebar",
"toggleMobileSidebar",
"toggleAdmin"
],
"keys": null,
"path": "src/components/Layout/Sidebar.tsx",
"selectors": null
},
{
"functions": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"selectors": null
},
{
"functions": [
"fetchEmissionFactors",
"updateEmissionFactor",
"createEmissionFactor",
"deleteEmissionFactor"
],
"keys": null,
"path": "src/services/emissionFactorService.ts",
"selectors": null
},
{
"functions": [
"fetchSites",
"getSiteById",
"createSite",
"updateSite",
"deleteSite"
],
"keys": null,
"path": "src/services/siteService.ts",
"selectors": null
},
{
"functions": [
"fetchDashboardData",
"getMonthKey",
"getDisplayDate"
],
"keys": null,
"path": "src/services/dashboardService.ts",
"selectors": null
},
{
"functions": [
"createSubmission",
"saveAsDraft"
],
"keys": null,
"path": "src/services/esgSubmissionService.ts",
"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": [
"Dashboard"
],
"keys": null,
"path": "src/pages/Dashboard.tsx",
"selectors": null
},
{
"functions": [
"handleSiteChange",
"handleDownloadCSV",
"getAggregatedEnvironmentalData",
"getAggregatedSocialData",
"getAggregatedGovernanceData",
"renderEnvironmentalTable",
"renderSocialTable",
"renderGovernanceTable"
],
"keys": null,
"path": "src/pages/Reports.tsx",
"selectors": null
},
{
"functions": [
"Sites",
"handleAddSite",
"handleDeleteSite",
"openDeleteDialog"
],
"keys": null,
"path": "src/pages/Sites.tsx",
"selectors": null
},
{
"functions": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"requestSort",
"handleApprove",
"handleReject",
"handleOpenRejectDialog",
"handleOpenViewDialog",
"formatDate",
"formatValue"
],
"keys": null,
"path": "src/pages/ApprovalQueue.tsx",
"selectors": null
},
{
"functions": [
"FormEntry",
"handleSubmit",
"handleSaveDraft",
"updateFormData",
"getCurrentParameters",
"getCurrentCategories"
],
"keys": null,
"path": "src/pages/FormEntry.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
},
{
"functions": [
"EmissionFactors",
"handleEdit",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/EmissionFactors.tsx",
"selectors": null
},
{
"functions": [
"UserManagement",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/admin/UserManagement.tsx",
"selectors": null
}
] | 33 |
[
{
"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: Connect governance metrics to backend\n\nConnect governance metrics on the dashboard page to the backend 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 \"$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 \".font-inter\",\n \"#root\",\n \".glass-card-dark\",\n \".dark\",\n \"webkit-scrollbar\",\n \".com\",\n \"components\",\n \".page-enter\",\n \".page-enter-active\",\n \"#d1d5db\",\n \"webkit-scrollbar-thumb\",\n \".transition-transform-fast\",\n \".input-reset\",\n \"base\",\n \".page-exit-active\",\n \".focus-ring\",\n \".googleapis\",\n \"root\",\n \"hover\",\n \"webkit-scrollbar-track\",\n \"body\",\n \".page-exit\",\n \".glass-card\",\n \".transition-all-fast\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.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 \"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 \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatusBadge\",\n \"getStatusStyles\",\n \"getStatusText\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/StatusBadge.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 \"GlassCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/GlassCard.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 \"ProgressRing\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/ProgressRing.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DashboardCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/DashboardCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PageTransition\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/PageTransition.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"getPageTitle\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"toggleSidebar\",\n \"toggleMobileSidebar\",\n \"toggleAdmin\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Sidebar.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 \"fetchEmissionFactors\",\n \"updateEmissionFactor\",\n \"createEmissionFactor\",\n \"deleteEmissionFactor\"\n ],\n \"keys\": null,\n \"path\": \"src/services/emissionFactorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchSites\",\n \"getSiteById\",\n \"createSite\",\n \"updateSite\",\n \"deleteSite\"\n ],\n \"keys\": null,\n \"path\": \"src/services/siteService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchDashboardData\",\n \"getMonthKey\",\n \"getDisplayDate\"\n ],\n \"keys\": null,\n \"path\": \"src/services/dashboardService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"createSubmission\",\n \"saveAsDraft\"\n ],\n \"keys\": null,\n \"path\": \"src/services/esgSubmissionService.ts\",\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 \"Dashboard\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleSiteChange\",\n \"handleDownloadCSV\",\n \"getAggregatedEnvironmentalData\",\n \"getAggregatedSocialData\",\n \"getAggregatedGovernanceData\",\n \"renderEnvironmentalTable\",\n \"renderSocialTable\",\n \"renderGovernanceTable\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Reports.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sites\",\n \"handleAddSite\",\n \"handleDeleteSite\",\n \"openDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Sites.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 \"requestSort\",\n \"handleApprove\",\n \"handleReject\",\n \"handleOpenRejectDialog\",\n \"handleOpenViewDialog\",\n \"formatDate\",\n \"formatValue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/ApprovalQueue.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FormEntry\",\n \"handleSubmit\",\n \"handleSaveDraft\",\n \"updateFormData\",\n \"getCurrentParameters\",\n \"getCurrentCategories\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/FormEntry.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmissionFactors\",\n \"handleEdit\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/EmissionFactors.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"UserManagement\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/UserManagement.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/Dashboard.tsx\",\n \"src/services/dashboardService.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
Viswanath856/esgwise-portal
|
Add Fugitive Emissions subcategory
Adds a new subcategory "Fugitive Emissions" to the Environmental section of the ESG data collection form.
|
{
"changed": [
"src/pages/FormEntry.tsx",
"src/types/esg.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": [
"$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": [
".font-inter",
"#root",
".glass-card-dark",
".dark",
"webkit-scrollbar",
".com",
"components",
".page-enter",
".page-enter-active",
"#d1d5db",
"webkit-scrollbar-thumb",
".transition-transform-fast",
".input-reset",
"base",
".page-exit-active",
".focus-ring",
".googleapis",
"root",
"hover",
"webkit-scrollbar-track",
"body",
".page-exit",
".glass-card",
".transition-all-fast"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.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": [
"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": [
"Calendar"
],
"keys": null,
"path": "src/components/ui/calendar.tsx",
"selectors": null
},
{
"functions": [
"StatusBadge",
"getStatusStyles",
"getStatusText"
],
"keys": null,
"path": "src/components/ui/StatusBadge.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": [
"GlassCard"
],
"keys": null,
"path": "src/components/ui/GlassCard.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": [
"ProgressRing"
],
"keys": null,
"path": "src/components/Dashboard/ProgressRing.tsx",
"selectors": null
},
{
"functions": [
"DashboardCard"
],
"keys": null,
"path": "src/components/Dashboard/DashboardCard.tsx",
"selectors": null
},
{
"functions": [
"PageTransition"
],
"keys": null,
"path": "src/components/Layout/PageTransition.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"getPageTitle"
],
"keys": null,
"path": "src/components/Layout/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Sidebar",
"toggleSidebar",
"toggleMobileSidebar",
"toggleAdmin"
],
"keys": null,
"path": "src/components/Layout/Sidebar.tsx",
"selectors": null
},
{
"functions": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"selectors": null
},
{
"functions": [
"fetchEmissionFactors",
"updateEmissionFactor",
"createEmissionFactor",
"deleteEmissionFactor"
],
"keys": null,
"path": "src/services/emissionFactorService.ts",
"selectors": null
},
{
"functions": [
"fetchSites",
"getSiteById",
"createSite",
"updateSite",
"deleteSite"
],
"keys": null,
"path": "src/services/siteService.ts",
"selectors": null
},
{
"functions": [
"fetchDashboardData",
"getMonthKey",
"getDisplayDate"
],
"keys": null,
"path": "src/services/dashboardService.ts",
"selectors": null
},
{
"functions": [
"createSubmission",
"saveAsDraft"
],
"keys": null,
"path": "src/services/esgSubmissionService.ts",
"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": [
"Dashboard",
"calcAverage"
],
"keys": null,
"path": "src/pages/Dashboard.tsx",
"selectors": null
},
{
"functions": [
"handleSiteChange",
"handleDownloadCSV",
"getAggregatedEnvironmentalData",
"getAggregatedSocialData",
"getAggregatedGovernanceData",
"renderEnvironmentalTable",
"renderSocialTable",
"renderGovernanceTable"
],
"keys": null,
"path": "src/pages/Reports.tsx",
"selectors": null
},
{
"functions": [
"Sites",
"handleAddSite",
"handleDeleteSite",
"openDeleteDialog"
],
"keys": null,
"path": "src/pages/Sites.tsx",
"selectors": null
},
{
"functions": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"requestSort",
"handleApprove",
"handleReject",
"handleOpenRejectDialog",
"handleOpenViewDialog",
"formatDate",
"formatValue"
],
"keys": null,
"path": "src/pages/ApprovalQueue.tsx",
"selectors": null
},
{
"functions": [
"FormEntry",
"handleSubmit",
"handleSaveDraft",
"updateFormData",
"getCurrentParameters",
"getCurrentCategories"
],
"keys": null,
"path": "src/pages/FormEntry.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
},
{
"functions": [
"EmissionFactors",
"handleEdit",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/EmissionFactors.tsx",
"selectors": null
},
{
"functions": [
"UserManagement",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/admin/UserManagement.tsx",
"selectors": null
}
] | 34 |
[
{
"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 Fugitive Emissions subcategory\n\nAdds a new subcategory \"Fugitive Emissions\" to the Environmental section of the ESG data collection 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 \"$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 \".font-inter\",\n \"#root\",\n \".glass-card-dark\",\n \".dark\",\n \"webkit-scrollbar\",\n \".com\",\n \"components\",\n \".page-enter\",\n \".page-enter-active\",\n \"#d1d5db\",\n \"webkit-scrollbar-thumb\",\n \".transition-transform-fast\",\n \".input-reset\",\n \"base\",\n \".page-exit-active\",\n \".focus-ring\",\n \".googleapis\",\n \"root\",\n \"hover\",\n \"webkit-scrollbar-track\",\n \"body\",\n \".page-exit\",\n \".glass-card\",\n \".transition-all-fast\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.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 \"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 \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatusBadge\",\n \"getStatusStyles\",\n \"getStatusText\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/StatusBadge.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 \"GlassCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/GlassCard.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 \"ProgressRing\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/ProgressRing.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DashboardCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/DashboardCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PageTransition\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/PageTransition.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"getPageTitle\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"toggleSidebar\",\n \"toggleMobileSidebar\",\n \"toggleAdmin\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Sidebar.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 \"fetchEmissionFactors\",\n \"updateEmissionFactor\",\n \"createEmissionFactor\",\n \"deleteEmissionFactor\"\n ],\n \"keys\": null,\n \"path\": \"src/services/emissionFactorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchSites\",\n \"getSiteById\",\n \"createSite\",\n \"updateSite\",\n \"deleteSite\"\n ],\n \"keys\": null,\n \"path\": \"src/services/siteService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchDashboardData\",\n \"getMonthKey\",\n \"getDisplayDate\"\n ],\n \"keys\": null,\n \"path\": \"src/services/dashboardService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"createSubmission\",\n \"saveAsDraft\"\n ],\n \"keys\": null,\n \"path\": \"src/services/esgSubmissionService.ts\",\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 \"Dashboard\",\n \"calcAverage\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleSiteChange\",\n \"handleDownloadCSV\",\n \"getAggregatedEnvironmentalData\",\n \"getAggregatedSocialData\",\n \"getAggregatedGovernanceData\",\n \"renderEnvironmentalTable\",\n \"renderSocialTable\",\n \"renderGovernanceTable\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Reports.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sites\",\n \"handleAddSite\",\n \"handleDeleteSite\",\n \"openDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Sites.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 \"requestSort\",\n \"handleApprove\",\n \"handleReject\",\n \"handleOpenRejectDialog\",\n \"handleOpenViewDialog\",\n \"formatDate\",\n \"formatValue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/ApprovalQueue.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FormEntry\",\n \"handleSubmit\",\n \"handleSaveDraft\",\n \"updateFormData\",\n \"getCurrentParameters\",\n \"getCurrentCategories\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/FormEntry.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmissionFactors\",\n \"handleEdit\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/EmissionFactors.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"UserManagement\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/UserManagement.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/FormEntry.tsx\",\n \"src/types/esg.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
Viswanath856/esgwise-portal
|
Add Fugitive Emissions subcategory
Adds the Fugitive Emissions subcategory with specified parameters and units to the ESG data collection form.
|
{
"changed": [
"src/pages/FormEntry.tsx",
"src/types/esg.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": [
"$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": [
".font-inter",
"#root",
".glass-card-dark",
".dark",
"webkit-scrollbar",
".com",
"components",
".page-enter",
".page-enter-active",
"#d1d5db",
"webkit-scrollbar-thumb",
".transition-transform-fast",
".input-reset",
"base",
".page-exit-active",
".focus-ring",
".googleapis",
"root",
"hover",
"webkit-scrollbar-track",
"body",
".page-exit",
".glass-card",
".transition-all-fast"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.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": [
"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": [
"Calendar"
],
"keys": null,
"path": "src/components/ui/calendar.tsx",
"selectors": null
},
{
"functions": [
"StatusBadge",
"getStatusStyles",
"getStatusText"
],
"keys": null,
"path": "src/components/ui/StatusBadge.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": [
"GlassCard"
],
"keys": null,
"path": "src/components/ui/GlassCard.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": [
"ProgressRing"
],
"keys": null,
"path": "src/components/Dashboard/ProgressRing.tsx",
"selectors": null
},
{
"functions": [
"DashboardCard"
],
"keys": null,
"path": "src/components/Dashboard/DashboardCard.tsx",
"selectors": null
},
{
"functions": [
"PageTransition"
],
"keys": null,
"path": "src/components/Layout/PageTransition.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"getPageTitle"
],
"keys": null,
"path": "src/components/Layout/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Sidebar",
"toggleSidebar",
"toggleMobileSidebar",
"toggleAdmin"
],
"keys": null,
"path": "src/components/Layout/Sidebar.tsx",
"selectors": null
},
{
"functions": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"selectors": null
},
{
"functions": [
"fetchEmissionFactors",
"updateEmissionFactor",
"createEmissionFactor",
"deleteEmissionFactor"
],
"keys": null,
"path": "src/services/emissionFactorService.ts",
"selectors": null
},
{
"functions": [
"fetchSites",
"getSiteById",
"createSite",
"updateSite",
"deleteSite"
],
"keys": null,
"path": "src/services/siteService.ts",
"selectors": null
},
{
"functions": [
"fetchDashboardData",
"getMonthKey",
"getDisplayDate"
],
"keys": null,
"path": "src/services/dashboardService.ts",
"selectors": null
},
{
"functions": [
"createSubmission",
"saveAsDraft"
],
"keys": null,
"path": "src/services/esgSubmissionService.ts",
"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": [
"Dashboard",
"calcAverage"
],
"keys": null,
"path": "src/pages/Dashboard.tsx",
"selectors": null
},
{
"functions": [
"handleSiteChange",
"handleDownloadCSV",
"getAggregatedEnvironmentalData",
"getAggregatedSocialData",
"getAggregatedGovernanceData",
"renderEnvironmentalTable",
"renderSocialTable",
"renderGovernanceTable"
],
"keys": null,
"path": "src/pages/Reports.tsx",
"selectors": null
},
{
"functions": [
"Sites",
"handleAddSite",
"handleDeleteSite",
"openDeleteDialog"
],
"keys": null,
"path": "src/pages/Sites.tsx",
"selectors": null
},
{
"functions": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"requestSort",
"handleApprove",
"handleReject",
"handleOpenRejectDialog",
"handleOpenViewDialog",
"formatDate",
"formatValue"
],
"keys": null,
"path": "src/pages/ApprovalQueue.tsx",
"selectors": null
},
{
"functions": [
"FormEntry",
"handleSubmit",
"handleSaveDraft",
"updateFormData",
"getCurrentParameters",
"getCurrentCategories"
],
"keys": null,
"path": "src/pages/FormEntry.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
},
{
"functions": [
"EmissionFactors",
"handleEdit",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/EmissionFactors.tsx",
"selectors": null
},
{
"functions": [
"UserManagement",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/admin/UserManagement.tsx",
"selectors": null
}
] | 35 |
[
{
"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 Fugitive Emissions subcategory\n\nAdds the Fugitive Emissions subcategory with specified parameters and units to the ESG data collection 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 \"$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 \".font-inter\",\n \"#root\",\n \".glass-card-dark\",\n \".dark\",\n \"webkit-scrollbar\",\n \".com\",\n \"components\",\n \".page-enter\",\n \".page-enter-active\",\n \"#d1d5db\",\n \"webkit-scrollbar-thumb\",\n \".transition-transform-fast\",\n \".input-reset\",\n \"base\",\n \".page-exit-active\",\n \".focus-ring\",\n \".googleapis\",\n \"root\",\n \"hover\",\n \"webkit-scrollbar-track\",\n \"body\",\n \".page-exit\",\n \".glass-card\",\n \".transition-all-fast\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.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 \"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 \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatusBadge\",\n \"getStatusStyles\",\n \"getStatusText\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/StatusBadge.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 \"GlassCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/GlassCard.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 \"ProgressRing\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/ProgressRing.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DashboardCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/DashboardCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PageTransition\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/PageTransition.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"getPageTitle\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"toggleSidebar\",\n \"toggleMobileSidebar\",\n \"toggleAdmin\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Sidebar.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 \"fetchEmissionFactors\",\n \"updateEmissionFactor\",\n \"createEmissionFactor\",\n \"deleteEmissionFactor\"\n ],\n \"keys\": null,\n \"path\": \"src/services/emissionFactorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchSites\",\n \"getSiteById\",\n \"createSite\",\n \"updateSite\",\n \"deleteSite\"\n ],\n \"keys\": null,\n \"path\": \"src/services/siteService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchDashboardData\",\n \"getMonthKey\",\n \"getDisplayDate\"\n ],\n \"keys\": null,\n \"path\": \"src/services/dashboardService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"createSubmission\",\n \"saveAsDraft\"\n ],\n \"keys\": null,\n \"path\": \"src/services/esgSubmissionService.ts\",\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 \"Dashboard\",\n \"calcAverage\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleSiteChange\",\n \"handleDownloadCSV\",\n \"getAggregatedEnvironmentalData\",\n \"getAggregatedSocialData\",\n \"getAggregatedGovernanceData\",\n \"renderEnvironmentalTable\",\n \"renderSocialTable\",\n \"renderGovernanceTable\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Reports.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sites\",\n \"handleAddSite\",\n \"handleDeleteSite\",\n \"openDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Sites.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 \"requestSort\",\n \"handleApprove\",\n \"handleReject\",\n \"handleOpenRejectDialog\",\n \"handleOpenViewDialog\",\n \"formatDate\",\n \"formatValue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/ApprovalQueue.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FormEntry\",\n \"handleSubmit\",\n \"handleSaveDraft\",\n \"updateFormData\",\n \"getCurrentParameters\",\n \"getCurrentCategories\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/FormEntry.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmissionFactors\",\n \"handleEdit\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/EmissionFactors.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"UserManagement\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/UserManagement.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/FormEntry.tsx\",\n \"src/types/esg.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
Viswanath856/esgwise-portal
|
Run SQL queries
This commit executes the SQL queries after review.
|
{
"changed": [
"src/components/Dashboard/TimelineEnergyChart.tsx",
"src/integrations/supabase/types.ts",
"src/pages/Dashboard.tsx",
"src/pages/FormEntry.tsx",
"src/services/dashboardService.ts",
"src/types/esg.ts"
],
"created": [
"src/components/Dashboard/FugitiveEmissionsChart.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": [
"$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": [
".font-inter",
"#root",
".glass-card-dark",
".dark",
"webkit-scrollbar",
".com",
"components",
".page-enter",
".page-enter-active",
"#d1d5db",
"webkit-scrollbar-thumb",
".transition-transform-fast",
".input-reset",
"base",
".page-exit-active",
".focus-ring",
".googleapis",
"root",
"hover",
"webkit-scrollbar-track",
"body",
".page-exit",
".glass-card",
".transition-all-fast"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.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": [
"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": [
"Calendar"
],
"keys": null,
"path": "src/components/ui/calendar.tsx",
"selectors": null
},
{
"functions": [
"StatusBadge",
"getStatusStyles",
"getStatusText"
],
"keys": null,
"path": "src/components/ui/StatusBadge.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": [
"GlassCard"
],
"keys": null,
"path": "src/components/ui/GlassCard.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": [
"ProgressRing"
],
"keys": null,
"path": "src/components/Dashboard/ProgressRing.tsx",
"selectors": null
},
{
"functions": [
"DashboardCard"
],
"keys": null,
"path": "src/components/Dashboard/DashboardCard.tsx",
"selectors": null
},
{
"functions": [
"PageTransition"
],
"keys": null,
"path": "src/components/Layout/PageTransition.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"getPageTitle"
],
"keys": null,
"path": "src/components/Layout/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Sidebar",
"toggleSidebar",
"toggleMobileSidebar",
"toggleAdmin"
],
"keys": null,
"path": "src/components/Layout/Sidebar.tsx",
"selectors": null
},
{
"functions": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"selectors": null
},
{
"functions": [
"fetchEmissionFactors",
"updateEmissionFactor",
"createEmissionFactor",
"deleteEmissionFactor"
],
"keys": null,
"path": "src/services/emissionFactorService.ts",
"selectors": null
},
{
"functions": [
"fetchSites",
"getSiteById",
"createSite",
"updateSite",
"deleteSite"
],
"keys": null,
"path": "src/services/siteService.ts",
"selectors": null
},
{
"functions": [
"fetchDashboardData",
"getMonthKey",
"getDisplayDate"
],
"keys": null,
"path": "src/services/dashboardService.ts",
"selectors": null
},
{
"functions": [
"createSubmission",
"saveAsDraft"
],
"keys": null,
"path": "src/services/esgSubmissionService.ts",
"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": [
"Dashboard",
"calcAverage"
],
"keys": null,
"path": "src/pages/Dashboard.tsx",
"selectors": null
},
{
"functions": [
"handleSiteChange",
"handleDownloadCSV",
"getAggregatedEnvironmentalData",
"getAggregatedSocialData",
"getAggregatedGovernanceData",
"renderEnvironmentalTable",
"renderSocialTable",
"renderGovernanceTable"
],
"keys": null,
"path": "src/pages/Reports.tsx",
"selectors": null
},
{
"functions": [
"Sites",
"handleAddSite",
"handleDeleteSite",
"openDeleteDialog"
],
"keys": null,
"path": "src/pages/Sites.tsx",
"selectors": null
},
{
"functions": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"requestSort",
"handleApprove",
"handleReject",
"handleOpenRejectDialog",
"handleOpenViewDialog",
"formatDate",
"formatValue"
],
"keys": null,
"path": "src/pages/ApprovalQueue.tsx",
"selectors": null
},
{
"functions": [
"FormEntry",
"handleSubmit",
"handleSaveDraft",
"updateFormData",
"getCurrentParameters",
"getCurrentCategories"
],
"keys": null,
"path": "src/pages/FormEntry.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
},
{
"functions": [
"EmissionFactors",
"handleEdit",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/EmissionFactors.tsx",
"selectors": null
},
{
"functions": [
"UserManagement",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/admin/UserManagement.tsx",
"selectors": null
}
] | 36 |
[
{
"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 queries\n\nThis commit executes the SQL queries after review.\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 \"$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 \".font-inter\",\n \"#root\",\n \".glass-card-dark\",\n \".dark\",\n \"webkit-scrollbar\",\n \".com\",\n \"components\",\n \".page-enter\",\n \".page-enter-active\",\n \"#d1d5db\",\n \"webkit-scrollbar-thumb\",\n \".transition-transform-fast\",\n \".input-reset\",\n \"base\",\n \".page-exit-active\",\n \".focus-ring\",\n \".googleapis\",\n \"root\",\n \"hover\",\n \"webkit-scrollbar-track\",\n \"body\",\n \".page-exit\",\n \".glass-card\",\n \".transition-all-fast\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.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 \"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 \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatusBadge\",\n \"getStatusStyles\",\n \"getStatusText\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/StatusBadge.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 \"GlassCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/GlassCard.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 \"ProgressRing\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/ProgressRing.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DashboardCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/DashboardCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PageTransition\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/PageTransition.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"getPageTitle\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"toggleSidebar\",\n \"toggleMobileSidebar\",\n \"toggleAdmin\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Sidebar.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 \"fetchEmissionFactors\",\n \"updateEmissionFactor\",\n \"createEmissionFactor\",\n \"deleteEmissionFactor\"\n ],\n \"keys\": null,\n \"path\": \"src/services/emissionFactorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchSites\",\n \"getSiteById\",\n \"createSite\",\n \"updateSite\",\n \"deleteSite\"\n ],\n \"keys\": null,\n \"path\": \"src/services/siteService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchDashboardData\",\n \"getMonthKey\",\n \"getDisplayDate\"\n ],\n \"keys\": null,\n \"path\": \"src/services/dashboardService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"createSubmission\",\n \"saveAsDraft\"\n ],\n \"keys\": null,\n \"path\": \"src/services/esgSubmissionService.ts\",\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 \"Dashboard\",\n \"calcAverage\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleSiteChange\",\n \"handleDownloadCSV\",\n \"getAggregatedEnvironmentalData\",\n \"getAggregatedSocialData\",\n \"getAggregatedGovernanceData\",\n \"renderEnvironmentalTable\",\n \"renderSocialTable\",\n \"renderGovernanceTable\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Reports.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sites\",\n \"handleAddSite\",\n \"handleDeleteSite\",\n \"openDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Sites.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 \"requestSort\",\n \"handleApprove\",\n \"handleReject\",\n \"handleOpenRejectDialog\",\n \"handleOpenViewDialog\",\n \"formatDate\",\n \"formatValue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/ApprovalQueue.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FormEntry\",\n \"handleSubmit\",\n \"handleSaveDraft\",\n \"updateFormData\",\n \"getCurrentParameters\",\n \"getCurrentCategories\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/FormEntry.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmissionFactors\",\n \"handleEdit\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/EmissionFactors.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"UserManagement\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/UserManagement.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/Dashboard/TimelineEnergyChart.tsx\",\n \"src/integrations/supabase/types.ts\",\n \"src/pages/Dashboard.tsx\",\n \"src/pages/FormEntry.tsx\",\n \"src/services/dashboardService.ts\",\n \"src/types/esg.ts\"\n ],\n \"created\": [\n \"src/components/Dashboard/FugitiveEmissionsChart.tsx\"\n ],\n \"deleted\": []\n}"
}
] |
Viswanath856/esgwise-portal
|
Fix: Resolve type errors in social metrics calculation
The errors were caused by incorrect usage of the '+' operator and type mismatches when calculating social metrics data. This commit addresses these issues by ensuring correct data types and proper handling of the data.
|
{
"changed": [
"src/pages/Dashboard.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": [
"$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": [
".font-inter",
"#root",
".glass-card-dark",
".dark",
"webkit-scrollbar",
".com",
"components",
".page-enter",
".page-enter-active",
"#d1d5db",
"webkit-scrollbar-thumb",
".transition-transform-fast",
".input-reset",
"base",
".page-exit-active",
".focus-ring",
".googleapis",
"root",
"hover",
"webkit-scrollbar-track",
"body",
".page-exit",
".glass-card",
".transition-all-fast"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.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": [
"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": [
"Calendar"
],
"keys": null,
"path": "src/components/ui/calendar.tsx",
"selectors": null
},
{
"functions": [
"StatusBadge",
"getStatusStyles",
"getStatusText"
],
"keys": null,
"path": "src/components/ui/StatusBadge.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": [
"GlassCard"
],
"keys": null,
"path": "src/components/ui/GlassCard.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": [
"ProgressRing"
],
"keys": null,
"path": "src/components/Dashboard/ProgressRing.tsx",
"selectors": null
},
{
"functions": [
"DashboardCard"
],
"keys": null,
"path": "src/components/Dashboard/DashboardCard.tsx",
"selectors": null
},
{
"functions": [
"PageTransition"
],
"keys": null,
"path": "src/components/Layout/PageTransition.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"getPageTitle"
],
"keys": null,
"path": "src/components/Layout/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Sidebar",
"toggleSidebar",
"toggleMobileSidebar",
"toggleAdmin"
],
"keys": null,
"path": "src/components/Layout/Sidebar.tsx",
"selectors": null
},
{
"functions": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"selectors": null
},
{
"functions": [
"fetchEmissionFactors",
"updateEmissionFactor",
"createEmissionFactor",
"deleteEmissionFactor"
],
"keys": null,
"path": "src/services/emissionFactorService.ts",
"selectors": null
},
{
"functions": [
"fetchSites",
"getSiteById",
"createSite",
"updateSite",
"deleteSite"
],
"keys": null,
"path": "src/services/siteService.ts",
"selectors": null
},
{
"functions": [
"fetchDashboardData",
"getMonthKey",
"getDisplayDate"
],
"keys": null,
"path": "src/services/dashboardService.ts",
"selectors": null
},
{
"functions": [
"createSubmission",
"saveAsDraft"
],
"keys": null,
"path": "src/services/esgSubmissionService.ts",
"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": [
"Dashboard",
"calcAverage"
],
"keys": null,
"path": "src/pages/Dashboard.tsx",
"selectors": null
},
{
"functions": [
"handleSiteChange",
"handleDownloadCSV",
"getAggregatedEnvironmentalData",
"getAggregatedSocialData",
"getAggregatedGovernanceData",
"renderEnvironmentalTable",
"renderSocialTable",
"renderGovernanceTable"
],
"keys": null,
"path": "src/pages/Reports.tsx",
"selectors": null
},
{
"functions": [
"Sites",
"handleAddSite",
"handleDeleteSite",
"openDeleteDialog"
],
"keys": null,
"path": "src/pages/Sites.tsx",
"selectors": null
},
{
"functions": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"requestSort",
"handleApprove",
"handleReject",
"handleOpenRejectDialog",
"handleOpenViewDialog",
"formatDate",
"formatValue"
],
"keys": null,
"path": "src/pages/ApprovalQueue.tsx",
"selectors": null
},
{
"functions": [
"FormEntry",
"handleSubmit",
"handleSaveDraft",
"updateFormData",
"getCurrentParameters",
"getCurrentCategories"
],
"keys": null,
"path": "src/pages/FormEntry.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
},
{
"functions": [
"EmissionFactors",
"handleEdit",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/EmissionFactors.tsx",
"selectors": null
},
{
"functions": [
"UserManagement",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/admin/UserManagement.tsx",
"selectors": null
}
] | 37 |
[
{
"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 errors in social metrics calculation\n\nThe errors were caused by incorrect usage of the '+' operator and type mismatches when calculating social metrics data. This commit addresses these issues by ensuring correct data types and proper handling of the 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 \"$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 \".font-inter\",\n \"#root\",\n \".glass-card-dark\",\n \".dark\",\n \"webkit-scrollbar\",\n \".com\",\n \"components\",\n \".page-enter\",\n \".page-enter-active\",\n \"#d1d5db\",\n \"webkit-scrollbar-thumb\",\n \".transition-transform-fast\",\n \".input-reset\",\n \"base\",\n \".page-exit-active\",\n \".focus-ring\",\n \".googleapis\",\n \"root\",\n \"hover\",\n \"webkit-scrollbar-track\",\n \"body\",\n \".page-exit\",\n \".glass-card\",\n \".transition-all-fast\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.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 \"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 \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatusBadge\",\n \"getStatusStyles\",\n \"getStatusText\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/StatusBadge.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 \"GlassCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/GlassCard.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 \"ProgressRing\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/ProgressRing.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DashboardCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/DashboardCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PageTransition\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/PageTransition.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"getPageTitle\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"toggleSidebar\",\n \"toggleMobileSidebar\",\n \"toggleAdmin\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Sidebar.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 \"fetchEmissionFactors\",\n \"updateEmissionFactor\",\n \"createEmissionFactor\",\n \"deleteEmissionFactor\"\n ],\n \"keys\": null,\n \"path\": \"src/services/emissionFactorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchSites\",\n \"getSiteById\",\n \"createSite\",\n \"updateSite\",\n \"deleteSite\"\n ],\n \"keys\": null,\n \"path\": \"src/services/siteService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchDashboardData\",\n \"getMonthKey\",\n \"getDisplayDate\"\n ],\n \"keys\": null,\n \"path\": \"src/services/dashboardService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"createSubmission\",\n \"saveAsDraft\"\n ],\n \"keys\": null,\n \"path\": \"src/services/esgSubmissionService.ts\",\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 \"Dashboard\",\n \"calcAverage\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleSiteChange\",\n \"handleDownloadCSV\",\n \"getAggregatedEnvironmentalData\",\n \"getAggregatedSocialData\",\n \"getAggregatedGovernanceData\",\n \"renderEnvironmentalTable\",\n \"renderSocialTable\",\n \"renderGovernanceTable\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Reports.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sites\",\n \"handleAddSite\",\n \"handleDeleteSite\",\n \"openDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Sites.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 \"requestSort\",\n \"handleApprove\",\n \"handleReject\",\n \"handleOpenRejectDialog\",\n \"handleOpenViewDialog\",\n \"formatDate\",\n \"formatValue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/ApprovalQueue.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FormEntry\",\n \"handleSubmit\",\n \"handleSaveDraft\",\n \"updateFormData\",\n \"getCurrentParameters\",\n \"getCurrentCategories\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/FormEntry.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmissionFactors\",\n \"handleEdit\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/EmissionFactors.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"UserManagement\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/UserManagement.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/Dashboard.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
Viswanath856/esgwise-portal
|
Fix: Resolve TypeScript errors in Dashboard.tsx
Fixes TypeScript errors related to incorrect type usage in the social data processing within the Dashboard component.
|
{
"changed": [
"src/pages/Dashboard.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": [
"$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": [
".font-inter",
"#root",
".glass-card-dark",
".dark",
"webkit-scrollbar",
".com",
"components",
".page-enter",
".page-enter-active",
"#d1d5db",
"webkit-scrollbar-thumb",
".transition-transform-fast",
".input-reset",
"base",
".page-exit-active",
".focus-ring",
".googleapis",
"root",
"hover",
"webkit-scrollbar-track",
"body",
".page-exit",
".glass-card",
".transition-all-fast"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.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": [
"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": [
"Calendar"
],
"keys": null,
"path": "src/components/ui/calendar.tsx",
"selectors": null
},
{
"functions": [
"StatusBadge",
"getStatusStyles",
"getStatusText"
],
"keys": null,
"path": "src/components/ui/StatusBadge.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": [
"GlassCard"
],
"keys": null,
"path": "src/components/ui/GlassCard.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": [
"ProgressRing"
],
"keys": null,
"path": "src/components/Dashboard/ProgressRing.tsx",
"selectors": null
},
{
"functions": [
"DashboardCard"
],
"keys": null,
"path": "src/components/Dashboard/DashboardCard.tsx",
"selectors": null
},
{
"functions": [
"PageTransition"
],
"keys": null,
"path": "src/components/Layout/PageTransition.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"getPageTitle"
],
"keys": null,
"path": "src/components/Layout/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Sidebar",
"toggleSidebar",
"toggleMobileSidebar",
"toggleAdmin"
],
"keys": null,
"path": "src/components/Layout/Sidebar.tsx",
"selectors": null
},
{
"functions": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"selectors": null
},
{
"functions": [
"fetchEmissionFactors",
"updateEmissionFactor",
"createEmissionFactor",
"deleteEmissionFactor"
],
"keys": null,
"path": "src/services/emissionFactorService.ts",
"selectors": null
},
{
"functions": [
"fetchSites",
"getSiteById",
"createSite",
"updateSite",
"deleteSite"
],
"keys": null,
"path": "src/services/siteService.ts",
"selectors": null
},
{
"functions": [
"fetchDashboardData",
"getMonthKey",
"getDisplayDate"
],
"keys": null,
"path": "src/services/dashboardService.ts",
"selectors": null
},
{
"functions": [
"createSubmission",
"saveAsDraft"
],
"keys": null,
"path": "src/services/esgSubmissionService.ts",
"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": [
"Dashboard",
"calcAverage"
],
"keys": null,
"path": "src/pages/Dashboard.tsx",
"selectors": null
},
{
"functions": [
"handleSiteChange",
"handleDownloadCSV",
"getAggregatedEnvironmentalData",
"getAggregatedSocialData",
"getAggregatedGovernanceData",
"renderEnvironmentalTable",
"renderSocialTable",
"renderGovernanceTable"
],
"keys": null,
"path": "src/pages/Reports.tsx",
"selectors": null
},
{
"functions": [
"Sites",
"handleAddSite",
"handleDeleteSite",
"openDeleteDialog"
],
"keys": null,
"path": "src/pages/Sites.tsx",
"selectors": null
},
{
"functions": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"requestSort",
"handleApprove",
"handleReject",
"handleOpenRejectDialog",
"handleOpenViewDialog",
"formatDate",
"formatValue"
],
"keys": null,
"path": "src/pages/ApprovalQueue.tsx",
"selectors": null
},
{
"functions": [
"FormEntry",
"handleSubmit",
"handleSaveDraft",
"updateFormData",
"getCurrentParameters",
"getCurrentCategories"
],
"keys": null,
"path": "src/pages/FormEntry.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
},
{
"functions": [
"EmissionFactors",
"handleEdit",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/EmissionFactors.tsx",
"selectors": null
},
{
"functions": [
"UserManagement",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/admin/UserManagement.tsx",
"selectors": null
}
] | 38 |
[
{
"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 TypeScript errors in Dashboard.tsx\n\nFixes TypeScript errors related to incorrect type usage in the social data processing within the Dashboard 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 \"$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 \".font-inter\",\n \"#root\",\n \".glass-card-dark\",\n \".dark\",\n \"webkit-scrollbar\",\n \".com\",\n \"components\",\n \".page-enter\",\n \".page-enter-active\",\n \"#d1d5db\",\n \"webkit-scrollbar-thumb\",\n \".transition-transform-fast\",\n \".input-reset\",\n \"base\",\n \".page-exit-active\",\n \".focus-ring\",\n \".googleapis\",\n \"root\",\n \"hover\",\n \"webkit-scrollbar-track\",\n \"body\",\n \".page-exit\",\n \".glass-card\",\n \".transition-all-fast\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.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 \"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 \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatusBadge\",\n \"getStatusStyles\",\n \"getStatusText\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/StatusBadge.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 \"GlassCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/GlassCard.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 \"ProgressRing\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/ProgressRing.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DashboardCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/DashboardCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PageTransition\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/PageTransition.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"getPageTitle\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"toggleSidebar\",\n \"toggleMobileSidebar\",\n \"toggleAdmin\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Sidebar.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 \"fetchEmissionFactors\",\n \"updateEmissionFactor\",\n \"createEmissionFactor\",\n \"deleteEmissionFactor\"\n ],\n \"keys\": null,\n \"path\": \"src/services/emissionFactorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchSites\",\n \"getSiteById\",\n \"createSite\",\n \"updateSite\",\n \"deleteSite\"\n ],\n \"keys\": null,\n \"path\": \"src/services/siteService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchDashboardData\",\n \"getMonthKey\",\n \"getDisplayDate\"\n ],\n \"keys\": null,\n \"path\": \"src/services/dashboardService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"createSubmission\",\n \"saveAsDraft\"\n ],\n \"keys\": null,\n \"path\": \"src/services/esgSubmissionService.ts\",\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 \"Dashboard\",\n \"calcAverage\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleSiteChange\",\n \"handleDownloadCSV\",\n \"getAggregatedEnvironmentalData\",\n \"getAggregatedSocialData\",\n \"getAggregatedGovernanceData\",\n \"renderEnvironmentalTable\",\n \"renderSocialTable\",\n \"renderGovernanceTable\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Reports.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sites\",\n \"handleAddSite\",\n \"handleDeleteSite\",\n \"openDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Sites.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 \"requestSort\",\n \"handleApprove\",\n \"handleReject\",\n \"handleOpenRejectDialog\",\n \"handleOpenViewDialog\",\n \"formatDate\",\n \"formatValue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/ApprovalQueue.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FormEntry\",\n \"handleSubmit\",\n \"handleSaveDraft\",\n \"updateFormData\",\n \"getCurrentParameters\",\n \"getCurrentCategories\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/FormEntry.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmissionFactors\",\n \"handleEdit\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/EmissionFactors.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"UserManagement\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/UserManagement.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/Dashboard.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
Viswanath856/esgwise-portal
|
Run SQL changes
This commit applies the SQL changes that were reviewed.
|
{
"changed": [
"src/App.tsx",
"src/components/Layout/Sidebar.tsx",
"src/integrations/supabase/types.ts"
],
"created": [
"src/pages/admin/ManageParameters.tsx",
"src/services/parameterService.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": [
"$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": [
".font-inter",
"#root",
".glass-card-dark",
".dark",
"webkit-scrollbar",
".com",
"components",
".page-enter",
".page-enter-active",
"#d1d5db",
"webkit-scrollbar-thumb",
".transition-transform-fast",
".input-reset",
"base",
".page-exit-active",
".focus-ring",
".googleapis",
"root",
"hover",
"webkit-scrollbar-track",
"body",
".page-exit",
".glass-card",
".transition-all-fast"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.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": [
"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": [
"Calendar"
],
"keys": null,
"path": "src/components/ui/calendar.tsx",
"selectors": null
},
{
"functions": [
"StatusBadge",
"getStatusStyles",
"getStatusText"
],
"keys": null,
"path": "src/components/ui/StatusBadge.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": [
"GlassCard"
],
"keys": null,
"path": "src/components/ui/GlassCard.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": [
"ProgressRing"
],
"keys": null,
"path": "src/components/Dashboard/ProgressRing.tsx",
"selectors": null
},
{
"functions": [
"DashboardCard"
],
"keys": null,
"path": "src/components/Dashboard/DashboardCard.tsx",
"selectors": null
},
{
"functions": [
"PageTransition"
],
"keys": null,
"path": "src/components/Layout/PageTransition.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"getPageTitle"
],
"keys": null,
"path": "src/components/Layout/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Sidebar",
"toggleSidebar",
"toggleMobileSidebar",
"toggleAdmin"
],
"keys": null,
"path": "src/components/Layout/Sidebar.tsx",
"selectors": null
},
{
"functions": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"selectors": null
},
{
"functions": [
"fetchEmissionFactors",
"updateEmissionFactor",
"createEmissionFactor",
"deleteEmissionFactor"
],
"keys": null,
"path": "src/services/emissionFactorService.ts",
"selectors": null
},
{
"functions": [
"fetchSites",
"getSiteById",
"createSite",
"updateSite",
"deleteSite"
],
"keys": null,
"path": "src/services/siteService.ts",
"selectors": null
},
{
"functions": [
"fetchDashboardData",
"getMonthKey",
"getDisplayDate"
],
"keys": null,
"path": "src/services/dashboardService.ts",
"selectors": null
},
{
"functions": [
"createSubmission",
"saveAsDraft"
],
"keys": null,
"path": "src/services/esgSubmissionService.ts",
"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": [
"Dashboard",
"calcAverage"
],
"keys": null,
"path": "src/pages/Dashboard.tsx",
"selectors": null
},
{
"functions": [
"handleSiteChange",
"handleDownloadCSV",
"getAggregatedEnvironmentalData",
"getAggregatedSocialData",
"getAggregatedGovernanceData",
"renderEnvironmentalTable",
"renderSocialTable",
"renderGovernanceTable"
],
"keys": null,
"path": "src/pages/Reports.tsx",
"selectors": null
},
{
"functions": [
"Sites",
"handleAddSite",
"handleDeleteSite",
"openDeleteDialog"
],
"keys": null,
"path": "src/pages/Sites.tsx",
"selectors": null
},
{
"functions": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"requestSort",
"handleApprove",
"handleReject",
"handleOpenRejectDialog",
"handleOpenViewDialog",
"formatDate",
"formatValue"
],
"keys": null,
"path": "src/pages/ApprovalQueue.tsx",
"selectors": null
},
{
"functions": [
"FormEntry",
"handleSubmit",
"handleSaveDraft",
"updateFormData",
"getCurrentParameters",
"getCurrentCategories"
],
"keys": null,
"path": "src/pages/FormEntry.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
},
{
"functions": [
"EmissionFactors",
"handleEdit",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/EmissionFactors.tsx",
"selectors": null
},
{
"functions": [
"UserManagement",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/admin/UserManagement.tsx",
"selectors": null
}
] | 39 |
[
{
"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 changes\n\nThis commit applies the SQL changes that were reviewed.\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 \"$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 \".font-inter\",\n \"#root\",\n \".glass-card-dark\",\n \".dark\",\n \"webkit-scrollbar\",\n \".com\",\n \"components\",\n \".page-enter\",\n \".page-enter-active\",\n \"#d1d5db\",\n \"webkit-scrollbar-thumb\",\n \".transition-transform-fast\",\n \".input-reset\",\n \"base\",\n \".page-exit-active\",\n \".focus-ring\",\n \".googleapis\",\n \"root\",\n \"hover\",\n \"webkit-scrollbar-track\",\n \"body\",\n \".page-exit\",\n \".glass-card\",\n \".transition-all-fast\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.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 \"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 \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatusBadge\",\n \"getStatusStyles\",\n \"getStatusText\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/StatusBadge.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 \"GlassCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/GlassCard.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 \"ProgressRing\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/ProgressRing.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DashboardCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/DashboardCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PageTransition\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/PageTransition.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"getPageTitle\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"toggleSidebar\",\n \"toggleMobileSidebar\",\n \"toggleAdmin\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Sidebar.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 \"fetchEmissionFactors\",\n \"updateEmissionFactor\",\n \"createEmissionFactor\",\n \"deleteEmissionFactor\"\n ],\n \"keys\": null,\n \"path\": \"src/services/emissionFactorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchSites\",\n \"getSiteById\",\n \"createSite\",\n \"updateSite\",\n \"deleteSite\"\n ],\n \"keys\": null,\n \"path\": \"src/services/siteService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchDashboardData\",\n \"getMonthKey\",\n \"getDisplayDate\"\n ],\n \"keys\": null,\n \"path\": \"src/services/dashboardService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"createSubmission\",\n \"saveAsDraft\"\n ],\n \"keys\": null,\n \"path\": \"src/services/esgSubmissionService.ts\",\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 \"Dashboard\",\n \"calcAverage\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleSiteChange\",\n \"handleDownloadCSV\",\n \"getAggregatedEnvironmentalData\",\n \"getAggregatedSocialData\",\n \"getAggregatedGovernanceData\",\n \"renderEnvironmentalTable\",\n \"renderSocialTable\",\n \"renderGovernanceTable\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Reports.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sites\",\n \"handleAddSite\",\n \"handleDeleteSite\",\n \"openDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Sites.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 \"requestSort\",\n \"handleApprove\",\n \"handleReject\",\n \"handleOpenRejectDialog\",\n \"handleOpenViewDialog\",\n \"formatDate\",\n \"formatValue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/ApprovalQueue.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FormEntry\",\n \"handleSubmit\",\n \"handleSaveDraft\",\n \"updateFormData\",\n \"getCurrentParameters\",\n \"getCurrentCategories\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/FormEntry.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmissionFactors\",\n \"handleEdit\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/EmissionFactors.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"UserManagement\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/UserManagement.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/Layout/Sidebar.tsx\",\n \"src/integrations/supabase/types.ts\"\n ],\n \"created\": [\n \"src/pages/admin/ManageParameters.tsx\",\n \"src/services/parameterService.ts\"\n ],\n \"deleted\": []\n}"
}
] |
Viswanath856/esgwise-portal
|
Fix: Category type mismatch
Fixes type errors related to the 'type' property in the Category interface, ensuring it aligns with the CategoryType enum.
|
{
"changed": [
"src/services/parameterService.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": [
"$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": [
".font-inter",
"#root",
".glass-card-dark",
".dark",
"webkit-scrollbar",
".com",
"components",
".page-enter",
".page-enter-active",
"#d1d5db",
"webkit-scrollbar-thumb",
".transition-transform-fast",
".input-reset",
"base",
".page-exit-active",
".focus-ring",
".googleapis",
"root",
"hover",
"webkit-scrollbar-track",
"body",
".page-exit",
".glass-card",
".transition-all-fast"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.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": [
"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": [
"Calendar"
],
"keys": null,
"path": "src/components/ui/calendar.tsx",
"selectors": null
},
{
"functions": [
"StatusBadge",
"getStatusStyles",
"getStatusText"
],
"keys": null,
"path": "src/components/ui/StatusBadge.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": [
"GlassCard"
],
"keys": null,
"path": "src/components/ui/GlassCard.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": [
"ProgressRing"
],
"keys": null,
"path": "src/components/Dashboard/ProgressRing.tsx",
"selectors": null
},
{
"functions": [
"DashboardCard"
],
"keys": null,
"path": "src/components/Dashboard/DashboardCard.tsx",
"selectors": null
},
{
"functions": [
"PageTransition"
],
"keys": null,
"path": "src/components/Layout/PageTransition.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"getPageTitle"
],
"keys": null,
"path": "src/components/Layout/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Sidebar",
"toggleSidebar",
"toggleMobileSidebar",
"toggleAdmin"
],
"keys": null,
"path": "src/components/Layout/Sidebar.tsx",
"selectors": null
},
{
"functions": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"selectors": null
},
{
"functions": [
"fetchEmissionFactors",
"updateEmissionFactor",
"createEmissionFactor",
"deleteEmissionFactor"
],
"keys": null,
"path": "src/services/emissionFactorService.ts",
"selectors": null
},
{
"functions": [
"fetchSites",
"getSiteById",
"createSite",
"updateSite",
"deleteSite"
],
"keys": null,
"path": "src/services/siteService.ts",
"selectors": null
},
{
"functions": [
"fetchDashboardData",
"getMonthKey",
"getDisplayDate"
],
"keys": null,
"path": "src/services/dashboardService.ts",
"selectors": null
},
{
"functions": [
"createSubmission",
"saveAsDraft"
],
"keys": null,
"path": "src/services/esgSubmissionService.ts",
"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": [
"Dashboard",
"calcAverage"
],
"keys": null,
"path": "src/pages/Dashboard.tsx",
"selectors": null
},
{
"functions": [
"handleSiteChange",
"handleDownloadCSV",
"getAggregatedEnvironmentalData",
"getAggregatedSocialData",
"getAggregatedGovernanceData",
"renderEnvironmentalTable",
"renderSocialTable",
"renderGovernanceTable"
],
"keys": null,
"path": "src/pages/Reports.tsx",
"selectors": null
},
{
"functions": [
"Sites",
"handleAddSite",
"handleDeleteSite",
"openDeleteDialog"
],
"keys": null,
"path": "src/pages/Sites.tsx",
"selectors": null
},
{
"functions": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"requestSort",
"handleApprove",
"handleReject",
"handleOpenRejectDialog",
"handleOpenViewDialog",
"formatDate",
"formatValue"
],
"keys": null,
"path": "src/pages/ApprovalQueue.tsx",
"selectors": null
},
{
"functions": [
"FormEntry",
"handleSubmit",
"handleSaveDraft",
"updateFormData",
"getCurrentParameters",
"getCurrentCategories"
],
"keys": null,
"path": "src/pages/FormEntry.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
},
{
"functions": [
"EmissionFactors",
"handleEdit",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/EmissionFactors.tsx",
"selectors": null
},
{
"functions": [
"UserManagement",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/admin/UserManagement.tsx",
"selectors": null
},
{
"functions": [
"ManageParameters",
"if"
],
"keys": null,
"path": "src/pages/admin/ManageParameters.tsx",
"selectors": null
},
{
"functions": [
"createParameter",
"updateParameter"
],
"keys": null,
"path": "src/services/parameterService.ts",
"selectors": null
}
] | 40 |
[
{
"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: Category type mismatch\n\nFixes type errors related to the 'type' property in the Category interface, ensuring it aligns with the CategoryType enum.\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 \"$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 \".font-inter\",\n \"#root\",\n \".glass-card-dark\",\n \".dark\",\n \"webkit-scrollbar\",\n \".com\",\n \"components\",\n \".page-enter\",\n \".page-enter-active\",\n \"#d1d5db\",\n \"webkit-scrollbar-thumb\",\n \".transition-transform-fast\",\n \".input-reset\",\n \"base\",\n \".page-exit-active\",\n \".focus-ring\",\n \".googleapis\",\n \"root\",\n \"hover\",\n \"webkit-scrollbar-track\",\n \"body\",\n \".page-exit\",\n \".glass-card\",\n \".transition-all-fast\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.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 \"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 \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatusBadge\",\n \"getStatusStyles\",\n \"getStatusText\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/StatusBadge.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 \"GlassCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/GlassCard.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 \"ProgressRing\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/ProgressRing.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DashboardCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/DashboardCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PageTransition\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/PageTransition.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"getPageTitle\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"toggleSidebar\",\n \"toggleMobileSidebar\",\n \"toggleAdmin\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Sidebar.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 \"fetchEmissionFactors\",\n \"updateEmissionFactor\",\n \"createEmissionFactor\",\n \"deleteEmissionFactor\"\n ],\n \"keys\": null,\n \"path\": \"src/services/emissionFactorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchSites\",\n \"getSiteById\",\n \"createSite\",\n \"updateSite\",\n \"deleteSite\"\n ],\n \"keys\": null,\n \"path\": \"src/services/siteService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchDashboardData\",\n \"getMonthKey\",\n \"getDisplayDate\"\n ],\n \"keys\": null,\n \"path\": \"src/services/dashboardService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"createSubmission\",\n \"saveAsDraft\"\n ],\n \"keys\": null,\n \"path\": \"src/services/esgSubmissionService.ts\",\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 \"Dashboard\",\n \"calcAverage\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleSiteChange\",\n \"handleDownloadCSV\",\n \"getAggregatedEnvironmentalData\",\n \"getAggregatedSocialData\",\n \"getAggregatedGovernanceData\",\n \"renderEnvironmentalTable\",\n \"renderSocialTable\",\n \"renderGovernanceTable\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Reports.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sites\",\n \"handleAddSite\",\n \"handleDeleteSite\",\n \"openDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Sites.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 \"requestSort\",\n \"handleApprove\",\n \"handleReject\",\n \"handleOpenRejectDialog\",\n \"handleOpenViewDialog\",\n \"formatDate\",\n \"formatValue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/ApprovalQueue.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FormEntry\",\n \"handleSubmit\",\n \"handleSaveDraft\",\n \"updateFormData\",\n \"getCurrentParameters\",\n \"getCurrentCategories\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/FormEntry.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmissionFactors\",\n \"handleEdit\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/EmissionFactors.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"UserManagement\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/UserManagement.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ManageParameters\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/ManageParameters.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"createParameter\",\n \"updateParameter\"\n ],\n \"keys\": null,\n \"path\": \"src/services/parameterService.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/parameterService.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
Viswanath856/esgwise-portal
|
Refactor: Apply ESG data model changes across platform
Apply the changes from previous prompts to the database, tables, dashboard, and data collection form. Update the "Manage Parameters" section in Admin to reflect the ESG category, subcategory, and parameter structure.
|
{
"changed": [
"src/services/parameterService.ts"
],
"created": [
"src/hooks/useESGParameters.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": [
"$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": [
".font-inter",
"#root",
".glass-card-dark",
".dark",
"webkit-scrollbar",
".com",
"components",
".page-enter",
".page-enter-active",
"#d1d5db",
"webkit-scrollbar-thumb",
".transition-transform-fast",
".input-reset",
"base",
".page-exit-active",
".focus-ring",
".googleapis",
"root",
"hover",
"webkit-scrollbar-track",
"body",
".page-exit",
".glass-card",
".transition-all-fast"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.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": [
"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": [
"Calendar"
],
"keys": null,
"path": "src/components/ui/calendar.tsx",
"selectors": null
},
{
"functions": [
"StatusBadge",
"getStatusStyles",
"getStatusText"
],
"keys": null,
"path": "src/components/ui/StatusBadge.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": [
"GlassCard"
],
"keys": null,
"path": "src/components/ui/GlassCard.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": [
"ProgressRing"
],
"keys": null,
"path": "src/components/Dashboard/ProgressRing.tsx",
"selectors": null
},
{
"functions": [
"DashboardCard"
],
"keys": null,
"path": "src/components/Dashboard/DashboardCard.tsx",
"selectors": null
},
{
"functions": [
"PageTransition"
],
"keys": null,
"path": "src/components/Layout/PageTransition.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"getPageTitle"
],
"keys": null,
"path": "src/components/Layout/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Sidebar",
"toggleSidebar",
"toggleMobileSidebar",
"toggleAdmin"
],
"keys": null,
"path": "src/components/Layout/Sidebar.tsx",
"selectors": null
},
{
"functions": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"selectors": null
},
{
"functions": [
"fetchEmissionFactors",
"updateEmissionFactor",
"createEmissionFactor",
"deleteEmissionFactor"
],
"keys": null,
"path": "src/services/emissionFactorService.ts",
"selectors": null
},
{
"functions": [
"fetchSites",
"getSiteById",
"createSite",
"updateSite",
"deleteSite"
],
"keys": null,
"path": "src/services/siteService.ts",
"selectors": null
},
{
"functions": [
"fetchDashboardData",
"getMonthKey",
"getDisplayDate"
],
"keys": null,
"path": "src/services/dashboardService.ts",
"selectors": null
},
{
"functions": [
"createSubmission",
"saveAsDraft"
],
"keys": null,
"path": "src/services/esgSubmissionService.ts",
"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": [
"Dashboard",
"calcAverage"
],
"keys": null,
"path": "src/pages/Dashboard.tsx",
"selectors": null
},
{
"functions": [
"handleSiteChange",
"handleDownloadCSV",
"getAggregatedEnvironmentalData",
"getAggregatedSocialData",
"getAggregatedGovernanceData",
"renderEnvironmentalTable",
"renderSocialTable",
"renderGovernanceTable"
],
"keys": null,
"path": "src/pages/Reports.tsx",
"selectors": null
},
{
"functions": [
"Sites",
"handleAddSite",
"handleDeleteSite",
"openDeleteDialog"
],
"keys": null,
"path": "src/pages/Sites.tsx",
"selectors": null
},
{
"functions": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"requestSort",
"handleApprove",
"handleReject",
"handleOpenRejectDialog",
"handleOpenViewDialog",
"formatDate",
"formatValue"
],
"keys": null,
"path": "src/pages/ApprovalQueue.tsx",
"selectors": null
},
{
"functions": [
"FormEntry",
"handleSubmit",
"handleSaveDraft",
"updateFormData",
"getCurrentParameters",
"getCurrentCategories"
],
"keys": null,
"path": "src/pages/FormEntry.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
},
{
"functions": [
"EmissionFactors",
"handleEdit",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/EmissionFactors.tsx",
"selectors": null
},
{
"functions": [
"UserManagement",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/admin/UserManagement.tsx",
"selectors": null
},
{
"functions": [
"ManageParameters",
"if"
],
"keys": null,
"path": "src/pages/admin/ManageParameters.tsx",
"selectors": null
}
] | 41 |
[
{
"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: Apply ESG data model changes across platform\n\nApply the changes from previous prompts to the database, tables, dashboard, and data collection form. Update the \"Manage Parameters\" section in Admin to reflect the ESG category, subcategory, and parameter structure.\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 \"$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 \".font-inter\",\n \"#root\",\n \".glass-card-dark\",\n \".dark\",\n \"webkit-scrollbar\",\n \".com\",\n \"components\",\n \".page-enter\",\n \".page-enter-active\",\n \"#d1d5db\",\n \"webkit-scrollbar-thumb\",\n \".transition-transform-fast\",\n \".input-reset\",\n \"base\",\n \".page-exit-active\",\n \".focus-ring\",\n \".googleapis\",\n \"root\",\n \"hover\",\n \"webkit-scrollbar-track\",\n \"body\",\n \".page-exit\",\n \".glass-card\",\n \".transition-all-fast\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.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 \"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 \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatusBadge\",\n \"getStatusStyles\",\n \"getStatusText\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/StatusBadge.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 \"GlassCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/GlassCard.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 \"ProgressRing\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/ProgressRing.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DashboardCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/DashboardCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PageTransition\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/PageTransition.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"getPageTitle\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"toggleSidebar\",\n \"toggleMobileSidebar\",\n \"toggleAdmin\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Sidebar.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 \"fetchEmissionFactors\",\n \"updateEmissionFactor\",\n \"createEmissionFactor\",\n \"deleteEmissionFactor\"\n ],\n \"keys\": null,\n \"path\": \"src/services/emissionFactorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchSites\",\n \"getSiteById\",\n \"createSite\",\n \"updateSite\",\n \"deleteSite\"\n ],\n \"keys\": null,\n \"path\": \"src/services/siteService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchDashboardData\",\n \"getMonthKey\",\n \"getDisplayDate\"\n ],\n \"keys\": null,\n \"path\": \"src/services/dashboardService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"createSubmission\",\n \"saveAsDraft\"\n ],\n \"keys\": null,\n \"path\": \"src/services/esgSubmissionService.ts\",\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 \"Dashboard\",\n \"calcAverage\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleSiteChange\",\n \"handleDownloadCSV\",\n \"getAggregatedEnvironmentalData\",\n \"getAggregatedSocialData\",\n \"getAggregatedGovernanceData\",\n \"renderEnvironmentalTable\",\n \"renderSocialTable\",\n \"renderGovernanceTable\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Reports.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sites\",\n \"handleAddSite\",\n \"handleDeleteSite\",\n \"openDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Sites.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 \"requestSort\",\n \"handleApprove\",\n \"handleReject\",\n \"handleOpenRejectDialog\",\n \"handleOpenViewDialog\",\n \"formatDate\",\n \"formatValue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/ApprovalQueue.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FormEntry\",\n \"handleSubmit\",\n \"handleSaveDraft\",\n \"updateFormData\",\n \"getCurrentParameters\",\n \"getCurrentCategories\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/FormEntry.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmissionFactors\",\n \"handleEdit\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/EmissionFactors.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"UserManagement\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/UserManagement.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ManageParameters\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/ManageParameters.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/parameterService.ts\"\n ],\n \"created\": [\n \"src/hooks/useESGParameters.ts\"\n ],\n \"deleted\": []\n}"
}
] |
Viswanath856/esgwise-portal
|
Refactor: Implement parameter management UI
Refactor the parameter management page to use environmental, social, and governance categories. Sync changes with the data collection form and dashboard.
|
{
"changed": [
"src/hooks/useESGParameters.ts",
"src/services/parameterService.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": [
"$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": [
".font-inter",
"#root",
".glass-card-dark",
".dark",
"webkit-scrollbar",
".com",
"components",
".page-enter",
".page-enter-active",
"#d1d5db",
"webkit-scrollbar-thumb",
".transition-transform-fast",
".input-reset",
"base",
".page-exit-active",
".focus-ring",
".googleapis",
"root",
"hover",
"webkit-scrollbar-track",
"body",
".page-exit",
".glass-card",
".transition-all-fast"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.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": [
"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": [
"Calendar"
],
"keys": null,
"path": "src/components/ui/calendar.tsx",
"selectors": null
},
{
"functions": [
"StatusBadge",
"getStatusStyles",
"getStatusText"
],
"keys": null,
"path": "src/components/ui/StatusBadge.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": [
"GlassCard"
],
"keys": null,
"path": "src/components/ui/GlassCard.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": [
"ProgressRing"
],
"keys": null,
"path": "src/components/Dashboard/ProgressRing.tsx",
"selectors": null
},
{
"functions": [
"DashboardCard"
],
"keys": null,
"path": "src/components/Dashboard/DashboardCard.tsx",
"selectors": null
},
{
"functions": [
"PageTransition"
],
"keys": null,
"path": "src/components/Layout/PageTransition.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"getPageTitle"
],
"keys": null,
"path": "src/components/Layout/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Sidebar",
"toggleSidebar",
"toggleMobileSidebar",
"toggleAdmin"
],
"keys": null,
"path": "src/components/Layout/Sidebar.tsx",
"selectors": null
},
{
"functions": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"selectors": null
},
{
"functions": [
"fetchEmissionFactors",
"updateEmissionFactor",
"createEmissionFactor",
"deleteEmissionFactor"
],
"keys": null,
"path": "src/services/emissionFactorService.ts",
"selectors": null
},
{
"functions": [
"fetchSites",
"getSiteById",
"createSite",
"updateSite",
"deleteSite"
],
"keys": null,
"path": "src/services/siteService.ts",
"selectors": null
},
{
"functions": [
"fetchDashboardData",
"getMonthKey",
"getDisplayDate"
],
"keys": null,
"path": "src/services/dashboardService.ts",
"selectors": null
},
{
"functions": [
"createSubmission",
"saveAsDraft"
],
"keys": null,
"path": "src/services/esgSubmissionService.ts",
"selectors": null
},
{
"functions": [
"genId",
"addToRemoveQueue",
"reducer",
"dispatch",
"toast",
"update",
"dismiss"
],
"keys": null,
"path": "src/hooks/use-toast.ts",
"selectors": null
},
{
"functions": [
"useESGParameters"
],
"keys": null,
"path": "src/hooks/useESGParameters.ts",
"selectors": null
},
{
"functions": [
"useIsMobile",
"onChange"
],
"keys": null,
"path": "src/hooks/use-mobile.tsx",
"selectors": null
},
{
"functions": [
"Dashboard",
"calcAverage"
],
"keys": null,
"path": "src/pages/Dashboard.tsx",
"selectors": null
},
{
"functions": [
"handleSiteChange",
"handleDownloadCSV",
"getAggregatedEnvironmentalData",
"getAggregatedSocialData",
"getAggregatedGovernanceData",
"renderEnvironmentalTable",
"renderSocialTable",
"renderGovernanceTable"
],
"keys": null,
"path": "src/pages/Reports.tsx",
"selectors": null
},
{
"functions": [
"Sites",
"handleAddSite",
"handleDeleteSite",
"openDeleteDialog"
],
"keys": null,
"path": "src/pages/Sites.tsx",
"selectors": null
},
{
"functions": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"requestSort",
"handleApprove",
"handleReject",
"handleOpenRejectDialog",
"handleOpenViewDialog",
"formatDate",
"formatValue"
],
"keys": null,
"path": "src/pages/ApprovalQueue.tsx",
"selectors": null
},
{
"functions": [
"FormEntry",
"handleSubmit",
"handleSaveDraft",
"updateFormData",
"getCurrentParameters",
"getCurrentCategories"
],
"keys": null,
"path": "src/pages/FormEntry.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
},
{
"functions": [
"EmissionFactors",
"handleEdit",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/EmissionFactors.tsx",
"selectors": null
},
{
"functions": [
"UserManagement",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/admin/UserManagement.tsx",
"selectors": null
},
{
"functions": [
"ManageParameters",
"if"
],
"keys": null,
"path": "src/pages/admin/ManageParameters.tsx",
"selectors": null
}
] | 42 |
[
{
"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: Implement parameter management UI\n\nRefactor the parameter management page to use environmental, social, and governance categories. Sync changes with the data collection form and dashboard.\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 \"$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 \".font-inter\",\n \"#root\",\n \".glass-card-dark\",\n \".dark\",\n \"webkit-scrollbar\",\n \".com\",\n \"components\",\n \".page-enter\",\n \".page-enter-active\",\n \"#d1d5db\",\n \"webkit-scrollbar-thumb\",\n \".transition-transform-fast\",\n \".input-reset\",\n \"base\",\n \".page-exit-active\",\n \".focus-ring\",\n \".googleapis\",\n \"root\",\n \"hover\",\n \"webkit-scrollbar-track\",\n \"body\",\n \".page-exit\",\n \".glass-card\",\n \".transition-all-fast\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.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 \"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 \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatusBadge\",\n \"getStatusStyles\",\n \"getStatusText\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/StatusBadge.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 \"GlassCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/GlassCard.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 \"ProgressRing\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/ProgressRing.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DashboardCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/DashboardCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PageTransition\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/PageTransition.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"getPageTitle\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"toggleSidebar\",\n \"toggleMobileSidebar\",\n \"toggleAdmin\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Sidebar.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 \"fetchEmissionFactors\",\n \"updateEmissionFactor\",\n \"createEmissionFactor\",\n \"deleteEmissionFactor\"\n ],\n \"keys\": null,\n \"path\": \"src/services/emissionFactorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchSites\",\n \"getSiteById\",\n \"createSite\",\n \"updateSite\",\n \"deleteSite\"\n ],\n \"keys\": null,\n \"path\": \"src/services/siteService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchDashboardData\",\n \"getMonthKey\",\n \"getDisplayDate\"\n ],\n \"keys\": null,\n \"path\": \"src/services/dashboardService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"createSubmission\",\n \"saveAsDraft\"\n ],\n \"keys\": null,\n \"path\": \"src/services/esgSubmissionService.ts\",\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 \"useESGParameters\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useESGParameters.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 \"Dashboard\",\n \"calcAverage\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleSiteChange\",\n \"handleDownloadCSV\",\n \"getAggregatedEnvironmentalData\",\n \"getAggregatedSocialData\",\n \"getAggregatedGovernanceData\",\n \"renderEnvironmentalTable\",\n \"renderSocialTable\",\n \"renderGovernanceTable\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Reports.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sites\",\n \"handleAddSite\",\n \"handleDeleteSite\",\n \"openDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Sites.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 \"requestSort\",\n \"handleApprove\",\n \"handleReject\",\n \"handleOpenRejectDialog\",\n \"handleOpenViewDialog\",\n \"formatDate\",\n \"formatValue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/ApprovalQueue.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FormEntry\",\n \"handleSubmit\",\n \"handleSaveDraft\",\n \"updateFormData\",\n \"getCurrentParameters\",\n \"getCurrentCategories\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/FormEntry.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmissionFactors\",\n \"handleEdit\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/EmissionFactors.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"UserManagement\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/UserManagement.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ManageParameters\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/ManageParameters.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/hooks/useESGParameters.ts\",\n \"src/services/parameterService.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
Viswanath856/esgwise-portal
|
Refactor: Implement Manage Parameters page
Refactor the Manage Parameters page to align with ESG data collection form and manage ESG parameters.
|
{
"changed": [
"src/pages/admin/ManageParameters.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": [
"$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": [
".font-inter",
"#root",
".glass-card-dark",
".dark",
"webkit-scrollbar",
".com",
"components",
".page-enter",
".page-enter-active",
"#d1d5db",
"webkit-scrollbar-thumb",
".transition-transform-fast",
".input-reset",
"base",
".page-exit-active",
".focus-ring",
".googleapis",
"root",
"hover",
"webkit-scrollbar-track",
"body",
".page-exit",
".glass-card",
".transition-all-fast"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.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": [
"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": [
"Calendar"
],
"keys": null,
"path": "src/components/ui/calendar.tsx",
"selectors": null
},
{
"functions": [
"StatusBadge",
"getStatusStyles",
"getStatusText"
],
"keys": null,
"path": "src/components/ui/StatusBadge.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": [
"GlassCard"
],
"keys": null,
"path": "src/components/ui/GlassCard.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": [
"ProgressRing"
],
"keys": null,
"path": "src/components/Dashboard/ProgressRing.tsx",
"selectors": null
},
{
"functions": [
"DashboardCard"
],
"keys": null,
"path": "src/components/Dashboard/DashboardCard.tsx",
"selectors": null
},
{
"functions": [
"PageTransition"
],
"keys": null,
"path": "src/components/Layout/PageTransition.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"getPageTitle"
],
"keys": null,
"path": "src/components/Layout/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Sidebar",
"toggleSidebar",
"toggleMobileSidebar",
"toggleAdmin"
],
"keys": null,
"path": "src/components/Layout/Sidebar.tsx",
"selectors": null
},
{
"functions": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"selectors": null
},
{
"functions": [
"fetchEmissionFactors",
"updateEmissionFactor",
"createEmissionFactor",
"deleteEmissionFactor"
],
"keys": null,
"path": "src/services/emissionFactorService.ts",
"selectors": null
},
{
"functions": [
"fetchSites",
"getSiteById",
"createSite",
"updateSite",
"deleteSite"
],
"keys": null,
"path": "src/services/siteService.ts",
"selectors": null
},
{
"functions": [
"fetchDashboardData",
"getMonthKey",
"getDisplayDate"
],
"keys": null,
"path": "src/services/dashboardService.ts",
"selectors": null
},
{
"functions": [
"createSubmission",
"saveAsDraft"
],
"keys": null,
"path": "src/services/esgSubmissionService.ts",
"selectors": null
},
{
"functions": [
"genId",
"addToRemoveQueue",
"reducer",
"dispatch",
"toast",
"update",
"dismiss"
],
"keys": null,
"path": "src/hooks/use-toast.ts",
"selectors": null
},
{
"functions": [
"useESGParameters"
],
"keys": null,
"path": "src/hooks/useESGParameters.ts",
"selectors": null
},
{
"functions": [
"useIsMobile",
"onChange"
],
"keys": null,
"path": "src/hooks/use-mobile.tsx",
"selectors": null
},
{
"functions": [
"Dashboard",
"calcAverage"
],
"keys": null,
"path": "src/pages/Dashboard.tsx",
"selectors": null
},
{
"functions": [
"handleSiteChange",
"handleDownloadCSV",
"getAggregatedEnvironmentalData",
"getAggregatedSocialData",
"getAggregatedGovernanceData",
"renderEnvironmentalTable",
"renderSocialTable",
"renderGovernanceTable"
],
"keys": null,
"path": "src/pages/Reports.tsx",
"selectors": null
},
{
"functions": [
"Sites",
"handleAddSite",
"handleDeleteSite",
"openDeleteDialog"
],
"keys": null,
"path": "src/pages/Sites.tsx",
"selectors": null
},
{
"functions": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"requestSort",
"handleApprove",
"handleReject",
"handleOpenRejectDialog",
"handleOpenViewDialog",
"formatDate",
"formatValue"
],
"keys": null,
"path": "src/pages/ApprovalQueue.tsx",
"selectors": null
},
{
"functions": [
"FormEntry",
"handleSubmit",
"handleSaveDraft",
"updateFormData",
"getCurrentParameters",
"getCurrentCategories"
],
"keys": null,
"path": "src/pages/FormEntry.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
},
{
"functions": [
"EmissionFactors",
"handleEdit",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/EmissionFactors.tsx",
"selectors": null
},
{
"functions": [
"UserManagement",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/admin/UserManagement.tsx",
"selectors": null
},
{
"functions": [
"ManageParameters",
"if"
],
"keys": null,
"path": "src/pages/admin/ManageParameters.tsx",
"selectors": null
}
] | 43 |
[
{
"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: Implement Manage Parameters page\n\nRefactor the Manage Parameters page to align with ESG data collection form and manage ESG parameters.\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 \"$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 \".font-inter\",\n \"#root\",\n \".glass-card-dark\",\n \".dark\",\n \"webkit-scrollbar\",\n \".com\",\n \"components\",\n \".page-enter\",\n \".page-enter-active\",\n \"#d1d5db\",\n \"webkit-scrollbar-thumb\",\n \".transition-transform-fast\",\n \".input-reset\",\n \"base\",\n \".page-exit-active\",\n \".focus-ring\",\n \".googleapis\",\n \"root\",\n \"hover\",\n \"webkit-scrollbar-track\",\n \"body\",\n \".page-exit\",\n \".glass-card\",\n \".transition-all-fast\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.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 \"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 \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatusBadge\",\n \"getStatusStyles\",\n \"getStatusText\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/StatusBadge.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 \"GlassCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/GlassCard.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 \"ProgressRing\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/ProgressRing.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DashboardCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/DashboardCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PageTransition\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/PageTransition.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"getPageTitle\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"toggleSidebar\",\n \"toggleMobileSidebar\",\n \"toggleAdmin\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Sidebar.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 \"fetchEmissionFactors\",\n \"updateEmissionFactor\",\n \"createEmissionFactor\",\n \"deleteEmissionFactor\"\n ],\n \"keys\": null,\n \"path\": \"src/services/emissionFactorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchSites\",\n \"getSiteById\",\n \"createSite\",\n \"updateSite\",\n \"deleteSite\"\n ],\n \"keys\": null,\n \"path\": \"src/services/siteService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchDashboardData\",\n \"getMonthKey\",\n \"getDisplayDate\"\n ],\n \"keys\": null,\n \"path\": \"src/services/dashboardService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"createSubmission\",\n \"saveAsDraft\"\n ],\n \"keys\": null,\n \"path\": \"src/services/esgSubmissionService.ts\",\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 \"useESGParameters\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useESGParameters.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 \"Dashboard\",\n \"calcAverage\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleSiteChange\",\n \"handleDownloadCSV\",\n \"getAggregatedEnvironmentalData\",\n \"getAggregatedSocialData\",\n \"getAggregatedGovernanceData\",\n \"renderEnvironmentalTable\",\n \"renderSocialTable\",\n \"renderGovernanceTable\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Reports.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sites\",\n \"handleAddSite\",\n \"handleDeleteSite\",\n \"openDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Sites.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 \"requestSort\",\n \"handleApprove\",\n \"handleReject\",\n \"handleOpenRejectDialog\",\n \"handleOpenViewDialog\",\n \"formatDate\",\n \"formatValue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/ApprovalQueue.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FormEntry\",\n \"handleSubmit\",\n \"handleSaveDraft\",\n \"updateFormData\",\n \"getCurrentParameters\",\n \"getCurrentCategories\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/FormEntry.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmissionFactors\",\n \"handleEdit\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/EmissionFactors.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"UserManagement\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/UserManagement.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ManageParameters\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/ManageParameters.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/ManageParameters.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
Viswanath856/esgwise-portal
|
feat: Integrate parameter management with forms
Integrate the parameter management features in the admin panel with the ESG data collection forms. This includes adding parameters and reflecting the changes in the form. Also, remove the subcategory section.
|
{
"changed": [
"src/hooks/useESGParameters.ts",
"src/pages/admin/ManageParameters.tsx",
"src/services/parameterService.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": [
"$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": [
".font-inter",
"#root",
".glass-card-dark",
".dark",
"webkit-scrollbar",
".com",
"components",
".page-enter",
".page-enter-active",
"#d1d5db",
"webkit-scrollbar-thumb",
".transition-transform-fast",
".input-reset",
"base",
".page-exit-active",
".focus-ring",
".googleapis",
"root",
"hover",
"webkit-scrollbar-track",
"body",
".page-exit",
".glass-card",
".transition-all-fast"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.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": [
"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": [
"Calendar"
],
"keys": null,
"path": "src/components/ui/calendar.tsx",
"selectors": null
},
{
"functions": [
"StatusBadge",
"getStatusStyles",
"getStatusText"
],
"keys": null,
"path": "src/components/ui/StatusBadge.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": [
"GlassCard"
],
"keys": null,
"path": "src/components/ui/GlassCard.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": [
"ProgressRing"
],
"keys": null,
"path": "src/components/Dashboard/ProgressRing.tsx",
"selectors": null
},
{
"functions": [
"DashboardCard"
],
"keys": null,
"path": "src/components/Dashboard/DashboardCard.tsx",
"selectors": null
},
{
"functions": [
"PageTransition"
],
"keys": null,
"path": "src/components/Layout/PageTransition.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"getPageTitle"
],
"keys": null,
"path": "src/components/Layout/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Sidebar",
"toggleSidebar",
"toggleMobileSidebar",
"toggleAdmin"
],
"keys": null,
"path": "src/components/Layout/Sidebar.tsx",
"selectors": null
},
{
"functions": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"selectors": null
},
{
"functions": [
"fetchEmissionFactors",
"updateEmissionFactor",
"createEmissionFactor",
"deleteEmissionFactor"
],
"keys": null,
"path": "src/services/emissionFactorService.ts",
"selectors": null
},
{
"functions": [
"fetchSites",
"getSiteById",
"createSite",
"updateSite",
"deleteSite"
],
"keys": null,
"path": "src/services/siteService.ts",
"selectors": null
},
{
"functions": [
"fetchDashboardData",
"getMonthKey",
"getDisplayDate"
],
"keys": null,
"path": "src/services/dashboardService.ts",
"selectors": null
},
{
"functions": [
"createSubmission",
"saveAsDraft"
],
"keys": null,
"path": "src/services/esgSubmissionService.ts",
"selectors": null
},
{
"functions": [
"genId",
"addToRemoveQueue",
"reducer",
"dispatch",
"toast",
"update",
"dismiss"
],
"keys": null,
"path": "src/hooks/use-toast.ts",
"selectors": null
},
{
"functions": [
"useESGParameters"
],
"keys": null,
"path": "src/hooks/useESGParameters.ts",
"selectors": null
},
{
"functions": [
"useIsMobile",
"onChange"
],
"keys": null,
"path": "src/hooks/use-mobile.tsx",
"selectors": null
},
{
"functions": [
"Dashboard",
"calcAverage"
],
"keys": null,
"path": "src/pages/Dashboard.tsx",
"selectors": null
},
{
"functions": [
"handleSiteChange",
"handleDownloadCSV",
"getAggregatedEnvironmentalData",
"getAggregatedSocialData",
"getAggregatedGovernanceData",
"renderEnvironmentalTable",
"renderSocialTable",
"renderGovernanceTable"
],
"keys": null,
"path": "src/pages/Reports.tsx",
"selectors": null
},
{
"functions": [
"Sites",
"handleAddSite",
"handleDeleteSite",
"openDeleteDialog"
],
"keys": null,
"path": "src/pages/Sites.tsx",
"selectors": null
},
{
"functions": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"requestSort",
"handleApprove",
"handleReject",
"handleOpenRejectDialog",
"handleOpenViewDialog",
"formatDate",
"formatValue"
],
"keys": null,
"path": "src/pages/ApprovalQueue.tsx",
"selectors": null
},
{
"functions": [
"FormEntry",
"handleSubmit",
"handleSaveDraft",
"updateFormData",
"getCurrentParameters",
"getCurrentCategories"
],
"keys": null,
"path": "src/pages/FormEntry.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
},
{
"functions": [
"EmissionFactors",
"handleEdit",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/EmissionFactors.tsx",
"selectors": null
},
{
"functions": [
"UserManagement",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/admin/UserManagement.tsx",
"selectors": null
},
{
"functions": [
"ManageParameters",
"if"
],
"keys": null,
"path": "src/pages/admin/ManageParameters.tsx",
"selectors": null
}
] | 44 |
[
{
"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: Integrate parameter management with forms\n\nIntegrate the parameter management features in the admin panel with the ESG data collection forms. This includes adding parameters and reflecting the changes in the form. Also, remove the subcategory 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 \"$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 \".font-inter\",\n \"#root\",\n \".glass-card-dark\",\n \".dark\",\n \"webkit-scrollbar\",\n \".com\",\n \"components\",\n \".page-enter\",\n \".page-enter-active\",\n \"#d1d5db\",\n \"webkit-scrollbar-thumb\",\n \".transition-transform-fast\",\n \".input-reset\",\n \"base\",\n \".page-exit-active\",\n \".focus-ring\",\n \".googleapis\",\n \"root\",\n \"hover\",\n \"webkit-scrollbar-track\",\n \"body\",\n \".page-exit\",\n \".glass-card\",\n \".transition-all-fast\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.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 \"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 \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatusBadge\",\n \"getStatusStyles\",\n \"getStatusText\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/StatusBadge.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 \"GlassCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/GlassCard.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 \"ProgressRing\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/ProgressRing.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DashboardCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/DashboardCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PageTransition\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/PageTransition.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"getPageTitle\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"toggleSidebar\",\n \"toggleMobileSidebar\",\n \"toggleAdmin\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Sidebar.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 \"fetchEmissionFactors\",\n \"updateEmissionFactor\",\n \"createEmissionFactor\",\n \"deleteEmissionFactor\"\n ],\n \"keys\": null,\n \"path\": \"src/services/emissionFactorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchSites\",\n \"getSiteById\",\n \"createSite\",\n \"updateSite\",\n \"deleteSite\"\n ],\n \"keys\": null,\n \"path\": \"src/services/siteService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchDashboardData\",\n \"getMonthKey\",\n \"getDisplayDate\"\n ],\n \"keys\": null,\n \"path\": \"src/services/dashboardService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"createSubmission\",\n \"saveAsDraft\"\n ],\n \"keys\": null,\n \"path\": \"src/services/esgSubmissionService.ts\",\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 \"useESGParameters\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useESGParameters.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 \"Dashboard\",\n \"calcAverage\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleSiteChange\",\n \"handleDownloadCSV\",\n \"getAggregatedEnvironmentalData\",\n \"getAggregatedSocialData\",\n \"getAggregatedGovernanceData\",\n \"renderEnvironmentalTable\",\n \"renderSocialTable\",\n \"renderGovernanceTable\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Reports.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sites\",\n \"handleAddSite\",\n \"handleDeleteSite\",\n \"openDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Sites.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 \"requestSort\",\n \"handleApprove\",\n \"handleReject\",\n \"handleOpenRejectDialog\",\n \"handleOpenViewDialog\",\n \"formatDate\",\n \"formatValue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/ApprovalQueue.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FormEntry\",\n \"handleSubmit\",\n \"handleSaveDraft\",\n \"updateFormData\",\n \"getCurrentParameters\",\n \"getCurrentCategories\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/FormEntry.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmissionFactors\",\n \"handleEdit\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/EmissionFactors.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"UserManagement\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/UserManagement.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ManageParameters\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/ManageParameters.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/hooks/useESGParameters.ts\",\n \"src/pages/admin/ManageParameters.tsx\",\n \"src/services/parameterService.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
Viswanath856/esgwise-portal
|
Run SQL migration
|
{
"changed": [
"src/integrations/supabase/types.ts",
"src/services/parameterService.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": [
"$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": [
".font-inter",
"#root",
".glass-card-dark",
".dark",
"webkit-scrollbar",
".com",
"components",
".page-enter",
".page-enter-active",
"#d1d5db",
"webkit-scrollbar-thumb",
".transition-transform-fast",
".input-reset",
"base",
".page-exit-active",
".focus-ring",
".googleapis",
"root",
"hover",
"webkit-scrollbar-track",
"body",
".page-exit",
".glass-card",
".transition-all-fast"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.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": [
"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": [
"Calendar"
],
"keys": null,
"path": "src/components/ui/calendar.tsx",
"selectors": null
},
{
"functions": [
"StatusBadge",
"getStatusStyles",
"getStatusText"
],
"keys": null,
"path": "src/components/ui/StatusBadge.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": [
"GlassCard"
],
"keys": null,
"path": "src/components/ui/GlassCard.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": [
"ProgressRing"
],
"keys": null,
"path": "src/components/Dashboard/ProgressRing.tsx",
"selectors": null
},
{
"functions": [
"DashboardCard"
],
"keys": null,
"path": "src/components/Dashboard/DashboardCard.tsx",
"selectors": null
},
{
"functions": [
"PageTransition"
],
"keys": null,
"path": "src/components/Layout/PageTransition.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"getPageTitle"
],
"keys": null,
"path": "src/components/Layout/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Sidebar",
"toggleSidebar",
"toggleMobileSidebar",
"toggleAdmin"
],
"keys": null,
"path": "src/components/Layout/Sidebar.tsx",
"selectors": null
},
{
"functions": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"selectors": null
},
{
"functions": [
"fetchEmissionFactors",
"updateEmissionFactor",
"createEmissionFactor",
"deleteEmissionFactor"
],
"keys": null,
"path": "src/services/emissionFactorService.ts",
"selectors": null
},
{
"functions": [
"fetchSites",
"getSiteById",
"createSite",
"updateSite",
"deleteSite"
],
"keys": null,
"path": "src/services/siteService.ts",
"selectors": null
},
{
"functions": [
"fetchDashboardData",
"getMonthKey",
"getDisplayDate"
],
"keys": null,
"path": "src/services/dashboardService.ts",
"selectors": null
},
{
"functions": [
"createSubmission",
"saveAsDraft"
],
"keys": null,
"path": "src/services/esgSubmissionService.ts",
"selectors": null
},
{
"functions": [
"genId",
"addToRemoveQueue",
"reducer",
"dispatch",
"toast",
"update",
"dismiss"
],
"keys": null,
"path": "src/hooks/use-toast.ts",
"selectors": null
},
{
"functions": [
"useESGParameters"
],
"keys": null,
"path": "src/hooks/useESGParameters.ts",
"selectors": null
},
{
"functions": [
"useIsMobile",
"onChange"
],
"keys": null,
"path": "src/hooks/use-mobile.tsx",
"selectors": null
},
{
"functions": [
"Dashboard",
"calcAverage"
],
"keys": null,
"path": "src/pages/Dashboard.tsx",
"selectors": null
},
{
"functions": [
"handleSiteChange",
"handleDownloadCSV",
"getAggregatedEnvironmentalData",
"getAggregatedSocialData",
"getAggregatedGovernanceData",
"renderEnvironmentalTable",
"renderSocialTable",
"renderGovernanceTable"
],
"keys": null,
"path": "src/pages/Reports.tsx",
"selectors": null
},
{
"functions": [
"Sites",
"handleAddSite",
"handleDeleteSite",
"openDeleteDialog"
],
"keys": null,
"path": "src/pages/Sites.tsx",
"selectors": null
},
{
"functions": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"requestSort",
"handleApprove",
"handleReject",
"handleOpenRejectDialog",
"handleOpenViewDialog",
"formatDate",
"formatValue"
],
"keys": null,
"path": "src/pages/ApprovalQueue.tsx",
"selectors": null
},
{
"functions": [
"FormEntry",
"handleSubmit",
"handleSaveDraft",
"updateFormData",
"getCurrentParameters",
"getCurrentCategories"
],
"keys": null,
"path": "src/pages/FormEntry.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
},
{
"functions": [
"EmissionFactors",
"handleEdit",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/EmissionFactors.tsx",
"selectors": null
},
{
"functions": [
"UserManagement",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/admin/UserManagement.tsx",
"selectors": null
},
{
"functions": [
"ManageParameters",
"if"
],
"keys": null,
"path": "src/pages/admin/ManageParameters.tsx",
"selectors": null
}
] | 45 |
[
{
"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 \"$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 \".font-inter\",\n \"#root\",\n \".glass-card-dark\",\n \".dark\",\n \"webkit-scrollbar\",\n \".com\",\n \"components\",\n \".page-enter\",\n \".page-enter-active\",\n \"#d1d5db\",\n \"webkit-scrollbar-thumb\",\n \".transition-transform-fast\",\n \".input-reset\",\n \"base\",\n \".page-exit-active\",\n \".focus-ring\",\n \".googleapis\",\n \"root\",\n \"hover\",\n \"webkit-scrollbar-track\",\n \"body\",\n \".page-exit\",\n \".glass-card\",\n \".transition-all-fast\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.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 \"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 \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatusBadge\",\n \"getStatusStyles\",\n \"getStatusText\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/StatusBadge.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 \"GlassCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/GlassCard.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 \"ProgressRing\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/ProgressRing.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DashboardCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/DashboardCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PageTransition\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/PageTransition.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"getPageTitle\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"toggleSidebar\",\n \"toggleMobileSidebar\",\n \"toggleAdmin\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Sidebar.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 \"fetchEmissionFactors\",\n \"updateEmissionFactor\",\n \"createEmissionFactor\",\n \"deleteEmissionFactor\"\n ],\n \"keys\": null,\n \"path\": \"src/services/emissionFactorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchSites\",\n \"getSiteById\",\n \"createSite\",\n \"updateSite\",\n \"deleteSite\"\n ],\n \"keys\": null,\n \"path\": \"src/services/siteService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchDashboardData\",\n \"getMonthKey\",\n \"getDisplayDate\"\n ],\n \"keys\": null,\n \"path\": \"src/services/dashboardService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"createSubmission\",\n \"saveAsDraft\"\n ],\n \"keys\": null,\n \"path\": \"src/services/esgSubmissionService.ts\",\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 \"useESGParameters\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useESGParameters.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 \"Dashboard\",\n \"calcAverage\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleSiteChange\",\n \"handleDownloadCSV\",\n \"getAggregatedEnvironmentalData\",\n \"getAggregatedSocialData\",\n \"getAggregatedGovernanceData\",\n \"renderEnvironmentalTable\",\n \"renderSocialTable\",\n \"renderGovernanceTable\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Reports.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sites\",\n \"handleAddSite\",\n \"handleDeleteSite\",\n \"openDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Sites.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 \"requestSort\",\n \"handleApprove\",\n \"handleReject\",\n \"handleOpenRejectDialog\",\n \"handleOpenViewDialog\",\n \"formatDate\",\n \"formatValue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/ApprovalQueue.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FormEntry\",\n \"handleSubmit\",\n \"handleSaveDraft\",\n \"updateFormData\",\n \"getCurrentParameters\",\n \"getCurrentCategories\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/FormEntry.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmissionFactors\",\n \"handleEdit\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/EmissionFactors.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"UserManagement\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/UserManagement.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ManageParameters\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/ManageParameters.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/services/parameterService.ts\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
Viswanath856/esgwise-portal
|
feat: Implement parameter and category editing
Adds functionality to edit existing parameters and categories in the admin panel and reflects these changes in the ESG data collection form.
|
{
"changed": [
"src/pages/FormEntry.tsx",
"src/pages/admin/ManageParameters.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": [
"$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": [
".font-inter",
"#root",
".glass-card-dark",
".dark",
"webkit-scrollbar",
".com",
"components",
".page-enter",
".page-enter-active",
"#d1d5db",
"webkit-scrollbar-thumb",
".transition-transform-fast",
".input-reset",
"base",
".page-exit-active",
".focus-ring",
".googleapis",
"root",
"hover",
"webkit-scrollbar-track",
"body",
".page-exit",
".glass-card",
".transition-all-fast"
]
},
{
"functions": [
"App"
],
"keys": null,
"path": "src/App.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": [
"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": [
"Calendar"
],
"keys": null,
"path": "src/components/ui/calendar.tsx",
"selectors": null
},
{
"functions": [
"StatusBadge",
"getStatusStyles",
"getStatusText"
],
"keys": null,
"path": "src/components/ui/StatusBadge.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": [
"GlassCard"
],
"keys": null,
"path": "src/components/ui/GlassCard.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": [
"ProgressRing"
],
"keys": null,
"path": "src/components/Dashboard/ProgressRing.tsx",
"selectors": null
},
{
"functions": [
"DashboardCard"
],
"keys": null,
"path": "src/components/Dashboard/DashboardCard.tsx",
"selectors": null
},
{
"functions": [
"PageTransition"
],
"keys": null,
"path": "src/components/Layout/PageTransition.tsx",
"selectors": null
},
{
"functions": [
"Navbar",
"getPageTitle"
],
"keys": null,
"path": "src/components/Layout/Navbar.tsx",
"selectors": null
},
{
"functions": [
"Sidebar",
"toggleSidebar",
"toggleMobileSidebar",
"toggleAdmin"
],
"keys": null,
"path": "src/components/Layout/Sidebar.tsx",
"selectors": null
},
{
"functions": [
"cn"
],
"keys": null,
"path": "src/lib/utils.ts",
"selectors": null
},
{
"functions": [
"fetchEmissionFactors",
"updateEmissionFactor",
"createEmissionFactor",
"deleteEmissionFactor"
],
"keys": null,
"path": "src/services/emissionFactorService.ts",
"selectors": null
},
{
"functions": [
"fetchSites",
"getSiteById",
"createSite",
"updateSite",
"deleteSite"
],
"keys": null,
"path": "src/services/siteService.ts",
"selectors": null
},
{
"functions": [
"fetchDashboardData",
"getMonthKey",
"getDisplayDate"
],
"keys": null,
"path": "src/services/dashboardService.ts",
"selectors": null
},
{
"functions": [
"createSubmission",
"saveAsDraft"
],
"keys": null,
"path": "src/services/esgSubmissionService.ts",
"selectors": null
},
{
"functions": [
"genId",
"addToRemoveQueue",
"reducer",
"dispatch",
"toast",
"update",
"dismiss"
],
"keys": null,
"path": "src/hooks/use-toast.ts",
"selectors": null
},
{
"functions": [
"useESGParameters"
],
"keys": null,
"path": "src/hooks/useESGParameters.ts",
"selectors": null
},
{
"functions": [
"useIsMobile",
"onChange"
],
"keys": null,
"path": "src/hooks/use-mobile.tsx",
"selectors": null
},
{
"functions": [
"Dashboard",
"calcAverage"
],
"keys": null,
"path": "src/pages/Dashboard.tsx",
"selectors": null
},
{
"functions": [
"handleSiteChange",
"handleDownloadCSV",
"getAggregatedEnvironmentalData",
"getAggregatedSocialData",
"getAggregatedGovernanceData",
"renderEnvironmentalTable",
"renderSocialTable",
"renderGovernanceTable"
],
"keys": null,
"path": "src/pages/Reports.tsx",
"selectors": null
},
{
"functions": [
"Sites",
"handleAddSite",
"handleDeleteSite",
"openDeleteDialog"
],
"keys": null,
"path": "src/pages/Sites.tsx",
"selectors": null
},
{
"functions": [
"Index"
],
"keys": null,
"path": "src/pages/Index.tsx",
"selectors": null
},
{
"functions": [
"requestSort",
"handleApprove",
"handleReject",
"handleOpenRejectDialog",
"handleOpenViewDialog",
"formatDate",
"formatValue"
],
"keys": null,
"path": "src/pages/ApprovalQueue.tsx",
"selectors": null
},
{
"functions": [
"FormEntry",
"handleSubmit",
"handleSaveDraft",
"updateFormData",
"getCurrentParameters",
"getCurrentCategories"
],
"keys": null,
"path": "src/pages/FormEntry.tsx",
"selectors": null
},
{
"functions": [
"NotFound"
],
"keys": null,
"path": "src/pages/NotFound.tsx",
"selectors": null
},
{
"functions": [
"EmissionFactors",
"handleEdit",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/EmissionFactors.tsx",
"selectors": null
},
{
"functions": [
"UserManagement",
"handleUpdate",
"handleCreate",
"handleDelete",
"handleOpenDeleteDialog"
],
"keys": null,
"path": "src/pages/admin/UserManagement.tsx",
"selectors": null
},
{
"functions": [
"ManageParameters",
"if"
],
"keys": null,
"path": "src/pages/admin/ManageParameters.tsx",
"selectors": null
}
] | 46 |
[
{
"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 parameter and category editing\n\nAdds functionality to edit existing parameters and categories in the admin panel and reflects these changes in the ESG data collection 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 \"$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 \".font-inter\",\n \"#root\",\n \".glass-card-dark\",\n \".dark\",\n \"webkit-scrollbar\",\n \".com\",\n \"components\",\n \".page-enter\",\n \".page-enter-active\",\n \"#d1d5db\",\n \"webkit-scrollbar-thumb\",\n \".transition-transform-fast\",\n \".input-reset\",\n \"base\",\n \".page-exit-active\",\n \".focus-ring\",\n \".googleapis\",\n \"root\",\n \"hover\",\n \"webkit-scrollbar-track\",\n \"body\",\n \".page-exit\",\n \".glass-card\",\n \".transition-all-fast\"\n ]\n },\n {\n \"functions\": [\n \"App\"\n ],\n \"keys\": null,\n \"path\": \"src/App.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 \"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 \"Calendar\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/calendar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"StatusBadge\",\n \"getStatusStyles\",\n \"getStatusText\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/StatusBadge.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 \"GlassCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/ui/GlassCard.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 \"ProgressRing\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/ProgressRing.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"DashboardCard\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Dashboard/DashboardCard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"PageTransition\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/PageTransition.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Navbar\",\n \"getPageTitle\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Navbar.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sidebar\",\n \"toggleSidebar\",\n \"toggleMobileSidebar\",\n \"toggleAdmin\"\n ],\n \"keys\": null,\n \"path\": \"src/components/Layout/Sidebar.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 \"fetchEmissionFactors\",\n \"updateEmissionFactor\",\n \"createEmissionFactor\",\n \"deleteEmissionFactor\"\n ],\n \"keys\": null,\n \"path\": \"src/services/emissionFactorService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchSites\",\n \"getSiteById\",\n \"createSite\",\n \"updateSite\",\n \"deleteSite\"\n ],\n \"keys\": null,\n \"path\": \"src/services/siteService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"fetchDashboardData\",\n \"getMonthKey\",\n \"getDisplayDate\"\n ],\n \"keys\": null,\n \"path\": \"src/services/dashboardService.ts\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"createSubmission\",\n \"saveAsDraft\"\n ],\n \"keys\": null,\n \"path\": \"src/services/esgSubmissionService.ts\",\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 \"useESGParameters\"\n ],\n \"keys\": null,\n \"path\": \"src/hooks/useESGParameters.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 \"Dashboard\",\n \"calcAverage\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Dashboard.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"handleSiteChange\",\n \"handleDownloadCSV\",\n \"getAggregatedEnvironmentalData\",\n \"getAggregatedSocialData\",\n \"getAggregatedGovernanceData\",\n \"renderEnvironmentalTable\",\n \"renderSocialTable\",\n \"renderGovernanceTable\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Reports.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"Sites\",\n \"handleAddSite\",\n \"handleDeleteSite\",\n \"openDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/Sites.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 \"requestSort\",\n \"handleApprove\",\n \"handleReject\",\n \"handleOpenRejectDialog\",\n \"handleOpenViewDialog\",\n \"formatDate\",\n \"formatValue\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/ApprovalQueue.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"FormEntry\",\n \"handleSubmit\",\n \"handleSaveDraft\",\n \"updateFormData\",\n \"getCurrentParameters\",\n \"getCurrentCategories\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/FormEntry.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"NotFound\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/NotFound.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"EmissionFactors\",\n \"handleEdit\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/EmissionFactors.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"UserManagement\",\n \"handleUpdate\",\n \"handleCreate\",\n \"handleDelete\",\n \"handleOpenDeleteDialog\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/UserManagement.tsx\",\n \"selectors\": null\n },\n {\n \"functions\": [\n \"ManageParameters\",\n \"if\"\n ],\n \"keys\": null,\n \"path\": \"src/pages/admin/ManageParameters.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/FormEntry.tsx\",\n \"src/pages/admin/ManageParameters.tsx\"\n ],\n \"created\": [],\n \"deleted\": []\n}"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.