[FEAT] Implement Workspace & Projects settings#13
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR implements Workspace & Projects settings (Issue #11) by expanding backend project update capabilities and wiring new frontend service methods and UI flows for managing workspace/project details, members, invites, labels, and workflow states.
Changes:
- Backend: expand
Projectmodel + project update handler/service to support additional fields (timezone, lead/assignee IDs, feature flags). - Frontend services: add workspace/project update + member/invite management endpoints; add label/state CRUD methods.
- Settings UI: implement project/workspace update actions, project invites, label/state modals, and a client-side export flow.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
ui/src/services/workspaceService.ts |
Adds workspace PATCH plus member role update / member removal / invite revocation helpers. |
ui/src/services/projectService.ts |
Adds project PATCH plus project member role update / member removal / invite revocation helpers. |
ui/src/services/labelService.ts |
Adds label create/update/delete methods scoped to workspace+project. |
ui/src/services/stateService.ts |
Adds state create/update/delete methods scoped to workspace+project. |
ui/src/pages/SettingsPage.tsx |
Implements settings UI flows for workspace/project updates, invites, members, labels, states, and export modal behavior. |
ui/src/api/types.ts |
Extends ProjectApiResponse with new project configuration fields. |
api/internal/service/project.go |
Extends ProjectService.Update to apply new fields/flags. |
api/internal/model/project.go |
Extends Project model with time-tracking + guest access flags and timezone field alignment. |
api/internal/handler/project.go |
Extends project PATCH handler to bind and pass new update fields to the service layer. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| const v = row[h]; | ||
| if (v == null) return ''; | ||
| let s: string; | ||
| if (typeof v === 'object' && v !== null && h === 'description') { |
…ble types' Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces several enhancements and new features to both the backend and frontend services, primarily focused on expanding project and workspace management capabilities. The most significant changes include extending the project update functionality to support more fields, updating the project model, and adding new API methods for managing projects, labels, states, and workspace members.
Backend Enhancements:
Expanded project update functionality:
Updatemethod inProjectHandlerandProjectServicenow supports updating additional fields such asdescription,timezone,project_lead_id,default_assignee_id, and several boolean configuration flags (e.g.,guest_view_all_features,module_view,is_time_tracking_enabled). [1] [2] [3]Project model changes:
Projectmodel now includes new fields:is_time_tracking_enabled,guest_view_all_features, and an updatedtimezonefield.Frontend/API Service Additions:
Project and workspace API improvements:
projectServicenow supports updating project details, managing project members (update/delete), and deleting project invitations. [1] [2]workspaceServiceadds methods for updating workspace details, managing workspace members (update/delete), and deleting workspace invitations.ProjectApiResponsetype is updated to include the new project fields.Label and state management:
labelServiceandstateServicenow include methods for creating, updating, and deleting labels and states within a project. [1] [2]Summary of Most Important Changes:
Backend:
Projectmodel with new fields for time tracking, guest feature visibility, and timezone.Frontend/API Services:
projectServicefor updating projects, managing project members, and deleting invitations. [1] [2]workspaceServicewith update, member management, and invitation deletion methods.labelServiceandstateService. [1] [2]ProjectApiResponsetype to reflect new backend fields for better type safety and API alignment.closes #11