Skip to content

[AIBE6/2팀/김태규] TODO APP 만들기 완료#59

Open
ktk33762 wants to merge 3 commits intosik2:mainfrom
ktk33762:mission_1_new
Open

[AIBE6/2팀/김태규] TODO APP 만들기 완료#59
ktk33762 wants to merge 3 commits intosik2:mainfrom
ktk33762:mission_1_new

Conversation

@ktk33762
Copy link

Todo List App 구현

작업 내용

React를 활용해 만든 TodoList 애플리케이션입니다.
CSS는 약간의 AI의 도움을 받아 간단하게 만들어봤습니다.

⚠️ 실수로 설정을 잘못해 완성 후 새롭게 branch를 작성해 결과물을 올리는 것이라 commit 내역이 누락되었습니다.


구현 기능

  • ✅ 할일 추가 / 삭제 / 완료 토글
  • ✅ 완료된 할일 중간선 표시
  • ✅ 빈 값 입력 방지 / 중복 할일 등록 방지
  • ✅ 전체 / 완료 / 남은 할일 개수 표시
  • ✅ 모든 할일 완료 시 메시지 표시
  • ✅ localStorage로 새로고침 후에도 데이터 유지

폴더 구조

src/
├── hooks/
│ └── useTodo.js # 상태 및 비즈니스 로직 (localStorage 포함)
├── component/
│ ├── TodoForm.jsx # 할일 입력 폼
│ ├── TodoList.jsx # 할일 목록
│ └── TodoStats.jsx # 통계 (전체/완료/남은 개수)
├── App.jsx # 컴포넌트 조립
├── main.jsx
└── index.css # 전역 스타일


스크린샷

image

@gemini-code-assist
Copy link

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

이 Pull Request는 React를 활용하여 완전한 기능을 갖춘 Todo List 애플리케이션을 구현합니다. 사용자는 할일을 추가, 삭제, 완료 처리할 수 있으며, 애플리케이션은 입력 유효성 검사, 할일 통계 표시, 그리고 로컬 스토리지를 통한 데이터 영속성을 제공합니다. 이 변경사항은 React 컴포넌트 기반의 모듈화된 구조와 효율적인 상태 관리를 통해 사용자 친화적인 할일 관리 경험을 제공하는 것을 목표로 합니다.

Highlights

  • Todo 앱 기능 구현: 할일 추가, 삭제, 완료 토글, 빈 값 및 중복 입력 방지, 통계 표시, 모든 할일 완료 시 메시지, 로컬 스토리지 데이터 유지 기능이 추가되었습니다.
  • 컴포넌트 구조화: TodoForm, TodoList, TodoStats 컴포넌트로 UI를 분리하고, useTodo 훅으로 상태 관리 및 비즈니스 로직을 캡슐화했습니다.
  • 개발 환경 설정: Vite, React, ESLint, Prettier 등 최신 프론트엔드 개발 도구 및 설정을 추가하여 개발 효율성을 높였습니다.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new React Todo List application, including core components for form input, list display, and statistics, along with a custom useTodo hook for state management and local storage persistence. Initial project setup files like .gitignore, README.md, eslint.config.js, index.html, package.json, and various assets and styling are also added. Review comments identify a typo in the import path for the TodoStats component in src/App.jsx and consistent typos in the project name (react_todo_mession1 instead of react_todo_mission1) across index.html and package.json.

@@ -0,0 +1,19 @@
import TodoForm from './component/TodoForm.jsx'
import TodoList from './component/TodoList.jsx'
import TodoStats from './component/TodoState.jsx'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

TodoStats 컴포넌트의 import 경로에 오타가 있습니다. TodoState.jsx 대신 TodoStats.jsx로 수정해야 합니다.

Suggested change
import TodoStats from './component/TodoState.jsx'
import TodoStats from './component/TodoStats.jsx'

<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>react_todo_mession1</title>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

프로젝트 이름에 오타가 있는 것 같습니다. react_todo_mession1 대신 react_todo_mission1이 의도된 이름이라면 수정하는 것이 좋습니다.

Suggested change
<title>react_todo_mession1</title>
<title>react_todo_mission1</title>

@@ -0,0 +1,27 @@
{
"name": "react_todo_mession1",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

프로젝트 이름에 오타가 있는 것 같습니다. react_todo_mession1 대신 react_todo_mission1이 의도된 이름이라면 수정하는 것이 좋습니다.

Suggested change
"name": "react_todo_mession1",
"name": "react_todo_mission1",

}
})

useEffect(() => {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nextId가 바뀌어도 화면을 다시 그릴 필요는 없지 않나요? useEffect에 넣으신 이유가 궁금합니다

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants