Project Management
Relevant source files
The following files were used as context for generating this wiki page:
- apps/web/core/components/pages/projects/page-component.tsx
- apps/web/core/components/features/projects/add-or-edit-project/steps/review-summary.tsx
- apps/web/core/components/features/projects/add-or-edit-project/steps/basic-information-form.tsx
- apps/web/core/components/pages/settings/team/integration-setting.tsx
- README.md
- apps/web/core/components/README.md
- apps/web/core/stores/README.md
- apps/desktop/i18n/en.json
Project Management is a core feature of the Ever Teams platform, providing a comprehensive system for creating, organizing, and tracking projects. It supports the entire project lifecycle, from initial creation and team assignment to status tracking and integration with external services like GitHub. The system is designed to be flexible, allowing users to manage project details, financials, and team roles within a collaborative environment.
The architecture is built on a modular component system, with dedicated UI components for different aspects of project management, such as listing, creation, and editing. State is managed globally using Jotai, ensuring a reactive and consistent user experience across the application.
Sources: README.md, apps/web/core/components/README.md, apps/web/core/stores/README.md
Project Dashboard
The main interface for interacting with projects is the Project Dashboard. It provides tools for viewing, filtering, and managing all projects associated with an organization or team.
Sources: apps/web/core/components/pages/projects/page-component.tsx
Key Features
- Dual View Modes: Users can switch between a
GRIDview and aLISTview to visualize projects. The selected view is persisted in local storage. - Filtering and Search: The dashboard includes a search bar for filtering projects by name and a date range picker to filter projects based on their start and end dates. Advanced filtering is available through a dedicated modal.
- Archived Projects: The view can be toggled to show either active or archived projects by using the
archivedURL parameter. - Bulk Actions: When multiple projects are selected, a bulk action bar appears, allowing users to perform actions like
ArchiveorRestoreon all selected projects simultaneously. - Lazy Loading: To optimize performance, the project views (
ListView,GridView) and modals (CreateProjectModal,FiltersCardModal) are lazy-loaded.
This diagram illustrates the component structure of the Project Dashboard page.
Creating and Editing Projects
Projects are created and edited through a multi-step modal wizard. This guides the user through providing all necessary project information, from basic details to team assignments.
Sources: apps/web/core/components/features/projects/add-or-edit-project/steps/basic-information-form.tsx, apps/web/core/components/features/projects/add-or-edit-project/steps/review-summary.tsx
Project Creation Flow
The process is broken down into four main steps, followed by a final review.
- Basic Information: The user provides the project's title, description, start/end dates, a website URL, and an optional thumbnail image.
- Financial Settings: The user configures the project's budget, currency, and billing type.
- Categorization: The project is categorized using tags and a color code for easy identification.
- Team & Relations: Members and managers are assigned to the project.
- Review Summary: All entered information is displayed for a final review before the project is created or updated.
The following diagram shows the flow of creating a new project.
Automatic Role Assignment
The system includes logic to ensure every project has a manager. If no manager is explicitly assigned during creation, the current user is automatically assigned the MANAGER role for that project. Members added without a specific role are assigned the default EMPLOYEE role.
Sources: apps/web/core/components/features/projects/add-or-edit-project/steps/review-summary.tsx:39-81
Project Data Model
The core data structure for a new or updated project is defined by the TCreateProjectRequest type. It includes all the information gathered during the creation wizard.
| Field | Type | Description | Source File |
|---|---|---|---|
name | string | The title of the project. | review-summary.tsx:84 |
startDate | string (ISO) | The project's start date. | review-summary.tsx:85 |
endDate | string (ISO) | The project's end date. | review-summary.tsx:86 |
projectUrl | string | An optional URL for the project's website. | review-summary.tsx:87 |
description | string | A detailed description of the project. | review-summary.tsx:88 |
imageUrl | string | URL of the project's thumbnail image. | review-summary.tsx:89 |
imageId | string | ID of the uploaded image asset. | review-summary.tsx:90 |
tags | TTag[] | An array of tags for categorization. | review-summarytsx:91 |
color | string | A hex color code for the project. | review-summary.tsx:92 |
memberIds | string[] | Array of employee IDs for project members. | review-summary.tsx:94 |
managerIds | string[] | Array of employee IDs for project managers. | review-summary.tsx:97 |
budget | number | The financial budget for the project. | review-summary.tsx:100 |
currency | ECurrencies | The currency for the budget. | review-summary.tsx:101 |
budgetType | EProjectBudgetType | The type of budget (e.g., cost-based, hours-based). | review-summary.tsx:102 |
billing | EProjectBilling | The billing type for the project. | review-summary.tsx:103 |
teams | ITeam[] | An array of teams associated with the project. | review-summary.tsx:104 |
status | ETaskStatusName | The current status of the project (defaults to OPEN). | review-summary.tsx:105 |
isActive | boolean | Flag indicating if the project is active. | review-summary.tsx:106 |
isArchived | boolean | Flag indicating if the project is archived. | review-summary.tsx:107 |
isTasksAutoSync | boolean | Enables/disables automatic task syncing with integrations. | review-summary.tsx:108 |
Sources: apps/web/core/components/features/projects/add-or-edit-project/steps/review-summary.tsx:83-111
Entity Relationships
The diagram below shows the relationships between a Project and other key entities like Teams, Members (Users), and Tags.
GitHub Integration
Projects can be integrated with GitHub to synchronize tasks and issues. This is managed in the team settings.
Sources: apps/web/core/components/pages/settings/team/integration-setting.tsx
Configuration
The following settings are available for GitHub integration on a per-project basis:
| Setting | Description | Source File |
|---|---|---|
| Repository Sync | A project can be linked to a specific GitHub repository. Once linked, issues can be synchronized. | integration-setting.tsx:108-124 |
| Auto Sync Tasks | A boolean switch (isTasksAutoSync) to enable or disable automatic synchronization of all tasks. | integration-setting.tsx:162-179 |
| Sync by Label | A boolean switch (isTasksAutoSyncOnLabel) to enable syncing only tasks that have a specific label in GitHub. | integration-setting.tsx:185-202 |
| Sync Tag | An input field to specify the exact label name (syncTag) to be used for conditional syncing. | integration-setting.tsx:210-215 |
Syncing a Repository
The flow for connecting a project to a GitHub repository involves installing the GitHub App, selecting a repository, and then the system calls the API to establish the link.
This sequence diagram shows the process of syncing a GitHub repository with a project.
Conclusion
The Project Management module is a central part of the Ever Teams platform, offering robust tools for project creation, tracking, and collaboration. Its architecture is designed for scalability, with clear separation of concerns between UI components, state management, and API interactions. The integration with GitHub further enhances its utility by bridging the gap between project planning and code development, enabling features like automatic task synchronization.