Skip to content

Conversation

@shobhan-sundar-goutam
Copy link
Contributor

@shobhan-sundar-goutam shobhan-sundar-goutam commented Aug 13, 2025

Date: 14-08-25

Developer Name: Shobhan Sundar Goutam (@shobhan-sundar-goutam)


Issue Ticket Number

Closes #180

Description

  • This PR updates the task list to display the name of the user who created each task.

Documentation Updated?

  • Yes
  • No

Under Feature Flag

  • Yes
  • No

Database Changes

  • Yes
  • No

Breaking Changes

  • Yes
  • No

Development Tested?

  • Yes
  • No

Screenshots

Screenshot 1 Screenshot 2025-08-14 at 2 21 18 AM

Test Coverage

Screenshot 1 Screenshot 2025-08-14 at 2 21 56 AM

Additional Notes

Description by Korbit AI

What change is being made?

Add the creator's name to the todo list by updating the TTask type, todo-list table components, and team tasks module to include a createdBy field.

Why are these changes being made?

These changes provide clarity on who created each task, which enhances accountability and traceability for task management. The inclusion of this information was deemed necessary to improve team collaboration and audit trails by making the creator's identity visible in relevant user interfaces.

Is this description stale? Ask me to generate a new description by commenting /korbit-generate-pr-description

@shobhan-sundar-goutam shobhan-sundar-goutam self-assigned this Aug 13, 2025
@korbit-ai
Copy link

korbit-ai bot commented Aug 13, 2025

Based on your review schedule, I'll hold off on reviewing this PR until it's marked as ready for review. If you'd like me to take a look now, comment /korbit-review.

Your admin can change your review schedule in the Korbit Console

@coderabbitai
Copy link

coderabbitai bot commented Aug 13, 2025

Summary by CodeRabbit

  • New Features

    • Added a “Created By” column to task lists, including Team Tasks, showing the creator’s name with a fallback when unavailable. Improves visibility of task ownership across views.
  • Improvements

    • Updated table headers and rows to accommodate the new column without impacting existing interactions or layouts.

Walkthrough

Adds a createdBy field to task types and updates UI tables to display the creator’s name in a new “Created By” column, using optional chaining with a fallback.

Changes

Cohort / File(s) Summary
Task Types
api/tasks/tasks.types.ts
Added TTaskCreatedBy type; added optional createdBy?: TTaskCreatedBy
Todo List Table UI
components/todo-list-table.tsx
Inserted “Created By” header and cell; renders todo.createdBy?.name with '--' fallback.
Teams Tasks UI
modules/teams/team-tasks.tsx
Added “Created By” cell in team task rows; displays todo.createdBy?.name with '--' fallback.

Sequence Diagram(s)

sequenceDiagram
  participant User
  participant TodoListUI as Todo List UI
  participant Types as Task Types

  User->>TodoListUI: Open tasks view
  TodoListUI->>Types: Read todo.createdBy?: {id,name}|null
  TodoListUI->>User: Render table with "Created By" = name or "--"
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Assessment against linked issues

Objective Addressed Explanation
Display the creator's name alongside task information (#180)

Possibly related issues

Possibly related PRs

Suggested reviewers

  • iamitprakash
  • amit-flx

Poem

I nibbled through types, a carrot in paw,
New fields sprouted: createdBy—ooh, hurrah!
In tidy rows the names now show,
With dashes when we do not know.
Hippity-hop, the table’s bright—
A creator revealed in morning light. 🥕🐇

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the "Integrations" page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.


📜 Recent review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 7dd2092 and c5bbb2b.

📒 Files selected for processing (3)
  • api/tasks/tasks.types.ts (3 hunks)
  • components/todo-list-table.tsx (2 hunks)
  • modules/teams/team-tasks.tsx (1 hunks)
🧰 Additional context used
🧬 Code Graph Analysis (1)
components/todo-list-table.tsx (1)
components/ui/table.tsx (2)
  • TableHead (91-91)
  • TableCell (91-91)
🔇 Additional comments (6)
api/tasks/tasks.types.ts (3)

19-19: LGTM!

The addition of the optional createdBy field to the TTask type follows the existing pattern of optional fields and uses the appropriate type reference.


105-105: LGTM!

The createdBy field addition to TWatchListTask maintains consistency with the TTask type and follows the same optional pattern.


130-133: LGTM!

The TTaskCreatedBy type definition is well-structured with appropriate fields for identifying and displaying the creator information.

components/todo-list-table.tsx (2)

41-41: LGTM!

The "Created By" header is appropriately positioned between "Assignee" and "Due Date" columns, maintaining logical column ordering.


83-83: LGTM!

The implementation correctly uses optional chaining with a fallback value to handle cases where the creator information might be null or undefined.

modules/teams/team-tasks.tsx (1)

55-55: LGTM!

The implementation correctly displays the creator's name with appropriate fallback handling, consistent with the pattern used in the main todo-list-table component.

✨ 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/show-task-creator

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 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.
    • 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.
  • 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 the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

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

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

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

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • 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.

@shobhan-sundar-goutam shobhan-sundar-goutam marked this pull request as ready for review August 13, 2025 21:17
Copy link

@korbit-ai korbit-ai bot left a comment

Choose a reason for hiding this comment

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

I've completed my review and didn't find any issues... but I did find this shark.

                (`.
                 \ `.
                  )  `._..---._
\`.       __...---`         o  )
 \ `._,--'           ,    ___,'
  ) ,-._          \  )   _,-'
 /,'    ``--.._____\/--''
Files scanned
File Path Reviewed
api/tasks/tasks.types.ts
modules/teams/team-tasks.tsx
components/todo-list-table.tsx

Explore our documentation to understand the languages and file types we support and the files we ignore.

Check out our docs on how you can make Korbit work best for you and your team.

Loving Korbit!? Share us on LinkedIn Reddit and X

@yesyash yesyash changed the title Show Creator's Name in Task List feat: adds creator's name in todo List Aug 13, 2025
@yesyash yesyash merged commit d2ae1ba into develop Aug 13, 2025
3 of 4 checks passed
@yesyash yesyash deleted the feature/show-task-creator branch August 13, 2025 21:20
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.

Show Creator's Name on Task

3 participants