Closed CREDO23 closed 3 days ago
The changes in this pull request enhance the TaskAllStatusTypes
component by integrating project data management. It introduces the useOrganizationProjects
hook and the IProject
interface, allowing the component to fetch and display project information associated with tasks. A new state variable project
is added to hold the project details, and an asynchronous effect is implemented to retrieve project data based on the task's projectId
. The rendering logic is updated to conditionally show the project name alongside task statuses.
File Path | Change Summary |
---|---|
apps/web/lib/features/task/task-all-status-type.tsx | - Added useOrganizationProjects hook and IProject interface.- Introduced state variable project to hold project data.- Implemented useEffect to fetch project details based on task.projectId .- Updated rendering logic to display project name using ProjectIcon component. |
Objective | Addressed | Explanation |
---|---|---|
Project column or field is visible in the task list view (#[3100]) | ✅ | |
Each task shows its associated project name (#[3100]) | ✅ | |
Tasks without project associations won’t have project badge/information (#[3100]) | ✅ |
TaskAllStatusTypes
component to manage project data.🐇 In the dashboard bright and fair,
Tasks now show projects with care,
A badge for each, so clear and neat,
Helping teams stay on their feet!
With icons shining, tasks align,
Hop along, the projects shine! 🌟
[!WARNING] There were issues while running some tools. Please review the errors and either fix the tool’s configuration or disable the tool if it’s a critical failure.
🔧 eslint
> If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.apps/web/lib/features/task/task-all-status-type.tsx
Oops! Something went wrong! :( ESLint: 8.46.0 ESLint couldn't find the config "next/core-web-vitals" to extend from. Please check that the name of the config is correct. The config "next/core-web-vitals" was referenced from the config file in "/apps/web/.eslintrc.json". If you still have problems, please stop by https://eslint.org/chat/help to chat with the team.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Description
Fix #3100
Type of Change
Checklist
Current screenshots
Summary by CodeRabbit
New Features
Bug Fixes