Skip to content

Conversation

@jeonghanyun
Copy link
Contributor

@jeonghanyun jeonghanyun commented Aug 2, 2025

๐Ÿš€ Extra Columns Support Feature

์ด PR์€ MaTeMaTuK/gantt-task-react PR #274์˜ "Add extra column support" ๊ธฐ๋Šฅ์„ ํ•œ๊ตญ์–ด ๋ฒ„์ „์— ์ ์šฉํ•œ ๊ฒƒ์ž…๋‹ˆ๋‹ค.

โœจ ์ฃผ์š” ๊ธฐ๋Šฅ

๐Ÿ“Š Extra Columns

  • ExtraColumn ์ธํ„ฐํŽ˜์ด์Šค๋กœ ์‚ฌ์šฉ์ž ์ •์˜ ์ปฌ๋Ÿผ ์ง€์›
  • render ํ•จ์ˆ˜๋ฅผ ํ†ตํ•œ ์ปค์Šคํ…€ ์ปฌ๋Ÿผ ์ฝ˜ํ…์ธ  ๋ Œ๋”๋ง
  • key-value ํ˜•ํƒœ๋กœ extraColumns ๋ฐ์ดํ„ฐ ์ €์žฅ

๐ŸŽจ ์ปฌ๋Ÿผ ๋„ˆ๋น„ ์„ค์ •

  • nameColumnWidth: ์ด๋ฆ„ ์ปฌ๋Ÿผ ๋„ˆ๋น„ ์„ค์ •
  • fromColumnWidth: ์‹œ์ž‘์ผ ์ปฌ๋Ÿผ ๋„ˆ๋น„ ์„ค์ •
  • toColumnWidth: ์ข…๋ฃŒ์ผ ์ปฌ๋Ÿผ ๋„ˆ๋น„ ์„ค์ •

๐Ÿ“… ๋‚ ์งœ ํ˜•์‹ ์„ ํƒ

  • DateFormat ํƒ€์ž…: "locale" | "iso8601"
  • locale: ๋กœ์ผ€์ผ๋ณ„ ๋‚ ์งœ ํ˜•์‹ (์˜ˆ: "Fri, June 15, 2025")
  • iso8601: ISO 8601 ํ˜•์‹ (์˜ˆ: "2025-06-15")

๐Ÿ”ง ์‚ฌ์šฉ ์˜ˆ์ œ

import { Gantt, Task, ExtraColumn, DateFormat } from 'gantt-task-react-19-korean';

const extraColumns: ExtraColumn[] = [
  {
    key: "status",
    title: "Status",
    width: "120px",
    render: (task) => (
      <span className={`status-${task.extraColumns?.status}`}>
        {task.extraColumns?.status}
      </span>
    )
  },
  {
    key: "assignee",
    title: "Assignee",
    width: "140px"
  }
];

<Gantt 
  tasks={tasks}
  extraColumns={extraColumns}
  nameColumnWidth="200px"
  fromColumnWidth="130px"
  toColumnWidth="130px"
  dateFormat="iso8601"
/>

๐Ÿ“ ๋ณ€๊ฒฝ๋œ ํŒŒ์ผ๋“ค

Core Files

  • src/types/public-types.ts: ExtraColumn, DateFormat ํƒ€์ž… ์ถ”๊ฐ€
  • src/components/gantt/gantt.tsx: ์ƒˆ๋กœ์šด props ์ง€์›
  • src/components/task-list/: ํ—ค๋” ๋ฐ ํ…Œ์ด๋ธ” ์ปฌ๋Ÿผ ์ง€์›

โœ… ํ…Œ์ŠคํŠธ

  • ๋นŒ๋“œ ์„ฑ๊ณต
  • TypeScript ํƒ€์ž… ๊ฒ€์ฆ
  • npm ํŒจํ‚ค์ง€ ๋ฐฐํฌ ์™„๋ฃŒ

๐Ÿ“ฆ npm ํŒจํ‚ค์ง€

npm install gantt-task-react-19-korean

์ด ๊ธฐ๋Šฅ์œผ๋กœ Gantt Chart์—์„œ ๋”์šฑ ํ’๋ถ€ํ•œ ์ •๋ณด๋ฅผ ํ‘œ์‹œํ•  ์ˆ˜ ์žˆ๊ฒŒ ๋˜์—ˆ์Šต๋‹ˆ๋‹ค! ๐ŸŽ‰

Summary by CodeRabbit

  • ์ƒˆ๋กœ์šด ๊ธฐ๋Šฅ

    • ๊ฐ„ํŠธ ์ฐจํŠธ ์ž‘์—… ๋ชฉ๋ก์— ์‚ฌ์šฉ์ž ์ •์˜ ์ถ”๊ฐ€ ์ปฌ๋Ÿผ์„ ์ง€์›ํ•ฉ๋‹ˆ๋‹ค.
    • ์ž‘์—… ๋ชฉ๋ก์˜ "์ด๋ฆ„", "์‹œ์ž‘์ผ", "์ข…๋ฃŒ์ผ" ์ปฌ๋Ÿผ์˜ ๋„ˆ๋น„๋ฅผ ๊ฐœ๋ณ„์ ์œผ๋กœ ์„ค์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
    • ๋‚ ์งœ ํ‘œ์‹œ ํ˜•์‹์„ "locale" ๋˜๋Š” "iso8601"๋กœ ์„ ํƒํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
    • ์ถ”๊ฐ€ ์ปฌ๋Ÿผ์˜ ์ปค์Šคํ…€ ๋ Œ๋”๋ง ๋ฐ ๋ฐ์ดํ„ฐ ๋ฐ”์ธ๋”ฉ์ด ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค.
  • ๋ฌธ์„œํ™”

    • README์— ์ถ”๊ฐ€ ์ปฌ๋Ÿผ ์‚ฌ์šฉ๋ฒ•, ์ปฌ๋Ÿผ ๋„ˆ๋น„ ๋ฐ ๋‚ ์งœ ํ˜•์‹ ์„ค์ • ๋ฐฉ๋ฒ•, ์˜ˆ์ œ ์ฝ”๋“œ๊ฐ€ ์ถ”๊ฐ€๋˜์—ˆ์Šต๋‹ˆ๋‹ค.
  • ์Šคํƒ€์ผ

    • ์ƒํƒœ ๋ฐ ์šฐ์„ ์ˆœ์œ„ ๋ฑƒ์ง€์— ๋Œ€ํ•œ ์ƒˆ๋กœ์šด ์Šคํƒ€์ผ์ด ์ถ”๊ฐ€๋˜์—ˆ์Šต๋‹ˆ๋‹ค.
  • ์˜ˆ์ œ

    • ์ถ”๊ฐ€ ์ปฌ๋Ÿผ ๊ธฐ๋Šฅ์„ ์‹œ์—ฐํ•˜๋Š” ์ƒˆ๋กœ์šด ์˜ˆ์ œ ์ปดํฌ๋„ŒํŠธ์™€ ํ—ฌํผ, ์Šคํƒ€์ผ์ด ์ถ”๊ฐ€๋˜์—ˆ์Šต๋‹ˆ๋‹ค.
  • ํŒจํ‚ค์ง€

    • ํŒจํ‚ค์ง€ ์ด๋ฆ„, ๋ฒ„์ „, ์„ค๋ช…, ์ €์ž, ํ‚ค์›Œ๋“œ, ์ €์žฅ์†Œ ์ •๋ณด๊ฐ€ ํ•œ๊ตญ์–ด ๋ฒ„์ „์œผ๋กœ ๋ณ€๊ฒฝ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.
  • ํƒ€์ž…

    • ๊ณต๊ฐœ ํƒ€์ž…์— ExtraColumn, DateFormat์ด ์ถ”๊ฐ€๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

โ€ฆate formats

- Add ExtraColumn interface for custom columns with optional render functions
- Add DateFormat type with 'locale' and 'iso8601' options for date formatting
- Add nameColumnWidth, fromColumnWidth, toColumnWidth props for configurable column widths
- Add extraColumns prop to Task interface for storing additional column data
- Update TaskListHeader and TaskListTable components to support extra columns
- Add date format selector in example with ISO 8601 (YYYY-MM-DD) support
- Export new DateFormat and ExtraColumn types from main index
- Add example demonstrating extra columns with status, assignee, priority, and budget
- Update README with comprehensive documentation for new features

BREAKING CHANGE: Task interface extended with optional extraColumns field
@coderabbitai
Copy link

coderabbitai bot commented Aug 2, 2025

Caution

Review failed

The pull request is closed.

๐Ÿ“ Walkthrough

Walkthrough

์ด๋ฒˆ ๋ณ€๊ฒฝ์€ Gantt ์ฐจํŠธ์˜ ์ž‘์—… ๋ชฉ๋ก(Task List)์— ์‚ฌ์šฉ์ž ์ •์˜ ์ปฌ๋Ÿผ(Extra Columns)์„ ์ถ”๊ฐ€ํ•˜๊ณ , ๊ธฐ๋ณธ ์ปฌ๋Ÿผ์˜ ๋„ˆ๋น„ ๋ฐ ๋‚ ์งœ ํฌ๋งท์„ ์ปค์Šคํ„ฐ๋งˆ์ด์ฆˆํ•  ์ˆ˜ ์žˆ๋„๋ก ๊ธฐ๋Šฅ์„ ํ™•์žฅํ•ฉ๋‹ˆ๋‹ค. ๊ด€๋ จ ํƒ€์ž…, ์ปดํฌ๋„ŒํŠธ, ์Šคํƒ€์ผ, ์˜ˆ์ œ, ๋ฌธ์„œ๊ฐ€ ์ถ”๊ฐ€ ๋ฐ ์ˆ˜์ •๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

Changes

Cohort / File(s) Change Summary
๋ฌธ์„œ ๋ฐ ์˜ˆ์ œ ํ™•์žฅ
README.md, example/src/App.tsx, example/src/ExtraColumnsApp.tsx, example/src/extra-columns-helper.tsx
Extra Columns ์‚ฌ์šฉ๋ฒ• ๋ฌธ์„œ ์ถ”๊ฐ€, ์˜ˆ์ œ ์•ฑ/ํ—ฌํผ/์Šคํƒ€์ผ ๋ฐ ์ปดํฌ๋„ŒํŠธ ์ถ”๊ฐ€, ์‹ค์ œ Extra Columns ๊ธฐ๋Šฅ ์‹œ์—ฐ
์Šคํƒ€์ผ ์ถ”๊ฐ€
example/src/index.css
์ƒํƒœ/์šฐ์„ ์ˆœ์œ„ ๋ฑƒ์ง€์— ๋Œ€ํ•œ CSS ํด๋ž˜์Šค ์ถ”๊ฐ€
ํŒจํ‚ค์ง€ ๋ฉ”ํƒ€๋ฐ์ดํ„ฐ
package.json
ํŒจํ‚ค์ง€๋ช…, ๋ฒ„์ „, ์„ค๋ช…, ์ €์ž, ํ™ˆํŽ˜์ด์ง€, ํ‚ค์›Œ๋“œ ๋“ฑ ๋ฉ”ํƒ€๋ฐ์ดํ„ฐ ํ•œ๊ธ€ํ™” ๋ฐ ๋ณ€๊ฒฝ
Gantt ๋ฐ TaskList ์ปดํฌ๋„ŒํŠธ ํ™•์žฅ
src/components/gantt/gantt.tsx, src/components/task-list/task-list.tsx, src/components/task-list/task-list-header.tsx, src/components/task-list/task-list-table.tsx
Gantt ๋ฐ TaskList ๊ณ„์ธต์— extraColumns, ๊ฐ ์ปฌ๋Ÿผ ๋„ˆ๋น„, ๋‚ ์งœ ํฌ๋งท props ์ถ”๊ฐ€ ๋ฐ ์ „๋‹ฌ, Extra Columns ๋ Œ๋”๋ง ๋กœ์ง ์ถ”๊ฐ€
๊ณต๊ฐœ ํƒ€์ž… ๋ฐ ์ธํ„ฐํŽ˜์ด์Šค ํ™•์žฅ
src/types/public-types.ts, src/index.tsx
ExtraColumn, DateFormat ํƒ€์ž… ๋ฐ ๊ด€๋ จ ์ธํ„ฐํŽ˜์ด์Šค์— extraColumns, ์ปฌ๋Ÿผ ๋„ˆ๋น„, ๋‚ ์งœ ํฌ๋งท ๋“ฑ ์‹ ๊ทœ ํ”„๋กœํผํ‹ฐ ์ถ”๊ฐ€ ๋ฐ export

Sequence Diagram(s)

sequenceDiagram
    participant App
    participant ExtraColumnsApp
    participant Gantt
    participant TaskList
    participant TaskListHeader
    participant TaskListTable

    App->>ExtraColumnsApp: ๋ Œ๋”๋ง
    ExtraColumnsApp->>Gantt: tasks, extraColumns, ์ปฌ๋Ÿผ๋„ˆ๋น„, dateFormat ๋“ฑ ์ „๋‹ฌ
    Gantt->>TaskList: extraColumns, ์ปฌ๋Ÿผ๋„ˆ๋น„, dateFormat ๋“ฑ ์ „๋‹ฌ
    TaskList->>TaskListHeader: extraColumns, ์ปฌ๋Ÿผ๋„ˆ๋น„ ์ „๋‹ฌ
    TaskList->>TaskListTable: extraColumns, ์ปฌ๋Ÿผ๋„ˆ๋น„, dateFormat ์ „๋‹ฌ
    TaskListHeader-->>TaskList: ํ—ค๋” ๋ Œ๋”๋ง
    TaskListTable-->>TaskList: ํ…Œ์ด๋ธ” ๋ Œ๋”๋ง (extraColumns ํฌํ•จ)
Loading

Estimated code review effort

๐ŸŽฏ 3 (Moderate) | โฑ๏ธ ~20๋ถ„

Possibly related PRs

Poem

๐Ÿฐ
์ƒˆ ์ปฌ๋Ÿผ์ด ์ฒ™์ฒ™, ํ† ๋ผ๊ฐ€ ์ถค์„ ์ถ˜๋‹ค
์ƒํƒœ์™€ ์šฐ์„ ์ˆœ์œ„, ๋ฑƒ์ง€๋กœ ๋ฐ˜์ง์ธ๋‹ค
๋„ˆ๋น„๋„ ๋‚ ์งœ๋„ ๋‚ด ๋ง˜๋Œ€๋กœ ๋ฐ”๊ฟ”
ํ•œ๊ธ€ ํŒจํ‚ค์ง€ ์ด๋ฆ„๋„ ์ƒˆ๋กญ๊ฒŒ ๋น›๋‚˜
Gantt์˜ ํ–‰์ง„, ๋” ํ’์„ฑํ•ด์ง„๋‹ค!

โœจ๐ŸŒฑ

Note

โšก๏ธ Unit Test Generation is now available in beta!

Learn more here, or try it out under "Finishing Touches" below.


๐Ÿ“œ Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

๐Ÿ“ฅ Commits

Reviewing files that changed from the base of the PR and between c631ff4 and c3aee30.

๐Ÿ“’ Files selected for processing (6)
  • README.md (1 hunks)
  • example/src/App.tsx (2 hunks)
  • package.json (1 hunks)
  • src/components/gantt/gantt.tsx (2 hunks)
  • src/index.tsx (1 hunks)
  • src/types/public-types.ts (4 hunks)
โœจ Finishing Touches
  • ๐Ÿ“ Generate Docstrings
๐Ÿงช Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feature/add-extra-columns-support

๐Ÿชง Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

๐Ÿ“œ Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

๐Ÿ“ฅ Commits

Reviewing files that changed from the base of the PR and between f866f27 and 7c4d8cf.

โ›” Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
๐Ÿ“’ Files selected for processing (12)
  • README.md (1 hunks)
  • example/src/App.tsx (2 hunks)
  • example/src/ExtraColumnsApp.tsx (1 hunks)
  • example/src/extra-columns-helper.tsx (1 hunks)
  • example/src/index.css (1 hunks)
  • package.json (2 hunks)
  • src/components/gantt/gantt.tsx (2 hunks)
  • src/components/task-list/task-list-header.tsx (4 hunks)
  • src/components/task-list/task-list-table.tsx (6 hunks)
  • src/components/task-list/task-list.tsx (6 hunks)
  • src/index.tsx (1 hunks)
  • src/types/public-types.ts (4 hunks)
๐Ÿงฐ Additional context used
๐Ÿงฌ Code Graph Analysis (4)
src/components/task-list/task-list.tsx (2)
src/index.tsx (2)
  • ExtraColumn (6-6)
  • DateFormat (7-7)
src/types/public-types.ts (2)
  • ExtraColumn (16-21)
  • DateFormat (14-14)
src/components/task-list/task-list-header.tsx (3)
src/index.tsx (1)
  • ExtraColumn (6-6)
src/types/public-types.ts (1)
  • ExtraColumn (16-21)
example/src/extra-columns-helper.tsx (1)
  • extraColumns (117-172)
src/components/task-list/task-list-table.tsx (3)
src/index.tsx (2)
  • ExtraColumn (6-6)
  • DateFormat (7-7)
src/types/public-types.ts (2)
  • ExtraColumn (16-21)
  • DateFormat (14-14)
example/src/extra-columns-helper.tsx (1)
  • extraColumns (117-172)
src/types/public-types.ts (1)
src/index.tsx (7)
  • DateFormat (7-7)
  • ExtraColumn (6-6)
  • Task (5-5)
  • GanttProps (4-4)
  • EventOption (10-10)
  • DisplayOption (9-9)
  • StylingOption (8-8)
๐Ÿ”‡ Additional comments (38)
src/index.tsx (1)

6-7: ์ƒˆ๋กœ์šด ํƒ€์ž… export๊ฐ€ ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ์ถ”๊ฐ€๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

ExtraColumn๊ณผ DateFormat ํƒ€์ž…์ด public API๋กœ ์ ์ ˆํžˆ ๋…ธ์ถœ๋˜์–ด ํŒจํ‚ค์ง€ ์‚ฌ์šฉ์ž๋“ค์ด ์ƒˆ๋กœ์šด ๊ธฐ๋Šฅ์„ ํ™œ์šฉํ•  ์ˆ˜ ์žˆ๋„๋ก ํ–ˆ์Šต๋‹ˆ๋‹ค.

example/src/App.tsx (2)

5-5: ExtraColumnsApp ์ปดํฌ๋„ŒํŠธ import๊ฐ€ ์ ์ ˆํ•ฉ๋‹ˆ๋‹ค.

์ƒˆ๋กœ์šด ๊ธฐ๋Šฅ์„ ์‹œ์—ฐํ•˜๊ธฐ ์œ„ํ•œ ์ปดํฌ๋„ŒํŠธ๊ฐ€ ์˜ฌ๋ฐ”๋ฅด๊ฒŒ import๋˜์—ˆ์Šต๋‹ˆ๋‹ค.


107-107: ExtraColumnsApp ์ปดํฌ๋„ŒํŠธ๊ฐ€ ์ ์ ˆํžˆ ๋ Œ๋”๋ง๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

๊ธฐ์กด Gantt ์ปดํฌ๋„ŒํŠธ๋“ค ๋‹ค์Œ์— ์ƒˆ๋กœ์šด ๊ธฐ๋Šฅ์„ ์‹œ์—ฐํ•˜๋Š” ์ปดํฌ๋„ŒํŠธ๊ฐ€ ๊น”๋”ํ•˜๊ฒŒ ์ถ”๊ฐ€๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

src/components/gantt/gantt.tsx (2)

61-65: ์ƒˆ๋กœ์šด props๊ฐ€ ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ์ถ”๊ฐ€๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

extraColumns, nameColumnWidth, fromColumnWidth, toColumnWidth, dateFormat props๊ฐ€ ์ ์ ˆํ•œ ๊ธฐ๋ณธ๊ฐ’๊ณผ ํ•จ๊ป˜ ์ถ”๊ฐ€๋˜์–ด Gantt ์ปดํฌ๋„ŒํŠธ์˜ ์ปค์Šคํ„ฐ๋งˆ์ด์ง• ๊ธฐ๋Šฅ์„ ํ™•์žฅํ–ˆ์Šต๋‹ˆ๋‹ค. dateFormat์˜ ๊ธฐ๋ณธ๊ฐ’ "locale"๋„ ํ•ฉ๋ฆฌ์ ์ž…๋‹ˆ๋‹ค.


454-458: props๊ฐ€ TaskList ์ปดํฌ๋„ŒํŠธ๋กœ ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ์ „๋‹ฌ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

์ƒˆ๋กœ์šด props๋“ค์ด tableProps ๊ฐ์ฒด๋ฅผ ํ†ตํ•ด TaskList ์ปดํฌ๋„ŒํŠธ๋กœ ์ ์ ˆํžˆ ์ „๋‹ฌ๋˜์–ด ๊ธฐ๋Šฅ์ด ํ•˜์œ„ ์ปดํฌ๋„ŒํŠธ์—์„œ ํ™œ์šฉ๋  ์ˆ˜ ์žˆ๋„๋ก ๊ตฌ์„ฑ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

example/src/index.css (3)

84-94: ๊ธฐ๋ณธ ๋ฐฐ์ง€ ์Šคํƒ€์ผ์ด ์ž˜ ์ •์˜๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

.status-badge์™€ .priority-badge์— ๋Œ€ํ•œ ๊ณตํ†ต ์Šคํƒ€์ผ์ด ์ผ๊ด€์„ฑ ์žˆ๊ฒŒ ์ •์˜๋˜์–ด ์žˆ์œผ๋ฉฐ, ํŒจ๋”ฉ, ํ…Œ๋‘๋ฆฌ ๋ฐ˜๊ฒฝ, ํฐํŠธ ์Šคํƒ€์ผ๋ง ๋“ฑ์ด ์ ์ ˆํ•ฉ๋‹ˆ๋‹ค.


96-112: ์ƒํƒœ ๋ฐฐ์ง€ ์Šคํƒ€์ผ์ด ์ง๊ด€์ ์œผ๋กœ ๊ตฌ์„ฑ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

๊ฐ ์ƒํƒœ๋ณ„๋กœ ์ ์ ˆํ•œ ์ƒ‰์ƒ์ด ์‚ฌ์šฉ๋˜์—ˆ๊ณ , .status-pending์—์„œ ๊ฐ€๋…์„ฑ์„ ์œ„ํ•ด ํ…์ŠคํŠธ ์ƒ‰์ƒ์„ ์กฐ์ •ํ•œ ์ ์ด ์ข‹์Šต๋‹ˆ๋‹ค.


114-130: ์šฐ์„ ์ˆœ์œ„ ๋ฐฐ์ง€ ์Šคํƒ€์ผ์ด ์ฒด๊ณ„์ ์œผ๋กœ ์ •์˜๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

์šฐ์„ ์ˆœ์œ„๋ณ„๋กœ ๊ตฌ๋ถ„๋˜๋Š” ์ƒ‰์ƒ ์ฒด๊ณ„๊ฐ€ ์ž˜ ๊ตฌ์„ฑ๋˜์–ด ์žˆ์œผ๋ฉฐ, .priority-medium์—์„œ ๋Œ€๋น„๋ฅผ ๊ณ ๋ คํ•œ ํ…์ŠคํŠธ ์ƒ‰์ƒ ์กฐ์ •์ด ์ ‘๊ทผ์„ฑ ์ธก๋ฉด์—์„œ ๋ฐ”๋žŒ์งํ•ฉ๋‹ˆ๋‹ค.

package.json (2)

2-10: ํŒจํ‚ค์ง€ ๋ฉ”ํƒ€๋ฐ์ดํ„ฐ๊ฐ€ ํ•œ๊ตญ์–ด ๋ฒ„์ „์— ๋งž๊ฒŒ ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ์—…๋ฐ์ดํŠธ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

ํŒจํ‚ค์ง€ ์ด๋ฆ„, ๋ฒ„์ „, ์„ค๋ช…, ์ž‘์„ฑ์ž, ํ™ˆํŽ˜์ด์ง€, ์ €์žฅ์†Œ URL์ด ํ•œ๊ตญ์–ด ๋ฒ„์ „์— ๋งž๊ฒŒ ์ ์ ˆํžˆ ์ˆ˜์ •๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ๋ฒ„์ „ 1.1.0์œผ๋กœ์˜ ์—…๋ฐ์ดํŠธ๋„ ์ƒˆ๋กœ์šด ๊ธฐ๋Šฅ ์ถ”๊ฐ€์— ์ ํ•ฉํ•ฉ๋‹ˆ๋‹ค.


28-30: ํ‚ค์›Œ๋“œ์— ํ•œ๊ตญ์–ด ๊ด€๋ จ ํƒœ๊ทธ๊ฐ€ ์ ์ ˆํžˆ ์ถ”๊ฐ€๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

"korean"๊ณผ "ํ•œ๊ตญ์–ด" ํ‚ค์›Œ๋“œ๊ฐ€ ์ถ”๊ฐ€๋˜์–ด ํ•œ๊ตญ์–ด ์‚ฌ์šฉ์ž๋“ค์ด ํŒจํ‚ค์ง€๋ฅผ ๋” ์‰ฝ๊ฒŒ ์ฐพ์„ ์ˆ˜ ์žˆ๋„๋ก ๊ฐœ์„ ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

src/components/task-list/task-list-header.tsx (5)

3-3: ExtraColumn ํƒ€์ž… import๊ฐ€ ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ์ถ”๊ฐ€๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

์ƒˆ๋กœ์šด ๊ธฐ๋Šฅ์„ ์œ„ํ•œ ํƒ€์ž… import๊ฐ€ ์ ์ ˆํžˆ ์ถ”๊ฐ€๋˜์—ˆ์Šต๋‹ˆ๋‹ค.


10-13: ์ƒˆ๋กœ์šด props ์ •์˜๊ฐ€ ์ž˜ ๊ตฌ์„ฑ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

extraColumns์™€ ์ปฌ๋Ÿผ ๋„ˆ๋น„ ์„ค์ •์„ ์œ„ํ•œ ์„ ํƒ์  props๋“ค์ด ๋ช…ํ™•ํ•˜๊ฒŒ ์ •์˜๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ๋ชจ๋‘ optional๋กœ ์„ค์ •๋˜์–ด ๊ธฐ์กด ์ฝ”๋“œ์™€์˜ ํ•˜์œ„ ํ˜ธํ™˜์„ฑ์„ ๋ณด์žฅํ•ฉ๋‹ˆ๋‹ค.


19-22: Props ๊ตฌ์กฐ๋ถ„ํ•ดํ• ๋‹น์ด ์ ์ ˆํ•ฉ๋‹ˆ๋‹ค.

extraColumns์— ๋นˆ ๋ฐฐ์—ด์„ ๊ธฐ๋ณธ๊ฐ’์œผ๋กœ ์„ค์ •ํ•œ ๊ฒƒ์ด ์ข‹์€ ๋ฐฉ์–ด์  ํ”„๋กœ๊ทธ๋ž˜๋ฐ ๊ด€ํ–‰์ž…๋‹ˆ๋‹ค. undefined ์ฒดํฌ ์—†์ด ์•ˆ์ „ํ•˜๊ฒŒ map ํ•จ์ˆ˜๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.


41-41: ์ปฌ๋Ÿผ ๋„ˆ๋น„ fallback ๋กœ์ง์ด ์˜ฌ๋ฐ”๋ฆ…๋‹ˆ๋‹ค.

์ปค์Šคํ…€ ๋„ˆ๋น„๊ฐ€ ์ œ๊ณต๋˜์ง€ ์•Š์„ ๋•Œ ๊ธฐ๋ณธ rowWidth๋กœ fallbackํ•˜๋Š” ๋กœ์ง์ด ์ ์ ˆํ•˜๊ฒŒ ๊ตฌํ˜„๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ๊ธฐ์กด ๋™์ž‘์„ ์œ ์ง€ํ•˜๋ฉด์„œ ์ƒˆ๋กœ์šด ๊ธฐ๋Šฅ์„ ์ถ”๊ฐ€ํ–ˆ์Šต๋‹ˆ๋‹ค.

Also applies to: 56-56, 71-71


76-95: Extra columns ๋ Œ๋”๋ง ๋กœ์ง์ด ์ž˜ ๊ตฌํ˜„๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

๋‹ค์Œ๊ณผ ๊ฐ™์€ ์ข‹์€ ์‹ค์ฒœ ์‚ฌํ•ญ๋“ค์ด ์ ์šฉ๋˜์—ˆ์Šต๋‹ˆ๋‹ค:

  • React.Fragment๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๋ถˆํ•„์š”ํ•œ DOM ์š”์†Œ ์ƒ์„ฑ ๋ฐฉ์ง€
  • ๊ณ ์œ ํ•œ key prop ์‚ฌ์šฉ (column.key)
  • ๊ธฐ์กด ์Šคํƒ€์ผ๊ณผ ์ผ๊ด€์„ฑ ์žˆ๋Š” ๊ตฌ์กฐ (separator + header item)
  • ์ปฌ๋Ÿผ ๋„ˆ๋น„ fallback ๋กœ์ง ์ ์šฉ
README.md (1)

147-246: Extra Columns ์ง€์›์— ๋Œ€ํ•œ ๋ฌธ์„œํ™”๊ฐ€ ํ›Œ๋ฅญํ•ฉ๋‹ˆ๋‹ค.

์ƒˆ๋กญ๊ฒŒ ์ถ”๊ฐ€๋œ "Extra Columns Support" ์„น์…˜์ด ๋งค์šฐ ํฌ๊ด„์ ์ด๊ณ  ์ž˜ ๊ตฌ์„ฑ๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค:

  • ์‹ค์šฉ์ ์ธ ์ฝ”๋“œ ์˜ˆ์ œ์™€ ํ•จ๊ป˜ ๊ธฐ๋Šฅ ์‚ฌ์šฉ๋ฒ•์„ ๋ช…ํ™•ํ•˜๊ฒŒ ์„ค๋ช…
  • ExtraColumn ์ธํ„ฐํŽ˜์ด์Šค์˜ ๋ชจ๋“  ์†์„ฑ์„ ํ‘œ๋กœ ์ •๋ฆฌํ•˜์—ฌ ์ดํ•ดํ•˜๊ธฐ ์‰ฌ์›€
  • ์ปฌ๋Ÿผ ๋„ˆ๋น„ ์„ค์ •๊ณผ ๋‚ ์งœ ํ˜•์‹ ์˜ต์…˜์— ๋Œ€ํ•œ ์ƒ์„ธํ•œ ์„ค๋ช… ์ œ๊ณต
  • ํ•„์ˆ˜ ํ•„๋“œ๊ฐ€ ์ ์ ˆํžˆ ํ‘œ์‹œ๋จ (*Required ๋งˆํ‚น)
  • ์‹ค์ œ ๊ตฌํ˜„๊ณผ ์ผ์น˜ํ•˜๋Š” ์˜ˆ์ œ ์ฝ”๋“œ

์ด ๋ฌธ์„œ๋Š” ๊ฐœ๋ฐœ์ž๋“ค์ด ์ƒˆ๋กœ์šด ๊ธฐ๋Šฅ์„ ํšจ๊ณผ์ ์œผ๋กœ ํ™œ์šฉํ•  ์ˆ˜ ์žˆ๋„๋ก ๋„์›€์„ ์ค„ ๊ฒƒ์ž…๋‹ˆ๋‹ค.

example/src/ExtraColumnsApp.tsx (5)

1-11: ์ปดํฌ๋„ŒํŠธ ์ดˆ๊ธฐํ™”์™€ ์ƒํƒœ ๊ด€๋ฆฌ๊ฐ€ ์ ์ ˆํ•ฉ๋‹ˆ๋‹ค.

React hooks๋ฅผ ์‚ฌ์šฉํ•œ ์ƒํƒœ ๊ด€๋ฆฌ๊ฐ€ ๊น”๋”ํ•˜๊ฒŒ ๊ตฌํ˜„๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ํ•„์š”ํ•œ ๋ชจ๋“  ์˜์กด์„ฑ์ด ์˜ฌ๋ฐ”๋ฅด๊ฒŒ import๋˜์—ˆ๊ณ , ์ดˆ๊ธฐ ์ƒํƒœ๊ฐ’๋“ค์ด ์ ์ ˆํžˆ ์„ค์ •๋˜์—ˆ์Šต๋‹ˆ๋‹ค.


13-20: ๋ทฐ ๋ชจ๋“œ์— ๋”ฐ๋ฅธ ์ปฌ๋Ÿผ ๋„ˆ๋น„ ๋™์  ์กฐ์ •์ด ์ž˜ ๊ตฌํ˜„๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

๊ฐ ViewMode์— ๋งž๋Š” ์ ์ ˆํ•œ ์ปฌ๋Ÿผ ๋„ˆ๋น„๋ฅผ ์„ค์ •ํ•˜์—ฌ ์‚ฌ์šฉ์ž ๊ฒฝํ—˜์„ ํ–ฅ์ƒ์‹œ์ผฐ์Šต๋‹ˆ๋‹ค. ์กฐ๊ฑด๋ฌธ์ด ๋ช…ํ™•ํ•˜๊ณ  ์ดํ•ดํ•˜๊ธฐ ์‰ฝ์Šต๋‹ˆ๋‹ค.


27-45: ์‚ฌ์šฉ์ž ์ธํ„ฐํŽ˜์ด์Šค ์ปจํŠธ๋กค์ด ์ง๊ด€์ ์ž…๋‹ˆ๋‹ค.

ViewSwitcher์™€ DateFormat ์„ ํƒ๊ธฐ๊ฐ€ ์ž˜ ๋ฐฐ์น˜๋˜์—ˆ๊ณ , ์‚ฌ์šฉ์ž๊ฐ€ ์‰ฝ๊ฒŒ ๊ธฐ๋Šฅ์„ ํ…Œ์ŠคํŠธํ•  ์ˆ˜ ์žˆ๋„๋ก ๊ตฌ์„ฑ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ์Šคํƒ€์ผ๋ง๋„ ๊น”๋”ํ•˜๊ฒŒ ์ฒ˜๋ฆฌ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.


48-79: Gantt ์ปดํฌ๋„ŒํŠธ ์„ค์ •์ด ํฌ๊ด„์ ์ž…๋‹ˆ๋‹ค.

์ƒˆ๋กœ์šด ๊ธฐ๋Šฅ๋“ค(extraColumns, ์ปค์Šคํ…€ ๋„ˆ๋น„, dateFormat)์ด ๋ชจ๋‘ ์ ์ ˆํžˆ ์„ค์ •๋˜์—ˆ๊ณ , ์ด๋ฒคํŠธ ํ•ธ๋“ค๋Ÿฌ๋“ค์ด ์œ ์˜๋ฏธํ•œ ํ”ผ๋“œ๋ฐฑ์„ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค. ํŠนํžˆ ์‚ญ์ œ ํ™•์ธ ๋‹ค์ด์–ผ๋กœ๊ทธ๋Š” ์ข‹์€ UX ๊ด€ํ–‰์ž…๋‹ˆ๋‹ค.


82-104: ๊ต์œก์  ์ฝ˜ํ…์ธ ๊ฐ€ ๋งค์šฐ ์œ ์šฉํ•ฉ๋‹ˆ๋‹ค.

๊ธฐ๋Šฅ ์„ค๋ช…๊ณผ ์‚ฌ์šฉ๋ฒ• ๊ฐ€์ด๋“œ๊ฐ€ ๋ช…ํ™•ํ•˜๊ณ  ํฌ๊ด„์ ์ž…๋‹ˆ๋‹ค. ๊ฐœ๋ฐœ์ž๋“ค์ด ์ƒˆ๋กœ์šด ๊ธฐ๋Šฅ์„ ์ดํ•ดํ•˜๊ณ  ๊ตฌํ˜„ํ•˜๋Š” ๋ฐ ํฐ ๋„์›€์ด ๋  ๊ฒƒ์ž…๋‹ˆ๋‹ค.

example/src/extra-columns-helper.tsx (2)

4-115: ์ƒ˜ํ”Œ ๋ฐ์ดํ„ฐ๊ฐ€ ์ž˜ ๊ตฌ์„ฑ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

๋‹ค์–‘ํ•œ ์ž‘์—… ์œ ํ˜•(project, task, milestone)๊ณผ ํ˜„์‹ค์ ์ธ ํ”„๋กœ์ ํŠธ ๊ด€๋ฆฌ ๋ฐ์ดํ„ฐ๋ฅผ ํฌํ•จํ•œ comprehensiveํ•œ ์ƒ˜ํ”Œ์ด ์ œ๊ณต๋˜์—ˆ์Šต๋‹ˆ๋‹ค. extraColumns ๋ฐ์ดํ„ฐ๋„ ๋‹ค์–‘ํ•œ ๋ฐ์ดํ„ฐ ํƒ€์ž…๊ณผ ์ƒํƒœ๋ฅผ ์ž˜ ๋ณด์—ฌ์ค๋‹ˆ๋‹ค.


117-172: ExtraColumn ์„ค์ •์ด ํ›Œ๋ฅญํ•ฉ๋‹ˆ๋‹ค.

์ปค์Šคํ…€ ๋ Œ๋” ํ•จ์ˆ˜๋“ค์ด ์ž˜ ๊ตฌํ˜„๋˜์—ˆ์Šต๋‹ˆ๋‹ค:

  • ์ƒํƒœ์™€ ์šฐ์„ ์ˆœ์œ„์— ๋Œ€ํ•œ ์Šคํƒ€์ผ๋ง๋œ ๋ฐฐ์ง€
  • ์˜ˆ์‚ฐ ํฌ๋งทํŒ… ๋กœ์ง (0 ์ดํ•˜์ผ ๋•Œ "-" ํ‘œ์‹œ)
  • ๊ฐ ์ปฌ๋Ÿผ์˜ ์ ์ ˆํ•œ ๋„ˆ๋น„ ์„ค์ •
  • ํƒ€์ž… ์•ˆ์ „์„ฑ์„ ์œ„ํ•œ ์ ์ ˆํ•œ ํƒ€์ž… ์บ์ŠคํŒ…

์ด๋Š” ๊ฐœ๋ฐœ์ž๋“ค์ด ์ปค์Šคํ…€ ๋ Œ๋”๋ง์„ ๊ตฌํ˜„ํ•˜๋Š” ์ข‹์€ ์˜ˆ์‹œ๊ฐ€ ๋ฉ๋‹ˆ๋‹ค.

src/components/task-list/task-list.tsx (3)

3-3: ํƒ€์ž… import๊ฐ€ ์ ์ ˆํžˆ ์ถ”๊ฐ€๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

ExtraColumn๊ณผ DateFormat ํƒ€์ž…์ด ์˜ฌ๋ฐ”๋ฅธ ๊ฒฝ๋กœ์—์„œ import๋˜์—ˆ์Šต๋‹ˆ๋‹ค.


20-24: Props ์ธํ„ฐํŽ˜์ด์Šค ํ™•์žฅ์ด ์ž˜ ๊ตฌํ˜„๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

์ƒˆ๋กœ์šด props๋“ค์ด ๋ชจ๋‘ optional๋กœ ์ •์˜๋˜์–ด ๊ธฐ์กด ์ฝ”๋“œ์™€์˜ ํ•˜์œ„ ํ˜ธํ™˜์„ฑ์„ ๋ณด์žฅํ•ฉ๋‹ˆ๋‹ค. TaskListHeader์™€ TaskListTable์˜ ํƒ€์ž… ์ •์˜๋„ ์ผ๊ด€์„ฑ ์žˆ๊ฒŒ ์—…๋ฐ์ดํŠธ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

Also applies to: 30-33, 45-49


68-72: Props ์ „๋‹ฌ ๋กœ์ง์ด ์˜ฌ๋ฐ”๋ฆ…๋‹ˆ๋‹ค.

์ƒˆ๋กœ์šด props๋“ค์ด ์ปดํฌ๋„ŒํŠธ์—์„œ ์ ์ ˆํžˆ ๊ตฌ์กฐ๋ถ„ํ•ดํ• ๋‹น๋˜๊ณ , headerProps์™€ tableProps๋ฅผ ํ†ตํ•ด ์ž์‹ ์ปดํฌ๋„ŒํŠธ๋“ค์—๊ฒŒ ์ •ํ™•ํžˆ ์ „๋‹ฌ๋ฉ๋‹ˆ๋‹ค. ์ฝ”๋“œ๊ฐ€ ๊น”๋”ํ•˜๊ณ  ์ดํ•ดํ•˜๊ธฐ ์‰ฝ์Šต๋‹ˆ๋‹ค.

Also applies to: 88-91, 104-108

src/components/task-list/task-list-table.tsx (7)

3-3: ์ƒˆ๋กœ์šด ํƒ€์ž… ์ž„ํฌํŠธ๊ฐ€ ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ์ถ”๊ฐ€๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

ExtraColumn๊ณผ DateFormat ํƒ€์ž…์ด ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ์ž„ํฌํŠธ๋˜์–ด ์ปดํฌ๋„ŒํŠธ์—์„œ ์‚ฌ์šฉ๋˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค.


18-20: ISO ๋‚ ์งœ ํฌ๋งท ํ•จ์ˆ˜๊ฐ€ ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ๊ตฌํ˜„๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

toISODateString ํ•จ์ˆ˜๊ฐ€ Date ๊ฐ์ฒด๋ฅผ yyyy-MM-dd ํ˜•์‹์œผ๋กœ ๋ณ€ํ™˜ํ•˜๋Š” ๋กœ์ง์ด ์ •ํ™•ํ•ฉ๋‹ˆ๋‹ค.


39-43: ์ƒˆ๋กœ์šด props๊ฐ€ ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ์ •์˜๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

์ถ”๊ฐ€ ์ปฌ๋Ÿผ๊ณผ ์ปฌ๋Ÿผ ๋„ˆ๋น„, ๋‚ ์งœ ํฌ๋งท์„ ์œ„ํ•œ props๊ฐ€ ์ ์ ˆํ•œ ํƒ€์ž…๊ณผ ๊ธฐ๋ณธ๊ฐ’์œผ๋กœ ์ •์˜๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค. ๊ธฐ๋ณธ๊ฐ’ ์„ค์ •์œผ๋กœ ํ•˜์œ„ ํ˜ธํ™˜์„ฑ๋„ ์œ ์ง€๋ฉ๋‹ˆ๋‹ค.

Also applies to: 52-56


63-68: ๋‚ ์งœ ํฌ๋งทํŒ… ๋กœ์ง์ด ํšจ์œจ์ ์œผ๋กœ ๊ตฌํ˜„๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

useMemo๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ dateFormat prop์— ๋”ฐ๋ผ ์ ์ ˆํ•œ ํฌ๋งทํŒ… ํ•จ์ˆ˜๋ฅผ ์„ ํƒํ•˜๋Š” ๋กœ์ง์ด ์˜ฌ๋ฐ”๋ฅด๋ฉฐ, ์„ฑ๋Šฅ ์ตœ์ ํ™”๋„ ์ž˜ ๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค.


95-96: ์ปฌ๋Ÿผ ๋„ˆ๋น„ ์ปค์Šคํ„ฐ๋งˆ์ด์ง•์ด ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ๊ตฌํ˜„๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

๊ธฐ๋ณธ ์ปฌ๋Ÿผ๋“ค(์ด๋ฆ„, ์‹œ์ž‘์ผ, ์ข…๋ฃŒ์ผ)์— ๋Œ€ํ•ด ์‚ฌ์šฉ์ž ์ •์˜ ๋„ˆ๋น„๋ฅผ ์ง€์›ํ•˜๋ฉด์„œ ๊ธฐ๋ณธ๊ฐ’์œผ๋กœ์˜ fallback๋„ ์ ์ ˆํžˆ ์ฒ˜๋ฆฌ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

Also applies to: 117-118, 126-127


121-121: ๋‚ ์งœ ํฌ๋งทํŒ… ์ ์šฉ์ด ์ผ๊ด€๋˜๊ฒŒ ๊ตฌํ˜„๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

์‹œ์ž‘์ผ๊ณผ ์ข…๋ฃŒ์ผ ๋ชจ๋‘์— ์ƒˆ๋กœ์šด formatDate ํ•จ์ˆ˜๊ฐ€ ์ผ๊ด€๋˜๊ฒŒ ์ ์šฉ๋˜์–ด ์‚ฌ์šฉ์ž๊ฐ€ ์„ ํƒํ•œ ๋‚ ์งœ ํฌ๋งท์œผ๋กœ ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค.

Also applies to: 130-130


132-148: ์ถ”๊ฐ€ ์ปฌ๋Ÿผ ๋ Œ๋”๋ง ๋กœ์ง์ด ์œ ์—ฐํ•˜๊ณ  ์•ˆ์ „ํ•˜๊ฒŒ ๊ตฌํ˜„๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

์‚ฌ์šฉ์ž ์ •์˜ ๋ Œ๋” ํ•จ์ˆ˜์™€ ๊ธฐ๋ณธ ๋ฌธ์ž์—ด ํ‘œ์‹œ๋ฅผ ๋ชจ๋‘ ์ง€์›ํ•˜๋ฉฐ, ์˜ต์…”๋„ ์ฒด์ด๋‹์œผ๋กœ ์•ˆ์ „ํ•œ ๋ฐ์ดํ„ฐ ์ ‘๊ทผ์ด ๋ณด์žฅ๋˜๊ณ , title ์†์„ฑ ์ฒ˜๋ฆฌ๋„ ์ ์ ˆํ•ฉ๋‹ˆ๋‹ค.

src/types/public-types.ts (5)

14-14: DateFormat ํƒ€์ž…์ด ๋ช…ํ™•ํ•˜๊ฒŒ ์ •์˜๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

๋‘ ๊ฐ€์ง€ ๋‚ ์งœ ํฌ๋งท ์˜ต์…˜์„ ์œ ๋‹ˆ์˜จ ํƒ€์ž…์œผ๋กœ ์ •์˜ํ•˜์—ฌ ํƒ€์ž… ์•ˆ์ „์„ฑ์„ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค.


16-21: ExtraColumn ์ธํ„ฐํŽ˜์ด์Šค๊ฐ€ ์œ ์—ฐํ•˜๊ณ  ์™„์ „ํ•˜๊ฒŒ ์„ค๊ณ„๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

ํ•„์ˆ˜ ํ•„๋“œ(key, title)์™€ ์„ ํƒ์  ํ•„๋“œ(width, render)์˜ ์กฐํ•ฉ์ด ๋‹ค์–‘ํ•œ ์‚ฌ์šฉ ์‚ฌ๋ก€๋ฅผ ์ง€์›ํ•  ์ˆ˜ ์žˆ๋„๋ก ์ž˜ ์„ค๊ณ„๋˜์—ˆ์Šต๋‹ˆ๋‹ค.


43-46: Task ์ธํ„ฐํŽ˜์ด์Šค ํ™•์žฅ์ด ์ ์ ˆํ•˜๊ฒŒ ๊ตฌํ˜„๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

extraColumns ์†์„ฑ์ด ์„ ํƒ์ ์œผ๋กœ ์ •์˜๋˜์–ด ํ•˜์œ„ ํ˜ธํ™˜์„ฑ์„ ์œ ์ง€ํ•˜๋ฉฐ, key-value ๊ตฌ์กฐ๋กœ ์œ ์—ฐํ•œ ๋ฐ์ดํ„ฐ ์ €์žฅ์ด ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค. JSDoc ์ฃผ์„๋„ ๋ช…ํ™•ํ•ฉ๋‹ˆ๋‹ค.


139-142: StylingOption ์ธํ„ฐํŽ˜์ด์Šค ์—…๋ฐ์ดํŠธ๊ฐ€ ์ผ๊ด€๋˜๊ฒŒ ์ ์šฉ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

TaskListHeader์™€ TaskListTable ์ปดํฌ๋„ŒํŠธ props๊ฐ€ ์ผ๊ด€๋˜๊ฒŒ ์—…๋ฐ์ดํŠธ๋˜์—ˆ์œผ๋ฉฐ, dateFormat์€ ํ…Œ์ด๋ธ”์—๋งŒ ์ ์ ˆํžˆ ์ถ”๊ฐ€๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ๋ชจ๋“  props๊ฐ€ ์„ ํƒ์ ์œผ๋กœ ์ •์˜๋˜์–ด ํ•˜์œ„ ํ˜ธํ™˜์„ฑ์„ ์œ ์ง€ํ•ฉ๋‹ˆ๋‹ค.

Also applies to: 157-161


167-186: GanttProps ์ธํ„ฐํŽ˜์ด์Šค ํ™•์žฅ์ด ์ž˜ ๋ฌธ์„œํ™”๋˜์–ด ๊ตฌํ˜„๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

์ƒˆ๋กœ์šด props๋“ค์ด ๋ช…ํ™•ํ•œ JSDoc ์ฃผ์„๊ณผ ํ•จ๊ป˜ ์ถ”๊ฐ€๋˜์—ˆ์œผ๋ฉฐ, ๋ชจ๋“  props๊ฐ€ ์„ ํƒ์ ์œผ๋กœ ์ •์˜๋˜์–ด ๊ธฐ์กด ์ฝ”๋“œ์™€์˜ ํ˜ธํ™˜์„ฑ์„ ์œ ์ง€ํ•ฉ๋‹ˆ๋‹ค.

Changed import path in extra-columns-helper.tsx from '../../dist/types/public-types'
to '../../src/types/public-types' to reference source code directly instead of
build output, as recommended in code review.

๐Ÿค– Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@jeonghanyun
Copy link
Contributor Author

๋ฆฌ๋ทฐ ํ”ผ๋“œ๋ฐฑ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค! ๐Ÿ™

โœ… ์ˆ˜์ • ์™„๋ฃŒ: Import ๊ฒฝ๋กœ ๋ฌธ์ œ

์ง€์ ์‚ฌํ•ญ: ../../dist/types/public-types์—์„œ importํ•˜๋Š” ๊ฒƒ์ด ๋นŒ๋“œ ์ถœ๋ ฅ๋ฌผ์„ ์ฐธ์กฐํ•˜๋ฏ€๋กœ ๋ฌธ์ œ๊ฐ€ ๋  ์ˆ˜ ์žˆ๋‹ค.

ํ•ด๊ฒฐ: ์ปค๋ฐ‹ c631ff4์—์„œ import ๊ฒฝ๋กœ๋ฅผ ์†Œ์Šค ์ฝ”๋“œ๋ฅผ ์ง์ ‘ ์ฐธ์กฐํ•˜๋„๋ก ์ˆ˜์ •ํ–ˆ์Šต๋‹ˆ๋‹ค:

-import { Task, ExtraColumn } from "../../dist/types/public-types";
+import { Task, ExtraColumn } from "../../src/types/public-types";

๐Ÿ“‹ ์ „์ฒด ๋ฆฌ๋ทฐ ์‘๋‹ต ์š”์•ฝ

์ด 38๊ฐœ์˜ ๊ธ์ •์ ์ธ ํ”ผ๋“œ๋ฐฑ์„ ๋ฐ›์•˜์œผ๋ฉฐ, ์ฃผ์š” ์‚ฌํ•ญ๋“ค์„ ํ™•์ธํ–ˆ์Šต๋‹ˆ๋‹ค:

  • โœ… ํƒ€์ž… ์ •์˜์™€ export๊ฐ€ ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ๊ตฌํ˜„๋จ
  • โœ… Props ์ „๋‹ฌ๊ณผ ๊ตฌ์กฐ๋ถ„ํ•ด๊ฐ€ ์ ์ ˆํ•จ
  • โœ… Extra columns ๋ Œ๋”๋ง ๋กœ์ง์ด ์œ ์—ฐํ•˜๊ณ  ์•ˆ์ „ํ•จ
  • โœ… ๋‚ ์งœ ํฌ๋งทํŒ…๊ณผ ์ปฌ๋Ÿผ ๋„ˆ๋น„ ์ปค์Šคํ„ฐ๋งˆ์ด์ง•์ด ์ž˜ ๊ตฌํ˜„๋จ
  • โœ… ๋ฌธ์„œํ™”๊ฐ€ ํฌ๊ด„์ ์ด๊ณ  ๋ช…ํ™•ํ•จ
  • โœ… ํ•˜์œ„ ํ˜ธํ™˜์„ฑ์ด ๋ณด์žฅ๋จ

**1๊ฐœ์˜ ์ค‘์š”ํ•œ ์ด์Šˆ (Import ๊ฒฝ๋กœ ๋ฌธ์ œ)**๋งŒ ๋ฐœ๊ฒฌ๋˜์–ด ์ฆ‰์‹œ ์ˆ˜์ •ํ–ˆ์Šต๋‹ˆ๋‹ค.

๋ชจ๋“  ์ง€์ ์‚ฌํ•ญ์ด ํ•ด๊ฒฐ๋˜์—ˆ์œผ๋‹ˆ ๋ฆฌ๋ทฐ ์žฌ๊ฒ€ํ†  ๋ถ€ํƒ๋“œ๋ฆฝ๋‹ˆ๋‹ค! ๐Ÿš€

@jeonghanyun jeonghanyun merged commit bea7051 into main Aug 2, 2025
1 check was pending
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.

2 participants