mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 20:29:06 +00:00
refactor: rename api-hooks.ts to apiHooks.ts for consistency
- Renamed api-hooks.ts to apiHooks.ts to follow camelCase convention - Updated all 21 import statements across the codebase - Maintains consistency with other non-component files (apiClient.tsx, useAuthReady.ts, etc.) - Follows established naming pattern: PascalCase for components, camelCase for utilities/hooks
This commit is contained in:
BIN
.playwright-mcp/rooms-test-apiHooks.png
Normal file
BIN
.playwright-mcp/rooms-test-apiHooks.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.0 KiB |
@@ -30,7 +30,7 @@ import {
|
|||||||
useTranscriptsSearch,
|
useTranscriptsSearch,
|
||||||
useTranscriptDelete,
|
useTranscriptDelete,
|
||||||
useTranscriptProcess,
|
useTranscriptProcess,
|
||||||
} from "../../lib/api-hooks";
|
} from "../../lib/apiHooks";
|
||||||
import FilterSidebar from "./_components/FilterSidebar";
|
import FilterSidebar from "./_components/FilterSidebar";
|
||||||
import Pagination, {
|
import Pagination, {
|
||||||
FIRST_PAGE,
|
FIRST_PAGE,
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ import {
|
|||||||
useRoomDelete,
|
useRoomDelete,
|
||||||
useZulipStreams,
|
useZulipStreams,
|
||||||
useZulipTopics,
|
useZulipTopics,
|
||||||
} from "../../lib/api-hooks";
|
} from "../../lib/apiHooks";
|
||||||
import { RoomList } from "./_components/RoomList";
|
import { RoomList } from "./_components/RoomList";
|
||||||
import { PaginationPage } from "../browse/_components/Pagination";
|
import { PaginationPage } from "../browse/_components/Pagination";
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { useRoomsList } from "../../lib/api-hooks";
|
import { useRoomsList } from "../../lib/apiHooks";
|
||||||
import type { components } from "../../reflector-api";
|
import type { components } from "../../reflector-api";
|
||||||
|
|
||||||
type Page_Room_ = components["schemas"]["Page_Room_"];
|
type Page_Room_ = components["schemas"]["Page_Room_"];
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import ParticipantList from "./participantList";
|
|||||||
import type { components } from "../../../../reflector-api";
|
import type { components } from "../../../../reflector-api";
|
||||||
type GetTranscriptTopic = components["schemas"]["GetTranscriptTopic"];
|
type GetTranscriptTopic = components["schemas"]["GetTranscriptTopic"];
|
||||||
import { SelectedText, selectedTextIsTimeSlice } from "./types";
|
import { SelectedText, selectedTextIsTimeSlice } from "./types";
|
||||||
import { useTranscriptUpdate } from "../../../../lib/api-hooks";
|
import { useTranscriptUpdate } from "../../../../lib/apiHooks";
|
||||||
import useTranscript from "../../useTranscript";
|
import useTranscript from "../../useTranscript";
|
||||||
import { useError } from "../../../../(errors)/errorContext";
|
import { useError } from "../../../../(errors)/errorContext";
|
||||||
import { useRouter } from "next/navigation";
|
import { useRouter } from "next/navigation";
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import {
|
|||||||
useTranscriptParticipantUpdate,
|
useTranscriptParticipantUpdate,
|
||||||
useTranscriptParticipantCreate,
|
useTranscriptParticipantCreate,
|
||||||
useTranscriptParticipantDelete,
|
useTranscriptParticipantDelete,
|
||||||
} from "../../../../lib/api-hooks";
|
} from "../../../../lib/apiHooks";
|
||||||
import { UseParticipants } from "../../useParticipants";
|
import { UseParticipants } from "../../useParticipants";
|
||||||
import { selectedTextIsSpeaker, selectedTextIsTimeSlice } from "./types";
|
import { selectedTextIsSpeaker, selectedTextIsTimeSlice } from "./types";
|
||||||
import { useError } from "../../../../(errors)/errorContext";
|
import { useError } from "../../../../(errors)/errorContext";
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import "../../../styles/markdown.css";
|
|||||||
import type { components } from "../../../reflector-api";
|
import type { components } from "../../../reflector-api";
|
||||||
type GetTranscript = components["schemas"]["GetTranscript"];
|
type GetTranscript = components["schemas"]["GetTranscript"];
|
||||||
type GetTranscriptTopic = components["schemas"]["GetTranscriptTopic"];
|
type GetTranscriptTopic = components["schemas"]["GetTranscriptTopic"];
|
||||||
import { useTranscriptUpdate } from "../../../lib/api-hooks";
|
import { useTranscriptUpdate } from "../../../lib/apiHooks";
|
||||||
import {
|
import {
|
||||||
Flex,
|
Flex,
|
||||||
Heading,
|
Heading,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import type { components } from "../../reflector-api";
|
import type { components } from "../../reflector-api";
|
||||||
import { useTranscriptCreate } from "../../lib/api-hooks";
|
import { useTranscriptCreate } from "../../lib/apiHooks";
|
||||||
|
|
||||||
type CreateTranscript = components["schemas"]["CreateTranscript"];
|
type CreateTranscript = components["schemas"]["CreateTranscript"];
|
||||||
type GetTranscript = components["schemas"]["GetTranscript"];
|
type GetTranscript = components["schemas"]["GetTranscript"];
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import React, { useState } from "react";
|
import React, { useState } from "react";
|
||||||
import { useTranscriptUploadAudio } from "../../lib/api-hooks";
|
import { useTranscriptUploadAudio } from "../../lib/apiHooks";
|
||||||
import { Button, Spinner } from "@chakra-ui/react";
|
import { Button, Spinner } from "@chakra-ui/react";
|
||||||
import { useError } from "../../(errors)/errorContext";
|
import { useError } from "../../(errors)/errorContext";
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ import {
|
|||||||
createListCollection,
|
createListCollection,
|
||||||
} from "@chakra-ui/react";
|
} from "@chakra-ui/react";
|
||||||
import { LuShare2 } from "react-icons/lu";
|
import { LuShare2 } from "react-icons/lu";
|
||||||
import { useTranscriptUpdate } from "../../lib/api-hooks";
|
import { useTranscriptUpdate } from "../../lib/apiHooks";
|
||||||
import useSessionUser from "../../lib/useSessionUser";
|
import useSessionUser from "../../lib/useSessionUser";
|
||||||
import { CustomSession } from "../../lib/types";
|
import { CustomSession } from "../../lib/types";
|
||||||
import ShareLink from "./shareLink";
|
import ShareLink from "./shareLink";
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ import {
|
|||||||
useZulipStreams,
|
useZulipStreams,
|
||||||
useZulipTopics,
|
useZulipTopics,
|
||||||
useTranscriptPostToZulip,
|
useTranscriptPostToZulip,
|
||||||
} from "../../lib/api-hooks";
|
} from "../../lib/apiHooks";
|
||||||
|
|
||||||
type ShareZulipProps = {
|
type ShareZulipProps = {
|
||||||
transcriptResponse: GetTranscript;
|
transcriptResponse: GetTranscript;
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { useState } from "react";
|
|||||||
import type { components } from "../../reflector-api";
|
import type { components } from "../../reflector-api";
|
||||||
|
|
||||||
type UpdateTranscript = components["schemas"]["UpdateTranscript"];
|
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 { Heading, IconButton, Input, Flex, Spacer } from "@chakra-ui/react";
|
||||||
import { LuPen } from "react-icons/lu";
|
import { LuPen } from "react-icons/lu";
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { useContext, useEffect, useState } from "react";
|
import { useContext, useEffect, useState } from "react";
|
||||||
import { DomainContext } from "../../domainContext";
|
import { DomainContext } from "../../domainContext";
|
||||||
import { useTranscriptGet } from "../../lib/api-hooks";
|
import { useTranscriptGet } from "../../lib/apiHooks";
|
||||||
import { useSession } from "next-auth/react";
|
import { useSession } from "next-auth/react";
|
||||||
|
|
||||||
export type Mp3Response = {
|
export type Mp3Response = {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import type { components } from "../../reflector-api";
|
import type { components } from "../../reflector-api";
|
||||||
type Participant = components["schemas"]["Participant"];
|
type Participant = components["schemas"]["Participant"];
|
||||||
import { useTranscriptParticipants } from "../../lib/api-hooks";
|
import { useTranscriptParticipants } from "../../lib/apiHooks";
|
||||||
|
|
||||||
type ErrorParticipants = {
|
type ErrorParticipants = {
|
||||||
error: Error;
|
error: Error;
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
import type { components } from "../../reflector-api";
|
import type { components } from "../../reflector-api";
|
||||||
type SearchResult = components["schemas"]["SearchResult"];
|
type SearchResult = components["schemas"]["SearchResult"];
|
||||||
type SourceKind = components["schemas"]["SourceKind"];
|
type SourceKind = components["schemas"]["SourceKind"];
|
||||||
import { useTranscriptsSearch } from "../../lib/api-hooks";
|
import { useTranscriptsSearch } from "../../lib/apiHooks";
|
||||||
import {
|
import {
|
||||||
PaginationPage,
|
PaginationPage,
|
||||||
paginationPageTo0Based,
|
paginationPageTo0Based,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import type { components } from "../../reflector-api";
|
import type { components } from "../../reflector-api";
|
||||||
import { useTranscriptTopicsWithWordsPerSpeaker } from "../../lib/api-hooks";
|
import { useTranscriptTopicsWithWordsPerSpeaker } from "../../lib/apiHooks";
|
||||||
|
|
||||||
type GetTranscriptTopicWithWordsPerSpeaker =
|
type GetTranscriptTopicWithWordsPerSpeaker =
|
||||||
components["schemas"]["GetTranscriptTopicWithWordsPerSpeaker"];
|
components["schemas"]["GetTranscriptTopicWithWordsPerSpeaker"];
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { useTranscriptTopics } from "../../lib/api-hooks";
|
import { useTranscriptTopics } from "../../lib/apiHooks";
|
||||||
import type { components } from "../../reflector-api";
|
import type { components } from "../../reflector-api";
|
||||||
|
|
||||||
type GetTranscriptTopic = components["schemas"]["GetTranscriptTopic"];
|
type GetTranscriptTopic = components["schemas"]["GetTranscriptTopic"];
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import type { components } from "../../reflector-api";
|
import type { components } from "../../reflector-api";
|
||||||
import { useTranscriptGet } from "../../lib/api-hooks";
|
import { useTranscriptGet } from "../../lib/apiHooks";
|
||||||
|
|
||||||
type GetTranscript = components["schemas"]["GetTranscript"];
|
type GetTranscript = components["schemas"]["GetTranscript"];
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import type { components } from "../../reflector-api";
|
import type { components } from "../../reflector-api";
|
||||||
import { useTranscriptWaveform } from "../../lib/api-hooks";
|
import { useTranscriptWaveform } from "../../lib/apiHooks";
|
||||||
|
|
||||||
type AudioWaveform = components["schemas"]["AudioWaveform"];
|
type AudioWaveform = components["schemas"]["AudioWaveform"];
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import Peer from "simple-peer";
|
import Peer from "simple-peer";
|
||||||
import { useError } from "../../(errors)/errorContext";
|
import { useError } from "../../(errors)/errorContext";
|
||||||
import { useTranscriptWebRTC } from "../../lib/api-hooks";
|
import { useTranscriptWebRTC } from "../../lib/apiHooks";
|
||||||
import type { components } from "../../reflector-api";
|
import type { components } from "../../reflector-api";
|
||||||
type RtcOffer = components["schemas"]["RtcOffer"];
|
type RtcOffer = components["schemas"]["RtcOffer"];
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ import { useRouter } from "next/navigation";
|
|||||||
import { notFound } from "next/navigation";
|
import { notFound } from "next/navigation";
|
||||||
import useSessionStatus from "../lib/useSessionStatus";
|
import useSessionStatus from "../lib/useSessionStatus";
|
||||||
import { useRecordingConsent } from "../recordingConsentContext";
|
import { useRecordingConsent } from "../recordingConsentContext";
|
||||||
import { useMeetingAudioConsent } from "../lib/api-hooks";
|
import { useMeetingAudioConsent } from "../lib/apiHooks";
|
||||||
import type { components } from "../reflector-api";
|
import type { components } from "../reflector-api";
|
||||||
|
|
||||||
type Meeting = components["schemas"]["Meeting"];
|
type Meeting = components["schemas"]["Meeting"];
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import type { components } from "../reflector-api";
|
|||||||
import { shouldShowError } from "../lib/errorUtils";
|
import { shouldShowError } from "../lib/errorUtils";
|
||||||
|
|
||||||
type Meeting = components["schemas"]["Meeting"];
|
type Meeting = components["schemas"]["Meeting"];
|
||||||
import { useRoomsCreateMeeting } from "../lib/api-hooks";
|
import { useRoomsCreateMeeting } from "../lib/apiHooks";
|
||||||
import { notFound } from "next/navigation";
|
import { notFound } from "next/navigation";
|
||||||
|
|
||||||
type ErrorMeeting = {
|
type ErrorMeeting = {
|
||||||
|
|||||||
Reference in New Issue
Block a user