Skip to content

Commit bfce2ef

Browse files
refactor: clean up unused barrel exports and standardize httpClient imports
1 parent 3216286 commit bfce2ef

5 files changed

Lines changed: 3 additions & 5 deletions

File tree

content-gen/src/app/frontend/src/api/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import type {
1010
AppConfig,
1111
} from '../types';
1212
import httpClient from './httpClient';
13+
export { default as httpClient } from './httpClient';
1314
import { parseSSEStream, getGenerationStage } from '../utils';
1415

1516
/**

content-gen/src/app/frontend/src/hooks/useConversationActions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { useCallback } from 'react';
22

33
import type { ChatMessage, Product, CreativeBrief } from '../types';
44
import { createMessage, buildGeneratedContent } from '../utils';
5-
import httpClient from '../api/httpClient';
5+
import { httpClient } from '../api';
66
import {
77
useAppDispatch,
88
useAppSelector,

content-gen/src/app/frontend/src/store/chatHistorySlice.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Granular selectors for each piece of history state.
55
*/
66
import { createSlice, createAsyncThunk, type PayloadAction } from '@reduxjs/toolkit';
7-
import httpClient from '../api/httpClient';
7+
import { httpClient } from '../api';
88

99
export interface ConversationSummary {
1010
id: string;

content-gen/src/app/frontend/src/store/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export {
1515
toggleChatHistory,
1616
setShowChatHistory,
1717
GenerationStatus,
18-
GENERATION_STATUS_LABELS,
1918
} from './appSlice';
2019

2120
// Chat slice – actions
@@ -55,7 +54,6 @@ export {
5554
selectUserId,
5655
selectUserName,
5756
selectIsLoading,
58-
selectGenerationStatus,
5957
selectGenerationStatusLabel,
6058
selectImageGenerationEnabled,
6159
selectShowChatHistory,

content-gen/src/app/frontend/src/utils/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export { parseSSEStream } from './sseParser';
1515

1616
// Generation progress stages
1717
export { getGenerationStage } from './generationStages';
18-
export type { GenerationStage } from './generationStages';
1918

2019
// Brief-field metadata
2120
export { BRIEF_FIELD_LABELS, BRIEF_DISPLAY_ORDER, BRIEF_FIELD_KEYS } from './briefFields';

0 commit comments

Comments
 (0)