Skip to content

Commit

Permalink
remove ai insights, move files around
Browse files Browse the repository at this point in the history
  • Loading branch information
xvvvyz committed Aug 29, 2023
1 parent 429edb6 commit a1cb6bc
Show file tree
Hide file tree
Showing 148 changed files with 458 additions and 1,607 deletions.
172 changes: 0 additions & 172 deletions app/(account)/api/chat/route.ts

This file was deleted.

12 changes: 6 additions & 6 deletions app/(account)/inputs/[inputId]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import BackButton from '@/(account)/_components/back-button';
import Breadcrumbs from '@/(account)/_components/breadcrumbs';
import Header from '@/(account)/_components/header';
import getInput, { GetInputData } from '@/(account)/_server/get-input';
import listSubjectsByTeamId from '@/(account)/_server/list-subjects-by-team-id';
import formatTitle from '@/(account)/_utilities/format-title';
import InputForm from '@/(account)/inputs/_components/input-form';
import BackButton from '@/_components/back-button';
import Breadcrumbs from '@/_components/breadcrumbs';
import Header from '@/_components/header';
import getInput, { GetInputData } from '@/_server/get-input';
import listSubjectsByTeamId from '@/_server/list-subjects-by-team-id';
import formatTitle from '@/_utilities/format-title';
import { notFound } from 'next/navigation';

interface PageProps {
Expand Down
10 changes: 5 additions & 5 deletions app/(account)/inputs/_components/filterable-input-link-list.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
'use client';

import Avatar from '@/(account)/_components/avatar';
import INPUT_LABELS from '@/(account)/_constants/constant-input-labels';
import usePrevious from '@/(account)/_hooks/use-previous';
import { ListInputsData } from '@/(account)/_server/list-inputs';
import forceArray from '@/(account)/_utilities/force-array';
import Avatar from '@/_components/avatar';
import Button from '@/_components/button';
import Input from '@/_components/input';
import INPUT_LABELS from '@/_constants/constant-input-labels';
import usePrevious from '@/_hooks/use-previous';
import { ListInputsData } from '@/_server/list-inputs';
import forceArray from '@/_utilities/force-array';
import Fuse from 'fuse.js';
import InputListItemMenu from './input-list-item-menu';

Expand Down
28 changes: 14 additions & 14 deletions app/(account)/inputs/_components/input-form.tsx
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
'use client';

import Checkbox from '@/(account)/_components/checkbox';
import IconButton from '@/(account)/_components/icon-button';
import NumberInput from '@/(account)/_components/input-number';
import Select from '@/(account)/_components/select';
import INPUT_LABELS from '@/(account)/_constants/constant-input-labels';
import CacheKeys from '@/(account)/_constants/enum-cache-keys';
import InputTypes from '@/(account)/_constants/enum-input-types';
import useDefaultValues from '@/(account)/_hooks/use-default-values';
import useSubmitRedirect from '@/(account)/_hooks/use-submit-redirect';
import useUpdateGlobalValueCache from '@/(account)/_hooks/use-update-global-value-cache';
import { GetInputData } from '@/(account)/_server/get-input';
import { ListSubjectsByTeamIdData } from '@/(account)/_server/list-subjects-by-team-id';
import { InputType } from '@/(account)/_types/input';
import forceArray from '@/(account)/_utilities/force-array';
import Button from '@/_components/button';
import Checkbox from '@/_components/checkbox';
import IconButton from '@/_components/icon-button';
import Input from '@/_components/input';
import NumberInput from '@/_components/input-number';
import Select from '@/_components/select';
import INPUT_LABELS from '@/_constants/constant-input-labels';
import CacheKeys from '@/_constants/enum-cache-keys';
import InputTypes from '@/_constants/enum-input-types';
import useDefaultValues from '@/_hooks/use-default-values';
import useSubmitRedirect from '@/_hooks/use-submit-redirect';
import useSupabase from '@/_hooks/use-supabase';
import useUpdateGlobalValueCache from '@/_hooks/use-update-global-value-cache';
import { GetInputData } from '@/_server/get-input';
import { ListSubjectsByTeamIdData } from '@/_server/list-subjects-by-team-id';
import { Database } from '@/_types/database';
import { InputType } from '@/_types/input';
import forceArray from '@/_utilities/force-array';
import { PlusIcon, XMarkIcon } from '@heroicons/react/24/outline';
import { Controller, useFieldArray, useForm } from 'react-hook-form';

Expand Down
12 changes: 6 additions & 6 deletions app/(account)/inputs/_components/input-list-item-menu.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
'use client';

import Alert from '@/(account)/_components/alert';
import Menu from '@/(account)/_components/menu';
import MenuButton from '@/(account)/_components/menu-button';
import MenuItem from '@/(account)/_components/menu-item';
import MenuItems from '@/(account)/_components/menu-items';
import useDeleteAlert from '@/(account)/_hooks/use-delete-alert';
import Alert from '@/_components/alert';
import Menu from '@/_components/menu';
import MenuButton from '@/_components/menu-button';
import MenuItem from '@/_components/menu-item';
import MenuItems from '@/_components/menu-items';
import useDeleteAlert from '@/_hooks/use-delete-alert';
import useSupabase from '@/_hooks/use-supabase';
import { useRouter } from 'next/navigation';

Expand Down
12 changes: 6 additions & 6 deletions app/(account)/inputs/create/from-template/[inputId]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import BackButton from '@/(account)/_components/back-button';
import Breadcrumbs from '@/(account)/_components/breadcrumbs';
import Header from '@/(account)/_components/header';
import getInput, { GetInputData } from '@/(account)/_server/get-input';
import listSubjectsByTeamId from '@/(account)/_server/list-subjects-by-team-id';
import formatTitle from '@/(account)/_utilities/format-title';
import InputForm from '@/(account)/inputs/_components/input-form';
import BackButton from '@/_components/back-button';
import Breadcrumbs from '@/_components/breadcrumbs';
import Header from '@/_components/header';
import getInput, { GetInputData } from '@/_server/get-input';
import listSubjectsByTeamId from '@/_server/list-subjects-by-team-id';
import formatTitle from '@/_utilities/format-title';
import { notFound } from 'next/navigation';

export const metadata = {
Expand Down
10 changes: 5 additions & 5 deletions app/(account)/inputs/create/page.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import BackButton from '@/(account)/_components/back-button';
import Breadcrumbs from '@/(account)/_components/breadcrumbs';
import Header from '@/(account)/_components/header';
import listSubjectsByTeamId from '@/(account)/_server/list-subjects-by-team-id';
import formatTitle from '@/(account)/_utilities/format-title';
import InputForm from '@/(account)/inputs/_components/input-form';
import BackButton from '@/_components/back-button';
import Breadcrumbs from '@/_components/breadcrumbs';
import Header from '@/_components/header';
import listSubjectsByTeamId from '@/_server/list-subjects-by-team-id';
import formatTitle from '@/_utilities/format-title';

export const metadata = {
title: formatTitle(['Inputs', 'Create']),
Expand Down
8 changes: 4 additions & 4 deletions app/(account)/inputs/page.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import Empty from '@/(account)/_components/empty';
import Header from '@/(account)/_components/header';
import listInputs from '@/(account)/_server/list-inputs';
import sortInputs from '@/(account)/_utilities/sort-inputs';
import FilterableInputLinkList from '@/(account)/inputs/_components/filterable-input-link-list';
import Button from '@/_components/button';
import Empty from '@/_components/empty';
import Header from '@/_components/header';
import listInputs from '@/_server/list-inputs';
import sortInputs from '@/_utilities/sort-inputs';
import { InformationCircleIcon } from '@heroicons/react/24/outline';

export const metadata = {
Expand Down
8 changes: 4 additions & 4 deletions app/(account)/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import IconButton from '@/(account)/_components/icon-button';
import SignOutButton from '@/(account)/_components/sign-out-button';
import countNotifications from '@/(account)/_server/count-notifications';
import getCurrentUser from '@/(account)/_server/get-current-user';
import Button from '@/_components/button';
import IconButton from '@/_components/icon-button';
import SignOutButton from '@/_components/sign-out-button';
import countNotifications from '@/_server/count-notifications';
import getCurrentUser from '@/_server/get-current-user';
import { BellIcon } from '@heroicons/react/24/outline';
import { ReactNode } from 'react';

Expand Down
16 changes: 8 additions & 8 deletions app/(account)/notifications/_components/notifications.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
'use client';

import Avatar from '@/(account)/_components/avatar';
import DateTime from '@/(account)/_components/date-time';
import DirtyHtml from '@/(account)/_components/dirty-html';
import Empty from '@/(account)/_components/empty';
import IconButton from '@/(account)/_components/icon-button';
import NotificationTypes from '@/(account)/_constants/enum-notification-types';
import { ListNotificationsData } from '@/(account)/_server/list-notifications';
import firstIfArray from '@/(account)/_utilities/first-if-array';
import ViewEventButton from '@/(account)/notifications/_components/view-event-button';
import Avatar from '@/_components/avatar';
import Button from '@/_components/button';
import DateTime from '@/_components/date-time';
import DirtyHtml from '@/_components/dirty-html';
import Empty from '@/_components/empty';
import IconButton from '@/_components/icon-button';
import NotificationTypes from '@/_constants/enum-notification-types';
import { ListNotificationsData } from '@/_server/list-notifications';
import firstIfArray from '@/_utilities/first-if-array';

import {
BoltIcon,
Expand Down
6 changes: 3 additions & 3 deletions app/(account)/notifications/page.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import Header from '@/(account)/_components/header';
import listNotifications from '@/(account)/_server/list-notifications';
import forceArray from '@/(account)/_utilities/force-array';
import Notifications from '@/(account)/notifications/_components/notifications';
import Header from '@/_components/header';
import createServerActionClient from '@/_server/create-server-action-client';
import listNotifications from '@/_server/list-notifications';
import forceArray from '@/_utilities/force-array';
import { revalidatePath } from 'next/cache';

export const metadata = {
Expand Down
Loading

0 comments on commit a1cb6bc

Please sign in to comment.