Skip to content

Commit b6e16fa

Browse files
committed
kanban working
1 parent ee69d98 commit b6e16fa

11 files changed

Lines changed: 985 additions & 631 deletions

File tree

src/components/apis/axiosInstance.ts

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

33
export const API_BASE_URL = "https://flowboard-backend.azurewebsites.net/";
44
// export const API_BASE_URL = "https://animated-space-fiesta-w6wpx564wqxh5vwj-5158.app.github.dev//";
5-
// export const API_BASE_URL = "http://localhost:5158/";
5+
// export const API_BASE_URL = "http://localhost:5158/";
66

77
const axiosInstance = axios.create({
88
baseURL: API_BASE_URL,

src/components/apis/tasks.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ export interface CreateTaskData {
1616
}
1717

1818
export interface TaskResponse {
19-
_id: string;
19+
id: string;
20+
_id?: string; // Keep for backward compatibility
2021
projectId?: string;
2122
category?: string; // API uses 'category' instead of 'categoryId'
2223
categoryId?: string; // Keep for backward compatibility
@@ -168,9 +169,13 @@ export const tasksApi = {
168169
* Backend path: PATCH /api/tasks/{taskId}/category
169170
*/
170171
patchTaskCategory: async (taskId: string, categoryId: string): Promise<{ message: string; categoryId: string; categoryName: string }> => {
172+
const payload = {
173+
categoryId: categoryId,
174+
category: categoryId, // Send both variants for backend compatibility
175+
};
171176
const response = await axiosInstance.patch<{ message: string; categoryId: string; categoryName: string }>(
172177
`/api/tasks/${taskId}/category`,
173-
{ categoryId }
178+
payload
174179
);
175180
return response.data;
176181
},

src/components/apis/users.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import axiosInstance from './axiosInstance';
22
import type { User } from './auth';
33

4+
export type { User };
45
export type UserUpdateRequest = Partial<Omit<User, 'id' | 'createdAt'>> & {
56
password?: string;
67
};

src/components/dialogs/CreateTaskDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export default function CreateTaskDialog({
163163
onKeyDown={handleTitleKeyDown}
164164
ref={inputRef}
165165
size="large"
166-
style={{ fontWeight: 600, fontSize: 22, padding: 0, height: 40 }}
166+
style={{ fontWeight: 600, fontSize: 22, padding: 0, height: 40, width: '100%' }}
167167
/>
168168
) : (
169169
<DialogTitle

src/components/dialogs/EditTaskDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ export default function EditTaskDialog({
229229
onKeyDown={handleTitleKeyDown}
230230
ref={inputRef}
231231
size="large"
232-
style={{ fontWeight: 600, fontSize: 22, padding: 0, height: 40 }}
232+
style={{ fontWeight: 600, fontSize: 22, padding: 0, height: 40, width: '100%' }}
233233
/>
234234
) : (
235235
<DialogTitle

0 commit comments

Comments
 (0)