diff --git a/.playwright-mcp/rooms-test-apiHooks.png b/.playwright-mcp/rooms-test-apiHooks.png new file mode 100644 index 00000000..443ed6d6 Binary files /dev/null and b/.playwright-mcp/rooms-test-apiHooks.png differ diff --git a/www/app/(app)/browse/page.tsx b/www/app/(app)/browse/page.tsx index b82b537a..e0bafef5 100644 --- a/www/app/(app)/browse/page.tsx +++ b/www/app/(app)/browse/page.tsx @@ -30,7 +30,7 @@ import { useTranscriptsSearch, useTranscriptDelete, useTranscriptProcess, -} from "../../lib/api-hooks"; +} from "../../lib/apiHooks"; import FilterSidebar from "./_components/FilterSidebar"; import Pagination, { FIRST_PAGE, diff --git a/www/app/(app)/rooms/page.tsx b/www/app/(app)/rooms/page.tsx index bb48126a..e31cd915 100644 --- a/www/app/(app)/rooms/page.tsx +++ b/www/app/(app)/rooms/page.tsx @@ -23,7 +23,7 @@ import { useRoomDelete, useZulipStreams, useZulipTopics, -} from "../../lib/api-hooks"; +} from "../../lib/apiHooks"; import { RoomList } from "./_components/RoomList"; import { PaginationPage } from "../browse/_components/Pagination"; diff --git a/www/app/(app)/rooms/useRoomList.tsx b/www/app/(app)/rooms/useRoomList.tsx index a2188e54..fb655b9b 100644 --- a/www/app/(app)/rooms/useRoomList.tsx +++ b/www/app/(app)/rooms/useRoomList.tsx @@ -1,4 +1,4 @@ -import { useRoomsList } from "../../lib/api-hooks"; +import { useRoomsList } from "../../lib/apiHooks"; import type { components } from "../../reflector-api"; type Page_Room_ = components["schemas"]["Page_Room_"]; diff --git a/www/app/(app)/transcripts/[transcriptId]/correct/page.tsx b/www/app/(app)/transcripts/[transcriptId]/correct/page.tsx index 47d86aa1..c885ca6e 100644 --- a/www/app/(app)/transcripts/[transcriptId]/correct/page.tsx +++ b/www/app/(app)/transcripts/[transcriptId]/correct/page.tsx @@ -9,7 +9,7 @@ import ParticipantList from "./participantList"; import type { components } from "../../../../reflector-api"; type GetTranscriptTopic = components["schemas"]["GetTranscriptTopic"]; import { SelectedText, selectedTextIsTimeSlice } from "./types"; -import { useTranscriptUpdate } from "../../../../lib/api-hooks"; +import { useTranscriptUpdate } from "../../../../lib/apiHooks"; import useTranscript from "../../useTranscript"; import { useError } from "../../../../(errors)/errorContext"; import { useRouter } from "next/navigation"; diff --git a/www/app/(app)/transcripts/[transcriptId]/correct/participantList.tsx b/www/app/(app)/transcripts/[transcriptId]/correct/participantList.tsx index f58819c8..7c60ea54 100644 --- a/www/app/(app)/transcripts/[transcriptId]/correct/participantList.tsx +++ b/www/app/(app)/transcripts/[transcriptId]/correct/participantList.tsx @@ -9,7 +9,7 @@ import { useTranscriptParticipantUpdate, useTranscriptParticipantCreate, useTranscriptParticipantDelete, -} from "../../../../lib/api-hooks"; +} from "../../../../lib/apiHooks"; import { UseParticipants } from "../../useParticipants"; import { selectedTextIsSpeaker, selectedTextIsTimeSlice } from "./types"; import { useError } from "../../../../(errors)/errorContext"; diff --git a/www/app/(app)/transcripts/[transcriptId]/finalSummary.tsx b/www/app/(app)/transcripts/[transcriptId]/finalSummary.tsx index 04960945..b1f61d43 100644 --- a/www/app/(app)/transcripts/[transcriptId]/finalSummary.tsx +++ b/www/app/(app)/transcripts/[transcriptId]/finalSummary.tsx @@ -5,7 +5,7 @@ import "../../../styles/markdown.css"; import type { components } from "../../../reflector-api"; type GetTranscript = components["schemas"]["GetTranscript"]; type GetTranscriptTopic = components["schemas"]["GetTranscriptTopic"]; -import { useTranscriptUpdate } from "../../../lib/api-hooks"; +import { useTranscriptUpdate } from "../../../lib/apiHooks"; import { Flex, Heading, diff --git a/www/app/(app)/transcripts/createTranscript.ts b/www/app/(app)/transcripts/createTranscript.ts index 7f21d227..8a235161 100644 --- a/www/app/(app)/transcripts/createTranscript.ts +++ b/www/app/(app)/transcripts/createTranscript.ts @@ -1,5 +1,5 @@ import type { components } from "../../reflector-api"; -import { useTranscriptCreate } from "../../lib/api-hooks"; +import { useTranscriptCreate } from "../../lib/apiHooks"; type CreateTranscript = components["schemas"]["CreateTranscript"]; type GetTranscript = components["schemas"]["GetTranscript"]; diff --git a/www/app/(app)/transcripts/fileUploadButton.tsx b/www/app/(app)/transcripts/fileUploadButton.tsx index 7067a1e6..1f5d72eb 100644 --- a/www/app/(app)/transcripts/fileUploadButton.tsx +++ b/www/app/(app)/transcripts/fileUploadButton.tsx @@ -1,5 +1,5 @@ import React, { useState } from "react"; -import { useTranscriptUploadAudio } from "../../lib/api-hooks"; +import { useTranscriptUploadAudio } from "../../lib/apiHooks"; import { Button, Spinner } from "@chakra-ui/react"; import { useError } from "../../(errors)/errorContext"; diff --git a/www/app/(app)/transcripts/shareAndPrivacy.tsx b/www/app/(app)/transcripts/shareAndPrivacy.tsx index 3dbd71c9..6304f057 100644 --- a/www/app/(app)/transcripts/shareAndPrivacy.tsx +++ b/www/app/(app)/transcripts/shareAndPrivacy.tsx @@ -18,7 +18,7 @@ import { createListCollection, } from "@chakra-ui/react"; import { LuShare2 } from "react-icons/lu"; -import { useTranscriptUpdate } from "../../lib/api-hooks"; +import { useTranscriptUpdate } from "../../lib/apiHooks"; import useSessionUser from "../../lib/useSessionUser"; import { CustomSession } from "../../lib/types"; import ShareLink from "./shareLink"; diff --git a/www/app/(app)/transcripts/shareZulip.tsx b/www/app/(app)/transcripts/shareZulip.tsx index d36041c3..2293bf27 100644 --- a/www/app/(app)/transcripts/shareZulip.tsx +++ b/www/app/(app)/transcripts/shareZulip.tsx @@ -24,7 +24,7 @@ import { useZulipStreams, useZulipTopics, useTranscriptPostToZulip, -} from "../../lib/api-hooks"; +} from "../../lib/apiHooks"; type ShareZulipProps = { transcriptResponse: GetTranscript; diff --git a/www/app/(app)/transcripts/transcriptTitle.tsx b/www/app/(app)/transcripts/transcriptTitle.tsx index 6901196a..72421f48 100644 --- a/www/app/(app)/transcripts/transcriptTitle.tsx +++ b/www/app/(app)/transcripts/transcriptTitle.tsx @@ -2,7 +2,7 @@ import { useState } from "react"; import type { components } from "../../reflector-api"; type UpdateTranscript = components["schemas"]["UpdateTranscript"]; -import { useTranscriptUpdate } from "../../lib/api-hooks"; +import { useTranscriptUpdate } from "../../lib/apiHooks"; import { Heading, IconButton, Input, Flex, Spacer } from "@chakra-ui/react"; import { LuPen } from "react-icons/lu"; diff --git a/www/app/(app)/transcripts/useMp3.ts b/www/app/(app)/transcripts/useMp3.ts index bf35fa6e..eccdd162 100644 --- a/www/app/(app)/transcripts/useMp3.ts +++ b/www/app/(app)/transcripts/useMp3.ts @@ -1,6 +1,6 @@ import { useContext, useEffect, useState } from "react"; import { DomainContext } from "../../domainContext"; -import { useTranscriptGet } from "../../lib/api-hooks"; +import { useTranscriptGet } from "../../lib/apiHooks"; import { useSession } from "next-auth/react"; export type Mp3Response = { diff --git a/www/app/(app)/transcripts/useParticipants.ts b/www/app/(app)/transcripts/useParticipants.ts index 875d9fcc..f45970c4 100644 --- a/www/app/(app)/transcripts/useParticipants.ts +++ b/www/app/(app)/transcripts/useParticipants.ts @@ -1,6 +1,6 @@ import type { components } from "../../reflector-api"; type Participant = components["schemas"]["Participant"]; -import { useTranscriptParticipants } from "../../lib/api-hooks"; +import { useTranscriptParticipants } from "../../lib/apiHooks"; type ErrorParticipants = { error: Error; diff --git a/www/app/(app)/transcripts/useSearchTranscripts.ts b/www/app/(app)/transcripts/useSearchTranscripts.ts index dd1eb3ae..5b5d6c1e 100644 --- a/www/app/(app)/transcripts/useSearchTranscripts.ts +++ b/www/app/(app)/transcripts/useSearchTranscripts.ts @@ -2,7 +2,7 @@ import type { components } from "../../reflector-api"; type SearchResult = components["schemas"]["SearchResult"]; type SourceKind = components["schemas"]["SourceKind"]; -import { useTranscriptsSearch } from "../../lib/api-hooks"; +import { useTranscriptsSearch } from "../../lib/apiHooks"; import { PaginationPage, paginationPageTo0Based, diff --git a/www/app/(app)/transcripts/useTopicWithWords.ts b/www/app/(app)/transcripts/useTopicWithWords.ts index e3793d22..d5177f6f 100644 --- a/www/app/(app)/transcripts/useTopicWithWords.ts +++ b/www/app/(app)/transcripts/useTopicWithWords.ts @@ -1,5 +1,5 @@ import type { components } from "../../reflector-api"; -import { useTranscriptTopicsWithWordsPerSpeaker } from "../../lib/api-hooks"; +import { useTranscriptTopicsWithWordsPerSpeaker } from "../../lib/apiHooks"; type GetTranscriptTopicWithWordsPerSpeaker = components["schemas"]["GetTranscriptTopicWithWordsPerSpeaker"]; diff --git a/www/app/(app)/transcripts/useTopics.ts b/www/app/(app)/transcripts/useTopics.ts index 8d490a5e..7f337582 100644 --- a/www/app/(app)/transcripts/useTopics.ts +++ b/www/app/(app)/transcripts/useTopics.ts @@ -1,4 +1,4 @@ -import { useTranscriptTopics } from "../../lib/api-hooks"; +import { useTranscriptTopics } from "../../lib/apiHooks"; import type { components } from "../../reflector-api"; type GetTranscriptTopic = components["schemas"]["GetTranscriptTopic"]; diff --git a/www/app/(app)/transcripts/useTranscript.ts b/www/app/(app)/transcripts/useTranscript.ts index 9c9a25fd..9d4a18e1 100644 --- a/www/app/(app)/transcripts/useTranscript.ts +++ b/www/app/(app)/transcripts/useTranscript.ts @@ -1,5 +1,5 @@ import type { components } from "../../reflector-api"; -import { useTranscriptGet } from "../../lib/api-hooks"; +import { useTranscriptGet } from "../../lib/apiHooks"; type GetTranscript = components["schemas"]["GetTranscript"]; diff --git a/www/app/(app)/transcripts/useWaveform.ts b/www/app/(app)/transcripts/useWaveform.ts index 800abca4..8bb8c4c9 100644 --- a/www/app/(app)/transcripts/useWaveform.ts +++ b/www/app/(app)/transcripts/useWaveform.ts @@ -1,5 +1,5 @@ import type { components } from "../../reflector-api"; -import { useTranscriptWaveform } from "../../lib/api-hooks"; +import { useTranscriptWaveform } from "../../lib/apiHooks"; type AudioWaveform = components["schemas"]["AudioWaveform"]; diff --git a/www/app/(app)/transcripts/useWebRTC.ts b/www/app/(app)/transcripts/useWebRTC.ts index 48972f41..077f26c0 100644 --- a/www/app/(app)/transcripts/useWebRTC.ts +++ b/www/app/(app)/transcripts/useWebRTC.ts @@ -1,7 +1,7 @@ import { useEffect, useState } from "react"; import Peer from "simple-peer"; import { useError } from "../../(errors)/errorContext"; -import { useTranscriptWebRTC } from "../../lib/api-hooks"; +import { useTranscriptWebRTC } from "../../lib/apiHooks"; import type { components } from "../../reflector-api"; type RtcOffer = components["schemas"]["RtcOffer"]; diff --git a/www/app/[roomName]/page.tsx b/www/app/[roomName]/page.tsx index 51098a33..3b51f4d5 100644 --- a/www/app/[roomName]/page.tsx +++ b/www/app/[roomName]/page.tsx @@ -23,7 +23,7 @@ import { useRouter } from "next/navigation"; import { notFound } from "next/navigation"; import useSessionStatus from "../lib/useSessionStatus"; import { useRecordingConsent } from "../recordingConsentContext"; -import { useMeetingAudioConsent } from "../lib/api-hooks"; +import { useMeetingAudioConsent } from "../lib/apiHooks"; import type { components } from "../reflector-api"; type Meeting = components["schemas"]["Meeting"]; diff --git a/www/app/[roomName]/useRoomMeeting.tsx b/www/app/[roomName]/useRoomMeeting.tsx index a3532a93..93491a05 100644 --- a/www/app/[roomName]/useRoomMeeting.tsx +++ b/www/app/[roomName]/useRoomMeeting.tsx @@ -4,7 +4,7 @@ import type { components } from "../reflector-api"; import { shouldShowError } from "../lib/errorUtils"; type Meeting = components["schemas"]["Meeting"]; -import { useRoomsCreateMeeting } from "../lib/api-hooks"; +import { useRoomsCreateMeeting } from "../lib/apiHooks"; import { notFound } from "next/navigation"; type ErrorMeeting = { diff --git a/www/app/lib/api-hooks.ts b/www/app/lib/apiHooks.ts similarity index 100% rename from www/app/lib/api-hooks.ts rename to www/app/lib/apiHooks.ts