diff --git a/apps/dashboard-app/app/(dashboard)/connections/_components/Connected.tsx b/apps/dashboard-app/app/(dashboard)/connections/_components/Connected.tsx index dff6abe..f0bd87a 100644 --- a/apps/dashboard-app/app/(dashboard)/connections/_components/Connected.tsx +++ b/apps/dashboard-app/app/(dashboard)/connections/_components/Connected.tsx @@ -2,7 +2,7 @@ import React, { useContext, useEffect, useState } from 'react' import { CONNECTIONS } from '../../../../lib/constant' import { useSession } from 'next-auth/react' -import { getUserInfo } from '../../../../actions/connections/user-connections' +import { getUserInfo } from '../../../actions/connections/user-connections' import { ConnectionsContext } from '../../../../providers/connections-provider' import ConnectedCard from '../../../../components/ConnectedCard' diff --git a/apps/dashboard-app/app/(dashboard)/connections/page.tsx b/apps/dashboard-app/app/(dashboard)/connections/page.tsx index 9e34c86..15739ed 100644 --- a/apps/dashboard-app/app/(dashboard)/connections/page.tsx +++ b/apps/dashboard-app/app/(dashboard)/connections/page.tsx @@ -9,10 +9,10 @@ import { ConnectionsContext } from '../../../providers/connections-provider' import Connected from './_components/Connected' import Connections from './_components/Connections' import { useSession } from 'next-auth/react'; -import { getUserInfo } from '../../../actions/connections/user-connections'; -import { onNotionConnection } from '../../../actions/connections/notion-connections'; -import { onOpenAIConnection } from '../../../actions/connections/openai-connections'; -import { onYoutubeConnection } from '../../../actions/connections/youtube-connections'; +import { getUserInfo } from '../../actions/connections/user-connections'; +import { onNotionConnection } from '../../actions/connections/notion-connections'; +import { onOpenAIConnection } from '../../actions/connections/openai-connections'; +import { onYoutubeConnection } from '../../actions/connections/youtube-connections'; import { useToast } from '../../../hooks/useToast'; const PlannerPage = () => { diff --git a/apps/dashboard-app/app/(dashboard)/financial/_components/BudgetForm.tsx b/apps/dashboard-app/app/(dashboard)/financial/_components/BudgetForm.tsx index d3f484c..f11e713 100644 --- a/apps/dashboard-app/app/(dashboard)/financial/_components/BudgetForm.tsx +++ b/apps/dashboard-app/app/(dashboard)/financial/_components/BudgetForm.tsx @@ -3,7 +3,7 @@ import { Input } from '@repo/ui/atoms/shadcn/Input' import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@repo/ui/molecules/shadcn/Select' import React, { useContext, useEffect, useState } from 'react' import { ConnectionsContext } from '../../../../providers/connections-provider' -import { createNotionPageAction, queryNotionDatabaseAction } from '../../../../actions/notion/notion' +import { createNotionPageAction, queryNotionDatabaseAction } from '../../../actions/notion/notion' const BudgetForm = () => { const connectionsContext = useContext(ConnectionsContext) diff --git a/apps/dashboard-app/app/(dashboard)/financial/_components/Overview.tsx b/apps/dashboard-app/app/(dashboard)/financial/_components/Overview.tsx index 1c5effb..d80917f 100644 --- a/apps/dashboard-app/app/(dashboard)/financial/_components/Overview.tsx +++ b/apps/dashboard-app/app/(dashboard)/financial/_components/Overview.tsx @@ -4,13 +4,13 @@ import { format } from "date-fns"; import { DatePickerWithRange } from '@repo/ui/molecules/shadcn/DateRange'; import { ConnectionsContext } from '../../../../providers/connections-provider'; import { getAccountsSummary, getDateSpecificFinancialSummary, getLastMonthsFinancialSummary, getYearlyBudgetSummary, - getMonthlyBudgetSummary, getPastMonthsBudgetSummary, } from '../../../../actions/notion/financial' + getMonthlyBudgetSummary, getPastMonthsBudgetSummary, } from '../../../actions/notion/financial' import ChartCard from '@repo/ui/molecules/custom/ChartCard'; import { ChartConfig } from '@repo/ui/molecules/shadcn/Chart'; import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from '@repo/ui/molecules/shadcn/Accordion'; import {Skeleton} from '@repo/ui/molecules/shadcn/Skeleton' import HeaderCard from '@repo/ui/molecules/custom/HeaderCard'; -import { queryNotionDatabaseAction } from '../../../../actions/notion/notion'; +import { queryNotionDatabaseAction } from '../../../actions/notion/notion'; import TransactionForm from './TransactionForm'; import BudgetForm from './BudgetForm'; diff --git a/apps/dashboard-app/app/(dashboard)/financial/_components/TransactionForm.tsx b/apps/dashboard-app/app/(dashboard)/financial/_components/TransactionForm.tsx index 8f3622e..a5801c5 100644 --- a/apps/dashboard-app/app/(dashboard)/financial/_components/TransactionForm.tsx +++ b/apps/dashboard-app/app/(dashboard)/financial/_components/TransactionForm.tsx @@ -3,7 +3,7 @@ import { Input } from '@repo/ui/atoms/shadcn/Input' import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@repo/ui/molecules/shadcn/Select' import React, { useContext, useEffect, useState} from 'react' import { ConnectionsContext } from '../../../../providers/connections-provider' -import { createNotionPageAction, queryNotionDatabaseAction } from '../../../../actions/notion/notion' +import { createNotionPageAction, queryNotionDatabaseAction } from '../../../actions/notion/notion' const TransactionForm = () => { const connectionsContext = useContext(ConnectionsContext) diff --git a/apps/dashboard-app/app/(dashboard)/knowledge-base/_components/CreateBooksForm.tsx b/apps/dashboard-app/app/(dashboard)/knowledge-base/_components/CreateBooksForm.tsx index 3c1833c..fe05493 100644 --- a/apps/dashboard-app/app/(dashboard)/knowledge-base/_components/CreateBooksForm.tsx +++ b/apps/dashboard-app/app/(dashboard)/knowledge-base/_components/CreateBooksForm.tsx @@ -2,7 +2,7 @@ import { Button } from '@repo/ui/atoms/shadcn/Button' import { Input } from '@repo/ui/atoms/shadcn/Input' import React, { useContext, useState } from 'react' import { ConnectionsContext } from '../../../../providers/connections-provider' -import { createNotionPageAction } from '../../../../actions/notion/notion' +import { createNotionPageAction } from '../../../actions/notion/notion' import { Textarea } from '@repo/ui/atoms/shadcn/Textarea' import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@repo/ui/molecules/shadcn/Select' import {FloatingLabelInput} from '@repo/ui/molecules/custom/FloatingLabelInput' diff --git a/apps/dashboard-app/app/(dashboard)/knowledge-base/_components/InterestingForm.tsx b/apps/dashboard-app/app/(dashboard)/knowledge-base/_components/InterestingForm.tsx index 0b7eb61..96df9be 100644 --- a/apps/dashboard-app/app/(dashboard)/knowledge-base/_components/InterestingForm.tsx +++ b/apps/dashboard-app/app/(dashboard)/knowledge-base/_components/InterestingForm.tsx @@ -2,7 +2,7 @@ import { Button } from '@repo/ui/atoms/shadcn/Button' import { Input } from '@repo/ui/atoms/shadcn/Input' import React, { useContext, useState } from 'react' import { ConnectionsContext } from '../../../../providers/connections-provider' -import { createNotionPageAction } from '../../../../actions/notion/notion' +import { createNotionPageAction } from '../../../actions/notion/notion' import { Checkboxes } from '@repo/ui/molecules/custom/Checkboxes' import { Textarea } from '@repo/ui/atoms/shadcn/Textarea' import { FloatingLabelInput } from '@repo/ui/molecules/custom/FloatingLabelInput' diff --git a/apps/dashboard-app/app/(dashboard)/knowledge-base/_components/Overview.tsx b/apps/dashboard-app/app/(dashboard)/knowledge-base/_components/Overview.tsx index fc64a40..de48f7c 100644 --- a/apps/dashboard-app/app/(dashboard)/knowledge-base/_components/Overview.tsx +++ b/apps/dashboard-app/app/(dashboard)/knowledge-base/_components/Overview.tsx @@ -2,10 +2,10 @@ import React, { useContext, useEffect, useState } from 'react' import { ConnectionsContext } from '../../../../providers/connections-provider' import HeaderCard from '@repo/ui/molecules/custom/HeaderCard'; import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from '@repo/ui/molecules/shadcn/Accordion'; -import { getAreasDatabaseSummary, getBooksDatabaseSummary, getInterestingDatabaseSummary, getQuickCaptureDatabaseSummary } from '../../../../actions/notion/knowledgeBase'; +import { getAreasDatabaseSummary, getBooksDatabaseSummary, getInterestingDatabaseSummary, getQuickCaptureDatabaseSummary } from '../../../actions/notion/knowledgeBase'; import InterestingForm from './InterestingForm'; import { Checkbox } from '../../../../../../packages/ui/src/components/atoms/shadcn/Checkbox'; -import { modifyNotionPageAction } from '../../../../actions/notion/notion'; +import { modifyNotionPageAction } from '../../../actions/notion/notion'; import { Card, CardContent, CardFooter, CardHeader, CardTitle } from '@repo/ui/molecules/shadcn/Card'; import Link from 'next/link'; import { LinkIcon } from 'lucide-react'; diff --git a/apps/dashboard-app/app/(dashboard)/knowledge-base/_components/UpdateBooksForm.tsx b/apps/dashboard-app/app/(dashboard)/knowledge-base/_components/UpdateBooksForm.tsx index e143c30..279021f 100644 --- a/apps/dashboard-app/app/(dashboard)/knowledge-base/_components/UpdateBooksForm.tsx +++ b/apps/dashboard-app/app/(dashboard)/knowledge-base/_components/UpdateBooksForm.tsx @@ -2,7 +2,7 @@ import { Button } from '@repo/ui/atoms/shadcn/Button' import { Input } from '@repo/ui/atoms/shadcn/Input' import React, { useContext, useEffect, useState } from 'react' import { ConnectionsContext } from '../../../../providers/connections-provider' -import { modifyNotionPageAction, queryAllNotionDatabaseAction } from '../../../../actions/notion/notion' +import { modifyNotionPageAction, queryAllNotionDatabaseAction } from '../../../actions/notion/notion' import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@repo/ui/molecules/shadcn/Select' import {FloatingLabelInput} from '@repo/ui/molecules/custom/FloatingLabelInput' diff --git a/apps/dashboard-app/app/(dashboard)/planner/_components/Overview.tsx b/apps/dashboard-app/app/(dashboard)/planner/_components/Overview.tsx index d52a102..c265088 100644 --- a/apps/dashboard-app/app/(dashboard)/planner/_components/Overview.tsx +++ b/apps/dashboard-app/app/(dashboard)/planner/_components/Overview.tsx @@ -1,11 +1,11 @@ import React, { useContext, useEffect, useState } from 'react' import { ConnectionsContext } from '../../../../providers/connections-provider' import HeaderCard from '@repo/ui/molecules/custom/HeaderCard'; -import { getCalendarSummary, getTasksSummary, getWeeklyPlannerSummary } from '../../../../actions/notion/planner'; +import { getCalendarSummary, getTasksSummary, getWeeklyPlannerSummary } from '../../../actions/notion/planner'; import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from '@repo/ui/molecules/shadcn/Accordion'; import { Checkbox } from '../../../../../../packages/ui/src/components/atoms/shadcn/Checkbox'; import { Button } from '@repo/ui/atoms/shadcn/Button'; -import { createNotionPageAction, modifyNotionPageAction } from '../../../../actions/notion/notion'; +import { createNotionPageAction, modifyNotionPageAction } from '../../../actions/notion/notion'; import SchedulerForm from './SchedulerForm'; import TaskForm from './TaskForm'; import WeeklyPlannerForm from './WeeklyPlannerForm'; diff --git a/apps/dashboard-app/app/(dashboard)/planner/_components/SchedulerForm.tsx b/apps/dashboard-app/app/(dashboard)/planner/_components/SchedulerForm.tsx index 2e51cb0..7f6d1be 100644 --- a/apps/dashboard-app/app/(dashboard)/planner/_components/SchedulerForm.tsx +++ b/apps/dashboard-app/app/(dashboard)/planner/_components/SchedulerForm.tsx @@ -3,7 +3,7 @@ import { Input } from '@repo/ui/atoms/shadcn/Input' import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@repo/ui/molecules/shadcn/Select' import React, { useContext, useState } from 'react' import { ConnectionsContext } from '../../../../providers/connections-provider' -import { createNotionPageAction } from '../../../../actions/notion/notion' +import { createNotionPageAction } from '../../../actions/notion/notion' import { Checkboxes } from '@repo/ui/molecules/custom/Checkboxes' import { DatePicker } from '@repo/ui/molecules/shadcn/DatePicker' diff --git a/apps/dashboard-app/app/(dashboard)/planner/_components/TaskForm.tsx b/apps/dashboard-app/app/(dashboard)/planner/_components/TaskForm.tsx index 992b2b7..5c875a8 100644 --- a/apps/dashboard-app/app/(dashboard)/planner/_components/TaskForm.tsx +++ b/apps/dashboard-app/app/(dashboard)/planner/_components/TaskForm.tsx @@ -2,7 +2,7 @@ import { Button } from '@repo/ui/atoms/shadcn/Button' import { Input } from '@repo/ui/atoms/shadcn/Input' import React, { useContext, useState } from 'react' import { ConnectionsContext } from '../../../../providers/connections-provider' -import { createNotionPageAction } from '../../../../actions/notion/notion' +import { createNotionPageAction } from '../../../actions/notion/notion' import { DatePicker } from '@repo/ui/molecules/shadcn/DatePicker' import { Checkbox } from '../../../../../../packages/ui/src/components/atoms/shadcn/Checkbox' diff --git a/apps/dashboard-app/app/(dashboard)/planner/_components/WeeklyPlannerForm.tsx b/apps/dashboard-app/app/(dashboard)/planner/_components/WeeklyPlannerForm.tsx index 7187fae..a0ee5d1 100644 --- a/apps/dashboard-app/app/(dashboard)/planner/_components/WeeklyPlannerForm.tsx +++ b/apps/dashboard-app/app/(dashboard)/planner/_components/WeeklyPlannerForm.tsx @@ -3,7 +3,7 @@ import { Input } from '@repo/ui/atoms/shadcn/Input' import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@repo/ui/molecules/shadcn/Select' import React, { useContext, useState } from 'react' import { ConnectionsContext } from '../../../../providers/connections-provider' -import { createNotionPageAction} from '../../../../actions/notion/notion' +import { createNotionPageAction} from '../../../actions/notion/notion' import { DatePicker } from '@repo/ui/molecules/shadcn/DatePicker' const WeeklyPlannerForm = () => { diff --git a/apps/dashboard-app/app/(dashboard)/skill-trees/_action/notionUpdate.tsx b/apps/dashboard-app/app/(dashboard)/skill-trees/_action/notionUpdate.tsx index 7b5078d..cd6628d 100644 --- a/apps/dashboard-app/app/(dashboard)/skill-trees/_action/notionUpdate.tsx +++ b/apps/dashboard-app/app/(dashboard)/skill-trees/_action/notionUpdate.tsx @@ -1,4 +1,4 @@ -import { modifyNotionPageAction } from "../../../../actions/notion/notion"; +import { modifyNotionPageAction } from "../../../actions/notion/notion"; export const calculateAndUpdateNextRevisionDate = async (page:any, apiToken:any) =>{ const baseInterval = 1; // Base interval in days diff --git a/apps/dashboard-app/app/(dashboard)/skill-trees/_action/summary.tsx b/apps/dashboard-app/app/(dashboard)/skill-trees/_action/summary.tsx index fd51211..46eb0e5 100644 --- a/apps/dashboard-app/app/(dashboard)/skill-trees/_action/summary.tsx +++ b/apps/dashboard-app/app/(dashboard)/skill-trees/_action/summary.tsx @@ -1,6 +1,6 @@ 'use server' -import { queryNotionPageAction } from "../../../../actions/notion/notion" +import { queryNotionPageAction } from "../../../actions/notion/notion" export const calculateTotalLength = async (skillTree:any, skillTrees:any) => { let totalNotes = skillTree["Self"] diff --git a/apps/dashboard-app/app/(dashboard)/skill-trees/page.tsx b/apps/dashboard-app/app/(dashboard)/skill-trees/page.tsx index 8510e91..cc5cd43 100644 --- a/apps/dashboard-app/app/(dashboard)/skill-trees/page.tsx +++ b/apps/dashboard-app/app/(dashboard)/skill-trees/page.tsx @@ -6,7 +6,7 @@ import { ConnectionsContext } from '../../../providers/connections-provider' import { Select, SelectContent, SelectItem, SelectTrigger } from '@repo/ui/molecules/shadcn/Select' import { useMedia,} from 'react-use' import { Tabs, TabsList, TabsTrigger } from '@repo/ui/molecules/shadcn/Tabs' -import { queryAllNotionDatabaseAction } from '../../../actions/notion/notion' +import { queryAllNotionDatabaseAction } from '../../actions/notion/notion' import SkillTrees from './_components/SkillTrees' import { useRouter, useSearchParams } from 'next/navigation' import { BookOpenCheckIcon, SettingsIcon } from 'lucide-react' diff --git a/apps/dashboard-app/app/(dashboard)/workflows/_components/Workflow.tsx b/apps/dashboard-app/app/(dashboard)/workflows/_components/Workflow.tsx index 90a7539..58b2019 100644 --- a/apps/dashboard-app/app/(dashboard)/workflows/_components/Workflow.tsx +++ b/apps/dashboard-app/app/(dashboard)/workflows/_components/Workflow.tsx @@ -4,7 +4,7 @@ import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } import { Label } from '@repo/ui/atoms/shadcn/Label' import { Switch } from '@repo/ui/molecules/shadcn/Switch' import React, { useState } from 'react' -import { deleteFlow, publishFlow } from '../../../../actions/workflows/workflow' +import { deleteFlow, publishFlow } from '../../../actions/workflows/workflow' import ConfirmDialog from '@repo/ui/molecules/custom/ConfirmDialog' import { ArrowRightIcon, TrashIcon } from 'lucide-react' import { useRouter } from 'next/navigation' diff --git a/apps/dashboard-app/app/(dashboard)/workflows/_components/Workflows.tsx b/apps/dashboard-app/app/(dashboard)/workflows/_components/Workflows.tsx index 8af53a5..320404f 100644 --- a/apps/dashboard-app/app/(dashboard)/workflows/_components/Workflows.tsx +++ b/apps/dashboard-app/app/(dashboard)/workflows/_components/Workflows.tsx @@ -2,7 +2,7 @@ /* eslint-disable */ import React, { useEffect, useState } from 'react' -import { getWorkflows } from '../../../../actions/workflows/workflow' +import { getWorkflows } from '../../../actions/workflows/workflow' import { useSession } from 'next-auth/react' import Workflow from './Workflow' diff --git a/apps/dashboard-app/app/(dashboard)/workflows/editor/[editorId]/_components/Event.tsx b/apps/dashboard-app/app/(dashboard)/workflows/editor/[editorId]/_components/Event.tsx index 7eb4191..6afa212 100644 --- a/apps/dashboard-app/app/(dashboard)/workflows/editor/[editorId]/_components/Event.tsx +++ b/apps/dashboard-app/app/(dashboard)/workflows/editor/[editorId]/_components/Event.tsx @@ -1,5 +1,5 @@ import React, { useEffect, useState } from 'react'; -import { getEventsByWorkflowId } from '../../../../../../actions/workflows/workflow'; +import { getEventsByWorkflowId } from '../../../../../actions/workflows/workflow'; import { useParams } from 'next/navigation'; import { format } from 'date-fns'; diff --git a/apps/dashboard-app/app/(dashboard)/workflows/editor/[editorId]/_components/NodeAccordion.tsx b/apps/dashboard-app/app/(dashboard)/workflows/editor/[editorId]/_components/NodeAccordion.tsx index a96de30..be7039d 100644 --- a/apps/dashboard-app/app/(dashboard)/workflows/editor/[editorId]/_components/NodeAccordion.tsx +++ b/apps/dashboard-app/app/(dashboard)/workflows/editor/[editorId]/_components/NodeAccordion.tsx @@ -1,7 +1,7 @@ 'use client' import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from '@repo/ui/molecules/shadcn/Accordion' import React, { useEffect, useState } from 'react' -import { getLatestEventByWorkflowIdAction } from '../../../../../../actions/workflows/workflow' +import { getLatestEventByWorkflowIdAction } from '../../../../../actions/workflows/workflow' const NodeAccordion = ({node}:any) => { diff --git a/apps/dashboard-app/app/(dashboard)/workflows/editor/[editorId]/_components/Nodes.tsx b/apps/dashboard-app/app/(dashboard)/workflows/editor/[editorId]/_components/Nodes.tsx index ada70a1..a1e59e2 100644 --- a/apps/dashboard-app/app/(dashboard)/workflows/editor/[editorId]/_components/Nodes.tsx +++ b/apps/dashboard-app/app/(dashboard)/workflows/editor/[editorId]/_components/Nodes.tsx @@ -5,13 +5,13 @@ import React, { useContext, useEffect, useState } from 'react' import 'reactflow/dist/style.css'; import { Card,CardHeader,CardTitle,CardFooter,CardDescription,CardContent } from '@repo/ui/molecules/shadcn/Card'; import { useParams, useRouter, useSearchParams } from 'next/navigation'; -import { deleteActionAction, deleteTriggerAction, editFlow, getActionTypesAction, getTriggerTypesAction, publishFlow, runWorkflow } from '../../../../../../actions/workflows/workflow'; +import { deleteActionAction, deleteTriggerAction, editFlow, getActionTypesAction, getTriggerTypesAction, publishFlow, runWorkflow } from '../../../../../actions/workflows/workflow'; import { EditorContext } from '../../../../../../providers/editor-provider'; import { ArrowBigDownDash, Edit2Icon, TrashIcon } from 'lucide-react'; import { Input } from '@repo/ui/atoms/shadcn/Input'; import { Switch } from '@repo/ui/molecules/shadcn/Switch'; import { Label } from '@repo/ui/atoms/shadcn/Label'; -import { getWorkflow } from '../../../../../../actions/workflows/workflow'; +import { getWorkflow } from '../../../../../actions/workflows/workflow'; import NodeModal from './NodeModal'; import NodeCard from './NodeCard'; diff --git a/apps/dashboard-app/app/(dashboard)/workflows/editor/[editorId]/_components/action-forms/code/JavascriptCode.tsx b/apps/dashboard-app/app/(dashboard)/workflows/editor/[editorId]/_components/action-forms/code/JavascriptCode.tsx index dc57461..0c79be1 100644 --- a/apps/dashboard-app/app/(dashboard)/workflows/editor/[editorId]/_components/action-forms/code/JavascriptCode.tsx +++ b/apps/dashboard-app/app/(dashboard)/workflows/editor/[editorId]/_components/action-forms/code/JavascriptCode.tsx @@ -9,7 +9,7 @@ import { useToast } from '../../../../../../../../hooks/useToast'; import { getSession } from 'next-auth/react'; import { useParams, useRouter } from 'next/navigation'; import { EditorContext } from '../../../../../../../../providers/editor-provider'; -import { createActionAction, updateActionAction } from '../../../../../../../../actions/workflows/workflow'; +import { createActionAction, updateActionAction } from '../../../../../../../actions/workflows/workflow'; import { set } from 'date-fns'; export const JavascriptCode = ({funcType,nodeType,type,subType,node}: any) => { diff --git a/apps/dashboard-app/app/(dashboard)/workflows/editor/[editorId]/_components/action-forms/notion/CreatePage.tsx b/apps/dashboard-app/app/(dashboard)/workflows/editor/[editorId]/_components/action-forms/notion/CreatePage.tsx index 26dccde..a815999 100644 --- a/apps/dashboard-app/app/(dashboard)/workflows/editor/[editorId]/_components/action-forms/notion/CreatePage.tsx +++ b/apps/dashboard-app/app/(dashboard)/workflows/editor/[editorId]/_components/action-forms/notion/CreatePage.tsx @@ -6,10 +6,10 @@ import { EditorContext } from '../../../../../../../../providers/editor-provider import { useSession } from 'next-auth/react'; import { Button } from '@repo/ui/atoms/shadcn/Button'; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@repo/ui/molecules/shadcn/Select'; -import { getNotionConnection } from '../../../../../../../../actions/connections/notion-connections'; +import { getNotionConnection } from '../../../../../../../actions/connections/notion-connections'; import { Label } from '@repo/ui/atoms/shadcn/Label'; -import { getDatabases} from '../../../../../../../../actions/notion/notion'; -import { createActionAction, updateActionAction } from '../../../../../../../../actions/workflows/workflow'; +import { getDatabases} from '../../../../../../../actions/notion/notion'; +import { createActionAction, updateActionAction } from '../../../../../../../actions/workflows/workflow'; import { Textarea } from '@repo/ui/atoms/shadcn/Textarea'; const CreatePage = ({funcType,nodeType,type,subType,node}:any) => { diff --git a/apps/dashboard-app/app/(dashboard)/workflows/editor/[editorId]/_components/action-forms/notion/QueryDatabase.tsx b/apps/dashboard-app/app/(dashboard)/workflows/editor/[editorId]/_components/action-forms/notion/QueryDatabase.tsx index 72228cf..7556c8b 100644 --- a/apps/dashboard-app/app/(dashboard)/workflows/editor/[editorId]/_components/action-forms/notion/QueryDatabase.tsx +++ b/apps/dashboard-app/app/(dashboard)/workflows/editor/[editorId]/_components/action-forms/notion/QueryDatabase.tsx @@ -6,13 +6,13 @@ import { EditorContext } from '../../../../../../../../providers/editor-provider import { useSession } from 'next-auth/react'; import { Button } from '@repo/ui/atoms/shadcn/Button'; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@repo/ui/molecules/shadcn/Select'; -import { getNotionConnection } from '../../../../../../../../actions/connections/notion-connections'; +import { getNotionConnection } from '../../../../../../../actions/connections/notion-connections'; import { Label } from '@repo/ui/atoms/shadcn/Label'; -import { getDatabases, queryNotionDatabaseAction, queryNotionDatabaseProperties } from '../../../../../../../../actions/notion/notion'; +import { getDatabases, queryNotionDatabaseAction, queryNotionDatabaseProperties } from '../../../../../../../actions/notion/notion'; import { Input } from '@repo/ui/atoms/shadcn/Input'; import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from '@repo/ui/molecules/shadcn/Accordion'; import { DeleteIcon } from 'lucide-react'; -import { createActionAction, updateActionAction } from '../../../../../../../../actions/workflows/workflow'; +import { createActionAction, updateActionAction } from '../../../../../../../actions/workflows/workflow'; import { set } from 'date-fns'; import SearchableSelect from '@repo/ui/molecules/custom/SearchableSelect'; diff --git a/apps/dashboard-app/app/(dashboard)/workflows/editor/[editorId]/_components/action-forms/notion/UpdatePage.tsx b/apps/dashboard-app/app/(dashboard)/workflows/editor/[editorId]/_components/action-forms/notion/UpdatePage.tsx index c36b5c4..c77ff71 100644 --- a/apps/dashboard-app/app/(dashboard)/workflows/editor/[editorId]/_components/action-forms/notion/UpdatePage.tsx +++ b/apps/dashboard-app/app/(dashboard)/workflows/editor/[editorId]/_components/action-forms/notion/UpdatePage.tsx @@ -6,10 +6,10 @@ import { EditorContext } from '../../../../../../../../providers/editor-provider import { useSession } from 'next-auth/react'; import { Button } from '@repo/ui/atoms/shadcn/Button'; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@repo/ui/molecules/shadcn/Select'; -import { getNotionConnection } from '../../../../../../../../actions/connections/notion-connections'; +import { getNotionConnection } from '../../../../../../../actions/connections/notion-connections'; import { Label } from '@repo/ui/atoms/shadcn/Label'; -import { getDatabases } from '../../../../../../../../actions/notion/notion'; -import { createActionAction, updateActionAction } from '../../../../../../../../actions/workflows/workflow'; +import { getDatabases } from '../../../../../../../actions/notion/notion'; +import { createActionAction, updateActionAction } from '../../../../../../../actions/workflows/workflow'; import { Textarea } from '@repo/ui/atoms/shadcn/Textarea'; const UpdatePage = ({funcType,nodeType,type,subType,node}:any) => { diff --git a/apps/dashboard-app/app/(dashboard)/workflows/editor/[editorId]/_components/action-forms/webhook/WebhookAction.tsx b/apps/dashboard-app/app/(dashboard)/workflows/editor/[editorId]/_components/action-forms/webhook/WebhookAction.tsx index 9ae5a5c..9b162f0 100644 --- a/apps/dashboard-app/app/(dashboard)/workflows/editor/[editorId]/_components/action-forms/webhook/WebhookAction.tsx +++ b/apps/dashboard-app/app/(dashboard)/workflows/editor/[editorId]/_components/action-forms/webhook/WebhookAction.tsx @@ -8,7 +8,7 @@ import { getSession } from 'next-auth/react'; import { useParams } from 'next/navigation'; import { EditorContext } from '../../../../../../../../providers/editor-provider'; import { useRouter } from 'next/navigation'; -import { createActionAction, createTriggerAction, updateActionAction } from '../../../../../../../../actions/workflows/workflow'; +import { createActionAction, createTriggerAction, updateActionAction } from '../../../../../../../actions/workflows/workflow'; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@repo/ui/molecules/shadcn/Select'; import { Input } from '@repo/ui/atoms/shadcn/Input'; import { useToast } from '../../../../../../../../hooks/useToast'; diff --git a/apps/dashboard-app/app/(dashboard)/workflows/editor/[editorId]/_components/trigger-forms/schedule/Schedule.tsx b/apps/dashboard-app/app/(dashboard)/workflows/editor/[editorId]/_components/trigger-forms/schedule/Schedule.tsx index 6de9357..ad2708a 100644 --- a/apps/dashboard-app/app/(dashboard)/workflows/editor/[editorId]/_components/trigger-forms/schedule/Schedule.tsx +++ b/apps/dashboard-app/app/(dashboard)/workflows/editor/[editorId]/_components/trigger-forms/schedule/Schedule.tsx @@ -9,7 +9,7 @@ import { useParams } from 'next/navigation'; import { EditorContext } from '../../../../../../../../providers/editor-provider'; import { useRouter } from 'next/navigation'; import { useToast } from '../../../../../../../../hooks/useToast'; -import { createTriggerAction } from '../../../../../../../../actions/workflows/workflow'; +import { createTriggerAction } from '../../../../../../../actions/workflows/workflow'; const Schedule = ({funcType,nodeType,type,subType,node}:any) => { const {toast} = useToast(); diff --git a/apps/dashboard-app/app/(dashboard)/workflows/editor/[editorId]/_components/trigger-forms/webhook/WebhookTrigger.tsx b/apps/dashboard-app/app/(dashboard)/workflows/editor/[editorId]/_components/trigger-forms/webhook/WebhookTrigger.tsx index d1d955f..3eb392e 100644 --- a/apps/dashboard-app/app/(dashboard)/workflows/editor/[editorId]/_components/trigger-forms/webhook/WebhookTrigger.tsx +++ b/apps/dashboard-app/app/(dashboard)/workflows/editor/[editorId]/_components/trigger-forms/webhook/WebhookTrigger.tsx @@ -8,7 +8,7 @@ import { getSession } from 'next-auth/react'; import { useParams } from 'next/navigation'; import { EditorContext } from '../../../../../../../../providers/editor-provider'; import { useRouter } from 'next/navigation'; -import { createTriggerAction } from '../../../../../../../../actions/workflows/workflow'; +import { createTriggerAction } from '../../../../../../../actions/workflows/workflow'; import { useToast } from '../../../../../../../../hooks/useToast'; const WebhookTrigger = ({funcType,nodeType,type,subType,node}:any) => { diff --git a/apps/dashboard-app/app/(dashboard)/workflows/page.tsx b/apps/dashboard-app/app/(dashboard)/workflows/page.tsx index 761bf13..58f3ee1 100644 --- a/apps/dashboard-app/app/(dashboard)/workflows/page.tsx +++ b/apps/dashboard-app/app/(dashboard)/workflows/page.tsx @@ -3,7 +3,7 @@ import { Button } from '@repo/ui/atoms/shadcn/Button' import { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger } from '@repo/ui/molecules/shadcn/Sheet' import React from 'react' import Workflowform from './_components/WorkflowForm' -import { createWorkflowAction } from '../../../actions/workflows/workflow' +import { createWorkflowAction } from '../../actions/workflows/workflow' import { useSession } from 'next-auth/react' import Workflows from './_components/Workflows' import Event from './editor/[editorId]/_components/Event' diff --git a/apps/dashboard-app/app/(dashboard)/youtube/_components/Settings.tsx b/apps/dashboard-app/app/(dashboard)/youtube/_components/Settings.tsx index e5dd378..a3a0690 100644 --- a/apps/dashboard-app/app/(dashboard)/youtube/_components/Settings.tsx +++ b/apps/dashboard-app/app/(dashboard)/youtube/_components/Settings.tsx @@ -3,7 +3,7 @@ import React, { useEffect, useState } from 'react' import DbSelection from '../../../../components/DbSelection' import { Select, SelectContent, SelectItem, SelectTrigger } from '@repo/ui/molecules/shadcn/Select' import { useSession } from 'next-auth/react' -import { getYoutubeConnection, getAndUpdateChannels, getAndUpdateVideos } from '../../../../actions/connections/youtube-connections' +import { getYoutubeConnection, getAndUpdateChannels, getAndUpdateVideos } from '../../../actions/connections/youtube-connections' import { Button } from '@repo/ui/atoms/shadcn/Button' import { useToast } from '../../../../hooks/useToast' diff --git a/apps/dashboard-app/app/(dashboard)/youtube/_components/YoutubeChannels.tsx b/apps/dashboard-app/app/(dashboard)/youtube/_components/YoutubeChannels.tsx index 83dcbe4..947763f 100644 --- a/apps/dashboard-app/app/(dashboard)/youtube/_components/YoutubeChannels.tsx +++ b/apps/dashboard-app/app/(dashboard)/youtube/_components/YoutubeChannels.tsx @@ -6,7 +6,7 @@ import { useSession } from 'next-auth/react' import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from '@repo/ui/molecules/shadcn/Card' import { Button } from '@repo/ui/atoms/shadcn/Button' import { ConnectionsContext } from '../../../../providers/connections-provider' -import { queryAllNotionDatabaseAction } from '../../../../actions/notion/notion' +import { queryAllNotionDatabaseAction } from '../../../actions/notion/notion' import Image from 'next/image' import LoadingCard from '@repo/ui/organisms/auth/LoadingCard' diff --git a/apps/dashboard-app/app/(dashboard)/youtube/_components/YoutubeVideos.tsx b/apps/dashboard-app/app/(dashboard)/youtube/_components/YoutubeVideos.tsx index 535b76b..00455a0 100644 --- a/apps/dashboard-app/app/(dashboard)/youtube/_components/YoutubeVideos.tsx +++ b/apps/dashboard-app/app/(dashboard)/youtube/_components/YoutubeVideos.tsx @@ -6,7 +6,7 @@ import { useSession } from 'next-auth/react' import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from '@repo/ui/molecules/shadcn/Card' import { Button } from '@repo/ui/atoms/shadcn/Button' import { ConnectionsContext } from '../../../../providers/connections-provider' -import { modifyNotionPageAction, queryNotionDatabaseAction } from '../../../../actions/notion/notion' +import { modifyNotionPageAction, queryNotionDatabaseAction } from '../../../actions/notion/notion' import Image from 'next/image' import { format } from 'date-fns' import Modal from './Modal' diff --git a/apps/dashboard-app/actions/auth/forgot-password.ts b/apps/dashboard-app/app/actions/auth/forgot-password.ts similarity index 100% rename from apps/dashboard-app/actions/auth/forgot-password.ts rename to apps/dashboard-app/app/actions/auth/forgot-password.ts diff --git a/apps/dashboard-app/actions/auth/login.ts b/apps/dashboard-app/app/actions/auth/login.ts similarity index 96% rename from apps/dashboard-app/actions/auth/login.ts rename to apps/dashboard-app/app/actions/auth/login.ts index c27ddd5..4ebc649 100644 --- a/apps/dashboard-app/actions/auth/login.ts +++ b/apps/dashboard-app/app/actions/auth/login.ts @@ -7,7 +7,7 @@ import { AuthError } from 'next-auth'; import { createVerificationToken } from '@repo/prisma-db/repo/verification'; import { getUserByEmail } from '@repo/prisma-db/repo/user'; import { sendVerificationEmail } from '@repo/resend-email/mail'; -import { DEFAULT_LOGIN_REDIRECT } from '../../routes'; +import { DEFAULT_LOGIN_REDIRECT } from '../../../routes'; export const login = async (values:z.infer) =>{ const validatedFields = LoginSchema.safeParse(values); diff --git a/apps/dashboard-app/actions/auth/logout.ts b/apps/dashboard-app/app/actions/auth/logout.ts similarity index 100% rename from apps/dashboard-app/actions/auth/logout.ts rename to apps/dashboard-app/app/actions/auth/logout.ts diff --git a/apps/dashboard-app/actions/auth/new-verification.ts b/apps/dashboard-app/app/actions/auth/new-verification.ts similarity index 100% rename from apps/dashboard-app/actions/auth/new-verification.ts rename to apps/dashboard-app/app/actions/auth/new-verification.ts diff --git a/apps/dashboard-app/actions/auth/register.ts b/apps/dashboard-app/app/actions/auth/register.ts similarity index 100% rename from apps/dashboard-app/actions/auth/register.ts rename to apps/dashboard-app/app/actions/auth/register.ts diff --git a/apps/dashboard-app/actions/auth/reset-password.ts b/apps/dashboard-app/app/actions/auth/reset-password.ts similarity index 100% rename from apps/dashboard-app/actions/auth/reset-password.ts rename to apps/dashboard-app/app/actions/auth/reset-password.ts diff --git a/apps/dashboard-app/actions/auth/verify-reset-token.ts b/apps/dashboard-app/app/actions/auth/verify-reset-token.ts similarity index 100% rename from apps/dashboard-app/actions/auth/verify-reset-token.ts rename to apps/dashboard-app/app/actions/auth/verify-reset-token.ts diff --git a/apps/dashboard-app/actions/connections/notion-connections.tsx b/apps/dashboard-app/app/actions/connections/notion-connections.tsx similarity index 100% rename from apps/dashboard-app/actions/connections/notion-connections.tsx rename to apps/dashboard-app/app/actions/connections/notion-connections.tsx diff --git a/apps/dashboard-app/actions/connections/openai-connections.tsx b/apps/dashboard-app/app/actions/connections/openai-connections.tsx similarity index 100% rename from apps/dashboard-app/actions/connections/openai-connections.tsx rename to apps/dashboard-app/app/actions/connections/openai-connections.tsx diff --git a/apps/dashboard-app/actions/connections/user-connections.tsx b/apps/dashboard-app/app/actions/connections/user-connections.tsx similarity index 100% rename from apps/dashboard-app/actions/connections/user-connections.tsx rename to apps/dashboard-app/app/actions/connections/user-connections.tsx diff --git a/apps/dashboard-app/actions/connections/youtube-connections.tsx b/apps/dashboard-app/app/actions/connections/youtube-connections.tsx similarity index 99% rename from apps/dashboard-app/actions/connections/youtube-connections.tsx rename to apps/dashboard-app/app/actions/connections/youtube-connections.tsx index 303db3c..2710364 100644 --- a/apps/dashboard-app/actions/connections/youtube-connections.tsx +++ b/apps/dashboard-app/app/actions/connections/youtube-connections.tsx @@ -4,7 +4,7 @@ import { createConnection, getConnectionByAccessToken, getConnectionByUserIdAndT import axios from 'axios' import { getNotionConnection } from './notion-connections' import { createNotionPageAction, queryAllNotionDatabaseAction } from '../notion/notion' -import { delay } from '../../lib/utils' +import { delay } from '../../../lib/utils' const MAX_RETRIES = 3; const RETRY_DELAY = 1000; diff --git a/apps/dashboard-app/actions/notion/common.ts b/apps/dashboard-app/app/actions/notion/common.ts similarity index 100% rename from apps/dashboard-app/actions/notion/common.ts rename to apps/dashboard-app/app/actions/notion/common.ts diff --git a/apps/dashboard-app/actions/notion/financial.ts b/apps/dashboard-app/app/actions/notion/financial.ts similarity index 100% rename from apps/dashboard-app/actions/notion/financial.ts rename to apps/dashboard-app/app/actions/notion/financial.ts diff --git a/apps/dashboard-app/actions/notion/knowledgeBase.ts b/apps/dashboard-app/app/actions/notion/knowledgeBase.ts similarity index 100% rename from apps/dashboard-app/actions/notion/knowledgeBase.ts rename to apps/dashboard-app/app/actions/notion/knowledgeBase.ts diff --git a/apps/dashboard-app/actions/notion/notion.ts b/apps/dashboard-app/app/actions/notion/notion.ts similarity index 98% rename from apps/dashboard-app/actions/notion/notion.ts rename to apps/dashboard-app/app/actions/notion/notion.ts index cc02393..6fba580 100644 --- a/apps/dashboard-app/actions/notion/notion.ts +++ b/apps/dashboard-app/app/actions/notion/notion.ts @@ -3,7 +3,7 @@ import { getConnectionsByUserAndType, updateNotionDb} from "@repo/prisma-db/repo import { createNotionPage, getNotionDatabaseProperties, modifyNotionPage, queryAllNotionDatabase, queryNotionDatabase, getNotionPage } from '@repo/notion/notion-client' -import { deletePage } from "../../../../packages/notion/src"; +import { deletePage } from "../../../../../packages/notion/src"; export const getDatabases = async (token: string) => { try{ diff --git a/apps/dashboard-app/actions/notion/planner.ts b/apps/dashboard-app/app/actions/notion/planner.ts similarity index 100% rename from apps/dashboard-app/actions/notion/planner.ts rename to apps/dashboard-app/app/actions/notion/planner.ts diff --git a/apps/dashboard-app/actions/notion/seeding.ts b/apps/dashboard-app/app/actions/notion/seeding.ts similarity index 51% rename from apps/dashboard-app/actions/notion/seeding.ts rename to apps/dashboard-app/app/actions/notion/seeding.ts index 7034839..f0fad6d 100644 --- a/apps/dashboard-app/actions/notion/seeding.ts +++ b/apps/dashboard-app/app/actions/notion/seeding.ts @@ -1,4 +1,4 @@ -import { createDatabase } from "../../../../packages/notion/src"; +import { createDatabase } from "../../../../../packages/notion/src"; export const createAccountsNotionDb = async ({apiToken}:any) => { diff --git a/apps/dashboard-app/actions/settings/reset-password-settings.ts b/apps/dashboard-app/app/actions/settings/reset-password-settings.ts similarity index 100% rename from apps/dashboard-app/actions/settings/reset-password-settings.ts rename to apps/dashboard-app/app/actions/settings/reset-password-settings.ts diff --git a/apps/dashboard-app/actions/workflows/workflow.ts b/apps/dashboard-app/app/actions/workflows/workflow.ts similarity index 100% rename from apps/dashboard-app/actions/workflows/workflow.ts rename to apps/dashboard-app/app/actions/workflows/workflow.ts diff --git a/apps/dashboard-app/app/auth/_components/ForgotPasswordClient.tsx b/apps/dashboard-app/app/auth/_components/ForgotPasswordClient.tsx index 782bc6f..481c6de 100644 --- a/apps/dashboard-app/app/auth/_components/ForgotPasswordClient.tsx +++ b/apps/dashboard-app/app/auth/_components/ForgotPasswordClient.tsx @@ -3,7 +3,7 @@ import { useState } from 'react'; import { useRouter } from 'next/navigation'; import ForgotPasswordCard from '@repo/ui/organisms/auth/ForgotPasswordCard'; -import { ForgotPassword } from '../../../actions/auth/forgot-password'; +import { ForgotPassword } from '../../actions/auth/forgot-password'; export default function ForgotPasswordClient() { diff --git a/apps/dashboard-app/app/auth/_components/LoginClient.tsx b/apps/dashboard-app/app/auth/_components/LoginClient.tsx index f71a547..0ace25f 100644 --- a/apps/dashboard-app/app/auth/_components/LoginClient.tsx +++ b/apps/dashboard-app/app/auth/_components/LoginClient.tsx @@ -2,7 +2,7 @@ import LoginCard from '@repo/ui/organisms/auth/LoginCard'; import { signIn} from 'next-auth/react'; import { useRouter, useSearchParams } from 'next/navigation'; -import { login } from '../../../actions/auth/login'; +import { login } from '../../actions/auth/login'; import { DEFAULT_LOGIN_REDIRECT } from '../../../routes'; diff --git a/apps/dashboard-app/app/auth/_components/RegisterClient.tsx b/apps/dashboard-app/app/auth/_components/RegisterClient.tsx index 0cbe165..443a9c8 100644 --- a/apps/dashboard-app/app/auth/_components/RegisterClient.tsx +++ b/apps/dashboard-app/app/auth/_components/RegisterClient.tsx @@ -1,7 +1,7 @@ "use client" import RegisterCard from '@repo/ui/organisms/auth/RegisterCard'; import { useRouter } from 'next/navigation'; -import { register } from '../../../actions/auth/register'; +import { register } from '../../actions/auth/register'; import { signIn,useSession } from 'next-auth/react'; import { DEFAULT_LOGIN_REDIRECT } from '../../../routes'; diff --git a/apps/dashboard-app/app/auth/_components/ResetPasswordClient.tsx b/apps/dashboard-app/app/auth/_components/ResetPasswordClient.tsx index 9fb975c..5a37670 100644 --- a/apps/dashboard-app/app/auth/_components/ResetPasswordClient.tsx +++ b/apps/dashboard-app/app/auth/_components/ResetPasswordClient.tsx @@ -3,8 +3,8 @@ import { useRouter, useSearchParams } from 'next/navigation'; import { useEffect, useState } from 'react'; import ResetPasswordCard from '@repo/ui/organisms/settings/ResetPasswordCard'; -import { resetPassword} from '../../../actions/auth/reset-password'; -import { verifyResetToken } from '../../../actions/auth/verify-reset-token'; +import { resetPassword} from '../../actions/auth/reset-password'; +import { verifyResetToken } from '../../actions/auth/verify-reset-token'; import ErrorCard from '@repo/ui/organisms/auth/ErrorCard'; diff --git a/apps/dashboard-app/app/auth/_components/VerificationClient.tsx b/apps/dashboard-app/app/auth/_components/VerificationClient.tsx index 414eafa..5150293 100644 --- a/apps/dashboard-app/app/auth/_components/VerificationClient.tsx +++ b/apps/dashboard-app/app/auth/_components/VerificationClient.tsx @@ -4,7 +4,7 @@ import VerificationCard from '@repo/ui/organisms/auth/VerificationCard'; import { useRouter, useSearchParams } from 'next/navigation'; import { useCallback, useEffect, useState } from 'react'; -import { newVerification } from '../../../actions/auth/new-verification'; +import { newVerification } from '../../actions/auth/new-verification'; export default function VerificationClient() { diff --git a/apps/dashboard-app/components/ConnectedCard.tsx b/apps/dashboard-app/components/ConnectedCard.tsx index 7b5078e..4e17d9b 100644 --- a/apps/dashboard-app/components/ConnectedCard.tsx +++ b/apps/dashboard-app/components/ConnectedCard.tsx @@ -4,7 +4,7 @@ import { Card, CardDescription, CardHeader, CardTitle } from '@repo/ui/molecules import Image from 'next/image' import { EditIcon, TrashIcon } from 'lucide-react' import { useRouter } from 'next/navigation' -import { deleteConnectionById, updateConnectionById } from '../actions/connections/user-connections' +import { deleteConnectionById, updateConnectionById } from '../app/actions/connections/user-connections' import { Input } from '@repo/ui/atoms/shadcn/Input' import ConfirmDialog from '@repo/ui/molecules/custom/ConfirmDialog' diff --git a/apps/dashboard-app/components/DbSelection.tsx b/apps/dashboard-app/components/DbSelection.tsx index 6c35915..9e36f91 100644 --- a/apps/dashboard-app/components/DbSelection.tsx +++ b/apps/dashboard-app/components/DbSelection.tsx @@ -3,12 +3,12 @@ import React, { useContext, useEffect, useRef, useState } from 'react' import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@repo/ui/molecules/shadcn/Select' import { ConnectionsContext } from '../providers/connections-provider' -import { getDatabases } from '../actions/notion/notion' +import { getDatabases } from '../app/actions/notion/notion' import { Button } from '@repo/ui/atoms/shadcn/Button' -import { updateNotionDatabase } from '../actions/notion/notion' +import { updateNotionDatabase } from '../app/actions/notion/notion' import { useSession } from 'next-auth/react' import { Input } from '@repo/ui/atoms/shadcn/Input' -import { getDefaultDbFromContext } from '../actions/notion/common' +import { getDefaultDbFromContext } from '../app/actions/notion/common' import SearchableSelect from '@repo/ui/molecules/custom/SearchableSelect' const DbSelection = ({title,name,fieldName}:any) => { diff --git a/apps/dashboard-app/components/NavbarClient.tsx b/apps/dashboard-app/components/NavbarClient.tsx index a0bfed8..8a5f24b 100644 --- a/apps/dashboard-app/components/NavbarClient.tsx +++ b/apps/dashboard-app/components/NavbarClient.tsx @@ -3,7 +3,7 @@ import { Navbar } from "@repo/ui/organisms/home/Navbar" import { useTheme } from "next-themes" import { useRouter } from "next/navigation"; -import { resetPasswordSettings } from "../actions/settings/reset-password-settings"; +import { resetPasswordSettings } from "../app/actions/settings/reset-password-settings"; import { getSession, signOut, useSession } from "next-auth/react"; import { useEffect, useState } from "react"; diff --git a/apps/dashboard-app/components/NotionTable.tsx b/apps/dashboard-app/components/NotionTable.tsx index a2a9f00..3fda8c8 100644 --- a/apps/dashboard-app/components/NotionTable.tsx +++ b/apps/dashboard-app/components/NotionTable.tsx @@ -4,7 +4,7 @@ import { DataTable } from '@repo/ui/molecules/shadcn/DataTable' import { Button } from '@repo/ui/atoms/shadcn/Button' import React, { useContext, useEffect, useState } from 'react' import { ConnectionsContext } from '../providers/connections-provider' -import { deleteNotionPages, queryNotionDatabaseAction, queryNotionDatabaseProperties } from '../actions/notion/notion' +import { deleteNotionPages, queryNotionDatabaseAction, queryNotionDatabaseProperties } from '../app/actions/notion/notion' import { ArrowUpDown } from "lucide-react" import { Checkbox } from '@repo/ui/atoms/shadcn/Checkbox' import { useRouter } from 'next/navigation' diff --git a/apps/dashboard-app/hooks/useConnection.ts b/apps/dashboard-app/hooks/useConnection.ts index 40d8e8e..3fd7454 100644 --- a/apps/dashboard-app/hooks/useConnection.ts +++ b/apps/dashboard-app/hooks/useConnection.ts @@ -4,7 +4,7 @@ import { useContext, useEffect } from 'react' import { useSession } from 'next-auth/react' import { ConnectionsContext } from '../providers/connections-provider' -import { getNotionInfo } from '../actions/notion/notion' +import { getNotionInfo } from '../app/actions/notion/notion' const useConnection = () => { const connectionsContext = useContext(ConnectionsContext) diff --git a/apps/dashboard-app/next.config.mjs b/apps/dashboard-app/next.config.mjs index c5ba175..b7f3086 100644 --- a/apps/dashboard-app/next.config.mjs +++ b/apps/dashboard-app/next.config.mjs @@ -6,11 +6,13 @@ const nextConfig = { transpilePackages: ["@repo/ui","@repo/next-auth","@repo/prisma-db","@repo/notion","@repo/winston-logger", "@repo/zod" ], + reactStrictMode: true, images:{ remotePatterns: [ {hostname: 'yt.ggpht.com', protocol:'https'}, {hostname: 'yt3.ggpht.com', protocol:'https'}, - {hostname: 'i.ytimg.com', protocol:'https'} + {hostname: 'i.ytimg.com', protocol:'https'}, + {hostname: 'localhost', protocol:'http'}, ] } }; diff --git a/apps/dashboard-app/providers/connections-provider.tsx b/apps/dashboard-app/providers/connections-provider.tsx index 51d75bc..bd8b034 100644 --- a/apps/dashboard-app/providers/connections-provider.tsx +++ b/apps/dashboard-app/providers/connections-provider.tsx @@ -3,8 +3,8 @@ import React, {createContext, useContext, useEffect, useState} from 'react' import useConnection from '../hooks/useConnection' import { useSession } from 'next-auth/react' -import { getNotionInfo } from '../actions/notion/notion' -import { getYoutubeConnection } from '../actions/connections/youtube-connections' +import { getNotionInfo } from '../app/actions/notion/notion' +import { getYoutubeConnection } from '../app/actions/connections/youtube-connections' export type ConnectionProviderProps = { notionNode: {