AI 앱 빌더용 'Taskline' 웹앱 개발 명세서 1. 프로젝트 개요 애플리케이션 이름… · The Chat ArchiveAI 앱 빌더용 'Taskline' 웹앱 개발 명세서 1. 프로젝트 개요 애플리케이션 이름: Taskline 핵심 목적: Baserow 데이터베이스를 백엔드로…
Download ▾
From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with
claude-3-5-sonnet-20241022’s answer.AI 앱 빌더용 'Taskline' 웹앱 개발 명세서
- 프로젝트 개요
애플리케이션 이름: Taskline
핵심 목적: Baserow 데이터베이스를 백엔드로 사용하여, 직관적인 수평 타임라인 UI를 통해 사용자의 할 일(Task)과 세부 행동(Action)을 시각적으로 관리하는 웹 애플리케이션 구축.
- 기술 스택
프론트엔드: React
백엔드: Node.js (Express 프레임워크 사용)
역할: 프론트엔드와 Baserow 사이에서 API를 중계하는 BFF(Backend for Frontend) 역할. Baserow API 키를 안전하게 서버에 보관하고, 프론트엔드에 필요한 데이터만 전달.
상태 관리: 가볍고 현대적인 상태 관리 라이브러리 (예: Zustand)
코드 관리: 기능별로 코드를 작게 나누는 모듈식 아키텍처 적용.
- 데이터 모델 (Baserow 테이블 기준)
Task 테이블: 상위 레벨의 목표 또는 하루 종일 걸리는 과업.
필수 필드: task (이름), project, status, start date, note
Action 테이블: Task에 종속되는 시간 단위의 구체적인 행동.
필수 필드: action (이름), Task (Task 테이블과의 관계형 필드), status, start date, Due Date, note
관계: Task와 Action은 1:N 관계. status 필드는 서로 독립적으로 작동.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
- 핵심 기능 및 뷰(View) 명세
공통: 사용자는 2가지 뷰를 전환하며 데이터를 조회하고 편집할 수 있어야 함.
Baserow와 유사한 표준 그리드/표 형식의 UI.
Task와 Action의 모든 데이터를 표시.
뷰 2: 타임라인 뷰 (Timeline View)
레이아웃: 상단 '종일(All-Day)' 영역과 하단 '시간대별' 그리드로 분리된 구조.
스크롤: 주(Week) 단위로 페이지가 나뉘지 않음. 모든 날짜가 좌우로 끊김 없이 연결된 연속적인 수평 타임라인. 사용자는 마우스 휠 또는 트랙패드로 자유롭게 과거와 미래를 탐색.
상단 '종일' 영역: Task 테이블의 항목들이 start date에 맞춰 배치됨.
하단 '시간대별' 영역: Action 테이블의 항목들이 start date와 Due Date에 맞춰 시간대별 그리드에 블록 형태로 배치됨.
- 핵심 상호작용 (User Interaction)
드래그 앤 드롭 (Drag & Drop):
Task 이동: '종일' 영역에서 Task 블록을 다른 날짜로 드래그하면 해당 Task의 start date 필드가 업데이트되어야 함.
Action 이동: '시간대별' 영역에서 Action 블록을 다른 시간/날짜로 드래그하면 start date와 Due Date 필드가 함께 업데이트되어야 함.
'시간대별' 영역에서 Action 블록의 상하 경계를 드래그하여 길이를 조절하면, Due Date가 업데이트되어 소요 시간을 변경할 수 있어야 함.
모든 뷰에서 Task 또는 Action 항목을 클릭하면, 해당 항목의 모든 필드(note, status 등)를 수정할 수 있는 UI(모달, 사이드바 등)가 제공되어야 함.
AssistantTaskline 개발 명세서 - 상세 기술서
1. 프로젝트 구조
taskline/
├── frontend/
│ ├── src/
│ │ ├── components/
│ │ │ ├── common/
│ │ │ ├── table/
│ │ │ └── timeline/
│ │ ├── stores/
│ │ ├── services/
│ │ ├── utils/
│ │ └── styles/
│ ├── package.json
│ └── vite.config.js
├── backend/
│ ├── src/
│ │ ├── routes/
│ │ ├── services/
│ │ ├── middleware/
│ │ └── config/
│ ├── .env
│ └── package.json
└── docker-compose.yml
2. API 명세서
Backend Endpoints
Tasks
GET /api/tasks - 모든 Task 조회
POST /api/tasks - 새 Task 생성
PUT /api/tasks/:id - Task 수정
DELETE /api/tasks/:id - Task 삭제
Actions
GET /api/actions - 모든 Action 조회
POST /api/actions - 새 Action 생성
PUT /api/actions/:id - Action 수정
DELETE /api/actions/:id - Action 삭제
Request/Response 형식
Task
{
"id": 1,
"task": "프로젝트 기획",
"project": "Taskline 개발",
"status": "진행중",
"start_date": "2024-01-15",
"note": "초기 기획 단계"
}
Action
{
"id": 1,
"action": "UI 디자인 검토",
"task": 1,
"status": "완료",
"start_date": "2024-01-15T09:00:00Z",
"due_date": "2024-01-15T11:00:00Z",
"note": "피그마 파일 확인"
}
3. 컴포넌트 설계
Timeline View 구조
interface TimelineViewProps {
tasks: Task[];
actions: Action[];
onTaskUpdate: (task: Task) => void;
onActionUpdate: (action: Action) => void;
}
const TimelineView: React.FC<TimelineViewProps> = ({
tasks,
actions,
onTaskUpdate,
onActionUpdate
}) => {
return (
<div className="timeline-container">
<AllDaySection
tasks={tasks}
onTaskDrop={onTaskUpdate}
/>
<TimeGridSection
actions={actions}
onActionDrop={onActionUpdate}
onActionResize={onActionUpdate}
/>
</div>
);
};
드래그 앤 드롭 구현
// react-dnd 사용
const DraggableTask: React.FC<{ task: Task }> = ({ task }) => {
const [{ isDragging }, drag] = useDrag({
type: 'TASK',
item: { id: task.id, startDate: task.start_date },
collect: (monitor) => ({
isDragging: monitor.isDragging(),
}),
});
return (
<div ref={drag} className={`task-block ${isDragging ? 'dragging' : ''}`}>
{task.task}
</div>
);
};
리사이즈 핸들러
const ResizableAction: React.FC<{ action: Action }> = ({ action }) => {
const [height, setHeight] = useState(calculateHeight(action));
const handleResize = (newHeight: number) => {
const newDuration = heightToDuration(newHeight);
const newDueDate = addDuration(action.start_date, newDuration);
onActionUpdate({
...action,
due_date: newDueDate
});
};
return (
<div className="action-block" style={{ height }}>
<ResizeHandle onResize={handleResize} />
{action.action}
</div>
);
};
4. 상태 관리 (Zustand)
interface TaskStore {
tasks: Task[];
actions: Action[];
loading: boolean;
error: string | null;
// Actions
fetchData: () => Promise<void>;
updateTask: (task: Task) => Promise<void>;
updateAction: (action: Action) => Promise<void>;
}
const useTaskStore = create<TaskStore>((set, get) => ({
tasks: [],
actions: [],
loading: false,
error: null,
fetchData: async () => {
set({ loading: true });
try {
const [tasks, actions] = await Promise.all([
taskService.getTasks(),
actionService.getActions()
]);
set({ tasks, actions, loading: false });
} catch (error) {
set({ error: error.message, loading: false });
}
},
updateTask: async (task) => {
const updated = await taskService.updateTask(task);
set(state => ({
tasks: state.tasks.map(t => t.id === updated.id ? updated : t)
}));
},
updateAction: async (action) => {
const updated = await actionService.updateAction(action);
set(state => ({
actions: state.actions.map(a => a.id === updated.id ? updated : a)
}));
}
}));
5. 타임라인 뷰 구현 상세
가상 스크롤링
const VirtualTimeline = () => {
const containerRef = useRef<HTMLDivElement>(null);
const [visibleRange, setVisibleRange] = useState({ start: 0, end: 24 });
useEffect(() => {
const handleScroll = () => {
const scrollLeft = containerRef.current?.scrollLeft || 0;
const dayWidth = 200; // px
const startDay = Math.floor(scrollLeft / dayWidth);
const endDay = startDay + Math.ceil(window.innerWidth / dayWidth);
setVisibleRange({ start: startDay, end: endDay });
};
containerRef.current?.addEventListener('scroll', handleScroll);
}, []);
return (
<div ref={containerRef} className="timeline-scroll">
{days.slice(visibleRange.start, visibleRange.end).map(day => (
<DayColumn key={day.date} day={day} />
))}
</div>
);
};
시간대별 그리드
const TimeGrid = () => {
const hours = Array.from({ length: 24 }, (_, i) => i);
return (
<div className="time-grid">
{hours.map(hour => (
<div key={hour} className="hour-row">
<div className="hour-label">{hour}:00</div>
<div className="hour-grid" />
</div>
))}
</div>
);
};
6. 테이블 뷰 구현
const TableView = () => {
const [sortConfig, setSortConfig] = useState<SortConfig>(null);
const [filterConfig, setFilterConfig] = useState<FilterConfig>({});
const sortedData = useMemo(() => {
let data = [...tasks, ...actions];
// 필터링
if (filterConfig.status) {
data = data.filter(item => item.status === filterConfig.status);
}
// 정렬
if (sortConfig) {
data.sort((a, b) => {
const aVal = a[sortConfig.key];
const bVal = b[sortConfig.key];
return sortConfig.direction === 'asc'
? aVal.localeCompare(bVal)
: bVal.localeCompare(aVal);
});
}
return data;
}, [tasks, actions, sortConfig, filterConfig]);
return (
<table>
<thead>
<tr>
<SortableHeader
column="task"
onSort={setSortConfig}
currentSort={sortConfig}
/>
{/* 다른 컬럼들 */}
</tr>
</thead>
<tbody>
{sortedData.map(item => (
<TableRow
key={item.id}
item={item}
onEdit={handleEdit}
/>
))}
</tbody>
</table>
);
};
7. 인라인 편집 모달
const EditModal = ({ item, onClose, onSave }) => {
const [formData, setFormData] = useState(item);
return (
<Modal onClose={onClose}>
<form onSubmit={(e) => {
e.preventDefault();
onSave(formData);
}}>
<Input
label="이름"
value={formData.name}
onChange={(e) => setFormData({ ...formData, name: e.target.value })}
/>
<Select
label="상태"
value={formData.status}
options={['진행전', '진행중', '완료']}
onChange={(value) => setFormData({ ...formData, status: value })}
/>
<DatePicker
label="시작일"
value={formData.start_date}
onChange={(date) => setFormData({ ...formData, start_date: date })}
/>
<TextArea
label="노트"
value={formData.note}
onChange={(e) => setFormData({ ...formData, note: e.target.value })}
/>
<Button type="submit">저장</Button>
</form>
</Modal>
);
};
8. 성능 최적화
React.memo 적용
const TaskBlock = React.memo(({ task, onUpdate }) => {
// Task 블록 렌더링
}, (prevProps, nextProps) => {
return prevProps.task.id === nextProps.task.id &&
prevProps.task.start_date === nextProps.task.start_date;
});
데이터 페칭 최적화
const useDebouncedUpdate = () => {
const updateQueue = useRef([]);
const timeoutRef = useRef(null);
const debouncedUpdate = (updateFn) => {
updateQueue.current.push(updateFn);
if (timeoutRef.current) {
clearTimeout(timeoutRef.current);
}
timeoutRef.current = setTimeout(() => {
const updates = updateQueue.current.splice(0);
Promise.all(updates.map(fn => fn()));
}, 300);
};
return debouncedUpdate;
};
9. 배포 설정
Docker Compose
version: '3.8'
services:
frontend:
build: ./frontend
ports:
- "3000:3000"
environment:
- REACT_APP_API_URL=http://localhost:5000
backend:
build: ./backend
ports:
- "5000:5000"
environment:
- BASEROW_API_KEY=${BASEROW_API_KEY}
- BASEROW_URL=${BASEROW_URL}
환경 변수
# .env
BASEROW_API_KEY=your_api_key_here
BASEROW_URL=https://api.baserow.io
PORT=5000